/* =============================================================================
   New Style Construction LLC — styles.css
   Framework-free. Editorial / craft direction for a high-end Portland remodeler.

   Palette : cool paper · deep navy · vivid azure accent · slate ink
   Type    : Georgia-family serif display · native system sans body
   Organized by section, top to bottom, matching index.html.
   ========================================================================== */

/* -----------------------------------------------------------------------------
   01 · Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces & ink */
  --paper:        #EEF3F8;   /* cool light page                      */
  --paper-2:      #E4ECF4;   /* slightly deeper alt band             */
  --surface:      #FBFCFE;   /* cards on paper                       */
  --ink:          #16242F;   /* primary text — cool near-black       */
  --ink-soft:     #3A4A5A;   /* secondary text                       */
  --charcoal-mute:#647686;   /* muted text (also referenced inline)  */

  /* Brand */
  --forest:       #1B3F60;   /* brand navy (from logo)           */
  --forest-deep:  #122A41;   /* darkest navy — footer / depth       */
  --forest-soft:  #2A567C;   /* hover / lines on dark                */
  --forest-tint:  #E2EBF4;   /* faint blue wash                     */

  /* Accent */
  --copper:       #0E72CA;   /* vivid azure — numerals, icons        */
  --copper-deep:  #0A5BA6;   /* em emphasis (deeper azure)       */
  --copper-light: #5BA6E8;   /* azure on dark backgrounds           */

  /* Lines */
  --line:         #D9E2EC;   /* hairline on paper                    */
  --line-strong:  #C4D2E0;   /* stronger divider                     */
  --line-dark:    rgba(238,243,248,.16); /* hairline on dark         */

  /* Feedback */
  --error:        #A23A2E;

  /* Spacing scale (--space-7 is referenced inline in index.html) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Radius */
  --r-xs: 2px;
  --r-sm: 4px;
  --r:    8px;
  --r-lg: 14px;

  /* Shadows — cool navy-tinted */
  --shadow-sm: 0 1px 2px rgba(16,40,66,.05), 0 2px 8px rgba(16,40,66,.05);
  --shadow-md: 0 6px 18px rgba(16,40,66,.07), 0 14px 38px rgba(16,40,66,.06);
  --shadow-lg: 0 22px 60px rgba(12,32,54,.16);

  /* Type families */
  --sans:  'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
           "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  /* Display headings now share the Montserrat family (kept as a token so the
     heading sizes/letter-spacing rules don't need touching). */
  --serif: var(--sans);

  /* Layout */
  --maxw: 1200px;
  --nav-h: 70px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* -----------------------------------------------------------------------------
   02 · Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 14px);
}

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(1200px 600px at 85% -5%, rgba(14,114,202,.05), transparent 60%),
    linear-gradient(180deg, #F4F8FC 0%, var(--paper) 22%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
svg { fill: currentColor; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

button { cursor: pointer; background: none; border: none; }

::selection { background: var(--forest); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

/* -----------------------------------------------------------------------------
   03 · Typography helpers
   -------------------------------------------------------------------------- */
.serif {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.012em;
}

/* Editorial accent: <em> renders italic in the warm copper-deep tone */
em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--copper-deep);
}

h1, h2, h3, h4 { line-height: 1.12; font-weight: 400; }

p { text-wrap: pretty; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper-deep);
}

/* Animated underline link */
.link-underline {
  position: relative;
  color: inherit;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1.5px;
  transition: background-size .35s var(--ease);
  padding-bottom: 1px;
}
.link-underline:hover { background-size: 100% 1.5px; }

/* -----------------------------------------------------------------------------
   04 · Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}
.container-narrow { max-width: 720px; }

.section {
  position: relative;
  padding-block: clamp(64px, 9vw, 132px);
}
/* Subtle alternating rhythm */
#process { background: var(--paper-2); }
#reviews { background: var(--paper-2); }

/* Skip link */
.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--forest);
  color: var(--paper);
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  transition: top .25s var(--ease);
}
.skip-link:focus { top: 14px; }

/* Section marker — “№ 02 ———— Services” */
.section-marker {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: clamp(28px, 4vw, 52px);
}
.section-marker .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--copper);
  white-space: nowrap;
}
.section-marker .rule {
  flex: 1 1 auto;
  height: 1px;
  background: var(--line-strong);
}
.section-marker .label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--charcoal-mute);
  white-space: nowrap;
}

