/* ============================================================
   AZIZ HOMES — Architectural Design
   Style: Exaggerated Minimalism  ·  Brand: #a62e2f / #483f42
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --red:        #a62e2f;
  --red-600:    #8f2627;
  --red-700:    #77201f;
  --charcoal:   #483f42;
  --charcoal-900:#2c2528;
  --ink:        #241f21;

  /* Neutrals (warm) */
  --bg:         #ffffff;
  --bg-warm:    #f6f2f0;
  --bg-warm-2:  #efe9e6;
  --card:       #ffffff;
  --muted:      #6f6569;
  --border:     #e7e0dd;
  --border-dk:  rgba(255,255,255,.16);

  /* On-dark */
  --on-dark:    #f4efed;
  --on-dark-mut:#c9bfbc;

  /* Type */
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Spacing scale */
  --sp-1: 8px;  --sp-2: 16px; --sp-3: 24px; --sp-4: 32px;
  --sp-5: 48px; --sp-6: 64px; --sp-7: 96px; --sp-8: 128px;

  --maxw: 1280px;
  --radius: 8px;
  --radius-lg: 18px;
  --shadow: 0 18px 50px -24px rgba(40,32,34,.35);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 64px); }
.section { padding-block: clamp(64px, 10vw, 128px); }
.section--warm { background: var(--bg-warm); }
.section--dark { background: var(--charcoal-900); color: var(--on-dark); }

