/* ============================================================
   EZ Glazing Corp — "Warm Light" Design System
   Warm off-white background · espresso text · muted taupe accent
   Cinematic photo sections with a warm (non-blue) dark scrim.
   ============================================================ */

:root {
  --bg:      #f4f1ec;   /* warm off-white */
  --bg-2:    #ece7df;   /* alt panel (deeper warm) */
  --bg-3:    #fbf9f5;   /* card / cream */
  --ink:     #2b2622;   /* espresso text & headings */
  --ink-dim: #5f574e;   /* secondary warm gray */
  --muted:   #8c8377;   /* tertiary warm gray */

  --gold:    #9c8c79;   /* taupe accent (var name kept) */
  --gold-lt: #c2b39e;   /* lighter taupe (for dark sections) */

  --line:    rgba(43,38,34,.13);
  --line-2:  rgba(43,38,34,.22);

  --scrim:   34,29,25;  /* warm dark, for photo overlays */

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --shadow: 0 24px 60px rgba(43,38,34,.12);
}

* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.7; font-weight: 400;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .2s; }

h1,h2,h3,h4 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0 0 .4em; color: var(--ink); letter-spacing: .005em; }
h1 { font-size: clamp(2.8rem, 7vw, 5.2rem); font-weight: 400; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 400; }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding: clamp(70px, 11vw, 150px) 0; }
.section--panel { background: var(--bg-2); }
.center { text-align: center; }
.eyebrow {
  font-family: var(--sans); font-size: .74rem; font-weight: 600; letter-spacing: .32em;
  text-transform: uppercase; color: var(--gold); display: inline-block; margin-bottom: 1.3rem;
}
.eyebrow::before { content: ""; display: inline-block; width: 30px; height: 1px; background: var(--gold); vertical-align: middle; margin-right: .8em; }
.center .eyebrow::after { content: ""; display: inline-block; width: 30px; height: 1px; background: var(--gold); vertical-align: middle; margin-left: .8em; }
.lead { font-size: 1.2rem; color: var(--ink-dim); max-width: 60ch; font-weight: 300; }
.center .lead { margin-inline: auto; }
.muted { color: var(--muted); }
.grid { display: grid; gap: clamp(22px, 3vw, 38px); }
.gold { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem; cursor: pointer;
  font-family: var(--sans); font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  padding: 1.05rem 2.1rem; border: 1px solid transparent; transition: .28s ease; white-space: nowrap;
}
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: #87775f; box-shadow: 0 12px 30px rgba(156,140,121,.4); transform: translateY(-2px); }
.btn--outline { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn--outline:hover { border-color: var(--gold); color: var(--gold); }
.btn--light { background: var(--ink); color: var(--bg); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--lg { padding: 1.2rem 2.6rem; font-size: .86rem; }

/* Buttons sitting on dark photo sections */
.hero .btn--outline, .cta .btn--outline { border-color: rgba(255,255,255,.55); color: #fff; }
.hero .btn--outline:hover, .cta .btn--outline:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }

/* ---------- Top bar ---------- */
.topbar { background: var(--bg-2); border-bottom: 1px solid var(--line); font-size: .8rem; letter-spacing: .04em; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: .55rem; flex-wrap: wrap; color: var(--muted); }
.topbar a { color: var(--ink-dim); }
.topbar a:hover { color: var(--gold); }
.topbar .tb-right { display: flex; gap: 1.6rem; align-items: center; }

/* ---------- Header (solid, light) ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: rgba(244,241,236,.88); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); transition: box-shadow .35s, padding .35s;
}
.site-header.scrolled { box-shadow: 0 8px 30px rgba(43,38,34,.08); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.1rem; transition: padding .35s; }
.site-header.scrolled .container { padding-block: .8rem; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--ink); }
.brand .logo-mark {
  width: 44px; height: 44px; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 1.2rem;
  color: var(--gold); border: 1px solid var(--gold); letter-spacing: .02em;
}
.brand .bt { font-family: var(--serif); font-size: 1.45rem; line-height: 1; letter-spacing: .04em; }
.brand .bt small { display: block; font-family: var(--sans); font-size: .58rem; font-weight: 600; letter-spacing: .3em; color: var(--gold); text-transform: uppercase; margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 2.1rem; }
.nav a.navlink { color: var(--ink); font-family: var(--sans); font-weight: 500; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; position: relative; }
.nav a.navlink:hover, .nav a.navlink.active { color: var(--gold); }
.nav a.navlink.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 1px; background: var(--gold); }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; z-index: 70; }
.menu-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 6px 0; transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; isolation: isolate; overflow: hidden; }
.hero .hero-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; transform: scale(1.08); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(var(--scrim),.62) 0%, rgba(var(--scrim),.4) 45%, rgba(var(--scrim),.82) 100%);
}
.hero .container { padding-top: 120px; padding-bottom: 60px; }
.hero-inner { max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero h1 em { font-style: italic; color: #ddcdb6; }
.hero .sub { font-size: 1.3rem; font-weight: 300; color: rgba(255,255,255,.85); max-width: 54ch; margin-bottom: 2.2rem; }
.hero .eyebrow { color: var(--gold-lt); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 2.6rem; flex-wrap: wrap; margin-top: 3.4rem; padding-top: 2.2rem; border-top: 1px solid rgba(255,255,255,.18); }
.hero-meta .hm .n { font-family: var(--serif); font-size: 2.4rem; color: var(--gold-lt); line-height: 1; }
.hero-meta .hm .l { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.65); margin-top: .4rem; }
.scroll-cue { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.6); font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.scroll-cue::after { content: ""; width: 1px; height: 46px; background: linear-gradient(var(--gold-lt), transparent); animation: cue 2s ease-in-out infinite; }
@keyframes cue { 0%,100% { opacity: .3; transform: scaleY(.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* ---------- Trust strip ---------- */
.strip { border-bottom: 1px solid var(--line); background: var(--bg-2); }
.strip .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.4rem 2rem; padding-block: 1.5rem; }
.strip .si { display: flex; align-items: center; gap: .6rem; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); }
.strip .si svg { color: var(--gold); flex: none; }