/* -----------------------------------------------------------------------------
   05 · Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--forest);
  --btn-fg: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: var(--r-sm);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .2s var(--ease), background-color .25s var(--ease),
              color .25s var(--ease), border-color .25s var(--ease),
              box-shadow .25s var(--ease);
  will-change: transform;
}
.btn-arrow { transition: transform .25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--forest-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--forest);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--forest);
  background: var(--forest-tint);
  transform: translateY(-2px);
}

/* Azure accent — primary CTA over the dark hero image */
.btn-accent {
  background: var(--copper);
  color: #fff;
  box-shadow: 0 10px 28px rgba(14,114,202,.34);
}
.btn-accent:hover {
  background: var(--copper-deep);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(14,114,202,.42);
}
.btn-accent:active { transform: translateY(0); }

/* Light outline — secondary CTA over imagery */
.btn-outline-light {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: rgba(255,255,255,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,.18);
  border-color: #fff;
  transform: translateY(-2px);
}

/* Loading state (form.js toggles .is-loading on submit) */
.btn.is-loading { color: transparent; pointer-events: none; position: relative; }
.btn.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(238,243,248,.4);
  border-top-color: var(--paper);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* -----------------------------------------------------------------------------
   06 · Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(238,243,248,.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease),
              box-shadow .3s var(--ease);
}
.nav.is-scrolled {
  background: rgba(238,243,248,.92);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(255,255,255,.6), 0 6px 22px rgba(16,40,66,.06);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: var(--nav-h);
}

/* Brand */
.brand { display: inline-flex; flex-direction: column; gap: 3px; line-height: 1.1; }
/* Text wordmark logo — recreates NEW STYLE CONSTRUCTION as styled type */
.brand-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  line-height: 1;
  font-family: 'Montserrat', var(--sans);
  /* one knob scales the whole mark */
  font-size: 26px;
  -webkit-font-smoothing: antialiased;
}
.brand-logo__word {
  display: flex;
  align-items: baseline;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-logo .bl-new   { color: #4a5a6b; }   /* slate */
.brand-logo .bl-style { color: var(--copper); } /* azure */
.brand-logo__sub {
  display: flex;
  align-items: center;
  gap: 0.42em;
  margin-top: 0.18em;
  font-size: 0.4em;
  font-weight: 800;
  letter-spacing: 0.34em;
  text-indent: 0.34em;            /* balance the trailing letter-spacing */
  text-transform: uppercase;
  color: var(--charcoal-mute);
}
.brand-logo__sub::before,
.brand-logo__sub::after {
  content: "";
  flex: 1 1 auto;
  height: 2px;
  background: currentColor;
  opacity: 0.85;
}
/* White-on-dark variant (footer) */
.brand-logo--light .bl-new   { color: var(--paper); }
.brand-logo--light .bl-style { color: var(--copper-light); }
.brand-logo--light .brand-logo__sub { color: var(--line-strong); }
.brand-mark {
  font-family: var(--serif);
  font-size: 1.32rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-mark em { color: var(--copper-deep); }

/* Primary links */
.nav-links { list-style: none; display: flex; gap: clamp(18px, 2.4vw, 34px); padding: 0; }
.nav-links a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 0;
  transition: color .2s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a.is-active::after { transform: scaleX(1); }
.nav-links a.is-active { color: var(--forest); }

/* Phone */
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--forest);
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.nav-phone:hover { border-color: var(--forest); background: var(--forest-tint); }
.nav-phone-icon { width: 17px; height: 17px; color: var(--forest); }
.nav-phone .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #3F9D5B;
  box-shadow: 0 0 0 0 rgba(63,157,91,.5);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(63,157,91,.45); }
  70%  { box-shadow: 0 0 0 7px rgba(63,157,91,0); }
  100% { box-shadow: 0 0 0 0 rgba(63,157,91,0); }
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  transition: background-color .2s var(--ease);
}
.nav-toggle:hover { background: var(--forest-tint); }

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(86vw, 360px);
  z-index: 150;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  transform: translateX(102%);
  visibility: hidden;
  transition: transform .4s var(--ease), visibility .4s var(--ease);
}
.nav-drawer.is-open { transform: translateX(0); visibility: visible; }
.nav-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--line);
}
.nav-drawer-links { list-style: none; padding: var(--space-5) 0; margin: 0; display: grid; gap: 4px; }
.nav-drawer-links a {
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--ink);
  padding: 12px 8px;
  border-radius: var(--r-sm);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.nav-drawer-links a:hover { background: var(--forest-tint); color: var(--forest); }
