/* ============================================================
   Arizona Tile & Grout Care — Design System
   WordPress child theme version of assets/styles.css.
   Loaded by functions.php after the parent's aztile2026-base.css.
   These rules override the parent theme's existing styles.
   ============================================================ */

/* ============ TOKENS ============ */
:root {
  --black:       #000000;
  --black-soft:  #0a0a0a;
  --graphite:    #141414;
  --blue:        #84aac9;
  --blue-deep:   #6b92b2;
  --blue-soft:   #b5ccde;
  --blue-mist:   #d9e4ee;
  --gold:        #a49166;
  --gold-deep:   #8d7b54;
  --gold-soft:   #d4c9ad;
  --cream:       #faf7f2;
  --cream-warm:  #f3ece1;
  --ink:         #000000;
  --ink-soft:    #2a2a2a;
  --ink-mute:    #55575b;
  --line:        rgba(0,0,0,.08);
  --shadow-sm:   0 2px 6px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.04);
  --shadow-md:   0 10px 30px rgba(0,0,0,.12), 0 24px 60px rgba(0,0,0,.08);
  --shadow-lg:   0 30px 80px rgba(0,0,0,.22);
  --radius:      14px;
  --radius-lg:   22px;
  --display:     'Playfair Display', 'Times New Roman', serif;
  --sans:        'Raleway', -apple-system, BlinkMacSystemFont, sans-serif;
  --max:         1240px;
  --ease:        cubic-bezier(.2,.7,.2,1);
}

/* ============ BASE OVERRIDES ============ */
/* These override the parent theme's body/heading/link defaults */
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--sans) !important;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-weight: 400;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* ============ TOP TICKER ============ */
.ticker {
  background: var(--black);
  color: var(--cream);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  overflow: hidden;
  position: relative;
  height: 40px;
  display: flex;
  align-items: center;
}
.ticker-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: ticker 40s linear infinite;
  padding-left: 60px;
  font-weight: 500;
}
.ticker-track span { display: inline-flex; align-items: center; gap: 14px; }
.ticker-track i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); display: inline-block; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ NAV ============ */
/* Override whatever nav styles the parent theme applies */
.nav {
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  background: rgba(250,247,242,.85) !important;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent !important;
  transition: border-color .4s var(--ease), background .4s var(--ease);
  /* Reset any parent padding/margin on nav elements */
  padding: 0 !important;
  margin: 0 !important;
}
.nav.scrolled { border-bottom-color: var(--line) !important; background: rgba(250,247,242,.96) !important; }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  max-width: var(--max);
  margin: 0 auto;
  gap: 20px;
}
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo img { height: 58px; width: auto; display: block; }

.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li { margin: 0; padding: 0; }
.nav-links a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  transition: color .2s;
  text-decoration: none;
}
.nav-links a:hover { color: var(--black); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0;
  width: 0; height: 2px;
  background: var(--blue);
  transition: width .3s var(--ease);
}
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--blue);
  color: var(--black);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  transition: transform .25s var(--ease), background .25s, color .25s;
  text-decoration: none;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--black); color: var(--blue); transform: translateY(-1px); }
.nav-cta svg { width: 14px; height: 14px; }

/* ============ MOBILE NAV ============ */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  border-radius: 8px;
  background: none;
  border: 1.5px solid var(--line);
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}
.nav-burger span {
  display: block;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}
.nav-mobile.open { display: block; pointer-events: auto; }
.nav-mobile-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.45);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.nav-mobile.open .nav-mobile-overlay { opacity: 1; }
.nav-mobile-drawer {
  position: absolute;
  top: 0; right: 0;
  width: min(320px, 88vw);
  height: 100%;
  background: var(--cream);
  padding: 24px;
  transform: translateX(100%);
  transition: transform .35s var(--ease);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.nav-mobile.open .nav-mobile-drawer { transform: translateX(0); }
.nav-mobile-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
}
.nav-mobile-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--cream-warm);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--black);
  transition: background .2s;
}
.nav-mobile-close:hover { background: rgba(0,0,0,.08); }
.nav-mobile-links {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column;
  flex: 1;
}
.nav-mobile-links li { border-bottom: 1px solid var(--line); margin: 0; }
.nav-mobile-links a {
  display: block;
  padding: 18px 4px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color .2s, padding-left .2s;
  text-decoration: none;
}
.nav-mobile-links a:hover { color: var(--black); padding-left: 8px; }
.nav-mobile-cta {
  margin-top: 32px;
  display: flex; flex-direction: column; gap: 12px;
}

/* ============ SHARED SECTION STYLES ============ */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 72px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.08;
  letter-spacing: -.025em;
  color: var(--black);
  max-width: 15ch;
}
.section-head h2 em { font-style: italic; font-family: var(--display); color: var(--gold-deep); font-weight: 400; letter-spacing: -.01em; }
.section-head p { font-size: 17px; color: var(--ink-soft); max-width: 440px; line-height: 1.65; }

