/* ==========================================================================
   NorthPeak Roofing — Design System
   Dallas/Fort Worth residential & commercial roofing contractor
   ========================================================================== */

/* ---- Tokens -------------------------------------------------------------- */
:root{
  /* Brand color system */
  --ink:            #1B1F23;
  --ink-soft:       #2A3138;
  --ink-softer:     #3B444D;
  --paper:          #F7F2E9;
  --paper-alt:      #EFE6D4;
  --paper-deep:     #E7DAC0;
  --surface:        #FFFFFF;

  --brick:          #B3401E;
  --brick-dark:     #8F3117;
  --brick-darker:   #732810;
  --brick-light:    #D9622F;
  --brick-tint:     #FBE7DC;

  --steel:          #33465A;
  --steel-dark:     #212F3D;
  --steel-light:    #5C7185;
  --steel-tint:     #E6ECF1;

  --gold:           #C08A2E;
  --gold-light:     #E3B65B;

  --success:        #2F7A4F;
  --success-tint:   #E4F2E9;
  --error:          #B3261E;
  --error-tint:     #FBE7E5;

  --text-primary:   #201B15;
  --text-secondary: #55524A;
  --text-muted:     #857F72;
  --text-on-dark:   #F3EEE3;
  --text-on-dark-muted: #B9B2A2;

  --border:         #E2D8C3;
  --border-strong:  #CBBE9E;
  --border-on-dark: #46505A;

  /* Typography */
  --font-display: 'Archivo', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --fs-hero:   clamp(2.3rem, 1.4rem + 4.2vw, 4.25rem);
  --fs-h1:     clamp(2rem, 1.4rem + 2.6vw, 3rem);
  --fs-h2:     clamp(1.6rem, 1.3rem + 1.4vw, 2.25rem);
  --fs-h3:     clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-h4:     1.125rem;
  --fs-lead:   clamp(1.05rem, 1rem + 0.3vw, 1.25rem);
  --fs-body:   1rem;
  --fs-small:  0.875rem;
  --fs-xs:     0.75rem;

  --lh-tight: 1.12;
  --lh-snug:  1.3;
  --lh-body:  1.65;

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 2.5rem;
  --sp-8: 3rem;
  --sp-9: 4rem;
  --sp-10: 5rem;
  --sp-11: 6.5rem;
  --sp-12: 8rem;

  --radius-sm: 3px;
  --radius-md: 5px;
  --radius-lg: 9px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(27,31,35,0.08), 0 1px 1px rgba(27,31,35,0.04);
  --shadow-md: 0 6px 16px -4px rgba(27,31,35,0.16), 0 2px 6px rgba(27,31,35,0.06);
  --shadow-lg: 0 20px 40px -12px rgba(27,31,35,0.28);
  --shadow-btn: 0 1px 0 rgba(0,0,0,0.12);

  --container: 1240px;
  --container-narrow: 860px;

  --ease: cubic-bezier(.4,0,.2,1);
  --dur-fast: 150ms;
  --dur: 260ms;
}

/* ---- Reset ---------------------------------------------------------------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body{
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-primary);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, picture, svg{ display: block; max-width: 100%; }
img{ height: auto; }
h1,h2,h3,h4,h5,h6{ margin: 0; font-family: var(--font-display); line-height: var(--lh-tight); font-weight: 800; letter-spacing: -0.01em; color: var(--text-primary); }
p{ margin: 0; }
ul,ol{ margin: 0; padding: 0; list-style: none; }
a{ color: inherit; text-decoration: none; }
button{ font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select{ font: inherit; color: inherit; }
fieldset{ border: 0; margin: 0; padding: 0; }
table{ border-collapse: collapse; width: 100%; }

:focus-visible{
  outline: 3px solid var(--gold-light);
  outline-offset: 2px;
  border-radius: 2px;
}

.visually-hidden{
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link{
  position: absolute; left: 1rem; top: -60px;
  background: var(--ink); color: var(--text-on-dark);
  padding: 0.75rem 1.25rem; border-radius: var(--radius-md);
  z-index: 999; transition: top var(--dur) var(--ease);
  font-weight: 700;
}
.skip-link:focus{ top: 1rem; }

/* ---- Layout helpers -------------------------------------------------------- */
.container{ width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.5rem; }
.container--narrow{ max-width: var(--container-narrow); }
@media (min-width: 768px){ .container{ padding-inline: 2rem; } }