/* ---------- Section heading block ---------- */
.shead { max-width: 64ch; }
.shead.center { margin-inline: auto; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 6vw, 90px); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; box-shadow: var(--shadow); }
.split-media .frame-line { position: absolute; inset: 16px; border: 1px solid rgba(255,255,255,.4); pointer-events: none; }
.split-media .tag { position: absolute; left: 0; bottom: 26px; background: var(--gold); color: #fff; padding: .7rem 1.4rem; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; }

/* ---------- Checklist ---------- */
.checklist { display: grid; gap: 1.1rem; margin-top: 1.6rem; }
.checklist li { display: flex; gap: .9rem; align-items: flex-start; color: var(--ink-dim); font-weight: 300; }
.checklist li svg { flex: none; color: var(--gold); margin-top: 5px; }
.checklist li b { color: var(--ink); font-weight: 600; }

/* ---------- Services / cards ---------- */
.cards { grid-template-columns: repeat(auto-fit, minmax(212px, 1fr)); }
.scard {
  background: var(--bg-3); border: 1px solid var(--line); padding: 2.4rem 2rem; transition: .3s; position: relative; overflow: hidden;
  box-shadow: 0 1px 0 rgba(43,38,34,.03);
}
.scard::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--gold); transition: width .35s; }
.scard:hover { border-color: var(--line-2); transform: translateY(-6px); box-shadow: var(--shadow); }
.scard:hover::before { width: 100%; }
.scard .ic { color: var(--gold); margin-bottom: 1.3rem; }
.scard h3 { color: var(--ink); margin-bottom: .5rem; }
.scard p { color: var(--ink-dim); font-size: .98rem; font-weight: 300; margin: 0; }
.scard .more { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.3rem; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }

