/* =====================================================================
   Lakeway Exterior Wash — styles.css
   Palette: slate-blue accent + stone neutrals on deep slate.
   Type: Fraunces (display) + Inter (body). Mobile-first.
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Neutrals (stone) */
  --stone-50:  #FAF9F6;
  --stone-100: #F4F2EE;  /* page background */
  --stone-200: #E8E4DB;  /* hairline borders */
  --stone-300: #D8D2C5;

  /* Ink / dark slate */
  --ink:    #1A1E22;     /* dark sections */
  --ink-2:  #232A30;
  --ink-3:  #2E363D;

  /* Text */
  --text:        #23282D;
  --text-muted:  #565E66;
  --text-on-dark:        #F4F2EE;
  --text-on-dark-muted:  #B7BEC5;

  /* Accent (slate blue) */
  --accent:      #3E5C76;
  --accent-600:  #324C63;  /* hover */
  --accent-700:  #283D50;
  --accent-300:  #8AA7BF;  /* light accent for dark bg */

  /* UI */
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(26,30,34,.06), 0 2px 8px rgba(26,30,34,.05);
  --shadow-md: 0 10px 30px rgba(26,30,34,.10);
  --shadow-lg: 0 24px 60px rgba(26,30,34,.18);

  --container: 1160px;
  --gutter: clamp(1.1rem, 4vw, 2.25rem);
  --section-y: clamp(3.75rem, 9vw, 7rem);

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

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 1rem;            /* 16px */
  line-height: 1.65;
  color: var(--text);
  background: var(--stone-100);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-600); }

h1, h2, h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 .5em;
}

