/* ==========================================================================
   Metal Roofing Pros Victoria - Global Stylesheet (Coastal v1)
   Design: "Pacific Coastal" - clean geometric sans, deep navy panels,
           sea-glass teal accents, warm sand highlights, off-white fields.
   Palette: Pacific navy #122E3A, sea-glass teal #2A9D8F, driftwood sand
           #D9C5A5, warm off-white #F7F3EA, white #FFFFFF
   Type: Sora (display) + Inter (body) via Google Fonts in <head>
   Single shared stylesheet - no per-page CSS. Same class names as the
   original base so the sync scripts and page templates keep working.
   ========================================================================== */

:root {
  --navy: #122E3A;
  --navy-deep: #0B1F28;
  --navy-soft: #1D4254;
  --teal: #2A9D8F;
  --teal-deep: #1F7A6E;
  --teal-pale: #D8EDE9;
  --sand: #D9C5A5;
  --sand-deep: #B99B6B;
  --sand-pale: #EFE6D2;
  --cream: #F7F3EA;
  --cream-dark: #EDE6D5;
  --paper: #ffffff;
  --text: #22333C;
  --text-mute: #5C6E77;
  --line: #DCE3E2;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 8px 30px rgba(18, 46, 58, 0.10);
  --shadow-lg: 0 20px 60px rgba(18, 46, 58, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1180px;
  --font-display: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.75;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ---- TYPE ---- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.8rem); margin-bottom: 0.6em; }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); margin-bottom: 0.5em; }
h1 em, h2 em, .display em {
  font-style: normal;
  color: var(--teal-deep);
  background: linear-gradient(transparent 62%, var(--sand-pale) 62%);
}
p { margin-bottom: 1.1em; }
.lede { font-size: clamp(1.05rem, 2vw, 1.28rem); line-height: 1.65; color: var(--text-mute); max-width: 44em; }

/* Kicker label used above headlines */
.kicker {
  display: inline-flex; align-items: center; gap: 0.7em;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--teal-deep); margin-bottom: 1.1rem;
}
.kicker::before { content: ""; width: 2.4em; height: 3px; border-radius: 3px; background: var(--teal); display: inline-block; }