.nav-drawer-foot {
  margin-top: auto;
  display: grid;
  gap: 6px;
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--charcoal-mute);
}

/* -----------------------------------------------------------------------------
   07 · Hero — full-bleed image with overlaid badges
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(820px, 88vh);
  padding-block: clamp(56px, 10vh, 116px);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; background: var(--forest-deep); }
.hero-bg picture { display: block; width: 100%; height: 100%; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10,22,38,.92) 0%, rgba(10,22,38,.64) 48%, rgba(10,22,38,.26) 100%),
    linear-gradient(0deg, rgba(8,18,32,.58) 0%, rgba(8,18,32,0) 58%);
}

.hero-inner { position: relative; z-index: 1; width: 100%; }
.hero-text { max-width: 680px; color: #fff; }

/* Badge + rating pills */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.hero .hero-eyebrow,
.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero .hero-eyebrow { color: rgba(255,255,255,.94); }
.hero-badge-star { width: 13px; height: 13px; fill: var(--copper-light); flex: none; }
.hero-rating { color: #fff; font-size: 0.9rem; text-transform: none; letter-spacing: 0; }
.hero-rating-stars { display: inline-flex; gap: 2px; }
.hero-rating-stars svg { width: 14px; height: 14px; fill: #E7B23C; }
.hero-rating > svg { width: 14px; height: 14px; color: var(--copper-light); flex: none; }
.hero-rating-text strong { font-weight: 700; }

.hero-headline {
  font-size: clamp(2.4rem, 5.6vw, 4.2rem);
  line-height: 1.05;
  color: #fff;
  max-width: 17ch;
  margin-bottom: var(--space-5);
  text-shadow: 0 2px 40px rgba(0,0,0,.4);
}
.hero-headline em { color: var(--copper-light); }
.hero-body {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.65;
  color: rgba(255,255,255,.9);
  max-width: 50ch;
  margin-bottom: var(--space-6);
  text-shadow: 0 1px 18px rgba(0,0,0,.35);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

/* Trust check row */
.hero-trust {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
}
.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.94rem;
  font-weight: 500;
  color: rgba(255,255,255,.92);
}
.hero-trust svg { width: 19px; height: 19px; color: var(--copper-light); flex: none; }

/* -----------------------------------------------------------------------------
   08 · Trust strip
   -------------------------------------------------------------------------- */
.trust {
  border-block: 1px solid var(--line);
  background: var(--surface);
}
.trust-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: clamp(20px, 3vw, 30px) clamp(16px, 2.4vw, 28px);
  background: var(--surface);
}
.trust-item .icon { width: 26px; height: 26px; color: var(--forest); flex: none; }
.trust-item .text { display: flex; flex-direction: column; line-height: 1.35; }
.trust-item .text strong { font-size: 0.96rem; color: var(--ink); font-weight: 600; }
.trust-item .text span { font-size: 0.82rem; color: var(--charcoal-mute); }

/* -----------------------------------------------------------------------------
   09 · Services
   -------------------------------------------------------------------------- */
.services-intro {
  display: grid;
  gap: var(--space-5);
  margin-bottom: clamp(40px, 5vw, 68px);
}
.services-headline {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  color: var(--ink);
  max-width: 18ch;
}
.services-lead { color: var(--ink-soft); max-width: 52ch; }

/* Photo-driven service cards */
.svc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
.svc-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: inherit;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              border-color .3s var(--ease);
}
.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.svc-media { overflow: hidden; background: var(--paper-2); aspect-ratio: 4 / 5; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.svc-card:hover .svc-media img { transform: scale(1.05); }
.svc-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: clamp(20px, 2vw, 28px);
}
.svc-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper-deep);
}
.svc-title { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); }
.svc-desc { font-size: 0.95rem; color: var(--ink-soft); }
.svc-link {
  margin-top: auto;
  padding-top: var(--space-4);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest);
}
.svc-link .btn-arrow { transition: transform .25s var(--ease); }
.svc-card:hover .svc-link .btn-arrow { transform: translateX(4px); }