p { margin: 0 0 1rem; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 50%; top: -100px;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--text-on-dark);
  padding: .65rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 1000;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; color: var(--text-on-dark); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: .01em;
  padding: .95rem 1.5rem;
  min-height: 48px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease),
              transform .12s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-accent { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-accent:hover { background: var(--accent-600); color: #fff; box-shadow: var(--shadow-md); }

.btn-ghost {
  background: transparent;
  color: var(--text-on-dark);
  border-color: rgba(244,242,238,.35);
}
.btn-ghost:hover { background: rgba(244,242,238,.10); color: var(--text-on-dark); border-color: rgba(244,242,238,.6); }

.btn-lg { padding: 1.05rem 1.85rem; min-height: 54px; font-size: 1.05rem; }
.btn-sm { padding: .6rem 1.05rem; min-height: 40px; font-size: .95rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244,242,238,.85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--stone-200);
  box-shadow: 0 6px 24px rgba(26,30,34,.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark { color: var(--accent); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: -.01em;
}
.brand-sub {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Nav */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  padding: 0 11px;
  background: transparent;
  border: 1px solid var(--stone-200);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle-bar {
  height: 2px; width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-menu {
  list-style: none;
  margin: 0; padding: 0;
}

/* Mobile nav menu (closed by default) */
@media (max-width: 899px) {
  .nav-menu {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--stone-50);
    border-bottom: 1px solid var(--stone-200);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    padding: .5rem var(--gutter) 1.25rem;
    gap: .25rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .nav-menu.open { opacity: 1; transform: translateY(0); visibility: visible; }
  .nav-menu a:not(.btn) {
    display: block;
    padding: .85rem .25rem;
    color: var(--text);
    font-weight: 500;
    border-bottom: 1px solid var(--stone-200);
  }
  .nav-cta-item { margin-top: .75rem; }
  .nav-cta-item .btn { width: 100%; }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-menu {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2vw, 1.85rem);
  }
  .nav-menu a:not(.btn) {
    color: var(--text);
    font-weight: 500;
    font-size: .98rem;
    padding: .25rem 0;
    position: relative;
  }
  .nav-menu a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0; bottom: -3px;
    width: 0; height: 2px;
    background: var(--accent);
    transition: width .2s var(--ease);
  }
  .nav-menu a:not(.btn):hover::after { width: 100%; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section-tint { background: var(--stone-50); border-block: 1px solid var(--stone-200); }
.section-dark { background: var(--ink); color: var(--text-on-dark); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--text-on-dark); }
.section-dark p { color: var(--text-on-dark-muted); }

.section-head { max-width: 760px; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.section-intro { font-size: 1.12rem; color: var(--text-muted); margin: 0; }
.section-dark .section-intro { color: var(--text-on-dark-muted); }

.eyebrow {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .85rem;
}
.eyebrow-light { color: var(--accent-300); }

h2 { font-size: clamp(1.85rem, 4.5vw, 2.85rem); }
h3 { font-size: 1.25rem; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(120% 90% at 80% -10%, #2B3742 0%, transparent 55%),
    var(--ink);
  color: var(--text-on-dark);
  padding-block: clamp(2.75rem, 7vw, 5.5rem) clamp(3rem, 8vw, 6rem);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.hero-copy { max-width: 620px; }
.hero h1 {
  color: var(--text-on-dark);
  font-size: clamp(2.4rem, 7vw, 4.1rem);
  font-weight: 600;
  margin-bottom: .35em;
}
.hero-lede {
  font-size: clamp(1.08rem, 2.4vw, 1.28rem);
  color: var(--text-on-dark-muted);
  max-width: 52ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin: 1.75rem 0 1.1rem;
}
.hero-note {
  font-size: .92rem;
  color: var(--text-on-dark-muted);
  margin: 0;
}

.hero-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--ink-2);
}
.hero-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero-media-tag {
  position: absolute;
  left: .85rem; bottom: .85rem;
  font-size: .72rem;
  letter-spacing: .04em;
  background: rgba(26,30,34,.62);
  color: var(--text-on-dark);
  padding: .35rem .7rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
}

/* ---------- Services ---------- */
.surface-grid {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  grid-template-columns: 1fr;
}
.surface-card {
  background: var(--white);
  border: 1px solid var(--stone-200);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.surface-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--stone-300); }
.surface-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(62,92,118,.10);
  color: var(--accent);
  margin-bottom: 1rem;
}
.surface-card h3 { margin-bottom: .35rem; }
.surface-card p { margin: 0; color: var(--text-muted); font-size: .98rem; }

@media (min-width: 600px) { .surface-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .surface-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Before / After gallery ---------- */
.ba-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  grid-template-columns: 1fr;
}
.ba-item {
  background: var(--white);
  border: 1px solid var(--stone-200);
  border-radius: var(--radius);
  padding: .75rem .75rem 1.1rem;
  box-shadow: var(--shadow-sm);
}
.ba-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
}
.ba-cell {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--stone-100);
}
.ba-cell img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.ba-label {
  position: absolute;
  top: .6rem; left: .6rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .6rem;
  border-radius: 999px;
  color: #fff;
}
.ba-label-before { background: rgba(26,30,34,.78); }
.ba-label-after  { background: var(--accent); }
.ba-item figcaption {
  margin-top: .85rem;
  padding-inline: .4rem;
  font-size: .92rem;
  color: var(--text-muted);
  font-weight: 500;
}
.gallery-cta { margin-top: clamp(2rem, 5vw, 3rem); text-align: center; }

@media (min-width: 760px) {
  .ba-grid { grid-template-columns: repeat(2, 1fr); max-width: 940px; margin-inline: auto; }
}

/* ---------- How it works ---------- */
.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  counter-reset: step;
  grid-template-columns: 1fr;
}
.step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--stone-200);
  border-radius: var(--radius);
  padding: 1.75rem 1.6rem;
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.step h3 { margin-bottom: .4rem; }
.step p { margin: 0; color: var(--text-muted); }

@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  gap: clamp(1.75rem, 5vw, 3.5rem);
  align-items: center;
}
.about-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--ink-2);
}
.about-media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.about-copy { max-width: 580px; }
.about-copy .btn { margin-top: .75rem; }

@media (min-width: 900px) {
  .about-grid { grid-template-columns: .85fr 1.15fr; }
}

