/* Alexandria Window landing-specific extensions.
   veha-clean.css remains the unmodified framework source of truth. */

:root {
  --awr-ink: #202126;
  --awr-ink-2: #303238;
  --awr-panel: #eceef1;
  --awr-line: rgba(17, 19, 24, .12);
  --awr-max-copy: 720px;
}

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--c-border);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--c-text);
  text-decoration: none;
}

.brand__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 3px solid var(--c-text);
  border-top-color: var(--c-primary);
  border-radius: var(--r-sm);
  font-weight: 800;
  line-height: 1;
}

.brand__text strong,
.brand__text span { display: block; }
.brand__text strong { font-size: 16px; line-height: 1.05; letter-spacing: .02em; }
.brand__text span { margin-top: 3px; color: var(--c-muted); font-size: 11px; line-height: 1.2; letter-spacing: .12em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: var(--s-6); }
.nav a:not(.btn) { color: var(--c-text-soft); font-size: var(--fs-14); font-weight: 600; text-decoration: none; }
.nav a:not(.btn):hover { color: var(--c-primary); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-surface);
  color: var(--c-text);
}

.hero-main {
  position: relative;
  overflow: hidden;
  padding: clamp(54px, 7vw, 104px) 0;
  background: var(--awr-ink);
  color: var(--c-white);
}

.hero-main::before {
  content: "";
  position: absolute;
  inset: 0 50% 0 auto;
  width: 48%;
  background: linear-gradient(135deg, rgba(255, 99, 71, .12), transparent 54%);
  pointer-events: none;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr);
  gap: clamp(var(--s-8), 6vw, var(--s-11));
  align-items: center;
}

.hero-copy { max-width: 760px; }
.hero-copy .kicker { color: var(--c-gold); }
.hero-copy .t-hero { max-width: 850px; }
.hero-copy .t-lead { max-width: 680px; color: rgba(255,255,255,.78); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero-actions .btn-outline { --btn-color: var(--c-white); --btn-border: rgba(255,255,255,.6); --btn-hover-bg: var(--c-white); --btn-hover-color: var(--c-text); --btn-hover-border: var(--c-white); }

.hero-media {
  position: relative;
  min-height: 560px;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0,0,0,.32);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.35)); }

.hero-tag {
  position: absolute;
  z-index: 2;
  left: var(--s-5);
  bottom: var(--s-5);
  max-width: 360px;
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-md);
  background: rgba(255,255,255,.95);
  color: var(--c-text);
  box-shadow: var(--sh-lg);
}
.hero-tag strong { display: block; font-size: var(--fs-18); line-height: 1.2; }
.hero-tag span { display: block; margin-top: var(--s-1); color: var(--c-text-soft); font-size: var(--fs-14); line-height: 1.45; }

.quick-strip { position: relative; z-index: 3; margin-top: -34px; }
.quick-strip__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-surface);
  box-shadow: var(--sh-lg);
}
.quick-item { padding: var(--s-5); border-right: 1px solid var(--c-border); }
.quick-item:last-child { border-right: 0; }
.quick-item strong { display: block; font-size: var(--fs-16); line-height: 1.25; }
.quick-item span { display: block; margin-top: var(--s-1); color: var(--c-muted); font-size: var(--fs-14); line-height: 1.45; }

.section-head { max-width: 850px; margin-bottom: var(--s-8); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .t-h1, .section-head .t-h2 { margin-top: var(--s-2); }
.section-head .lede { margin-top: var(--s-4); }

.problem-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s-5);
}
.problem-card {
  min-height: 245px;
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: var(--r-lg);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  position: relative;
  overflow: hidden;
}
.problem-card:nth-child(1), .problem-card:nth-child(4) { grid-column: span 5; }
.problem-card:nth-child(2), .problem-card:nth-child(3) { grid-column: span 7; }
.problem-card.has-photo { min-height: 340px; color: var(--c-white); border: 0; }
.problem-card.has-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.problem-card.has-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,.02) 0%,
    rgba(0,0,0,.05) 42%,
    rgba(0,0,0,.48) 58%,
    rgba(0,0,0,.78) 72%,
    rgba(0,0,0,.96) 100%
  );
  z-index: 1;
  pointer-events: none;
}
.problem-card > :not(img) { position: relative; z-index: 2; }
.problem-card .number { margin-bottom: auto; color: var(--c-primary); font-weight: 800; letter-spacing: .12em; }
.problem-card.has-photo .number { color: var(--c-gold); }
.problem-card p { margin-top: var(--s-2); color: var(--c-text-soft); }
.problem-card.has-photo :where(.number, h3, p) {
  text-shadow: 0 1px 3px rgba(0,0,0,.95);
}
.problem-card.has-photo p { color: var(--c-white); }