/* Featured (bathroom) — larger type, side-by-side on wide screens */
.svc-featured .svc-title { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.svc-featured .svc-desc { font-size: 1.02rem; max-width: 46ch; }

/* -----------------------------------------------------------------------------
   10 · Process
   -------------------------------------------------------------------------- */
.process-wrap { display: grid; gap: clamp(36px, 5vw, 64px); }
.process-headline {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  color: var(--ink);
  margin-bottom: var(--space-5);
  max-width: 12ch;
}
.process-blurb { color: var(--ink-soft); max-width: 42ch; }

.process-steps { display: grid; gap: var(--space-2); }
.process-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(18px, 3vw, 36px);
  padding: clamp(24px, 3vw, 36px) 0;
  border-top: 1px solid var(--line-strong);
}
.process-step:last-child { border-bottom: 1px solid var(--line-strong); }
.process-num {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  color: var(--copper);
  opacity: .85;
}
.process-step-title {
  font-family: var(--serif);
  font-size: 1.32rem;
  color: var(--ink);
  margin-bottom: var(--space-3);
}
.process-step-body { color: var(--ink-soft); margin-bottom: var(--space-4); max-width: 56ch; }
.process-step-meta {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest);
}

/* -----------------------------------------------------------------------------
   11 · Portfolio (horizontal snap track)
   -------------------------------------------------------------------------- */
.portfolio-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: clamp(28px, 3.5vw, 44px);
}
.portfolio-headline { font-size: clamp(1.9rem, 3.6vw, 2.9rem); color: var(--ink); }
.portfolio-info { color: var(--ink-soft); max-width: 40ch; }
.portfolio-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--forest);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}
.portfolio-cta .btn-arrow { transition: transform .25s var(--ease); }
.portfolio-cta:hover .btn-arrow { transform: translateX(4px); }

.portfolio-track {
  display: flex;
  gap: var(--space-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--space-5);
  scroll-padding-left: clamp(20px, 5vw, 48px);
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.portfolio-track::-webkit-scrollbar { height: 8px; }
.portfolio-track::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; }
.portfolio-track::-webkit-scrollbar-track { background: transparent; }

.portfolio-card {
  flex: 0 0 auto;
  width: min(74vw, 320px);
  scroll-snap-align: start;
}
.portfolio-frame {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: var(--shadow-sm);
}
.portfolio-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.portfolio-card:hover .portfolio-frame img { transform: scale(1.05); }
.portfolio-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) 2px 0;
}
.portfolio-title { font-family: var(--serif); font-size: 1.06rem; color: var(--ink); }
.portfolio-loc {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal-mute);
  white-space: nowrap;
}
.portfolio-nav-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--space-4);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal-mute);
}
.portfolio-nav-hint svg { width: 26px; height: 9px; color: var(--copper); }

/* -----------------------------------------------------------------------------
   12 · Why us (inverted forest band)
   -------------------------------------------------------------------------- */
.why {
  background: var(--forest);
  color: var(--paper);
  background-image:
    radial-gradient(900px 500px at 100% 0%, rgba(91,166,232,.10), transparent 55%),
    radial-gradient(700px 500px at 0% 100%, rgba(0,0,0,.18), transparent 55%);
}
.why .section-marker .num { color: var(--copper-light); }
.why .section-marker .rule { background: var(--line-dark); }
.why .section-marker .label { color: rgba(238,243,248,.7); }
.why-head { margin-bottom: clamp(36px, 4.5vw, 60px); }
.why-headline { font-size: clamp(2rem, 4vw, 3.1rem); color: var(--paper); max-width: 18ch; }
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
.why-card {
  padding: clamp(24px, 2.6vw, 34px);
  border: 1px solid var(--line-dark);
  border-radius: var(--r);
  background: rgba(255,255,255,.03);
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.why-card:hover { background: rgba(255,255,255,.06); transform: translateY(-4px); }
.why-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--copper-light);
  margin-bottom: var(--space-4);
}
.why-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--paper);
  margin-bottom: var(--space-3);
}
.why-body { color: rgba(238,243,248,.78); font-size: 0.98rem; }