.section{ padding-block: var(--sp-10); }
.section--tight{ padding-block: var(--sp-8); }
.section--dark{ background: var(--ink); color: var(--text-on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4{ color: var(--text-on-dark); }
.section--steel{ background: var(--steel-dark); color: var(--text-on-dark); }
.section--alt{ background: var(--paper-alt); }
.section--surface{ background: var(--surface); }

.eyebrow{
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brick);
}
.eyebrow::before{ content:""; width: 22px; height: 2px; background: var(--brick); flex: none; }
.section--dark .eyebrow, .section--steel .eyebrow{ color: var(--gold-light); }
.section--dark .eyebrow::before, .section--steel .eyebrow::before{ background: var(--gold-light); }

.section-head{ max-width: 640px; margin-bottom: var(--sp-7); }
.section-head--center{ margin-inline: auto; text-align: center; }
.section-head h2{ margin-top: 0.6rem; }
.section-head p{ margin-top: 0.9rem; color: var(--text-secondary); font-size: var(--fs-lead); }
.section--dark .section-head p, .section--steel .section-head p{ color: var(--text-on-dark-muted); }

.grid{ display: grid; gap: var(--sp-6); }
@media (min-width: 640px){ .grid--2{ grid-template-columns: repeat(2,1fr); } }
@media (min-width: 768px){ .grid--3{ grid-template-columns: repeat(3,1fr); } }
@media (min-width: 900px){ .grid--4{ grid-template-columns: repeat(4,1fr); } }

.flex{ display: flex; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.flex-center{ display: flex; align-items: center; }
.gap-2{ gap: 0.5rem; } .gap-3{ gap: 0.75rem; } .gap-4{ gap: 1rem; } .gap-6{ gap: 1.5rem; }

/* Roofline diagonal divider — signature brand motif */
.pitch-divider{
  position: relative;
  height: 46px;
  background: var(--paper);
}
.pitch-divider::before{
  content: "";
  position: absolute; inset: 0;
  background: var(--ink);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.pitch-divider--flip::before{ clip-path: polygon(0 0, 0 100%, 100% 100%); }
.pitch-divider--to-alt{ background: var(--ink); }
.pitch-divider--to-alt::before{ background: var(--paper-alt); }
.pitch-divider--to-paper{ background: var(--steel-dark); }
.pitch-divider--to-paper::before{ background: var(--paper); }

/* Shingle-stripe texture, used sparingly on dark CTA bands */
.shingle-texture{
  background-image: repeating-linear-gradient(135deg, rgba(247,242,233,0.05) 0 2px, transparent 2px 14px);
}

/* ---- Buttons --------------------------------------------------------------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.btn svg{ flex: none; width: 18px; height: 18px; }
.btn:active{ transform: translateY(1px); }

.btn--primary{ background: var(--brick); color: #fff; box-shadow: var(--shadow-btn); }
.btn--primary:hover{ background: var(--brick-dark); }

.btn--dark{ background: var(--ink); color: #fff; }
.btn--dark:hover{ background: var(--ink-soft); }

.btn--outline{ border-color: currentColor; color: var(--ink); }
.btn--outline:hover{ background: var(--ink); color: #fff; }

.btn--outline-light{ border-color: rgba(247,242,233,0.55); color: var(--text-on-dark); }
.btn--outline-light:hover{ background: var(--text-on-dark); color: var(--ink); border-color: var(--text-on-dark); }

.btn--ghost{ color: var(--brick); padding-inline: 0.25rem; }
.btn--ghost:hover{ color: var(--brick-dark); }

.btn--block{ width: 100%; }
.btn--lg{ padding: 1.05rem 2rem; font-size: 1.02rem; }
.btn--sm{ padding: 0.6rem 1.1rem; font-size: 0.85rem; }

.btn--tel{ background: var(--gold); color: var(--ink); }
.btn--tel:hover{ background: var(--gold-light); }

/* ---- Header ---------------------------------------------------------------- */
.site-header{
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}
.topbar{
  background: var(--ink); color: var(--text-on-dark-muted);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.02em;
}
.topbar .container{ display: flex; align-items: center; justify-content: space-between; padding-block: 0.5rem; gap: 1rem; }
.topbar a{ color: var(--text-on-dark); }
.topbar a:hover{ color: var(--gold-light); }
.topbar__item{ display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap; }
.topbar__right{ display: none; align-items: center; gap: 1.25rem; }
.topbar__right .topbar__license{ color: var(--text-on-dark-muted); }
.topbar .container{ justify-content: center; }
@media (min-width: 560px){
  .topbar__right{ display: flex; }
  .topbar .container{ justify-content: space-between; }
}
@media (min-width: 860px){
  .topbar__right .topbar__license{ display: inline; }
}
@media (max-width: 859px){
  .topbar__right .topbar__license{ display: none; }
}

.navbar{ padding-block: 0.85rem; }
.navbar .container{ display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand{ display: flex; align-items: center; gap: 0.65rem; flex: none; }
.brand__mark{ width: 42px; height: 42px; flex: none; }
.brand__text{ display: flex; flex-direction: column; line-height: 1.05; }
.brand__name{ font-family: var(--font-display); font-weight: 800; font-size: 1.18rem; letter-spacing: -0.01em; color: var(--ink); }
.brand__sub{ font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brick); }

.nav-primary{ display: none; }
.nav-primary ul{ display: flex; align-items: center; gap: 1.9rem; }
.nav-primary a{
  font-weight: 700; font-size: 0.92rem; color: var(--text-primary);
  padding-block: 0.4rem; position: relative;
}
.nav-primary a::after{
  content:""; position: absolute; left:0; right:0; bottom:-2px; height: 2px;
  background: var(--brick); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-fast) var(--ease);
}
.nav-primary a:hover::after, .nav-primary a[aria-current="page"]::after{ transform: scaleX(1); }
.nav-primary a[aria-current="page"]{ color: var(--brick); }

.has-dropdown{ position: relative; }
.has-dropdown > button{
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-weight: 700; font-size: 0.92rem; color: var(--text-primary);
  padding-block: 0.4rem; font-family: var(--font-body);
}
.has-dropdown > button svg{ width: 14px; height: 14px; transition: transform var(--dur-fast) var(--ease); }
.has-dropdown[data-open="true"] > button svg{ transform: rotate(180deg); }
.dropdown{
  position: absolute; top: calc(100% + 0.9rem); left: 50%; transform: translateX(-50%);
  width: 300px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 0.6rem;
  opacity: 0; visibility: hidden; translate: 0 6px;
  transition: opacity var(--dur) var(--ease), translate var(--dur) var(--ease), visibility var(--dur);
  z-index: 50;
}
.has-dropdown[data-open="true"] .dropdown{ opacity: 1; visibility: visible; translate: 0 0; }
.dropdown a{
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.6rem 0.7rem; border-radius: var(--radius-md); font-weight: 600; font-size: 0.9rem;
}
.dropdown a:hover{ background: var(--paper-alt); }
.dropdown a svg{ width: 18px; height: 18px; flex: none; color: var(--brick); }
.dropdown__all{ border-top: 1px solid var(--border); margin-top: 0.35rem; padding-top: 0.6rem; }

.navbar__actions{ display: flex; align-items: center; gap: 0.75rem; }
.navbar__actions .btn--primary.btn--sm{ display: none; }
@media (min-width: 560px){
  .navbar__actions{ gap: 1rem; }
  .navbar__actions .btn--primary.btn--sm{ display: inline-flex; }
}
.navbar__phone{ display: none; flex-direction: column; text-align: right; line-height: 1.15; }
.navbar__phone-label{ font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.navbar__phone-number{ font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--ink); }
.navbar__phone-number:hover{ color: var(--brick); }

.nav-toggle{
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
}
.nav-toggle svg{ width: 22px; height: 22px; }
.nav-toggle .icon-close{ display: none; }
.nav-toggle[aria-expanded="true"] .icon-open{ display: none; }
.nav-toggle[aria-expanded="true"] .icon-close{ display: block; }

@media (min-width: 1080px){
  .nav-primary{ display: block; }
  .navbar__phone{ display: flex; }
  .nav-toggle{ display: none; }
}

/* Mobile nav panel */
.nav-mobile{
  display: none;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.nav-mobile.is-open{ display: block; }
.nav-mobile .container{ padding-block: 1rem; }
.nav-mobile__link{
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.95rem 0.25rem; border-bottom: 1px solid var(--border);
  font-weight: 700; font-size: 1.02rem;
}
.nav-mobile__group[data-open="true"] .nav-mobile__sub{ max-height: 600px; }
.nav-mobile__sub{
  max-height: 0; overflow: hidden; transition: max-height var(--dur) var(--ease);
}
.nav-mobile__sub a{
  display: block; padding: 0.75rem 0.25rem 0.75rem 1rem; font-weight: 600; font-size: 0.95rem; color: var(--text-secondary);
}
.nav-mobile__cta{ display: flex; flex-direction: column; gap: 0.7rem; margin-top: 1.1rem; }
@media (min-width: 1080px){ .nav-mobile{ display: none !important; } }

/* Mobile sticky call bar */
.mobile-cta-bar{
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--ink); border-top: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 -8px 20px rgba(0,0,0,0.18);
}
.mobile-cta-bar a{
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.95rem; font-family: var(--font-display); font-weight: 700; font-size: 0.9rem;
  color: var(--text-on-dark);
}
.mobile-cta-bar a:first-child{ border-right: 1px solid rgba(255,255,255,0.12); }
.mobile-cta-bar a.is-primary{ background: var(--brick); }
.mobile-cta-bar svg{ width: 18px; height: 18px; }
@media (min-width: 1080px){ .mobile-cta-bar{ display: none; } }
body.has-mobile-bar{ padding-bottom: 62px; }
@media (min-width: 1080px){ body.has-mobile-bar{ padding-bottom: 0; } }

/* ---- Hero ------------------------------------------------------------------ */
.hero{
  position: relative; background: var(--ink); color: var(--text-on-dark);
  overflow: hidden;
}
.hero__bg{
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.hero__bg::after{
  content:""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20,23,26,0.94) 0%, rgba(20,23,26,0.82) 42%, rgba(20,23,26,0.45) 100%);
}
.hero__inner{
  position: relative; z-index: 2;
  padding-block: var(--sp-11) var(--sp-9);
  display: grid; gap: var(--sp-8);
}
@media (min-width: 980px){
  .hero__inner{ grid-template-columns: 1.15fr 0.85fr; align-items: end; padding-block: var(--sp-12) var(--sp-9); }
}
.hero__eyebrow{ display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); padding: 0.45rem 0.9rem; border-radius: var(--radius-pill); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1.4rem; color: var(--text-on-dark); }
.hero__eyebrow svg{ width: 15px; height: 15px; color: var(--gold-light); }
.hero h1{ font-size: var(--fs-hero); max-width: 15ch; color: var(--text-on-dark); }
.hero h1 em{ font-style: normal; color: var(--brick-light); }
.hero p.lead{ margin-top: 1.4rem; max-width: 46ch; font-size: var(--fs-lead); color: var(--text-on-dark-muted); }
.hero__actions{ display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.1rem; }
.hero__trust{ display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 2.6rem; padding-top: 1.8rem; border-top: 1px solid rgba(255,255,255,0.14); }
.hero__trust-item{ display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; font-weight: 700; color: var(--text-on-dark-muted); }
.hero__trust-item svg{ width: 20px; height: 20px; color: var(--gold-light); flex: none; }