.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.service-card {
  min-height: 280px;
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: color-mix(in srgb, var(--c-primary), var(--c-border) 70%); }
.service-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: var(--r-md); background: var(--c-primary-soft); color: var(--c-primary); }
.service-icon svg { width: 27px; height: 27px; }
.service-card h3 { margin-top: var(--s-6); }
.service-card p { margin-top: var(--s-3); color: var(--c-text-soft); }
.service-card .service-link { margin-top: auto; padding-top: var(--s-5); color: var(--c-text); font-weight: 700; text-decoration: none; }
.service-card .service-link::after { content: " →"; color: var(--c-primary); }

.media-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(var(--s-7), 5vw, var(--s-10));
  align-items: center;
}
.media-split.reverse { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
.media-split.reverse .split-media { order: 2; }
.split-media { position: relative; min-height: 520px; border-radius: var(--r-xl); overflow: hidden; background: var(--c-surface-2); }
.split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-media .media-badge { position: absolute; left: var(--s-5); bottom: var(--s-5); padding: 10px 14px; border-radius: var(--r-sm); background: var(--c-gold); color: var(--c-text); font-size: var(--fs-12); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.split-copy { max-width: var(--awr-max-copy); }
.split-copy .t-h1 { margin-top: var(--s-2); }
.split-copy .lede { margin-top: var(--s-4); }
.check-list { display: grid; gap: var(--s-3); margin-top: var(--s-6); padding: 0; list-style: none; }
.check-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--s-3); color: var(--c-text-soft); }
.check-list li::before { content: "✓"; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--c-primary-soft); color: var(--c-primary); font-size: 13px; font-weight: 800; }

.anatomy-wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); gap: var(--s-8); align-items: stretch; }
.window-anatomy { position: relative; min-height: 580px; padding: clamp(var(--s-6), 5vw, var(--s-10)); border-radius: var(--r-xl); background: var(--awr-ink); overflow: hidden; }
.window-frame { position: absolute; inset: 11% 15%; border: 18px solid #d8b58c; box-shadow: inset 0 0 0 3px rgba(255,255,255,.3); }
.window-frame::before, .window-frame::after { content: ""; position: absolute; background: #d8b58c; }
.window-frame::before { left: calc(50% - 7px); top: 0; bottom: 0; width: 14px; }
.window-frame::after { top: calc(50% - 7px); left: 0; right: 0; height: 14px; }
.window-sill {
  position: absolute;
  z-index: 2;
  left: 11%;
  right: 11%;
  bottom: 7.5%;
  height: 30px;
  border-radius: 2px 2px 4px 4px;
  background: #c99f6b;
  box-shadow:
    inset 0 3px 0 rgba(255,255,255,.22),
    0 5px 0 rgba(0,0,0,.18);
}
.window-sill::after {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: -7px;
  height: 7px;
  border-radius: 0 0 3px 3px;
  background: #b98d59;
}
.window-glass { position: absolute; inset: 17% 20%; background: linear-gradient(135deg, #b7c7d3, #eef6fb 46%, #aabfca); box-shadow: inset 0 0 45px rgba(255,255,255,.65); }
.anatomy-label { position: absolute; z-index: 3; display: flex; align-items: center; gap: var(--s-2); color: var(--c-white); font-size: var(--fs-14); font-weight: 700; }
.anatomy-label::before { content: ""; width: 42px; height: 2px; background: var(--c-primary); }
/* Connector direction follows the component: left labels point right,
   right labels point left toward the window instead of away from it. */
.anatomy-label.l1 { top: 12%; left: 3%; flex-direction: row-reverse; }
.anatomy-label.l2 { top: 39%; right: 3%; }
.anatomy-label.l3 { bottom: 9%; left: 3%; flex-direction: row-reverse; }
.anatomy-label.l4 { bottom: 26%; right: 2%; }

.component-list { display: grid; gap: var(--s-3); }
.component-item { padding: var(--s-5); border-radius: var(--r-md); background: var(--c-surface); border: 1px solid var(--c-border); }
.component-item strong { display: block; font-size: var(--fs-18); line-height: 1.2; }
.component-item span { display: block; margin-top: var(--s-2); color: var(--c-text-soft); }

.type-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.type-item { min-height: 160px; padding: var(--s-5); display: flex; flex-direction: column; justify-content: space-between; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-md); }
.type-window { width: 62px; height: 68px; border: 5px solid var(--c-dark-2); position: relative; background: linear-gradient(135deg, #dce8ee, #f8fbfc); }
.type-window.split-v::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; background: var(--c-dark-2); transform: translateX(-50%); }
.type-window.split-h::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; background: var(--c-dark-2); transform: translateY(-50%); }
.type-window.cross::before, .type-window.cross::after { content: ""; position: absolute; background: var(--c-dark-2); }
.type-window.cross::before { left: 50%; top: 0; bottom: 0; width: 4px; transform: translateX(-50%); }
.type-window.cross::after { top: 50%; left: 0; right: 0; height: 4px; transform: translateY(-50%); }
.type-item strong { margin-top: var(--s-5); }

.decision-section { background: var(--awr-ink); color: var(--c-white); }
.decision-section .section-head .lede { color: rgba(255,255,255,.72); }
.decision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
.decision-card { padding: clamp(var(--s-6), 4vw, var(--s-8)); border-radius: var(--r-xl); background: var(--awr-ink-2); border: 1px solid rgba(255,255,255,.12); }
.decision-card.repair { border-top: 5px solid var(--c-gold); }
.decision-card.replace { border-top: 5px solid var(--c-primary); }
.decision-card p { margin-top: var(--s-3); color: rgba(255,255,255,.72); }
.decision-card ul { margin-top: var(--s-5); padding-left: var(--s-6); color: rgba(255,255,255,.86); }
.decision-card li + li { margin-top: var(--s-2); }

.brand-band { overflow: hidden; border-block: 1px solid var(--c-border); background: var(--c-surface); }
.brand-row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); padding-block: var(--s-6); }
.brand-pill { padding: 11px 16px; border-radius: 999px; border: 1px solid var(--c-border); background: var(--c-surface-2); color: var(--c-text-soft); font-size: var(--fs-14); font-weight: 700; }

.commercial-panel { position: relative; overflow: hidden; border-radius: var(--r-xl); min-height: 560px; background: var(--awr-ink); color: var(--c-white); }
.commercial-panel img { position: absolute; inset: 0; width: 58%; height: 100%; object-fit: cover; }
.commercial-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(32,33,38,.04) 25%, rgba(32,33,38,.98) 61%); }
.commercial-copy { position: relative; z-index: 2; width: 47%; margin-left: auto; padding: clamp(var(--s-7), 6vw, var(--s-11)); }
.commercial-copy .lede { color: rgba(255,255,255,.82); }
.commercial-copy .check-list li { color: rgba(255,255,255,.82); }