/* Body links: bold + underlined (brand signature, preserved) */
.prose a, main p a {
  font-weight: 700; text-decoration: underline;
  text-decoration-color: var(--teal); text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.prose a:hover, main p a:hover { color: var(--teal-deep); }

/* ---- LAYOUT ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.2rem, 4vw, 2.5rem); }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-cream { background: var(--cream); }
.section-ink { background: var(--navy); color: #EAF2F1; }
.section-ink h1, .section-ink h2, .section-ink h3 { color: #ffffff; }
.section-ink .lede { color: #B9CBD2; }

/* ==========================================================================
   HEADER - sticky, white, navy text, teal underline
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 300;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--teal);
}
.nav-bar {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0.6rem clamp(1.2rem, 4vw, 2.5rem);
  display: flex; align-items: center; gap: 1.6rem;
}
a.logo { display: flex; align-items: center; line-height: 1; flex-shrink: 0; margin-right: auto; }
a.logo picture, a.logo img { display: block; }
.nav-links { display: flex; gap: 1.7rem; align-items: center; }
.nav-links a {
  font-size: 0.95rem; font-weight: 600; color: var(--navy);
  padding: 0.4em 0; position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0;
  background: var(--teal); border-radius: 3px; transition: width 0.3s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.nav-phone {
  font-weight: 800; color: var(--navy); font-size: 1rem;
  border: 2px solid var(--line); border-radius: 999px;
  padding: 0.5em 1.1em; white-space: nowrap;
  transition: border-color 0.25s, background 0.25s;
}
.nav-phone:hover { border-color: var(--teal); background: var(--teal-pale); }
.btn {
  display: inline-block; font-weight: 700; font-size: 1rem;
  padding: 0.95em 2.1em; border-radius: 999px; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s;
  border: none; text-align: center;
}
.btn-gold { background: var(--teal); color: #fff; box-shadow: 0 8px 24px rgba(42, 157, 143, 0.35); }
.btn-gold:hover { background: var(--teal-deep); transform: translateY(-2px); }
.btn-outline { border: 2px solid var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.nav-cta { display: inline-block; font-weight: 700; font-size: 0.95rem; background: var(--navy); color: #fff; padding: 0.75em 1.6em; border-radius: 999px; white-space: nowrap; }
.nav-cta:hover { background: var(--teal-deep); }
.hamburger { display: none; background: none; border: none; font-size: 1.7rem; color: var(--navy); cursor: pointer; }

/* ==========================================================================
   HERO - full-bleed image, white card with teal wave edge
   ========================================================================== */
.hero {
  position: relative; min-height: min(88vh, 780px);
  display: flex; align-items: flex-end;
  overflow: clip; background: var(--navy);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,46,58,0.30) 0%, rgba(18,46,58,0.05) 40%, rgba(18,46,58,0.66) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.hero-card {
  background: #ffffff; border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 3rem);
  max-width: 660px; box-shadow: var(--shadow-lg);
  border-left: 8px solid var(--teal);
}
.hero-card h1 { margin: 0 0 0.55em; }
.hero-card .lede { margin-bottom: 1.4em; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-note {
  margin-top: 1.2rem; font-size: 0.9rem; color: var(--text-mute);
  display: flex; align-items: center; gap: 0.6em;
}

/* Ticker strip */
.ticker {
  background: var(--sand); color: var(--navy);
  overflow: hidden; white-space: nowrap;
  padding: 0.85rem 0; border-bottom: 1px solid var(--sand-deep);
}
.ticker-track { display: inline-flex; gap: 3.5rem; animation: tick 30s linear infinite; padding-left: 1rem; }
.ticker span { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.ticker span i { font-style: normal; color: var(--teal-deep); margin-right: 3.5rem; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ==========================================================================
   SERVICE LIST (homepage + services hub) - soft cards, teal number chips
   ========================================================================== */
.svc-row {
  display: grid; grid-template-columns: 90px 1fr auto; gap: 1.5rem; align-items: center;
  padding: 1.7rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 1rem; background: #fff;
  transition: box-shadow 0.25s, transform 0.25s var(--ease), border-color 0.25s;
}
.svc-row:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--teal); }
.svc-num {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
  color: #fff; background: var(--teal); border-radius: 14px;
  width: 64px; height: 64px; display: grid; place-items: center; line-height: 1;
}
.svc-row h3 { margin: 0 0 0.3em; font-size: 1.5rem; }
.svc-row h3 a { font-weight: 700; text-decoration: none; }
.svc-row h3 a:hover { color: var(--teal-deep); }
.svc-row p { margin: 0; color: var(--text-mute); font-size: 0.98rem; max-width: 40em; }
.svc-arrow {
  width: 54px; height: 54px; border: 2px solid var(--line); border-radius: 50%;
  display: grid; place-items: center; font-size: 1.3rem; color: var(--teal-deep);
  transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease);
  flex-shrink: 0;
}
.svc-row:hover .svc-arrow { background: var(--teal); border-color: var(--teal); color: #fff; transform: rotate(-45deg); }

/* ==========================================================================
   FEATURE COLLAGE - rounded images, sand frame
   ========================================================================== */
.collage {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.collage-media { position: relative; }
.collage-media .img-main { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4/4.6; object-fit: cover; width: 100%; }
.collage-media .img-accent {
  position: absolute; right: -8%; bottom: -10%; width: 46%;
  border-radius: var(--radius); border: 8px solid var(--paper);
  box-shadow: var(--shadow-lg); aspect-ratio: 1/1; object-fit: cover;
}
.collage-badge {
  position: absolute; top: -26px; left: -14px;
  background: var(--navy); color: var(--sand);
  font-family: var(--font-display);
  padding: 0.9em 1.4em; border-radius: 999px; font-size: 1.05rem;
  box-shadow: var(--shadow); transform: rotate(-3deg);
}
.collage-copy .checklist { margin: 1.4em 0; }
.checklist li {
  padding: 0.55em 0 0.55em 2.1em; position: relative;
  border-bottom: 1px dashed var(--line); font-weight: 500;
}
.checklist li::before {
  content: "✓"; position: absolute; left: 0.2em; top: 0.55em;
  color: var(--teal-deep); font-weight: 800;
}

/* ==========================================================================
   STATS BAND
   ========================================================================== */
.stats-band { background: var(--navy); border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(2.2rem, 4.5vw, 3.4rem); color: var(--sand); font-weight: 700; line-height: 1; }
.stat span { display: block; margin-top: 0.6em; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: #B9CBD2; }

/* ==========================================================================
   PROCESS - teal number chips
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.step { position: relative; padding: 1.6rem; background: var(--cream); border-radius: var(--radius); border-top: 5px solid var(--teal); }
.step-num {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
  line-height: 1; color: #fff; background: var(--navy);
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  margin-bottom: 0.9em;
}
.step h3 { font-size: 1.2rem; }
.step p { color: var(--text-mute); font-size: 0.96rem; margin: 0; }

/* ==========================================================================
   IMAGE CARDS (locations, gallery)
   ========================================================================== */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.loc-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  display: block; box-shadow: var(--shadow); background: var(--navy);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.loc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.loc-card img { width: 100%; aspect-ratio: 4/3.4; object-fit: cover; transition: transform 0.6s var(--ease); }
.loc-card:hover img { transform: scale(1.05); }
.loc-card .loc-label {
  position: absolute; left: 1rem; bottom: 1rem; right: 1rem;
  background: rgba(255, 255, 255, 0.97); border-radius: 12px;
  padding: 0.85rem 1.1rem; display: flex; justify-content: space-between; align-items: center; gap: 0.8rem;
}
.loc-card .loc-label b { font-family: var(--font-display); font-size: 1.15rem; color: var(--navy); font-weight: 700; }
.loc-card .loc-label small { display: block; font-family: var(--font-body); font-size: 0.78rem; color: var(--text-mute); font-weight: 500; }
.loc-card .loc-go {
  width: 42px; height: 42px; border-radius: 50%; background: var(--teal); color: #fff;
  display: grid; place-items: center; font-size: 1.1rem; flex-shrink: 0;
}

/* ==========================================================================
   PAGE HERO (inner pages) - navy band with sand rule
   ========================================================================== */
.page-hero { background: var(--navy); color: #EAF2F1; border-bottom: 5px solid var(--teal); padding: clamp(2.8rem, 6vw, 4.5rem) 0 clamp(2.2rem, 5vw, 3.5rem); position: relative; overflow: clip; }
.page-hero::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px;
  border: 2px solid rgba(217, 197, 165, 0.5); border-radius: 50%; opacity: 0.6; pointer-events: none;
}
.page-hero h1 { color: #fff; }
.page-hero h1 em { color: var(--sand); background: none; }
.page-hero .kicker { color: var(--sand); }
.page-hero .kicker::before { background: var(--sand); }
.page-hero .lede { color: #B9CBD2; }
.crumbs { font-size: 0.85rem; color: #B9CBD2; margin-bottom: 1.2rem; display: flex; gap: 0.6em; flex-wrap: wrap; }
.crumbs a { font-weight: 600; color: var(--sand); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: #EAF2F1; }
.page-hero h1 { max-width: 16em; margin-bottom: 0.45em; }
.page-hero .lede { max-width: 46em; }

/* Prose article */
.prose { max-width: 46em; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose ul.bullets { margin: 1em 0 1.4em 0; }
.prose ul.bullets li { padding: 0.4em 0 0.4em 1.6em; position: relative; }
.prose ul.bullets li::before { content: "•"; position: absolute; left: 0; color: var(--teal-deep); font-weight: 700; }
.pull-quote {
  border-left: 4px solid var(--teal); padding: 0.4em 0 0.4em 1.4em; margin: 2em 0;
  font-family: var(--font-display); font-size: 1.3rem; color: var(--navy); line-height: 1.5;
}
.two-col { display: grid; grid-template-columns: 1fr 340px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.sidebar-card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; position: sticky; top: 110px;
}
.sidebar-card h3 { font-size: 1.2rem; margin-bottom: 0.8em; }
.sidebar-card ul { margin-bottom: 1.4em; }
.sidebar-card li { padding: 0.45em 0; border-bottom: 1px dashed var(--line); font-size: 0.95rem; }
.sidebar-card li:last-child { border: none; }
.sidebar-card li a { font-weight: 600; }

/* Info strip (nap) */
.nap-strip { background: var(--navy); border-radius: var(--radius); padding: 1.6rem 2rem; display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: center; justify-content: space-between; }
.nap-strip b { color: #fff; }
.nap-strip a { color: var(--sand); font-weight: 700; }

/* Map */
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.map-frame iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.faq-list { max-width: 780px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--navy);
  padding: 1.25rem 2.5rem 1.25rem 0; position: relative;
}
.faq-q::after {
  content: "+"; position: absolute; right: 0.2rem; top: 1.1rem;
  font-family: var(--font-body); font-size: 1.6rem; font-weight: 300; color: var(--teal-deep);
  transition: transform 0.3s var(--ease);
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-a p { padding: 0 0 1.4rem; color: var(--text-mute); margin: 0; }

/* ==========================================================================
   CTA BAND
   ========================================================================== */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 60%, var(--teal-deep) 100%);
  color: #fff; border-radius: var(--radius);
  padding: clamp(2.8rem, 6vw, 4.5rem); text-align: center; position: relative; overflow: clip;
}
.cta-band h2 { color: #fff; margin-bottom: 0.5em; }
.cta-band h2 em { color: var(--sand); background: none; }
.cta-band .lede { color: #D8EDE9; margin: 0 auto 1.8em; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-band .btn-outline { border-color: #fff; color: #fff; }
.cta-band .btn-outline:hover { background: #fff; color: var(--navy); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--navy-deep); color: #B9CBD2; padding: clamp(3rem, 6vw, 4.5rem) 0 1.8rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer-brand p { font-size: 0.95rem; }
.site-footer h4 { color: var(--sand); font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 1.1em; }
.site-footer ul li { margin-bottom: 0.6em; }
.site-footer a { color: #B9CBD2; }
.site-footer a:hover { color: var(--sand); }
.footer-bottom { border-top: 1px solid rgba(217, 197, 165, 0.25); padding-top: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.85rem; color: #8AA0AA; }

/* ==========================================================================
   CONTACT FORM
   ========================================================================== */
.form-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.8rem, 4vw, 2.8rem); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { display: flex; flex-direction: column; gap: 0.4em; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 0.9rem; color: var(--navy); }
.field input, .field select, .field textarea {
  font: inherit; padding: 0.85em 1em; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.18); }
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.88rem; color: var(--text-mute); margin-top: 1rem; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 960px) {
  .collage { grid-template-columns: 1fr; }
  .collage-media .img-accent { right: 4%; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-phone { display: none; }
  .hamburger { display: block; }
  .nav-bar { gap: 1rem; }
  .nav-links.open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 1rem 1.5rem 1.5rem; border-bottom: 1px solid var(--line); gap: 0;
  }
  .nav-links.open a { padding: 0.8em 0; border-bottom: 1px dashed var(--line); }
}
@media (max-width: 620px) {
  .svc-row { grid-template-columns: 54px 1fr; }
  .svc-num { font-size: 1.2rem; width: 48px; height: 48px; border-radius: 12px; }
  .svc-arrow { display: none; }
  .card-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-card { padding: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: 1fr 1fr; gap: 1.4rem; }
}