/* ---------- Type ---------- */
h1,h2,h3,h4 { line-height: 1.04; letter-spacing: -0.03em; font-weight: 800; color: var(--ink); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--on-dark); }
.display  { font-size: clamp(2.7rem, 8vw, 6.5rem); font-weight: 800; letter-spacing: -0.045em; }
.h-xl     { font-size: clamp(2.2rem, 5.2vw, 4rem); }
.h-lg     { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.h-md     { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 700; }
.lead     { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 60ch; }
.section--dark .lead { color: var(--on-dark-mut); }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--red);
}
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(166,46,47,.15); }
.section--dark .kicker { color: #e6a3a0; }
.section--dark .kicker::before { background: #e6a3a0; box-shadow: 0 0 0 4px rgba(230,163,160,.18); }

/* Beacon pulse on the Instant Quote hero dot — center stays put, ring emanates outward */
.page-hero .kicker { position: relative; }
.page-hero .kicker::before { position: relative; z-index: 1; }
.page-hero .kicker::after {
  content: ""; position: absolute; left: 4px; top: 50%; z-index: 0;
  width: 8px; height: 8px; border-radius: 50%;
  border: 1.5px solid var(--red);
  transform: translate(-50%, -50%) scale(1);
  animation: beacon 2.4s ease-out infinite; pointer-events: none;
}
@keyframes beacon {
  0%   { opacity: .55; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0;   transform: translate(-50%, -50%) scale(3); }
}
@media (prefers-reduced-motion: reduce) {
  .page-hero .kicker::after, .hero__inner .kicker::after { animation: none; opacity: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: .95rem; letter-spacing: .01em; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-600); transform: translateY(-2px); }
.btn--dark { background: var(--charcoal); color: #fff; }
.btn--dark:hover { background: var(--charcoal-900); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--onlight-outline { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--onlight-outline:hover { background: rgba(255,255,255,.12); }

.linkarrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--red); }
.linkarrow svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.linkarrow:hover svg { transform: translateX(5px); }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease);
  padding-block: 18px;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 42px; width: auto; transition: height .35s var(--ease); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; color: var(--ink); }
.brand__sub  { font-size: .62rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

/* Over-hero (transparent) state */
.header--transparent .brand__name { color: #fff; }
.header--transparent .brand__sub  { color: rgba(255,255,255,.75); }
.header--transparent .nav a { color: rgba(255,255,255,.92); }
.header--transparent .logo-dark { display: none; }
.header--transparent .logo-light { display: block; }
.logo-light { display: none; }

/* Scrolled / solid state */
.header.scrolled { background: rgba(255,255,255,.92); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--border); padding-block: 12px; }
.header.scrolled .brand__name { color: var(--ink); }
.header.scrolled .brand__sub { color: var(--muted); }
.header.scrolled .nav a { color: var(--ink); }
.header.scrolled .brand img { height: 36px; }
.header.scrolled .logo-dark { display: block; }
.header.scrolled .logo-light { display: none; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a { font-weight: 600; font-size: .98rem; position: relative; padding: 4px 0; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--red); transition: width .3s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.nav a[aria-current="page"] { color: var(--red) !important; }

.header__cta { display: flex; align-items: center; gap: 14px; }

/* Mobile toggle */
.navtoggle { display: none; width: 46px; height: 46px; border: none; background: transparent; position: relative; }
.navtoggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.navtoggle span:nth-child(1){ top: 17px; } .navtoggle span:nth-child(2){ top: 23px; } .navtoggle span:nth-child(3){ top: 29px; }
.header--transparent .navtoggle { color: #fff; }
.header.scrolled .navtoggle { color: var(--ink); }
body.nav-open .navtoggle span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
body.nav-open .navtoggle span:nth-child(2){ opacity: 0; }
body.nav-open .navtoggle span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu */
.mobilemenu {
  position: fixed; inset: 0; z-index: 90; background: var(--charcoal-900); color: #fff;
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 0 32px;
  opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
.mobilemenu nav { display: flex; flex-direction: column; align-items: center; }
body.nav-open .mobilemenu { opacity: 1; visibility: visible; transform: none; }
.mobilemenu a { font-size: clamp(2rem, 9vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; padding: 10px 0; color: #fff; }
.mobilemenu a:hover { color: #e6a3a0; }
.mobilemenu .mm-meta { margin-top: 40px; color: var(--on-dark-mut); font-size: 1rem; line-height: 2; }
.mobilemenu .mm-meta a { font-size: 1rem; font-weight: 600; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; background: var(--charcoal-900); }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(36,31,33,.35) 0%, rgba(36,31,33,.12) 40%, rgba(36,31,33,.82) 100%);
}
.hero__inner { padding-bottom: clamp(48px, 8vw, 110px); padding-top: 140px; width: 100%; }
.hero__inner .kicker { color: #fff; position: relative; }
.hero__inner .kicker::before { background: var(--red); box-shadow: 0 0 0 4px rgba(166,46,47,.2); position: relative; z-index: 1; }
.hero__inner .kicker::after {
  content: ""; position: absolute; left: 4px; top: 50%; z-index: 0;
  width: 8px; height: 8px; border-radius: 50%;
  border: 1.5px solid var(--red);
  transform: translate(-50%, -50%) scale(1);
  animation: beacon 2.4s ease-out infinite; pointer-events: none;
}
.hero h1 { color: #fff; margin-top: 18px; max-width: 16ch; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; margin-top: 34px; }
.hero__sub { color: rgba(255,255,255,.9); max-width: 46ch; font-size: 1.1rem; }
.hero__scroll { position: absolute; right: clamp(20px,5vw,64px); top: 46%; writing-mode: vertical-rl; letter-spacing: .2em; text-transform: uppercase; font-size: .72rem; color: rgba(255,255,255,.8); }

/* ============================================================
   STAT STRIP
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.stat { background: var(--bg); padding: clamp(24px,3vw,40px); }
.stat__num { font-size: clamp(2.2rem,4vw,3.4rem); font-weight: 800; letter-spacing: -.04em; color: var(--red); }
.stat__label { color: var(--muted); font-size: .95rem; margin-top: 6px; }

/* ============================================================
   SPLIT / INTRO
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,6vw,88px); align-items: center; }
.split--top { align-items: start; }
.eyebrow-row { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.stack > * + * { margin-top: 22px; }

/* ============================================================
   SERVICES
   ============================================================ */
.svc-list { border-top: 1px solid var(--border); }
.section--dark .svc-list { border-color: var(--border-dk); }
.svc {
  display: grid; grid-template-columns: 90px 1fr auto; gap: clamp(16px,3vw,40px); align-items: center;
  padding: clamp(26px,3vw,40px) 0; border-bottom: 1px solid var(--border);
  transition: padding-left .35s var(--ease);
}
.section--dark .svc { border-color: var(--border-dk); }
.svc:hover { padding-left: 12px; }
.svc__no { font-size: 1rem; font-weight: 700; color: var(--red); letter-spacing: .1em; }
.svc__body h3 { margin-bottom: 8px; }
.svc__body p { color: var(--muted); max-width: 60ch; }
.section--dark .svc__body p { color: var(--on-dark-mut); }
.svc__icon { width: 52px; height: 52px; color: var(--charcoal); flex: none; opacity: .9; }
.section--dark .svc__icon { color: #e6a3a0; }
@media (max-width: 720px){ .svc { grid-template-columns: 56px 1fr; } .svc__icon { display: none; } }

/* ============================================================
   PROJECTS GRID
   ============================================================ */
.proj-grid { display: grid; grid-template-columns: repeat(12,1fr); gap: clamp(14px,2vw,26px); }
.pcard { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--bg-warm-2); grid-column: span 6; }
.pcard--tall { grid-row: span 2; }
.pcard--wide { grid-column: span 8; }
.pcard--third { grid-column: span 4; }
.pcard__img { aspect-ratio: 4/3; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pcard--tall .pcard__img { aspect-ratio: 3/4; }
.pcard:hover .pcard__img { transform: scale(1.06); }
.pcard__overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(20px,3vw,32px); color: #fff;
  background: linear-gradient(180deg, rgba(36,31,33,0) 35%, rgba(36,31,33,.85) 100%);
  opacity: .9; transition: opacity .4s var(--ease);
}
.pcard__tag { font-size: .72rem; text-transform: uppercase; letter-spacing: .18em; color: rgba(255,255,255,.85); font-weight: 700; }
.pcard__title { font-size: clamp(1.2rem,1.8vw,1.6rem); font-weight: 800; letter-spacing: -.02em; margin-top: 6px; }
.pcard__meta { color: rgba(255,255,255,.8); font-size: .9rem; margin-top: 4px; opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.pcard:hover .pcard__meta { opacity: 1; transform: none; }
@media (max-width: 900px){
  .pcard, .pcard--wide, .pcard--third { grid-column: span 6; }
  .pcard--tall { grid-row: auto; }
  .pcard--tall .pcard__img { aspect-ratio: 4/3; }
}
@media (max-width: 560px){ .pcard, .pcard--wide, .pcard--third { grid-column: span 12; } }

/* Filter chips */
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--border);
  background: transparent; font-weight: 600; font-size: .9rem; color: var(--muted);
  transition: all .25s var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--red); color: #fff; padding: clamp(40px,6vw,80px); }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border: 40px solid rgba(255,255,255,.08); border-radius: 50%; }
.cta-band h2 { color: #fff; max-width: 20ch; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 52ch; }

/* ============================================================
   PROCESS
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(20px,3vw,32px); counter-reset: step; }
.step { position: relative; padding-top: 28px; border-top: 2px solid var(--red); }
.step__no { font-size: .8rem; font-weight: 800; letter-spacing: .15em; color: var(--red); }
.step h3 { font-size: 1.2rem; margin: 12px 0 8px; }
.step p { color: var(--muted); font-size: .96rem; }
.section--dark .step p { color: var(--on-dark-mut); }
@media (max-width: 860px){ .steps { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px){ .steps { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--charcoal-900); color: var(--on-dark); padding-block: clamp(56px,7vw,88px) 32px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(28px,4vw,56px); }
.footer h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .16em; color: var(--on-dark-mut); font-weight: 700; margin-bottom: 18px; }
.footer a { color: var(--on-dark); }
.footer a:hover { color: #e6a3a0; }
.footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer .brand img { height: 46px; }
.footer .brand__name { color: #fff; }
.footer__about { color: var(--on-dark-mut); max-width: 34ch; margin-top: 18px; line-height: 1.7; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: clamp(40px,5vw,64px); padding-top: 24px; border-top: 1px solid var(--border-dk); color: var(--on-dark-mut); font-size: .88rem; }
.footer__social { display: flex; gap: 12px; }
.footer__social a { width: 42px; height: 42px; border: 1px solid var(--border-dk); border-radius: 50%; display: grid; place-items: center; transition: all .25s var(--ease); }
.footer__social a:hover { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-2px); }
.footer__social svg { width: 18px; height: 18px; }
@media (max-width: 860px){ .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px){ .footer__grid { grid-template-columns: 1fr; } }

/* ============================================================
   QUOTE PAGE
   ============================================================ */
.page-hero { padding-top: 150px; padding-bottom: clamp(40px,6vw,72px); background: var(--charcoal-900); color: var(--on-dark); }
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero .lead { color: var(--on-dark-mut); margin-top: 18px; }

.quote-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px,4vw,56px); align-items: start; }
@media (max-width: 960px){ .quote-layout { grid-template-columns: 1fr; } .quote-layout > aside { position: static; } .estimate { max-height: none; overflow: visible; } }

.qform { display: flex; flex-direction: column; gap: 34px; }
.qgroup__legend { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--red); font-weight: 800; margin-bottom: 16px; display: block; }
.field { margin-bottom: 20px; }
.field > label { display: block; font-weight: 700; margin-bottom: 8px; font-size: .98rem; }
.field .hint { color: var(--muted); font-size: .86rem; font-weight: 500; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=number], .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: inherit; font-size: 1rem; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(166,46,47,.12); }
.field textarea { resize: vertical; min-height: 110px; }
.field .err { color: var(--red-600); font-size: .85rem; font-weight: 600; margin-top: 6px; display: none; }
.field.invalid input, .field.invalid select { border-color: var(--red-600); }
.field.invalid .err { display: block; }

/* Project-type icon cards */
.typegrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
@media (max-width: 620px){ .typegrid { grid-template-columns: 1fr; } }
.opt--icon label { align-items: center; text-align: center; gap: 10px; }
.opt__ic { width: 30px; height: 30px; flex: none; color: var(--charcoal); transition: color .2s var(--ease); }
.opt--icon input:checked + label .opt__ic { color: var(--red); }
.opt__tx { display: flex; flex-direction: column; gap: 3px; align-items: center; min-width: 0; }

/* Conditional sub-question group */
.subgroup { margin-top: 20px; padding: clamp(16px,2.5vw,22px); border: 1.5px dashed var(--border); border-radius: var(--radius); background: rgba(166,46,47,.04); }
.subgroup[hidden] { display: none; }
.field[hidden] { display: none; }

/* Segmented option cards */
.optgrid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
@media (max-width: 520px){ .optgrid { grid-template-columns: 1fr; } }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt label {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1.5px solid var(--border);
  border-radius: var(--radius); cursor: pointer; transition: all .2s var(--ease); height: 100%;
}
.opt label .t { font-weight: 700; }
.opt label .d { color: var(--muted); font-size: .85rem; }
.opt input:hover + label { border-color: var(--charcoal); }
.opt input:checked + label { border-color: var(--red); background: rgba(166,46,47,.05); box-shadow: 0 0 0 3px rgba(166,46,47,.1); }
.opt input:focus-visible + label { outline: 3px solid var(--red); outline-offset: 2px; }

/* Range slider */
.range-row { display: flex; align-items: center; gap: 16px; }
.range-row input[type=range] { flex: 1; accent-color: var(--red); height: 6px; }
.range-val { min-width: 130px; text-align: right; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }

.lot-warn { display: block; color: var(--red-600); font-weight: 600; font-size: .85rem; margin-top: 6px; }
.lot-warn[hidden] { display: none; }
.form-error { color: var(--red-600); font-weight: 600; font-size: .95rem; background: rgba(166,46,47,.07); border-left: 3px solid var(--red); padding: 12px 14px; border-radius: var(--radius); }
.form-error[hidden] { display: none; }

/* Beds & baths */
.bb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.bb-sub { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }

/* Address autocomplete */
.autocomplete { position: relative; }
.autocomplete__list {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 30;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); list-style: none; margin: 0; padding: 6px; max-height: 300px; overflow-y: auto;
}
.autocomplete__list[hidden] { display: none; }
.autocomplete__item { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 6px; cursor: pointer; }
.autocomplete__item:hover, .autocomplete__item.active { background: var(--bg-warm); }
.ac-main { font-weight: 600; font-size: .95rem; color: var(--ink); }
.ac-sub { color: var(--muted); font-size: .82rem; }
.autocomplete__empty { padding: 12px 12px; color: var(--muted); font-size: .88rem; line-height: 1.4; }

/* File upload */
.filedrop {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  padding: 26px 20px; border: 1.5px dashed var(--border); border-radius: var(--radius);
  cursor: pointer; transition: border-color .2s var(--ease), background .2s var(--ease); background: #fff;
}
.filedrop:hover, .filedrop.drag { border-color: var(--red); background: rgba(166,46,47,.04); }
.filedrop svg { width: 30px; height: 30px; color: var(--red); }
.filedrop__title { font-weight: 700; }
.filedrop__hint { color: var(--muted); font-size: .85rem; }
.photo-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px,1fr)); gap: 10px; margin-top: 14px; }
.photo-preview:empty { margin-top: 0; }
.photo-thumb { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-thumb button {
  position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border: none; border-radius: 50%;
  background: rgba(36,31,33,.8); color: #fff; display: grid; place-items: center; cursor: pointer; line-height: 1;
}
.photo-thumb button:hover { background: var(--red); }
.photo-thumb button svg { width: 13px; height: 13px; }

/* Estimate panel */
.quote-layout > aside { position: sticky; top: 96px; align-self: start; }
.estimate { background: var(--charcoal-900); color: #fff; border-radius: var(--radius-lg); padding: clamp(26px,3vw,36px); box-shadow: var(--shadow); max-height: calc(100vh - 112px); overflow-y: auto; }
.estimate h3 { color: #fff; }
.estimate__label { font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; color: var(--on-dark-mut); font-weight: 700; }
.estimate__range { font-size: clamp(1.9rem,4vw,2.8rem); font-weight: 800; letter-spacing: -.03em; color: #fff; margin: 10px 0 4px; line-height: 1.1; }
.estimate__range .sep { color: #e6a3a0; margin: 0 6px; }
.estimate__range--eval { font-size: clamp(1.35rem,2.6vw,1.7rem); color: #e6a3a0; }
.estimate__sub { color: var(--on-dark-mut); font-size: .92rem; }
.estimate__scope { color: #e6a3a0; font-size: .82rem; letter-spacing: .01em; margin-top: 6px; }

/* Feasibility page */
.feas-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }
@media (max-width: 640px){ .feas-tiles { grid-template-columns: repeat(2, 1fr); } }
.feas-tile { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg); background: rgba(44,37,40,.82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--on-dark); transition: border-color .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease); }
.feas-tile__ic { width: 26px; height: 26px; color: rgba(255,255,255,.7); transition: color .35s var(--ease); }
.feas-tile__title { font-weight: 800; font-size: .98rem; letter-spacing: -.01em; color: #fff; line-height: 1.2; }
.feas-tile__status { font-size: .8rem; color: rgba(255,255,255,.6); transition: color .35s var(--ease); }
.feas-tile.is-active { border-color: var(--red); background: rgba(44,37,40,.9); box-shadow: var(--shadow); transform: translateY(-2px); }
.feas-tile.is-active .feas-tile__ic { color: #e6a3a0; }
.feas-tile.is-active .feas-tile__status { color: #e6a3a0; font-weight: 700; }
.feas-tile--wide { grid-column: span 2; }
@media (max-width: 640px){ .feas-tile--wide { grid-column: span 2; } }
.feas-tile--expandable { cursor: pointer; }
.feas-tile__chev { position: absolute; top: 16px; right: 14px; width: 16px; height: 16px; color: rgba(255,255,255,.55); transition: transform .3s var(--ease), color .35s var(--ease); }
.feas-tile.is-open .feas-tile__chev { transform: rotate(180deg); color: #fff; }
.feas-tile__detail { display: flex; flex-direction: column; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.16); }
.feas-tile__detail[hidden] { display: none; }
.feas-detail-head { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; color: rgba(255,255,255,.6); margin-bottom: 4px; }
.feas-tile__top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.feas-tile__main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.feas-stat { text-align: right; flex: 0 0 auto; padding-right: 20px; }
.feas-stat__num { display: block; font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; color: #e6a3a0; line-height: 1.05; white-space: nowrap; }
.feas-stat__label { display: block; font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: rgba(255,255,255,.55); margin-top: 3px; }
.feas-drow { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: .82rem; }
.feas-drow + .feas-drow { border-top: 1px solid rgba(255,255,255,.12); }
.feas-drow span { color: rgba(255,255,255,.6); }
.feas-drow b { color: #fff; font-weight: 700; text-align: right; }
.feas-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; }
.feas-row + .feas-row { border-top: 1px solid var(--border); }
.feas-row span { color: var(--muted); font-size: .95rem; }
.feas-row b { color: var(--ink); font-weight: 800; }

/* Featured project spotlight (projects page) */
.feature { margin-bottom: clamp(36px,5vw,60px); }
.feature__head { max-width: 62ch; margin-bottom: clamp(18px,2.6vw,26px); }
.feature__tag { display: inline-block; font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 800; color: var(--red); }
.feature__title { font-size: clamp(1.5rem,3vw,2.3rem); font-weight: 800; letter-spacing: -.02em; margin: 8px 0 8px; color: var(--ink); }
.feature__desc { color: var(--muted); font-size: 1.02rem; line-height: 1.6; max-width: 56ch; margin: 0; }
.feature__note { display: inline-block; margin-top: 12px; font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 700; }
.feature__media { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px,1.4vw,16px); }
.feature__media a { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; }
.feature__media a:first-child { grid-column: 1 / 3; grid-row: 1 / 3; aspect-ratio: auto; }
.feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.feature__media a:hover img { transform: scale(1.04); }
@media (max-width: 820px){
  .feature__media { grid-template-columns: repeat(2, 1fr); }
  .feature__media a:first-child { grid-column: 1 / 3; grid-row: auto; aspect-ratio: 16/10; }
}

/* Additional projects */
.addproj { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; padding: 12px 18px; background: transparent; color: var(--red); border: 1.5px dashed var(--red); border-radius: var(--radius); font-weight: 700; font-size: .95rem; cursor: pointer; transition: background .18s ease, color .18s ease; }
.addproj:hover { background: var(--red); color: #fff; }
.addproj[disabled] { opacity: .4; cursor: not-allowed; }
.addproj[disabled]:hover { background: transparent; color: var(--red); }
.addproj__plus { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid currentColor; font-size: 1.1rem; line-height: 1; font-weight: 700; }
.addproj-card { position: relative; margin-top: 18px; padding: 20px; padding-right: 46px; background: var(--bg-warm); border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; gap: 16px; }
.addproj-card .addproj-remove { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--border); border-radius: 50%; color: var(--charcoal); font-size: 1.1rem; line-height: 1; cursor: pointer; transition: background .16s ease, color .16s ease, border-color .16s ease; }
.addproj-card .addproj-remove:hover { background: var(--red); border-color: var(--red); color: #fff; }
.addproj-card .addproj-num { font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 800; color: var(--red); }
.addproj-fee { color: var(--charcoal); font-weight: 600; }
.estimate__break { margin: 22px 0; border-top: 1px solid var(--border-dk); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.estimate__metrics { display: flex; flex-direction: column; gap: 14px; margin: 0 0 4px; padding-top: 20px; border-top: 1px solid var(--border-dk); }
.estimate__section { font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 800; color: var(--on-dark-mut); margin-bottom: -4px; }
.estimate__metric { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.estimate__metric-label { color: var(--on-dark-mut); font-size: .9rem; display: inline-flex; align-items: center; gap: 8px; }
.estimate__metric-ic { width: 16px; height: 16px; flex: 0 0 auto; color: #fff; }
.estimate__info { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; padding: 0; flex: 0 0 auto; background: transparent; border: 0; color: var(--on-dark-mut); cursor: pointer; transition: color .16s ease; vertical-align: -3px; }
.estimate__info:hover, .estimate__info[aria-expanded="true"] { color: #fff; }
.estimate__info svg { width: 15px; height: 15px; }
.estimate__infomsg { font-size: .8rem; line-height: 1.55; color: var(--on-dark-mut); background: rgba(255,255,255,.06); border-radius: var(--radius); padding: 10px 12px; margin: -4px 0 0; }
#feeInfo { margin-top: 16px; }
.estimate__metric-val { color: #fff; font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; white-space: nowrap; }
.estimate__row { display: flex; justify-content: space-between; font-size: .92rem; color: var(--on-dark-mut); }
.estimate__row b { color: #fff; font-weight: 700; }
.estimate__note { font-size: .8rem; color: var(--on-dark-mut); line-height: 1.6; margin-top: 18px; padding: 14px; background: rgba(255,255,255,.05); border-radius: var(--radius); border-left: 3px solid var(--red); }

/* Feasibility report add-on */
.estimate__report { display: block; width: 100%; text-align: left; margin: 18px 0 2px; padding: 16px 18px; background: var(--red); color: #fff; border: 1px solid var(--red); border-radius: var(--radius); cursor: pointer; transition: background .18s ease, border-color .18s ease; }
.estimate__report:hover { background: #8f2727; border-color: #8f2727; }
.estimate__report-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 800; font-size: 1rem; letter-spacing: -.01em; }
.estimate__report-title .estimate__report-arrow { flex: 0 0 auto; transition: transform .18s ease; }
.estimate__report:hover .estimate__report-arrow { transform: translateX(3px); }
.estimate__report-desc { display: block; margin-top: 6px; font-size: .82rem; line-height: 1.5; color: rgba(255,255,255,.85); font-weight: 500; }
.estimate__report.is-added { background: var(--charcoal-900); border-color: #e6a3a0; }
.estimate__report.is-added:hover { background: #2f292b; }
/* Secondary (outline) report CTA */
.estimate__report--alt { background: transparent; border-color: rgba(255,255,255,.28); }
.estimate__report--alt:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.5); }
.estimate__report--alt .estimate__report-desc { color: rgba(255,255,255,.72); }
.estimate__report--alt.is-added { background: var(--charcoal-900); border-color: #e6a3a0; }
.estimate__report--alt.is-added:hover { background: #2f292b; }

.success { display: none; text-align: center; padding: clamp(40px,6vw,72px); background: var(--bg-warm); border-radius: var(--radius-lg); }
.success.show { display: block; }
.success__icon { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; background: var(--red); display: grid; place-items: center; color: #fff; }
.success__icon svg { width: 34px; height: 34px; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn:hover, .pcard:hover .pcard__img { transform: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .split { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2,1fr); }
}
/* Hide the CTA button first (it's the widest header item) to keep the nav links visible longer */
@media (max-width: 900px){
  .header__cta .btn { display: none; }
}
@media (max-width: 720px){
  .nav { display: none; }
  .navtoggle { display: block; }
}
@media (max-width: 480px){
  body { font-size: 16px; }
  .stats { grid-template-columns: 1fr 1fr; }
}