.process-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.process-step { position: relative; padding: var(--s-6); border-top: 1px solid var(--c-border); }
.process-step .step-no { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--c-primary); color: var(--c-white); font-weight: 800; }
.process-step h3 { margin-top: var(--s-5); }
.process-step p { margin-top: var(--s-2); color: var(--c-text-soft); }

.reason-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.reason { padding: var(--s-6); border-left: 4px solid var(--c-gold); background: var(--c-surface); }
.reason h3 { margin-top: var(--s-4); }
.reason p { margin-top: var(--s-2); color: var(--c-text-soft); }
.reason strong { color: var(--c-primary); font-size: var(--fs-12); letter-spacing: .12em; text-transform: uppercase; }

.local-panel { display: grid; grid-template-columns: .85fr 1.15fr; gap: 0; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--c-border); background: var(--c-surface); }
.local-map-graphic { min-height: 420px; position: relative; background: linear-gradient(135deg, #eceff2, #d8dde4); overflow: hidden; }
.local-map-graphic::before { content: ""; position: absolute; inset: -15%; background: repeating-linear-gradient(28deg, transparent 0 46px, rgba(255,255,255,.68) 46px 52px), repeating-linear-gradient(118deg, transparent 0 70px, rgba(255,255,255,.55) 70px 76px); transform: rotate(-4deg); }
.local-pin { position: absolute; left: 53%; top: 47%; width: 54px; height: 54px; border-radius: 50% 50% 50% 0; background: var(--c-primary); transform: rotate(-45deg); box-shadow: 0 8px 18px rgba(255,99,71,.3); }
.local-pin::after { content: ""; position: absolute; width: 18px; height: 18px; left: 18px; top: 18px; border-radius: 50%; background: var(--c-white); }
.local-label { position: absolute; left: 12%; top: 18%; padding: 9px 12px; background: rgba(255,255,255,.92); border-radius: var(--r-sm); font-weight: 800; box-shadow: var(--sh-sm); }
.local-copy { padding: clamp(var(--s-7), 5vw, var(--s-10)); }
.local-copy .lede { margin-top: var(--s-4); }

.faq-list { gap: var(--s-3); }
.faq-question { padding: var(--s-5); font-size: var(--fs-18); font-weight: 700; }
.faq-answer { padding: 0 var(--s-5) var(--s-5); color: var(--c-text-soft); }

.final-cta { position: relative; overflow: hidden; background: var(--c-primary); color: var(--c-white); }
.final-cta::after { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -170px; border: 78px solid rgba(255,255,255,.10); border-radius: 50%; }
.cta-layout { position: relative; z-index: 2; display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--s-9); align-items: start; }
.cta-copy .kicker { color: var(--c-gold-soft); }
.cta-copy p { margin-top: var(--s-4); color: rgba(255,255,255,.82); }
.cta-note { margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid rgba(255,255,255,.28); font-size: var(--fs-14); color: rgba(255,255,255,.76); }

.estimate-card { padding: clamp(var(--s-5), 4vw, var(--s-7)); border-radius: var(--r-lg); background: var(--c-white); color: var(--c-text); box-shadow: var(--sh-lg); }
.estimate-card h2 { margin-bottom: var(--s-4); }
.estimate-card .form-help { margin-top: var(--s-3); }
.form-status { display: none; margin-top: var(--s-4); padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); background: var(--c-warning); color: var(--c-text); font-size: var(--fs-14); }
.form-status.is-visible { display: block; }