/* ---------- Parallax feature band ---------- */
.band { position: relative; background-size: cover; background-position: center; background-attachment: fixed; }
.band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--scrim),.9), rgba(var(--scrim),.55)); }
.band .container { position: relative; padding-block: clamp(90px, 14vw, 180px); }
.band-inner { max-width: 620px; }
.band h2 { color: #fff; }
.band .eyebrow { color: var(--gold-lt); }
.band .lead { color: rgba(255,255,255,.85); }
.band .checklist li { color: rgba(255,255,255,.82); }
.band .checklist li b { color: #fff; }

/* ---------- Stats ---------- */
.stats { grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); text-align: center; }
.stat .n { font-family: var(--serif); font-size: clamp(2.8rem, 6vw, 4rem); color: var(--gold); line-height: 1; }
.stat .l { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: .6rem; }
.stat + .stat { border-left: 1px solid var(--line); }

/* ---------- Steps ---------- */
.steps { counter-reset: s; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); }
.pstep { position: relative; padding-top: 2rem; border-top: 1px solid var(--line-2); }
.pstep::before { counter-increment: s; content: "0" counter(s); font-family: var(--serif); font-size: 1.6rem; color: var(--gold); position: absolute; top: -.9rem; right: 0; }
.pstep h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.pstep p { color: var(--ink-dim); font-size: .96rem; font-weight: 300; margin: 0; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 220px; gap: 16px; }
.gtile { position: relative; overflow: hidden; box-shadow: var(--shadow); }
.gtile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.gtile:hover img { transform: scale(1.07); }
.gtile .cap { position: absolute; inset: auto 0 0 0; padding: 2rem 1.4rem 1.2rem; background: linear-gradient(transparent, rgba(var(--scrim),.9)); opacity: 0; transform: translateY(10px); transition: .35s; }
.gtile:hover .cap { opacity: 1; transform: none; }
.gtile .cap b { color: #fff; font-family: var(--serif); font-size: 1.3rem; display: block; }
.gtile .cap span { color: var(--gold-lt); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; }
.gtile.lg { grid-column: span 6; grid-row: span 2; }
.gtile.md { grid-column: span 6; }
.gtile.sm { grid-column: span 4; }
.gtile.w8 { grid-column: span 8; }

/* ---------- Testimonials ---------- */
.quotes { grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); }
.qcard { background: var(--bg-3); border: 1px solid var(--line); padding: 2.4rem; box-shadow: 0 1px 0 rgba(43,38,34,.03); }
.qcard .mark { font-family: var(--serif); font-size: 3.4rem; color: var(--gold); line-height: .5; height: 1.4rem; display: block; }
.qcard p { font-family: var(--serif); font-size: 1.32rem; font-style: italic; color: var(--ink); line-height: 1.45; }
.qcard .who { display: flex; align-items: center; gap: .9rem; margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.qcard .who .av { width: 46px; height: 46px; border: 1px solid var(--gold); color: var(--gold); display: grid; place-items: center; font-family: var(--serif); }
.qcard .who b { color: var(--ink); display: block; font-family: var(--sans); font-size: .95rem; }
.qcard .who span { color: var(--muted); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- Quote form ---------- */
.formwrap { background: var(--bg-3); border: 1px solid var(--line-2); padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow); }
.formwrap h3 { font-size: 2rem; margin-bottom: .2rem; }
.formwrap .fsub { color: var(--muted); font-weight: 300; margin-bottom: 1.8rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: .5rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .95rem 1rem; background: #fff; border: 1px solid var(--line-2); color: var(--ink);
  font: inherit; font-size: .98rem; transition: .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #a89f93; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(156,140,121,.18); }
.formwrap .btn { width: 100%; justify-content: center; }
.formwrap .fine { font-size: .76rem; color: var(--muted); text-align: center; margin: 1rem 0 0; letter-spacing: .04em; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ---------- CTA band ---------- */
.cta { position: relative; text-align: center; background-size: cover; background-position: center; }
.cta::before { content: ""; position: absolute; inset: 0; background: rgba(var(--scrim),.78); }
.cta .container { position: relative; padding-block: clamp(80px, 12vw, 150px); }
.cta h2 { color: #fff; }
.cta .eyebrow { color: var(--gold-lt); }
.cta p { color: rgba(255,255,255,.85); max-width: 56ch; margin-inline: auto; font-weight: 300; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line-2); padding: 1.5rem 0; }
.faq summary { font-family: var(--serif); font-size: 1.4rem; color: var(--ink); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-family: var(--sans); font-weight: 300; font-size: 1.8rem; transition: .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-dim); font-weight: 300; margin: 1rem 0 0; }

/* ---------- Areas ---------- */
.areas { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }
.areas span { border: 1px solid var(--line-2); padding: .6rem 1.3rem; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-dim); transition: .25s; background: var(--bg-3); }
.areas span:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Page hero ---------- */
.page-hero { position: relative; padding: clamp(150px,18vw,230px) 0 clamp(60px,8vw,100px); background-size: cover; background-position: center; text-align: center; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--scrim),.68), rgba(var(--scrim),.85)); }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,.85); max-width: 58ch; margin-inline: auto; font-weight: 300; }
.crumb { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.65); margin-bottom: 1.4rem; }
.crumb a { color: rgba(255,255,255,.65); }
.crumb a:hover { color: #fff; }

/* ---------- Footer (warm dark, grounding) ---------- */
.site-footer { background: #241f1b; color: #c7beb2; padding-top: clamp(56px,8vw,90px); }
.site-footer .brand { color: #fff; margin-bottom: 1.2rem; }
.site-footer .brand .logo-mark { color: var(--gold-lt); border-color: var(--gold-lt); }
.site-footer h4 { font-family: var(--sans); font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-lt); margin-bottom: 1.3rem; }
.site-footer ul { display: grid; gap: .7rem; }
.site-footer a { color: #c7beb2; font-weight: 300; }
.site-footer a:hover { color: #fff; }
.site-footer p { color: #a79e92; font-weight: 300; font-size: .95rem; }
.fbar { border-top: 1px solid rgba(255,255,255,.12); margin-top: 3rem; padding: 1.6rem 0; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .8rem; color: #968d81; letter-spacing: .04em; }
.socials { display: flex; gap: .7rem; margin-top: 1.4rem; }
.socials a { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; color: #c7beb2; transition: .25s; }
.socials a:hover { border-color: var(--gold-lt); color: #fff; }

/* ---------- Mobile call bar ---------- */
.callbar { display: none; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .12s; } .reveal.d2 { transition-delay: .24s; } .reveal.d3 { transition-delay: .36s; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .split, .split.reverse .split-media { grid-template-columns: 1fr; order: 0; }
  .split-media { order: -1; max-width: 560px; }
  .fgrid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-auto-rows: 200px; }
  .gtile.lg, .gtile.md, .gtile.sm, .gtile.w8 { grid-column: span 6; grid-row: span 1; }
}
@media (max-width: 760px) {
  .topbar { display: none; }
  .band { background-attachment: scroll; }
  .nav { position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px); background: var(--bg); flex-direction: column;
    align-items: flex-start; justify-content: center; padding: 2rem 2.2rem; gap: 1.6rem; transform: translateX(100%);
    transition: transform .35s cubic-bezier(.22,1,.36,1); border-left: 1px solid var(--line); box-shadow: -20px 0 60px rgba(43,38,34,.1); }
  .nav.open { transform: none; }
  .nav .btn { width: 100%; justify-content: center; }
  .menu-toggle { display: block; }
  .menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .stat + .stat { border-left: 0; }
  body { padding-bottom: 60px; }
  .callbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: #241f1b; border-top: 1px solid rgba(255,255,255,.12); }
  .callbar a { flex: 1; text-align: center; padding: 1rem; color: #fff; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; display: flex; align-items: center; justify-content: center; gap: .5rem; }
  .callbar a.call { background: var(--gold); color: #fff; }
  .row2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .fgrid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gtile.lg, .gtile.md, .gtile.sm, .gtile.w8 { grid-column: span 1; }
  .hero-meta { gap: 1.6rem; }
}
