/* ================================================================
   Bridge City Appliance Repair — shared stylesheet (all pages)
   "Navy & Burnt Orange" · Mobile-first · Roboto Slab headings.
   Palette: Deep Navy + Burnt Orange CTA + Warm Cream surfaces.
   ================================================================ */

:root {
  /* ── Palette ─────────────────────────────────────────── */
  --primary:   #061B2A; /* deep navy — headings, header, dark surfaces */
  --primary-d: #04121C; /* darker navy for hovers/overlays/footer */
  --cta:       #C65A1E; /* burnt orange — ONLY on CTA buttons & tiny accents */
  --cta-hover: #A94B16; /* burnt orange hover */
  --green:     #6F8A4A; /* bridge green — supporting accent (sparingly) */
  --steel:     #526D78; /* steel blue gray — supporting accent (sparingly) */
  --bg:        #FAF6EF; /* light warm off-white — main background (kept light for readability) */
  --surface:   #FFFFFF; /* cards / surfaces */
  --surface-cream: #F4E4C6; /* warm cream — used for alt section surfaces only */
  --text:      #1C2A33; /* main text — dark navy-gray, reads on white & cream */
  --muted:     #51606B; /* muted text — steel blue gray */
  --line:      #E7DECB; /* warm hairline borders */

  --font:      system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-head: 'Roboto Slab', Georgia, 'Times New Roman', serif;

  --radius:    14px;
  --radius-sm: 9px;
  --maxw:      1140px;
  --pad:       20px;
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --t:         0.2s;
  --shadow:    0 1px 2px rgba(6,27,42,0.05), 0 8px 24px rgba(6,27,42,0.07);
  --shadow-h:  0 6px 14px rgba(6,27,42,0.09), 0 18px 44px rgba(6,27,42,0.14);
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15; letter-spacing: -0.01em;
  color: var(--primary); font-weight: 700;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* ── Section rhythm ────────────────────────────────────── */
.section { padding: 56px 0; }
.section-alt { background: var(--surface-cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin: 0 auto 32px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head h2 { font-size: clamp(26px, 6vw, 36px); margin-bottom: 10px; }
.section-head p { color: var(--muted); font-size: 16px; }
.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--cta);            /* small burnt-orange accent — allowed */
  margin-bottom: 8px;
  font-family: var(--font);
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px;
  font-size: 15px; font-weight: 600;
  border-radius: var(--radius-sm);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), background var(--t) var(--ease), color var(--t) var(--ease);
  white-space: nowrap; line-height: 1;
}
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-block { width: 100%; }

/* CTA = burnt orange. The ONLY place this color fills a button. */
.btn-cta { background: var(--cta); color: #fff; box-shadow: 0 4px 14px rgba(198,90,30,0.28); }
.btn-cta:hover { background: var(--cta-hover); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(198,90,30,0.36); }

/* Outline / secondary — on light backgrounds */
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

/* Ghost — over hero photos (dark) */
.btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border: 1.5px solid rgba(255,255,255,0.7); }
.btn-ghost:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }

/* ============================================================
   1. HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,246,239,0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { font-size: 18px; font-weight: 700; color: var(--primary); letter-spacing: -0.01em; display: inline-flex; align-items: center; font-family: var(--font-head); }
.logo img { display: block; height: 34px; width: auto; }

.nav-links { display: none; }            /* hidden on mobile, shown on desktop */
.nav-links a { font-size: 15px; color: var(--muted); font-weight: 500; transition: color var(--t); }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }

.nav-actions { display: none; align-items: center; gap: 14px; } /* desktop only */
.nav-phone { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 15px; color: var(--primary); }
.nav-phone:hover { color: var(--cta); }

/* Hamburger */
.nav-toggle { display: flex; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--primary); border-radius: 2px; transition: transform var(--t), opacity var(--t); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile dropdown panel */
.nav-links.open {
  display: flex; flex-direction: column; gap: 4px;
  position: absolute; top: 64px; left: 0; right: 0;
  background: var(--surface); border-bottom: 1px solid var(--line);
  padding: 12px var(--pad) 18px;
  box-shadow: var(--shadow);
}
.nav-links.open a { padding: 12px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }
.nav-links.open a:last-child { border-bottom: none; }
.nav-links.open .nav-cta-mobile {
  margin-top: 10px; background: var(--cta); color: #fff; text-align: center;
  border-radius: var(--radius-sm); border-bottom: none !important; font-weight: 600;
}

/* ============================================================
   2. HERO (home) + PAGE-HERO (subpages)
   ============================================================ */