/* -----------------------------------------------------------------------------
   13 · Reviews
   -------------------------------------------------------------------------- */
.reviews-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: clamp(32px, 4vw, 52px);
}
.reviews-headline { font-size: clamp(1.9rem, 3.6vw, 2.9rem); color: var(--ink); }
.reviews-aggregate { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.reviews-score { font-size: 2.6rem; color: var(--forest); line-height: 1; }
.reviews-stars { display: inline-flex; gap: 3px; }
.reviews-stars svg { width: 18px; height: 18px; fill: var(--copper); }
.reviews-meta { font-size: 0.82rem; color: var(--charcoal-mute); width: 100%; }

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
.review {
  position: relative;
  padding: clamp(26px, 2.6vw, 36px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.review-quote-mark {
  position: absolute;
  top: -8px;
  right: 18px;
  font-family: var(--serif);
  font-size: 6rem;
  line-height: 1;
  color: var(--forest-tint);
  pointer-events: none;
  user-select: none;
}
.review-stars { display: inline-flex; gap: 3px; margin-bottom: var(--space-4); }
.review-stars svg { width: 15px; height: 15px; fill: var(--copper); }
.review-body {
  position: relative;
  font-size: 1.04rem;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: var(--space-5);
}
.review-author {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--forest);
  display: grid;
  gap: 2px;
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}
.review-location {
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal-mute);
}

/* -----------------------------------------------------------------------------
   14 · FAQ
   -------------------------------------------------------------------------- */
.faq-head { margin-bottom: clamp(28px, 3.5vw, 44px); display: grid; gap: var(--space-4); }
.faq-headline { font-size: clamp(1.9rem, 3.6vw, 2.9rem); color: var(--ink); }
.faq-blurb { color: var(--ink-soft); max-width: 56ch; }

.faq-list { display: grid; max-width: 880px; }
.faq-item { border-top: 1px solid var(--line-strong); }
.faq-item:last-child { border-bottom: 1px solid var(--line-strong); }
.faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: clamp(18px, 2.4vw, 26px) 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  color: var(--ink);
  transition: color .2s var(--ease);
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-summary:hover { color: var(--forest); }

/* +/− toggle drawn from the empty .faq-toggle span */
.faq-toggle { position: relative; width: 18px; height: 18px; flex: none; }
.faq-toggle::before,
.faq-toggle::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 14px; height: 2px;
  background: var(--copper);
  transform: translate(-50%, -50%);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.faq-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-toggle::after { transform: translate(-50%, -50%) rotate(0); opacity: 0; }

.faq-answer { padding-bottom: clamp(18px, 2.4vw, 26px); }
.faq-answer p { color: var(--ink-soft); max-width: 70ch; }
.faq-item[open] .faq-answer { animation: faqReveal .35s var(--ease); }
@keyframes faqReveal {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* -----------------------------------------------------------------------------
   15 · Contact (ba-* headings reused here) + form
   -------------------------------------------------------------------------- */
.ba-headline { font-size: clamp(1.9rem, 3.6vw, 2.9rem); color: var(--ink); margin-bottom: var(--space-4); }
.ba-info { color: var(--ink-soft); max-width: 50ch; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}

.form { display: grid; gap: var(--space-5); }
.form-row { display: grid; gap: var(--space-5); }
.form-row.two { grid-template-columns: 1fr; }

.field { display: grid; gap: 8px; }
.field > span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal-mute);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--ink);
  font-size: 1rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease),
              background-color .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder,
