/* ==========================================================================
   Lakeside Exteriors — Design System
   Tone: Luxury | Photography: Balanced | Rhythm: Standard
   Palette + type pulled from client logo (navy / brass / steel-blue / ivory)
   ========================================================================== */

:root {
  /* Color */
  --navy-900: #0f2336;
  --navy: #17304a;
  --navy-700: #223f5c;
  --brass: #b79a6b;
  --brass-light: #d3bd97;
  --steel: #577a97;
  --steel-light: #9db6c8;
  --ivory: #f4f2ed;
  --ivory-dark: #e8e3d8;
  --white: #ffffff;
  --ink: #1c2128;
  --ink-soft: #4a5261;

  /* Type */
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Nunito Sans", "Segoe UI", sans-serif;

  /* Layout */
  --container: 1200px;
  --container-narrow: 760px;
  --radius: 2px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 7rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0;
  line-height: 1.15;
  font-weight: 600;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--brass);
}

.lede {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--steel);
  font-size: 1.15rem;
}

/* Signature wave divider — drawn from the logo's roofline/wave mark */
.wave-divider {
  width: 100%;
  height: 28px;
  display: block;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
  padding: 0.95rem 2.1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--brass); color: var(--navy-900); }
.btn-primary:hover { background: var(--brass-light); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { border-color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem var(--space-md);
  max-width: var(--container);
  margin: 0 auto;
}
.logo-link img { height: 42px; width: auto; }
/* Logo card: the only "Windows & Doors" lockup available is a crop pulled from the
   client's Brand Guide sheet with its cream background baked in (no transparent/
   reversed-white file exists yet). Wrapping it in a light card keeps it crisp on
   the navy header/footer instead of faking a transparency cutout. Swap for the
   real reversed logo file once the client provides one. */
.logo-card {
  background: var(--ivory);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
}
.footer-brand img.footer-logo-img {
  background: var(--ivory);
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  height: auto;
  width: 220px;
  margin-bottom: 1rem;
}

.main-nav { display: flex; align-items: center; gap: var(--space-md); }
.nav-list { display: flex; align-items: center; gap: 1.9rem; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; }
.nav-list > li > a, .nav-list > li > button {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  color: var(--white);
  background: none;
  border: none;
  cursor: pointer;
  padding: 1.6rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-list > li > a:hover, .nav-list > li > button:hover { color: var(--brass-light); }

.dropdown-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  min-width: 280px;
  max-height: 420px;
  overflow-y: auto;
  box-shadow: 0 18px 40px rgba(15,35,54,0.25);
  border-radius: var(--radius);
  padding: 0.6rem;
  display: none;
  z-index: 50;
}
.dropdown-panel.open { display: block; }
.dropdown-panel a {
  display: block;
  padding: 0.6rem 0.9rem;
  font-size: 0.88rem;
  color: var(--navy);
  border-radius: var(--radius);
}
.dropdown-panel a:hover { background: var(--ivory); color: var(--brass); }
.dropdown-group-label {
  padding: 0.6rem 0.9rem 0.2rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  font-weight: 700;
}

.nav-cta { margin-left: 0.5rem; }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(86%, 360px);
    height: 100vh;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    padding: 5rem var(--space-md) var(--space-md);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .nav-list { flex-direction: column; align-items: flex-start; gap: 0; width: 100%; }
  .nav-list > li { width: 100%; }
  .nav-list > li > a, .nav-list > li > button { width: 100%; padding: 0.9rem 0; justify-content: space-between; }
  .dropdown-panel { position: static; transform: none; width: 100%; box-shadow: none; background: var(--navy-700); margin-bottom: 0.5rem; }
  .dropdown-panel a { color: var(--white); }
  .dropdown-panel a:hover { background: rgba(255,255,255,0.06); color: var(--brass-light); }
  .nav-cta { margin: 1rem 0 0; }
  .mobile-toggle { display: block; }
  .mobile-nav-backdrop { display: none; }
  .mobile-nav-backdrop.open { display: block; position: fixed; inset: 0; background: rgba(15,35,54,0.55); z-index: 90; }
}
@media (min-width: 901px) {
  .mobile-toggle, .mobile-nav-backdrop { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  background: var(--navy-900);
  color: var(--white);
  overflow: hidden;
}
.hero-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-xl) var(--space-md);
}
.hero-copy .lede { color: var(--brass-light); margin-bottom: 0.9rem; display: block; }
.hero-copy h1 { color: var(--white); margin-bottom: 1.3rem; }
.hero-copy .sub { color: rgba(255,255,255,0.82); font-size: 1.08rem; max-width: 520px; margin-bottom: 1.9rem; }
.hero-ctas { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.hero-note { font-size: 0.82rem; color: rgba(255,255,255,0.6); margin-top: 1rem; }

.hero-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.02);
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,35,54,0) 40%, rgba(15,35,54,0.55) 100%);
}
.hero-media-tag {
  position: absolute; left: 1.2rem; bottom: 1.2rem; z-index: 2;
  color: var(--white); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
  border-left: 2px solid var(--brass); padding-left: 0.7rem;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { aspect-ratio: 16/10; order: -1; }
}

/* ==========================================================================
   Trust strip
   ========================================================================== */