/* ---------- Service area ---------- */
.area-list {
  list-style: none;
  margin: 0 0 1.5rem; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .65rem;
}
.area-list li {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1rem;
  background: var(--white);
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-sm);
  font-weight: 500;
}
.area-list li::before {
  content: "";
  flex: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.area-note { color: var(--text-muted); }

@media (min-width: 640px) { .area-list { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .area-list { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Testimonials ---------- */
.reviews-grid {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: clamp(1rem, 3vw, 1.75rem);
  grid-template-columns: 1fr;
}
.review-card {
  background: var(--white);
  border: 1px solid var(--stone-200);
  border-radius: var(--radius);
  padding: 1.75rem 1.6rem;
  box-shadow: var(--shadow-sm);
}
.review-empty { border-style: dashed; background: transparent; box-shadow: none; }
.review-quote {
  font-family: "Fraunces", serif;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--text);
  margin: 0 0 1rem;
}
.review-author { margin: 0; font-size: .92rem; color: var(--text-muted); font-weight: 600; }

@media (min-width: 720px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Contact / form ---------- */
.contact-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.contact-copy { max-width: 480px; }
.contact-direct { display: grid; gap: .75rem; margin-top: 1.75rem; }
.contact-line {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .9rem 1.1rem;
  border: 1px solid rgba(244,242,238,.18);
  border-radius: var(--radius-sm);
  color: var(--text-on-dark);
  background: rgba(244,242,238,.04);
  transition: background .18s var(--ease), border-color .18s var(--ease);
}
.contact-line:hover { background: rgba(244,242,238,.10); border-color: rgba(244,242,238,.4); color: var(--text-on-dark); }
.contact-line-icon {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(138,167,191,.16);
  color: var(--accent-300);
}
.contact-line-label {
  display: block;
  font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-on-dark-muted);
}
.contact-line-value { display: block; font-weight: 600; font-size: 1.05rem; }

/* Form */
.quote-form {
  background: var(--stone-50);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}
.field { margin-bottom: 1.1rem; }
.field-row { display: grid; gap: 1.1rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }

.field label {
  display: block;
  font-weight: 600;
  font-size: .92rem;
  margin-bottom: .4rem;
  color: var(--text);
}
.req { color: var(--accent); }

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;            /* 16px — avoids iOS zoom */
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--stone-300);
  border-radius: var(--radius-sm);
  padding: .8rem .95rem;
  min-height: 48px;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #9aa1a8; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(62,92,118,.18);
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: #b3261e;
  box-shadow: 0 0 0 3px rgba(179,38,30,.14);
}

.quote-form .btn-block { margin-top: .5rem; }

.form-status {
  margin: 1rem 0 0;
  font-weight: 600;
  font-size: .95rem;
  min-height: 1.2em;
}
.form-status.is-error { color: #b3261e; }
.form-status.is-success { color: #1f6b3a; }
.form-fineprint { margin: .75rem 0 0; font-size: .82rem; color: var(--text-muted); }

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

@media (min-width: 900px) {
  .contact-grid { grid-template-columns: .9fr 1.1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: #14181B;
  color: var(--text-on-dark-muted);
  padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem;
}
.footer-inner {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(244,242,238,.10);
}
.site-footer .brand-name { color: var(--text-on-dark); font-size: 1.2rem; }
.footer-tag { margin: .4rem 0 0; font-size: .92rem; }
.footer-h {
  font-family: "Inter", sans-serif;
  font-size: .76rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-300);
  margin: 0 0 .5rem;
}
.footer-col p { margin: 0; line-height: 1.7; }
.footer-col a { color: var(--text-on-dark); }
.footer-col a:hover { color: var(--accent-300); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  padding-top: 1.5rem;
  font-size: .85rem;
}
.footer-bottom p { margin: 0; }
.footer-legal { color: rgba(183,190,197,.7); }

@media (min-width: 720px) {
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* ---------- Mobile sticky call bar ---------- */
.mobile-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: .5rem;
  padding: .55rem var(--gutter) calc(.55rem + env(safe-area-inset-bottom));
  background: rgba(20,24,27,.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(244,242,238,.12);
}
.mobile-bar-btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: .45rem;
  min-height: 48px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .98rem;
  color: var(--text-on-dark);
  background: rgba(244,242,238,.10);
}
.mobile-bar-btn:hover { color: var(--text-on-dark); }
.mobile-quote { background: var(--accent); color: #fff; }
.mobile-quote:hover { background: var(--accent-600); color: #fff; }

@media (min-width: 900px) { .mobile-bar { display: none; } }
/* Keep content clear of the fixed bar on mobile */
@media (max-width: 899px) { body { padding-bottom: 72px; } }

/* ---------- Scroll-reveal motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Offset anchored sections for the sticky header */
:where(section[id], [id]) { scroll-margin-top: 84px; }

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