/* ============ TYPOGRAPHY ============ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 28px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--gold); }

/* Interior page headings — give WP content area the right type scale */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.page-content h1,
.page-content h2,
.page-content h3 {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--black);
  line-height: 1.15;
}
.entry-content p,
.page-content p {
  font-family: var(--sans);
  color: var(--ink-soft);
  line-height: 1.7;
  font-size: 16px;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
}
.btn-primary { background: var(--blue); color: var(--black); box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--black); color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: transparent; color: var(--black); border: 1.5px solid var(--black); }
.btn-ghost:hover { background: var(--black); color: var(--blue); transform: translateY(-2px); }
.btn svg { width: 16px; height: 16px; transition: transform .3s; }
.btn:hover svg { transform: translateX(4px); }

/* ============ FOOTER ============ */
footer {
  background: var(--black) !important;
  color: rgba(250,247,242,.7);
  padding: 90px 0 30px;
  border-top: 1px solid rgba(164,145,102,.18);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}
.foot-logo-card {
  display: inline-block;
  background: var(--cream);
  padding: 16px 22px;
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
.foot-brand .logo-glow { height: 48px; width: auto; display: block; filter: none; }
.foot-brand p { font-size: 14px; line-height: 1.65; max-width: 340px; margin-bottom: 22px; font-weight: 400; }
.foot-lic {
  display: inline-block;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-soft);
  border: 1px solid rgba(164,145,102,.35);
  padding: 8px 14px;
  border-radius: 999px;
}
.foot-col h5 { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--cream); margin-bottom: 18px; font-weight: 700; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col ul li { margin-bottom: 10px; }
.foot-col a, .foot-col li { font-size: 14px; color: rgba(250,247,242,.65); transition: color .2s; font-weight: 400; }
.foot-col a:hover { color: var(--gold-soft); }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid rgba(164,145,102,.18);
  font-size: 12px;
  color: rgba(250,247,242,.5);
  flex-wrap: wrap;
  gap: 20px;
  font-weight: 500;
}

/* ============ SCROLL ANIMATIONS ============ */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal-left.in-view { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal-right.in-view { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(.94); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal-scale.in-view { opacity: 1; transform: scale(1); }
.stagger > * { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.stagger.in-view > * { opacity: 1; transform: translateY(0); }
.stagger.in-view > *:nth-child(1) { transition-delay: .05s; }
.stagger.in-view > *:nth-child(2) { transition-delay: .12s; }
.stagger.in-view > *:nth-child(3) { transition-delay: .19s; }
.stagger.in-view > *:nth-child(4) { transition-delay: .26s; }
.stagger.in-view > *:nth-child(5) { transition-delay: .33s; }

/* ============ WP TEMPLATE OVERRIDES ============ */
/* Hide the auto-generated page title on the homepage — WP outputs "Home" h1 */
body.home .entry-header,
body.home .page-header { display: none; }

/* Remove default WP padding/margin on main content wrapper */
#primary.site-main { padding: 0; margin: 0; }
.entry-content { padding: 0; margin: 0; }

/* ============ GRAVITY FORMS ============ */
.gform_wrapper .gfield_label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.gform_wrapper .ginput_container input,
.gform_wrapper .ginput_container textarea,
.gform_wrapper .ginput_container select {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid rgba(0,0,0,.14);
  border-radius: 8px;
  padding: 12px 16px;
  width: 100%;
  transition: border-color .2s;
  outline: none;
}
.gform_wrapper .ginput_container input:focus,
.gform_wrapper .ginput_container textarea:focus,
.gform_wrapper .ginput_container select:focus {
  border-color: var(--blue);
}
.gform_wrapper .gform_submit_button,
.gform_wrapper input[type="submit"] {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--blue);
  color: var(--black);
  border: none;
  border-radius: 999px;
  padding: 16px 32px;
  cursor: pointer;
  transition: background .25s, transform .25s;
}
.gform_wrapper .gform_submit_button:hover,
.gform_wrapper input[type="submit"]:hover {
  background: var(--black);
  color: var(--blue);
  transform: translateY(-2px);
}
.gform_wrapper .gfield_error .ginput_container input,
.gform_wrapper .gfield_error .ginput_container textarea {
  border-color: #c0392b;
}
.gform_wrapper .validation_message {
  font-size: 12px;
  color: #c0392b;
  margin-top: 4px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .nav-inner { padding: 12px 20px; }
  .logo img { height: 46px; }
  .nav-cta { padding: 10px 14px; font-size: 11px; gap: 6px; }
  .nav-cta svg { width: 12px; height: 12px; }
  .foot-grid { grid-template-columns: 1fr; }
}