.trust-strip {
  background: var(--ivory-dark);
  border-bottom: 1px solid rgba(23,48,74,0.08);
}
.trust-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-md);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}
.trust-item { text-align: center; }
.trust-item .trust-label { font-family: var(--font-display); font-style: italic; color: var(--navy); font-size: 1.05rem; }
.trust-item .trust-sub { font-size: 0.78rem; color: var(--ink-soft); letter-spacing: 0.03em; margin-top: 0.2rem; }
@media (max-width: 760px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Section base
   ========================================================================== */
.section { padding: var(--space-xl) 0; }
.section-tight { padding: var(--space-lg) 0; }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2 { color: var(--white); }
.section-ivory-dark { background: var(--ivory-dark); }
.section-head { max-width: var(--container-narrow); margin: 0 auto var(--space-lg); text-align: center; }
.section-head .eyebrow { display: block; margin-bottom: 0.7rem; }
.section-head h2 { margin-bottom: 1rem; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }
.section-navy .section-head p { color: rgba(255,255,255,0.75); }

/* ==========================================================================
   Services grid
   ========================================================================== */
.services-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.service-card {
  background: var(--white);
  border: 1px solid rgba(23,48,74,0.08);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.service-card:hover { box-shadow: 0 20px 40px rgba(23,48,74,0.1); transform: translateY(-3px); }
.service-card-media { aspect-ratio: 4/3; overflow: hidden; }
.service-card-media img { width: 100%; height: 100%; object-fit: cover; }
.service-card-media-empty {
  display: flex; align-items: center; justify-content: center;
  background: var(--ivory-dark);
  color: var(--ink-soft);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px dashed rgba(23,48,74,0.15);
}
.service-card-body { padding: var(--space-md); }
.service-card .num { font-family: var(--font-display); font-style: italic; color: var(--brass); font-size: 1rem; margin-bottom: 0.6rem; display: block; }
.service-card h3 { margin-bottom: 0.6rem; }
.service-card p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 1rem; }
.service-card .card-link { font-weight: 700; font-size: 0.82rem; letter-spacing: 0.03em; color: var(--navy); border-bottom: 1px solid var(--brass); padding-bottom: 2px; }
@media (max-width: 860px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Case study preview
   ========================================================================== */
.case-preview {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}
.case-media { position: relative; aspect-ratio: 5/4; overflow: hidden; border-radius: var(--radius); }
.case-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15) translateY(-6%); }
.case-copy .eyebrow { display: block; margin-bottom: 0.8rem; }
.case-copy h2 { margin-bottom: 1rem; }
.case-copy p { color: var(--ink-soft); margin-bottom: 1.4rem; }
.case-flag {
  font-size: 0.78rem;
  color: var(--steel);
  border: 1px dashed var(--steel-light);
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius);
  margin-bottom: 1.4rem;
  display: inline-block;
}
@media (max-width: 860px) {
  .case-preview { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Recent installs strip
   ========================================================================== */
.installs-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.install-card {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.install-card img { aspect-ratio: 4/3; object-fit: cover; }
.install-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(15,35,54,0.85), rgba(15,35,54,0));
  color: var(--white);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  padding: 1.6rem 0.9rem 0.7rem;
}
@media (max-width: 760px) {
  .installs-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Process
   ========================================================================== */
.process-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.process-step .step-index { font-family: var(--font-display); font-style: italic; font-size: 1.8rem; color: var(--brass-light); margin-bottom: 0.8rem; display: block; }
.process-step h3 { color: var(--white); margin-bottom: 0.6rem; }
.process-step p { color: rgba(255,255,255,0.75); font-size: 0.95rem; }
@media (max-width: 860px) {
  .process-grid { grid-template-columns: 1fr; gap: var(--space-md); }
}

/* ==========================================================================
   FAQ (homepage teaser)
   ========================================================================== */
.faq-list { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--space-md); }
.faq-item { border-bottom: 1px solid rgba(23,48,74,0.12); padding: 1.3rem 0; }
.faq-item summary {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--brass); font-size: 1.4rem; font-family: var(--font-body); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin-top: 0.8rem; color: var(--ink-soft); }
.faq-more { text-align: center; margin-top: var(--space-md); }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  background: var(--navy);
  color: var(--white);
  padding: var(--space-lg) 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 0.8rem; }
.cta-band p { color: rgba(255,255,255,0.75); max-width: 520px; margin: 0 auto 1.8rem; }
.cta-form-placeholder {
  max-width: 420px;
  margin: 0 auto;
  border: 1px dashed rgba(255,255,255,0.4);
  padding: var(--space-md);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.75); }
.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md) var(--space-md);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-lg);
}
.footer-brand img { height: 38px; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.6); }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.55rem; font-size: 0.88rem; }
.footer-col a:hover { color: var(--brass-light); }
.footer-nap p { margin-bottom: 0.4rem; font-size: 0.88rem; }
.footer-map { margin-top: var(--space-md); }
.footer-map iframe { width: 100%; height: 220px; border: 0; border-radius: var(--radius); filter: grayscale(0.2) contrast(1.05); }
.footer-map-placeholder {
  height: 220px;
  border: 1px dashed rgba(255,255,255,0.25);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 1rem;
}
.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a:hover { color: var(--brass-light); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Focus visibility */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}