.field textarea::placeholder { color: #9AA7B5; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--forest);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(14,114,202,.12);
}
.field select {
  appearance: none;
  cursor: pointer;
  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' stroke='%23647686' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}

/* Field-level error (form.js toggles .has-error on .field) */
.field-error {
  font-size: 0.8rem;
  color: var(--error);
  font-weight: 500;
  display: none;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(162,58,46,.1);
}
.field.has-error .field-error { display: block; }

/* Honeypot — off-screen but present for bots */
.honeypot {
  position: absolute;
  left: -5000px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-submit { display: flex; align-items: center; gap: var(--space-5); flex-wrap: wrap; }
.form-disclaimer { font-size: 0.82rem; color: var(--charcoal-mute); }

/* Contact info column */
.contact-info {
  display: grid;
  gap: var(--space-5);
  padding: clamp(28px, 3vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.contact-info-block { display: grid; gap: 5px; }
.contact-info-block .k {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal-mute);
}
.contact-info-block .v { font-family: var(--serif); font-size: 1.3rem; color: var(--forest); }
.contact-info-block .v.sm { font-size: 0.98rem; font-family: var(--sans); color: var(--ink-soft); line-height: 1.55; }

/* -----------------------------------------------------------------------------
   16 · Footer (dark)
   -------------------------------------------------------------------------- */
.footer {
  background: var(--forest-deep);
  color: rgba(238,243,248,.82);
  padding-block: clamp(48px, 6vw, 84px) var(--space-6);
}
.footer-main {
  display: grid;
  gap: clamp(36px, 5vw, 64px);
  padding-bottom: clamp(36px, 4vw, 56px);
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand-block { display: grid; gap: var(--space-4); align-content: start; }
.footer .brand-mark { color: var(--paper); font-size: 1.5rem; }
.footer .brand-mark em { color: var(--copper-light); }
.footer .brand-logo { font-size: 25px; }
/* keep the wordmark lockup at its natural width instead of stretching the
   full grid column (which over-extends the CONSTRUCTION rule) */
.footer-brand-block .brand { justify-self: start; }
.footer-tag { font-size: 1.32rem; color: rgba(238,243,248,.72); max-width: 22ch; }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}
.footer-col h4 {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper-light);
  margin-bottom: var(--space-4);
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer-col p { margin-bottom: 8px; font-size: 0.94rem; }
.footer-col a { color: rgba(238,243,248,.82); transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--paper); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  justify-content: space-between;
  padding-top: var(--space-6);
  font-size: 0.82rem;
  color: rgba(238,243,248,.6);
}
.footer-bottom .license { letter-spacing: 0.04em; }

/* -----------------------------------------------------------------------------
   17 · Centered utility pages (thanks.html / 404.html)
   -------------------------------------------------------------------------- */
.center-page {
  min-height: calc(100vh - var(--nav-h) - 120px);
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: clamp(60px, 12vw, 140px);
}
.center-page .num {
  font-size: clamp(3rem, 9vw, 6rem);
  color: var(--copper);
  font-style: italic;
  margin-bottom: var(--space-4);
  line-height: 1;
}
.center-page h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--ink); margin-bottom: var(--space-5); }
.center-page p { color: var(--ink-soft); margin-bottom: var(--space-7); margin-inline: auto; max-width: 52ch; }

/* -----------------------------------------------------------------------------
   18 · Reveal animations (JS adds .is-visible / .is-loaded)
   Hidden initial state only when motion is welcome — so reduced-motion users
   (and any no-JS edge case) always see full content.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
  }
  [data-reveal].is-visible { opacity: 1; transform: none; }

  /* Hero background — slow ken-burns drift */
  .hero-bg img { animation: heroKen 20s ease-out both; }

  /* Hero entrance — staggered rise on first paint */
  .hero-badges, .hero-headline, .hero-body, .hero-ctas, .hero-trust {
    animation: rise .8s var(--ease) both;
  }
  .hero-headline { animation-delay: .08s; }
  .hero-body     { animation-delay: .16s; }
  .hero-ctas     { animation-delay: .24s; }
  .hero-trust    { animation-delay: .32s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes heroKen {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* -----------------------------------------------------------------------------
   19 · Responsive
   -------------------------------------------------------------------------- */

/* ≥ 600px — two-up service cards & form fields */
@media (min-width: 600px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-featured { grid-column: 1 / -1; }
  .form-row.two { grid-template-columns: 1fr 1fr; }
}

/* ≥ 760px — trust 4-up, services intro split, featured card side-by-side */
@media (min-width: 760px) {
  .trust-row { grid-template-columns: repeat(4, 1fr); }
  .services-intro { grid-template-columns: 1fr 1fr; align-items: end; }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }

  .svc-featured { flex-direction: row; align-items: stretch; }
  .svc-featured .svc-media { flex: 0 0 clamp(280px, 36%, 420px); aspect-ratio: 4 / 5; }
  .svc-featured .svc-body { flex: 1; justify-content: center; padding: clamp(28px, 3vw, 48px); }
}

/* ≥ 900px — desktop nav, two-col hero & process & contact */
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-drawer { display: none; }

  .process-wrap { grid-template-columns: 0.85fr 1.15fr; align-items: start; }
  .process-aside { position: sticky; top: calc(var(--nav-h) + 28px); }

  .contact-grid { grid-template-columns: 1.4fr 0.85fr; }

  .footer-main { grid-template-columns: 1fr 1.2fr; align-items: start; }
}