.hero { position: relative; min-height: 78vh; display: flex; align-items: center; overflow: hidden; }
.hero-photo {
  position: absolute; inset: 0; z-index: 0;
  /* PLACEHOLDER: replace gray with background-image:url('/assets/images/hero.jpg'); */
  background: repeating-linear-gradient(135deg, #8d9588 0 22px, #828a7d 22px 44px);
  background-size: cover; background-position: center;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(6,27,42,0.82) 0%, rgba(6,27,42,0.66) 55%, rgba(6,27,42,0.86) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 64px 20px; max-width: 720px; }
.hero-title { color: #fff; font-size: clamp(30px, 8vw, 52px); line-height: 1.08; margin-bottom: 16px; }
.hero-sub { color: rgba(255,255,255,0.9); font-size: clamp(16px, 4vw, 19px); max-width: 560px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.trust-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  color: rgba(255,255,255,0.92); font-size: 14px; font-weight: 600;
}
.trust-strip li { display: inline-flex; align-items: center; }

/* Compact hero for service/geo pages */
.page-hero {
  position: relative; overflow: hidden;
  background: var(--primary);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,27,42,0.0) 0%, rgba(6,27,42,0.35) 100%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; padding-top: 48px; padding-bottom: 52px; }
.page-hero h1 { color: #fff; font-size: clamp(28px, 7vw, 44px); margin-bottom: 14px; max-width: 720px; }
.page-hero p { color: rgba(255,255,255,0.88); font-size: clamp(16px, 3.4vw, 18px); max-width: 620px; margin-bottom: 24px; }
.page-hero .hero-actions { margin-bottom: 0; }

/* Breadcrumbs */
.crumbs { font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 16px; }
.crumbs a { color: rgba(255,255,255,0.85); }
.crumbs a:hover { color: #fff; }
.crumbs span { color: rgba(255,255,255,0.55); }

/* ── Photo placeholders ────────────────────────────────── */
.photo-label {
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--muted); background: rgba(255,255,255,0.7);
  padding: 6px 12px; border-radius: 100px; text-transform: uppercase;
}

/* ============================================================
   3. CARD GRIDS (services / areas / generic)
   ============================================================ */
.cards-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
  display: flex; flex-direction: column;
}
a.card { color: inherit; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-h); }
.card h3 { font-size: 18px; margin-bottom: 7px; }
.card p { color: var(--muted); font-size: 15px; }
.card-icon {
  width: 46px; height: 46px; border-radius: 11px;
  background: rgba(6,27,42,0.07); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; font-size: 22px;
}
.card-link {
  margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--cta);
  display: inline-flex; align-items: center; gap: 6px;
}
.card:hover .card-link { gap: 9px; }

/* Compact area chips/cards */
.area-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 16px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-weight: 600; color: var(--primary);
  box-shadow: var(--shadow);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t);
}
.area-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-h); border-color: var(--cta); }
.area-card .arrow { color: var(--cta); }

/* ============================================================
   4. "HOW IT WORKS" / STEPS
   ============================================================ */
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 18px; counter-reset: step; }
.step {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); position: relative;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 700; font-family: var(--font-head);
  margin-bottom: 14px;
}
.step h3 { font-size: 17px; margin-bottom: 7px; }
.step p { color: var(--muted); font-size: 15px; }

/* ============================================================
   5. $99 DIAGNOSTIC POLICY BOX (reused on every page)
   ============================================================ */
.policy {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--cta);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow);
  max-width: 760px; margin: 0 auto;
}
.policy .eyebrow { margin-bottom: 6px; }
.policy h3 { font-size: 20px; margin-bottom: 10px; }
.policy p { color: var(--muted); font-size: 15.5px; margin-bottom: 10px; }
.policy p:last-child { margin-bottom: 0; }
.policy strong { color: var(--text); }

/* ============================================================
   6. PROSE / problem lists (service & geo body)
   ============================================================ */
.prose { max-width: 760px; }
.prose p { color: var(--muted); font-size: 16px; margin-bottom: 16px; }
.check-list { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 8px 0 4px; }
.check-list li {
  position: relative; padding-left: 30px; color: var(--text); font-size: 15.5px; line-height: 1.5;
}
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--green); font-weight: 700;
}
.note-box {
  background: var(--surface-cream); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 16px 18px; margin-top: 18px;
  font-size: 14.5px; color: var(--text);
}

/* ============================================================
   7. CTA BAND (bottom of pages → /contact/)
   ============================================================ */