.site-footer { padding: var(--s-8) 0; background: #17181c; color: var(--c-white); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: var(--s-8); }
.site-footer p, .site-footer a { color: rgba(255,255,255,.65); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--c-white); }
.footer-links { display: grid; gap: var(--s-2); }
.footer-bottom { margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.48); font-size: var(--fs-12); }

@media (max-width: 1180px) {
  .hero-layout { grid-template-columns: 1fr 1fr; gap: var(--s-7); }
  .hero-media { min-height: 500px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .type-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .process-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .quick-strip__inner { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .quick-item:nth-child(2) { border-right: 0; }
  .quick-item:nth-child(-n+2) { border-bottom: 1px solid var(--c-border); }
}

@media (max-width: 900px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav { display: none; position: absolute; top: 74px; left: 0; right: 0; padding: var(--s-5) var(--page-x); flex-direction: column; align-items: stretch; gap: var(--s-3); background: var(--c-surface); border-bottom: 1px solid var(--c-border); box-shadow: var(--sh-md); }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: var(--s-2) 0; }
  .nav .btn { width: 100%; }
  .hero-layout, .media-split, .media-split.reverse, .anatomy-wrap, .local-panel, .cta-layout { grid-template-columns: 1fr; }
  .media-split.reverse .split-media { order: 0; }
  .hero-media { min-height: 450px; }
  .commercial-panel img { width: 100%; height: 52%; }
  .commercial-panel::after { background: linear-gradient(180deg, rgba(32,33,38,.1) 15%, rgba(32,33,38,.98) 56%); }
  .commercial-copy { width: 100%; margin-top: 280px; }
  .problem-card:nth-child(n) { grid-column: span 6; }
  .reason-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .site-header__inner { min-height: 66px; }
  .nav { top: 66px; }
  .brand__text span { display: none; }
  .hero-main { padding-top: var(--s-8); }
  .hero-layout { display: flex; flex-direction: column; }
  .hero-copy { width: 100%; }
  .hero-media { width: 100%; min-height: 390px; }
  .quick-strip { margin-top: -20px; }
  .quick-strip__inner { grid-template-columns: 1fr; }
  .quick-item { border-right: 0; border-bottom: 1px solid var(--c-border); }
  .quick-item:last-child { border-bottom: 0; }
  .problem-grid { display: grid; grid-template-columns: 1fr; }
  .problem-card:nth-child(n) { grid-column: auto; min-height: 230px; }
  .problem-card.has-photo { min-height: 320px; }
  .service-grid, .decision-grid, .type-grid, .process-grid, .footer-grid { grid-template-columns: 1fr; }
  .split-media { min-height: 380px; }
  .window-anatomy { min-height: 450px; }
  .anatomy-label { font-size: 12px; }
  .anatomy-label::before { width: 25px; }
  .commercial-panel { min-height: 690px; }
  .commercial-panel img { height: 45%; }
  .commercial-copy { margin-top: 290px; }
  .local-map-graphic { min-height: 300px; }
}

@media (max-width: 480px) {
  .brand__mark { width: 38px; height: 38px; }
  .hero-media { min-height: 330px; }
  .hero-tag { left: var(--s-3); right: var(--s-3); bottom: var(--s-3); }
  .problem-card, .service-card { padding: var(--s-5); }
  .window-frame { inset: 13% 16%; border-width: 12px; }
  .window-frame::before { width: 10px; left: calc(50% - 5px); }
  .window-frame::after { height: 10px; top: calc(50% - 5px); }
  .window-sill { left: 12%; right: 12%; bottom: 8%; height: 22px; }
  .window-sill::after { bottom: -5px; height: 5px; }
  .window-glass { inset: 18% 21%; }
  .anatomy-label.l3 { bottom: 9%; }
  .anatomy-label.l2, .anatomy-label.l4 { right: 1%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .service-card { transition: none; }
}