.hero__card{
  position: relative; background: var(--surface); color: var(--text-primary);
  border-radius: var(--radius-lg); padding: var(--sp-6);
  box-shadow: var(--shadow-lg);
}
.hero__card h3{ font-size: 1.15rem; }
.hero__card p{ color: var(--text-secondary); font-size: 0.92rem; margin-top: 0.4rem; }
.hero__card form{ margin-top: 1.25rem; display: grid; gap: 0.85rem; }

/* ---- Forms ------------------------------------------------------------------ */
.field{ display: flex; flex-direction: column; gap: 0.4rem; }
.field label{ font-size: 0.8rem; font-weight: 700; color: var(--text-primary); }
.field .required{ color: var(--brick); }
.field-hint{ font-size: 0.76rem; color: var(--text-muted); }
.field-error{ font-size: 0.8rem; color: var(--error); font-weight: 600; display: none; gap: 0.3rem; align-items: center; }
.field-error svg{ width: 14px; height: 14px; flex: none; }

.input, .textarea, .select{
  width: 100%; border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 0.8rem 0.9rem; background: var(--surface); font-size: 0.95rem; color: var(--text-primary);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.input::placeholder, .textarea::placeholder{ color: var(--text-muted); }
.input:focus, .textarea:focus, .select:focus{
  outline: none; border-color: var(--steel); box-shadow: 0 0 0 3px var(--steel-tint);
}
.textarea{ resize: vertical; min-height: 110px; }
.select{ appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%2355524A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.4rem; }

.form-row{ display: grid; gap: 0.85rem; }
@media (min-width: 520px){ .form-row--2{ grid-template-columns: 1fr 1fr; } }

.field.has-error .input, .field.has-error .textarea, .field.has-error .select{ border-color: var(--error); box-shadow: 0 0 0 3px var(--error-tint); }
.field.has-error .field-error{ display: flex; }

.checkbox-row{ display: flex; align-items: flex-start; gap: 0.6rem; }
.checkbox-row input{ margin-top: 0.25rem; width: 17px; height: 17px; accent-color: var(--brick); flex: none; }
.checkbox-row label{ font-size: 0.84rem; color: var(--text-secondary); font-weight: 500; }

.form-status{
  display: none; align-items: flex-start; gap: 0.7rem;
  padding: 0.9rem 1rem; border-radius: var(--radius-md); font-size: 0.88rem; font-weight: 600;
  margin-top: 0.9rem;
}
.form-status.is-visible{ display: flex; }
.form-status--success{ background: var(--success-tint); color: var(--success); }
.form-status--error{ background: var(--error-tint); color: var(--error); }
.form-status svg{ width: 20px; height: 20px; flex: none; margin-top: 1px; }

.btn[data-loading="true"] .btn-label{ visibility: hidden; }
.btn[data-loading="true"]{ position: relative; pointer-events: none; }
.btn .spinner{ display: none; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,0.4); border-top-color: #fff; animation: spin 0.7s linear infinite; }
.btn[data-loading="true"] .spinner{ display: block; }
@keyframes spin{ to{ transform: rotate(360deg); } }

.form-success-panel{ display: none; text-align: center; padding: var(--sp-6) var(--sp-4); }
.form-success-panel.is-visible{ display: block; }
.form-success-panel__icon{ width: 60px; height: 60px; margin-inline: auto; border-radius: 50%; background: var(--success-tint); color: var(--success); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.form-success-panel__icon svg{ width: 30px; height: 30px; }

/* ---- Trust strip ------------------------------------------------------------ */
.trust-strip{ background: var(--paper-alt); border-bottom: 1px solid var(--border); }
.trust-strip .container{ display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2.2rem; padding-block: 1.15rem; }
.trust-strip__item{ display: flex; align-items: center; gap: 0.55rem; font-size: 0.82rem; font-weight: 700; color: var(--text-secondary); }
.trust-strip__item svg{ width: 20px; height: 20px; color: var(--brick); flex: none; }

/* ---- Cards ------------------------------------------------------------------ */
.card{
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease), translate var(--dur) var(--ease);
}
.card:hover{ box-shadow: var(--shadow-md); translate: 0 -3px; border-color: var(--border-strong); }

.service-card{ display: flex; flex-direction: column; padding: var(--sp-6); position: relative; }
.service-card__icon{
  width: 52px; height: 52px; border-radius: var(--radius-md); background: var(--brick-tint); color: var(--brick);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.4rem; flex: none;
}
.service-card__icon svg{ width: 27px; height: 27px; }
.service-card h3{ font-size: 1.18rem; }
.service-card p{ margin-top: 0.6rem; color: var(--text-secondary); font-size: 0.94rem; flex: 1; }
.service-card__link{ margin-top: 1.3rem; display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; font-size: 0.88rem; color: var(--brick); }
.service-card__link svg{ width: 15px; height: 15px; transition: translate var(--dur-fast) var(--ease); }
.service-card:hover .service-card__link svg{ translate: 3px 0; }

.value-card{ padding: var(--sp-6); text-align: left; }
.value-card__num{ font-family: var(--font-display); font-size: 0.85rem; font-weight: 800; color: var(--brick); letter-spacing: 0.06em; }
.value-card h3{ margin-top: 0.6rem; font-size: 1.1rem; }
.value-card p{ margin-top: 0.55rem; color: var(--text-secondary); font-size: 0.92rem; }

.photo-card{ position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; }
.photo-card img{ width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.photo-card:hover img{ transform: scale(1.06); }
.photo-card__tag{ position: absolute; top: 0.9rem; left: 0.9rem; background: var(--ink); color: #fff; font-size: 0.72rem; font-weight: 700; padding: 0.35rem 0.7rem; border-radius: var(--radius-pill); letter-spacing: 0.03em; }

/* Team card */
.team-card{ text-align: left; }
.team-card__photo{ aspect-ratio: 1/1; overflow: hidden; }
.team-card__photo img{ width: 100%; height: 100%; object-fit: cover; }
.team-card__body{ padding: var(--sp-5); }
.team-card h3{ font-size: 1.05rem; }
.team-card__role{ font-size: 0.82rem; font-weight: 700; color: var(--brick); margin-top: 0.2rem; }
.team-card p.bio{ margin-top: 0.7rem; font-size: 0.88rem; color: var(--text-secondary); }

/* Stat row */
.stat-row{ display: grid; gap: var(--sp-6); grid-template-columns: repeat(2,1fr); }
@media (min-width: 768px){ .stat-row{ grid-template-columns: repeat(4,1fr); } }
.stat{ text-align: left; border-left: 3px solid var(--brick); padding-left: 1rem; }
.stat__num{ font-family: var(--font-display); font-size: clamp(1.9rem, 1.5rem + 1.3vw, 2.6rem); font-weight: 800; }
.stat__label{ margin-top: 0.35rem; font-size: 0.85rem; color: var(--text-on-dark-muted); font-weight: 600; }
.section:not(.section--dark):not(.section--steel) .stat__label{ color: var(--text-secondary); }

/* Process steps */
.process{ counter-reset: step; }
.process__item{ position: relative; padding-left: 3.6rem; }
.process__item:not(:last-child){ margin-bottom: var(--sp-6); padding-bottom: var(--sp-6); border-bottom: 1px dashed var(--border-on-dark); }
.process__item::before{
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: -0.15rem;
  font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--gold-light);
  width: 2.6rem; height: 2.6rem; border: 2px solid rgba(227,182,91,0.4); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.process__item h3{ font-size: 1.1rem; }
.process__item p{ margin-top: 0.5rem; color: var(--text-on-dark-muted); font-size: 0.92rem; }

/* ---- Reviews / testimonials ---------------------------------------------- */
.stars{ display: inline-flex; gap: 0.15rem; color: var(--gold); }
.stars svg{ width: 16px; height: 16px; }

.review-card{ padding: var(--sp-6); display: flex; flex-direction: column; gap: 1rem; height: 100%; }
.review-card__quote{ font-size: 0.96rem; color: var(--text-primary); }
.review-card__meta{ display: flex; align-items: center; gap: 0.8rem; margin-top: auto; padding-top: 0.9rem; border-top: 1px solid var(--border); }
.review-card__avatar{ width: 38px; height: 38px; border-radius: 50%; background: var(--steel-tint); color: var(--steel); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 0.9rem; flex: none; }
.review-card__name{ font-weight: 700; font-size: 0.9rem; }
.review-card__loc{ font-size: 0.78rem; color: var(--text-muted); }

.carousel{ position: relative; }
.carousel__track{ display: flex; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.5rem; scrollbar-width: none; }
.carousel__track::-webkit-scrollbar{ display: none; }
.carousel__track > *{ scroll-snap-align: start; flex: 0 0 min(360px, 86vw); }
.carousel__controls{ display: flex; justify-content: center; gap: 0.75rem; margin-top: 1.6rem; }
.carousel__btn{ width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--border-strong); display: flex; align-items: center; justify-content: center; transition: background var(--dur-fast), color var(--dur-fast); }
.carousel__btn:hover{ background: var(--ink); color: #fff; border-color: var(--ink); }
.carousel__btn svg{ width: 18px; height: 18px; }

/* ---- Before/After slider --------------------------------------------------- */
.ba-slider{
  position: relative; aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md); user-select: none; touch-action: pan-y;
}
.ba-slider img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-slider__after{ z-index: 1; }
.ba-slider__before-wrap{ position: absolute; inset: 0; z-index: 2; overflow: hidden; width: 50%; }
.ba-slider__before-wrap img{ width: var(--ba-img-w, 100%); max-width: none; }
.ba-slider__handle{
  position: absolute; top: 0; bottom: 0; left: 50%; z-index: 3;
  width: 3px; background: #fff; transform: translateX(-50%); cursor: ew-resize;
}
.ba-slider__handle::before{ content:""; position: absolute; inset: -1000px 0; }
.ba-slider__grip{
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 46px; height: 46px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center; color: var(--ink);
}
.ba-slider__grip svg{ width: 20px; height: 20px; }
.ba-slider__label{ position: absolute; top: 1rem; z-index: 4; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; background: rgba(27,31,35,0.7); color: #fff; padding: 0.35rem 0.7rem; border-radius: var(--radius-pill); }
.ba-slider__label--before{ left: 1rem; }
.ba-slider__label--after{ right: 1rem; }

/* ---- Gallery filter/lightbox ---------------------------------------------- */
.filter-bar{ display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: var(--sp-7); }
.filter-chip{
  padding: 0.55rem 1.1rem; border-radius: var(--radius-pill); border: 1.5px solid var(--border-strong);
  font-weight: 700; font-size: 0.85rem; color: var(--text-secondary); transition: all var(--dur-fast) var(--ease);
}
.filter-chip:hover{ border-color: var(--ink); color: var(--ink); }
.filter-chip[aria-pressed="true"]{ background: var(--ink); border-color: var(--ink); color: #fff; }

.gallery-grid{ display: grid; grid-template-columns: repeat(2,1fr); gap: 1.1rem; }
@media (min-width: 720px){ .gallery-grid{ grid-template-columns: repeat(3,1fr); } }
.gallery-item{ display: block; width: 100%; text-align: left; border-radius: var(--radius-lg); overflow: hidden; position: relative; aspect-ratio: 1/1; }
.gallery-item img{ width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery-item:hover img{ transform: scale(1.08); }
.gallery-item__cap{ position: absolute; inset: auto 0 0 0; padding: 0.8rem; background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent); color: #fff; font-size: 0.78rem; font-weight: 700; opacity: 0; transition: opacity var(--dur-fast); }
.gallery-item:hover .gallery-item__cap, .gallery-item:focus-visible .gallery-item__cap{ opacity: 1; }

.lightbox{
  position: fixed; inset: 0; z-index: 200; background: rgba(20,17,13,0.92);
  display: none; align-items: center; justify-content: center; padding: 2rem;
}
.lightbox.is-open{ display: flex; }
.lightbox__inner{ position: relative; max-width: 900px; width: 100%; }
.lightbox__img{ width: 100%; border-radius: var(--radius-lg); max-height: 74vh; object-fit: cover; }
.lightbox__cap{ color: var(--text-on-dark-muted); margin-top: 1rem; text-align: center; font-size: 0.9rem; }
.lightbox__close{
  position: absolute; top: -3rem; right: 0; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: #fff; display: flex; align-items: center; justify-content: center;
}
.lightbox__close svg{ width: 20px; height: 20px; }
.lightbox__close:hover{ background: rgba(255,255,255,0.2); }

/* ---- Accordion (FAQ) -------------------------------------------------------- */
.accordion{ border-top: 1px solid var(--border); }
.accordion-item{ border-bottom: 1px solid var(--border); }
.accordion-item__trigger{
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.3rem 0.2rem; text-align: left; font-family: var(--font-display); font-weight: 700; font-size: 1.02rem;
}
.accordion-item__trigger svg{ width: 20px; height: 20px; flex: none; transition: transform var(--dur) var(--ease); color: var(--brick); }
.accordion-item[data-open="true"] .accordion-item__trigger svg{ transform: rotate(45deg); }
.accordion-item__panel{ max-height: 0; overflow: hidden; transition: max-height var(--dur) var(--ease); }
.accordion-item[data-open="true"] .accordion-item__panel{ max-height: 500px; }
.accordion-item__panel-inner{ padding: 0 0.2rem 1.4rem; color: var(--text-secondary); font-size: 0.95rem; max-width: 68ch; }

/* ---- Tabs ------------------------------------------------------------------- */
.tabs__list{ display: flex; flex-wrap: wrap; gap: 0.5rem; border-bottom: 1px solid var(--border); }
.tabs__tab{ padding: 0.85rem 1.2rem; font-weight: 700; font-size: 0.92rem; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs__tab[aria-selected="true"]{ color: var(--brick); border-color: var(--brick); }
.tabs__panel{ display: none; padding-top: var(--sp-6); }
.tabs__panel.is-active{ display: block; }

/* ---- Pricing / financing cards ---------------------------------------------- */
.plan-card{ padding: var(--sp-6); display: flex; flex-direction: column; gap: 1rem; }
.plan-card--featured{ border-color: var(--brick); box-shadow: var(--shadow-md); position: relative; }
.plan-card__badge{ position: absolute; top: -13px; left: 1.5rem; background: var(--brick); color: #fff; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; padding: 0.3rem 0.75rem; border-radius: var(--radius-pill); }
.plan-card h3{ font-size: 1.15rem; }
.plan-card__rate{ font-family: var(--font-display); font-size: 2.1rem; font-weight: 800; }
.plan-card__rate span{ font-size: 0.95rem; font-weight: 700; color: var(--text-muted); }
.plan-card ul{ display: grid; gap: 0.6rem; font-size: 0.9rem; }
.plan-card li{ display: flex; align-items: flex-start; gap: 0.55rem; }
.plan-card li svg{ width: 17px; height: 17px; color: var(--success); flex: none; margin-top: 2px; }

/* ---- Table (comparison / claims steps) --------------------------------------- */
.table-wrap{ overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.data-table{ min-width: 560px; }
.data-table th, .data-table td{ padding: 0.95rem 1.2rem; text-align: left; font-size: 0.9rem; border-bottom: 1px solid var(--border); }
.data-table th{ font-family: var(--font-display); background: var(--paper-alt); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.data-table tr:last-child td{ border-bottom: 0; }

/* ---- CTA band --------------------------------------------------------------- */
.cta-band{ background: var(--brick); color: #fff; position: relative; overflow: hidden; }
.cta-band .container{ position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.6rem; padding-block: var(--sp-8); }
.cta-band h2{ color: #fff; font-size: var(--fs-h2); max-width: 22ch; }
.cta-band p{ color: rgba(255,255,255,0.85); margin-top: 0.5rem; max-width: 42ch; }
.cta-band__actions{ display: flex; flex-wrap: wrap; gap: 1rem; }
.cta-band .btn--outline-light{ color: #fff; border-color: rgba(255,255,255,0.6); }
.cta-band .btn--outline-light:hover{ background: #fff; color: var(--brick); }

/* ---- Service area map block --------------------------------------------------- */
.area-tag{ display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-md); font-weight: 700; font-size: 0.88rem; background: var(--surface); }
.area-tag svg{ width: 16px; height: 16px; color: var(--brick); }

/* ---- Breadcrumbs -------------------------------------------------------------- */
.breadcrumbs{ padding-block: 1.1rem; border-bottom: 1px solid var(--border); background: var(--paper-alt); }
.breadcrumbs ol{ display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-size: 0.82rem; color: var(--text-muted); font-weight: 600; }
.breadcrumbs a:hover{ color: var(--brick); }
.breadcrumbs li[aria-current]{ color: var(--text-primary); }
.breadcrumbs svg{ width: 13px; height: 13px; }

/* ---- Page header (interior pages) --------------------------------------------- */
.page-header{ background: var(--ink); color: var(--text-on-dark); padding-block: var(--sp-9) var(--sp-8); position: relative; overflow: hidden; }
.page-header .container{ position: relative; z-index: 1; }
.page-header .eyebrow{ color: var(--gold-light); }
.page-header .eyebrow::before{ background: var(--gold-light); }
.page-header h1{ margin-top: 0.7rem; max-width: 26ch; color: var(--text-on-dark); }
.page-header p{ margin-top: 1rem; max-width: 56ch; color: var(--text-on-dark-muted); font-size: var(--fs-lead); }
.page-header__bg{ position: absolute; inset: 0; opacity: 0.22; background-size: cover; background-position: center; }
.page-header__bg::after{ content:""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 20%, transparent 100%); }

/* ---- Footer --------------------------------------------------------------------- */
.site-footer{ background: var(--steel-dark); color: var(--text-on-dark-muted); }
.footer-top{ padding-block: var(--sp-9); }
.footer-grid{ display: grid; gap: var(--sp-8); grid-template-columns: 1fr; }
@media (min-width: 720px){ .footer-grid{ grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand .brand__name, .footer-brand .brand__sub{ color: var(--text-on-dark); }
.footer-brand .brand__sub{ color: var(--gold-light); }
.footer-about{ margin-top: 1.1rem; font-size: 0.9rem; max-width: 34ch; color: var(--text-on-dark-muted); }
.footer-social{ display: flex; gap: 0.7rem; margin-top: 1.4rem; }
.footer-social a{ width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-on-dark); display: flex; align-items: center; justify-content: center; }
.footer-social a:hover{ background: var(--brick); border-color: var(--brick); }
.footer-social svg{ width: 17px; height: 17px; }
.footer-col h4{ color: var(--text-on-dark); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 1.1rem; }
.footer-col ul{ display: grid; gap: 0.75rem; }
.footer-col a{ font-size: 0.9rem; }
.footer-col a:hover{ color: var(--text-on-dark); }
.footer-contact li{ display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.9rem; }
.footer-contact svg{ width: 17px; height: 17px; color: var(--gold-light); flex: none; margin-top: 2px; }
.footer-badges{ display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.3rem; }
.footer-badge{ font-size: 0.72rem; font-weight: 700; border: 1px solid var(--border-on-dark); padding: 0.35rem 0.6rem; border-radius: var(--radius-sm); }
.footer-bottom{ border-top: 1px solid var(--border-on-dark); padding-block: 1.3rem; }
.footer-bottom .container{ display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem; font-size: 0.8rem; }
.footer-bottom ul{ display: flex; flex-wrap: wrap; gap: 1.3rem; }
.footer-bottom a:hover{ color: var(--text-on-dark); }

/* ---- Misc utilities --------------------------------------------------------- */
.text-center{ text-align: center; }
.mt-0{ margin-top: 0 !important; }
.list-check{ display: grid; gap: 0.75rem; }
.list-check li{ display: flex; align-items: flex-start; gap: 0.65rem; font-size: 0.96rem; }
.list-check svg{ width: 19px; height: 19px; color: var(--brick); flex: none; margin-top: 2px; }
.badge{ display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.4rem 0.75rem; border-radius: var(--radius-pill); }
.badge--gold{ background: #F6E9CE; color: var(--gold); }
.badge--steel{ background: var(--steel-tint); color: var(--steel); }
.badge--brick{ background: var(--brick-tint); color: var(--brick); }

.two-col{ display: grid; gap: var(--sp-8); align-items: center; }
@media (min-width: 900px){ .two-col{ grid-template-columns: 1fr 1fr; } }
.two-col--reverse{ direction: rtl; }
.two-col--reverse > *{ direction: ltr; }

.media-frame{ border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); position: relative; }
.media-frame img{ width: 100%; object-fit: cover; }
.media-frame--tall img{ aspect-ratio: 3/4; }
.media-frame--wide img{ aspect-ratio: 16/10; }
.media-frame__note{ position: absolute; bottom: 1rem; left: 1rem; right: 1rem; background: rgba(27,31,35,0.82); backdrop-filter: blur(2px); color: #fff; padding: 0.9rem 1.1rem; border-radius: var(--radius-md); font-size: 0.85rem; font-weight: 600; display: flex; align-items: center; gap: 0.6rem; }
.media-frame__note svg{ width: 18px; height: 18px; color: var(--gold-light); flex: none; }

.badge-float{ position: absolute; bottom: -1.4rem; right: -1rem; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 1.1rem 1.3rem; display: flex; align-items: center; gap: 0.8rem; max-width: 230px; }
.badge-float svg{ width: 34px; height: 34px; color: var(--brick); flex: none; }
.badge-float strong{ display: block; font-family: var(--font-display); font-size: 1rem; }
.badge-float span{ font-size: 0.78rem; color: var(--text-secondary); }

.back-to-top{
  position: fixed; right: 1.4rem; bottom: 5.2rem; z-index: 80;
  width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #fff;
  display: none; align-items: center; justify-content: center; box-shadow: var(--shadow-md);
  opacity: 0; translate: 0 10px; transition: opacity var(--dur) var(--ease), translate var(--dur) var(--ease);
}
.back-to-top.is-visible{ display: flex; opacity: 1; translate: 0 0; }
.back-to-top svg{ width: 20px; height: 20px; }
@media (min-width: 1080px){ .back-to-top{ bottom: 1.6rem; } }

[data-animate]{ opacity: 0; translate: 0 16px; transition: opacity 0.6s var(--ease), translate 0.6s var(--ease); }
[data-animate].is-inview{ opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce){ [data-animate]{ opacity: 1; translate: 0 0; } }