/* < 900px — hide desktop links, show hamburger */
@media (max-width: 899.98px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ≥ 1080px — services 4-up (featured spans full width) */
@media (min-width: 1080px) {
  .svc-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Phones — trim the phone pill to icon + dot, shrink the brand to fit */
@media (max-width: 560px) {
  .nav-phone-num { display: none; }
  .nav-phone { padding: 9px; }
  .brand-mark { font-size: 1.18rem; }
  .brand-logo { font-size: 22px; }
}

/* Hero — full-width stacked CTAs on phones */
@media (max-width: 600px) {
  .hero { min-height: min(720px, 86vh); }
  .hero-text { max-width: none; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
}

/* -----------------------------------------------------------------------------
   20 · Gallery page  (gallery.html)
   -------------------------------------------------------------------------- */
/* Hero badge is now a Google-reviews link */
.hero-rating[href] {
  text-decoration: none;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease);
}
.hero-rating[href]:hover {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.45);
  transform: translateY(-1px);
}

.gallery-intro-sec { padding-block: clamp(40px, 8vh, 96px) clamp(20px, 3vw, 36px); }
.gallery-title { font-size: clamp(2.1rem, 5vw, 3.4rem); color: var(--ink); margin-bottom: var(--space-4); }
.gallery-intro { color: var(--ink-soft); max-width: 56ch; font-size: 1.08rem; }

.gallery-filters { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.gallery-filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.gallery-filter span { font-size: 0.78rem; color: var(--charcoal-mute); font-weight: 500; }
.gallery-filter:hover { border-color: var(--forest); color: var(--ink); }
.gallery-filter.is-active { background: var(--forest); border-color: var(--forest); color: var(--paper); }
.gallery-filter.is-active span { color: rgba(238,243,248,.7); }

.gallery-wrap { padding-bottom: clamp(48px, 7vw, 100px); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-4);
  align-items: start;
}
.gallery-item { margin: 0; }
.gallery-item[hidden] { display: none; }
.gallery-open {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 0;
  border: 0;
  cursor: zoom-in;
  background: var(--paper-2);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.gallery-open img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.gallery-open:hover img { transform: scale(1.04); }
.gallery-empty { text-align: center; color: var(--charcoal-mute); padding: var(--space-8) 0; }

.gallery-cta {
  text-align: center;
  padding-block: clamp(48px, 7vw, 96px);
  background: var(--paper-2);
  border-top: 1px solid var(--line);
}
.gallery-cta h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); color: var(--ink); margin-bottom: var(--space-5); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 48px);
  background: rgba(10,18,30,.93);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.lightbox[hidden] { display: none; }
.lightbox-stage { display: flex; flex-direction: column; gap: 12px; max-width: min(1100px, 92vw); }
.lightbox-img { max-width: 100%; max-height: 82vh; margin: 0 auto; object-fit: contain; border-radius: 6px; box-shadow: var(--shadow-lg); }
.lightbox-cap { color: rgba(255,255,255,.82); font-size: 0.85rem; text-align: center; }
.lightbox-btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  transition: background-color .2s var(--ease);
}
.lightbox-btn:hover { background: rgba(255,255,255,.24); }
.lightbox-close { top: 18px; right: 18px; }
.lightbox-prev { left: clamp(8px, 2vw, 24px); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: clamp(8px, 2vw, 24px); top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   Featured service card — bathroom slideshow (crossfade)
   Stacks the gallery photos and fades between them; the container holds the
   portrait footprint so there is no layout shift as slides change.
   ========================================================================== */
.svc-slideshow {
  position: relative;
}
.svc-slideshow .svc-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 600ms ease-in-out;
}
.svc-slideshow .svc-slide.is-active {
  opacity: 1;
}
.svc-slideshow .svc-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (prefers-reduced-motion: reduce) {
  .svc-slideshow .svc-slide {
    transition: none;
  }
}