.cta-band { background: var(--primary); color: #fff; text-align: center; }
.cta-band .eyebrow { color: #E8A878; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 6vw, 36px); margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.85); font-size: 17px; max-width: 560px; margin: 0 auto 26px; }
.cta-band .hero-actions { justify-content: center; }
.cta-phone { color: #fff; font-weight: 700; font-family: var(--font-head); }
.cta-phone:hover { color: #E8A878; }

/* ============================================================
   8. FOOTER
   ============================================================ */
.site-footer { background: var(--primary-d); color: rgba(255,255,255,0.82); padding: 48px 0 24px; }
.footer-inner { display: grid; grid-template-columns: 1fr; gap: 28px; }
.footer-brand img { height: 42px; width: auto; margin-bottom: 12px; }
.footer-brand p { color: rgba(255,255,255,0.7); font-size: 15px; max-width: 280px; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-col a { display: block; color: rgba(255,255,255,0.8); margin-bottom: 8px; font-size: 15px; }
.footer-col a:hover { color: #fff; }
.footer-col p { font-size: 15px; color: rgba(255,255,255,0.8); margin-bottom: 8px; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.12); margin-top: 32px; padding-top: 18px;
  display: grid; gap: 10px;
}
.footer-legal p { font-size: 12.5px; color: rgba(255,255,255,0.55); line-height: 1.55; }
.footer-bottom { font-size: 13px; color: rgba(255,255,255,0.6); }

/* Studio credit — bottom-most footer line */
.studio-credit {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 18px; padding-top: 16px;
  text-align: center;
  font-size: 0.8rem; line-height: 1.5;
  color: rgba(255,255,255,0.5);
}
.studio-credit a {
  color: #34D399;            /* Axiom:Void emerald accent */
  font-weight: 600;
}
.studio-credit a:hover { text-decoration: underline; }

/* ============================================================
   9. CONTACT / REQUEST-SERVICE FORM
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }

.form-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow);
}
.form-card h2 { font-size: 22px; margin-bottom: 6px; }
.form-card .form-intro { color: var(--muted); font-size: 15px; margin-bottom: 20px; }

#contactForm { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text); }
.field .req { color: var(--cta); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font-family: inherit; font-size: 15px;
  color: var(--text); background: #fff;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); outline: none;
  transition: border-color var(--t), box-shadow var(--t);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: #9aa394; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--cta); box-shadow: 0 0 0 3px rgba(198,90,30,0.18);
}

/* Consent checkboxes */
.check-row { flex-direction: row; align-items: flex-start; gap: 10px; }
.check-row input[type="checkbox"] {
  width: 18px; height: 18px; min-width: 18px; margin-top: 2px;
  accent-color: var(--cta); cursor: pointer;
}
.check-row label { font-size: 13.5px; font-weight: 500; color: var(--muted); line-height: 1.45; cursor: pointer; }

/* Honeypot — visually hidden anti-spam field */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Stub submit feedback (form is NOT connected) */
.form-note {
  display: none;
  background: var(--surface-cream); border: 1px solid var(--line);
  border-left: 4px solid var(--cta);
  border-radius: var(--radius-sm); padding: 14px 16px;
  font-size: 14.5px; color: var(--text);
}
.form-note.visible { display: block; }

/* Sidebar "call instead" panel */
.contact-aside {
  background: var(--primary); color: #fff;
  border-radius: var(--radius); padding: 26px; text-align: center;
}
.contact-aside .eyebrow { color: #E8A878; }
.contact-aside h3 { color: #fff; font-size: 19px; margin-bottom: 8px; }
.contact-aside .call-number {
  display: inline-block; font-family: var(--font-head);
  font-size: clamp(24px, 6vw, 30px); font-weight: 700; color: #fff;
  margin: 6px 0 10px; letter-spacing: -0.01em;
}
.contact-aside .call-number:hover { color: #E8A878; }
.contact-aside p { color: rgba(255,255,255,0.82); font-size: 14.5px; margin-bottom: 8px; }

/* ============================================================
   Scroll reveal (progressive enhancement)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE — scale up from mobile
   ============================================================ */
@media (min-width: 560px) {
  .hero-actions { flex-direction: row; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .check-list { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr auto; }
}

@media (min-width: 860px) {
  .section { padding: 84px 0; }
  .nav-links { display: flex; gap: 28px; }
  .nav-actions { display: flex; }
  .nav-toggle { display: none; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .areas-grid { grid-template-columns: repeat(3, 1fr); }
  .steps-grid { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: 1.6fr 1fr; }
  .page-hero .container { padding-top: 64px; padding-bottom: 72px; }
}

/* ============================================================
   Reduced motion — kill animations & smooth scroll
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .btn:hover, .card:hover, .area-card:hover, .gallery-photo:hover { transform: none !important; }
}
