/* =========================================================
   ZanderPink Design — design system
   Brand: black / warm white / signature red (from the flag
   logo), walnut accents. Serif display + clean sans body.
   ========================================================= */

:root {
  --ink: #16120d;
  --ink-soft: #3d362d;
  --paper: #faf7f1;
  --cream: #f2ecdf;
  --line: rgba(22, 18, 13, .14);
  --red: #c92a21;
  --red-dark: #a71f18;
  --wood: #9a6b3f;
  --shadow: 0 20px 50px -20px rgba(22, 18, 13, .35);
  --radius: 14px;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, .display { font-family: var(--font-display); font-weight: 600; line-height: 1.12; }

.wrap { width: min(1180px, 92vw); margin: 0 auto; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 4vw;
  transition: background .35s, box-shadow .35s;
}
.site-header.scrolled, .site-header.solid {
  background: rgba(250, 247, 241, .92);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img {
  height: 62px; width: auto; object-fit: contain;
  background: #fff; border-radius: 10px; padding: 5px 12px;
  box-shadow: 0 4px 14px -6px rgba(12,10,8,.35);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.4rem; letter-spacing: .02em; line-height: 1.1;
}
.site-header.on-dark:not(.scrolled) { color: #fff; }
.foot-brand { display: flex; align-items: center; gap: 16px; }
.foot-brand .brand-name { color: #fff; font-size: 1.25rem; }
@media (max-width: 560px) {
  .brand img { height: 46px; padding: 3px 8px; }
  .brand-name { font-size: 1.05rem; }
}

.nav { display: flex; gap: 26px; align-items: center; }
.nav a { text-decoration: none; font-size: .86rem; font-weight: 500; letter-spacing: .04em; opacity: .9; }
.nav a:hover { color: var(--red); opacity: 1; }
.nav .btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: inherit; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--red); color: #fff; text-decoration: none;
  padding: 13px 26px; border-radius: 999px; border: 0;
  font-family: var(--font-body); font-size: .9rem; font-weight: 600; letter-spacing: .03em;
  cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s;
  box-shadow: 0 10px 24px -10px rgba(201, 42, 33, .55);
}
.btn:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn.ghost {
  background: transparent; color: inherit; box-shadow: none;
  border: 1px solid currentColor;
}
.btn.ghost:hover { background: rgba(22,18,13,.06); transform: translateY(-2px); }
.btn.dark { background: var(--ink); box-shadow: 0 10px 24px -12px rgba(22,18,13,.6); }
.btn.dark:hover { background: #000; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: flex-end;
  color: #fff; overflow: hidden;
}
.hero .bg { position: absolute; inset: 0; }
.hero .bg img { width: 100%; height: 100%; object-fit: cover; }
.hero .bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,10,8,.42) 0%, rgba(12,10,8,.18) 42%, rgba(12,10,8,.82) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 0 0 9vh; width: min(1180px, 92vw); margin: 0 auto; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .72rem; letter-spacing: .38em; text-transform: uppercase; font-weight: 600;
}
.kicker::before { content: ""; width: 34px; height: 2px; background: var(--red); }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); margin: 18px 0 14px; max-width: 15ch; }
.hero p { max-width: 52ch; font-size: 1.06rem; color: rgba(255,255,255,.88); }
.hero-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-meta {
  display: flex; gap: 34px; margin-top: 44px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.28); flex-wrap: wrap;
}
.hero-meta div strong { display: block; font-family: var(--font-display); font-size: 1.5rem; }
.hero-meta div span { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.72); }

/* ---------- sections ---------- */
section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-top: 14px; }
.section-head p { color: var(--ink-soft); margin-top: 12px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }

/* ---------- services grid ---------- */
.svc-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
}
.svc-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 4.6; text-decoration: none; color: #fff;
  box-shadow: 0 14px 34px -18px rgba(22,18,13,.45);
  transition: transform .3s ease, box-shadow .3s ease;
  background: var(--ink);
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.svc-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.svc-card:hover img { transform: scale(1.05); }
.svc-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(185deg, rgba(12,10,8,0) 30%, rgba(12,10,8,.88) 88%);
}
.svc-body { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 22px; }
.svc-body h3 { font-size: 1.3rem; margin-bottom: 6px; }
.svc-body p { font-size: .84rem; color: rgba(255,255,255,.82); line-height: 1.45; max-height: 0; opacity: 0; overflow: hidden; transition: all .35s ease; }
.svc-card:hover .svc-body p { max-height: 90px; opacity: 1; margin-bottom: 8px; }
.svc-body .go { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #ffb3ad; }

/* ---------- feature split ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.split .photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.split .photo img { width: 100%; height: 100%; object-fit: cover; }
.checklist { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); }
.checklist li::before { content: "✓"; color: var(--red); font-weight: 800; }

/* ---------- gallery ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 9px 18px; font-size: .84rem; font-weight: 500; cursor: pointer;
  transition: all .2s; font-family: var(--font-body);
}
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.masonry { columns: 3 320px; column-gap: 18px; }
.masonry figure {
  break-inside: avoid; margin: 0 0 18px; border-radius: 12px; overflow: hidden;
  position: relative; cursor: zoom-in; background: var(--cream);
}
.masonry img { width: 100%; transition: transform .5s ease; }
.masonry figure:hover img { transform: scale(1.04); }
.masonry figcaption {
  position: absolute; inset: auto 0 0 0; padding: 30px 16px 12px;
  background: linear-gradient(180deg, transparent, rgba(12,10,8,.78));
  color: #fff; font-size: .8rem; opacity: 0; transition: opacity .3s;
}
.masonry figure:hover figcaption { opacity: 1; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(12,10,8,.94);
  display: none; align-items: center; justify-content: center; padding: 4vh 4vw;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; object-fit: contain; }
.lightbox .lb-caption { position: absolute; bottom: 3vh; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.85); font-size: .9rem; }
.lightbox button {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.3rem; cursor: pointer;
}
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 3vh; right: 4vw; }
.lb-prev { left: 3vw; top: 50%; transform: translateY(-50%); }
.lb-next { right: 3vw; top: 50%; transform: translateY(-50%); }

/* ---------- process / area ---------- */
.dark-band { background: var(--ink); color: var(--paper); }
.dark-band .kicker { color: #fff; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 30px; counter-reset: step; }
.step { padding-top: 20px; border-top: 1px solid rgba(255,255,255,.22); counter-increment: step; }
.step::before { content: "0" counter(step); font-family: var(--font-display); font-size: 1.1rem; color: var(--red); }
.step h3 { margin: 8px 0 8px; font-size: 1.2rem; }
.step p { font-size: .9rem; color: rgba(250,247,241,.72); }

.area-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.city-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.city {
  border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 8px 16px;
  font-size: .85rem; color: rgba(250,247,241,.9);
}
.city.hub { background: var(--red); border-color: var(--red); color: #fff; font-weight: 600; }

/* ---------- estimate page ---------- */
.page-head { padding: 150px 0 40px; }
.page-head h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); margin-top: 14px; }
.page-head p { color: var(--ink-soft); max-width: 60ch; margin-top: 12px; }

.est-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; padding-bottom: 110px; }
.q-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; margin-bottom: 18px;
}
.q-card h3 { font-size: 1.06rem; font-family: var(--font-body); font-weight: 600; margin-bottom: 4px; }
.q-card .optional { font-size: .74rem; color: var(--ink-soft); letter-spacing: .06em; text-transform: uppercase; }
.opts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.opt {
  border: 1.5px solid var(--line); background: var(--paper); border-radius: 10px;
  padding: 10px 16px; font-size: .88rem; cursor: pointer; font-family: var(--font-body);
  transition: all .15s;
}
.opt:hover { border-color: var(--wood); }
.opt.sel { border-color: var(--red); background: #fdf1f0; font-weight: 600; }
.opt.has-img {
  display: flex; flex-direction: column; align-items: stretch; gap: 8px;
  width: 156px; padding: 0 0 12px; overflow: hidden; text-align: center;
  border-radius: 12px;
}
.opt.has-img img {
  width: 100%; height: 110px; object-fit: cover; display: block;
  border-bottom: 1px solid var(--line);
}
.opt.has-img span { padding: 0 10px; font-size: .8rem; line-height: 1.35; }
.opt.has-img.sel img { opacity: .92; }
@media (max-width: 560px) {
  .opt.has-img { width: calc(50% - 5px); }
}

.est-panel {
  position: sticky; top: 96px; background: var(--ink); color: var(--paper);
  border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow);
}
.est-panel .label { font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(250,247,241,.6); }
.est-range { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 10px 0 4px; }
.est-note { font-size: .82rem; color: rgba(250,247,241,.65); }
.est-panel select, .est-panel input {
  width: 100%; margin-top: 12px; padding: 12px 14px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.25); background: #221c15; color: #fff; font-size: .9rem;
  font-family: var(--font-body);
}
.est-panel select { margin-top: 18px; }
.est-panel input::placeholder { color: rgba(250,247,241,.45); }
.est-panel .btn { width: 100%; justify-content: center; margin-top: 14px; }
.est-progress { font-size: .78rem; margin-top: 16px; color: rgba(250,247,241,.6); }
.est-disclaimer { font-size: .74rem; color: rgba(250,247,241,.5); margin-top: 16px; line-height: 1.5; }

.cat-index { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); padding-bottom: 110px; }

/* ---------- contact ---------- */
.contact-band { background: var(--cream); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.contact-list { list-style: none; display: grid; gap: 16px; margin-top: 24px; font-size: 1.02rem; }
.contact-list a { text-decoration: none; font-weight: 600; }
.contact-list a:hover { color: var(--red); }
.contact-list .ico { color: var(--red); margin-right: 10px; }

/* ---------- footer ---------- */
footer { background: #0e0b08; color: rgba(250,247,241,.75); padding: 54px 0 40px; font-size: .88rem; }
.foot-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: center; }
footer img { height: 72px; border-radius: 10px; background: #fff; padding: 4px 10px; object-fit: contain; }
footer a { color: inherit; }
footer .placeholder-note { font-size: .72rem; color: rgba(250,247,241,.4); margin-top: 18px; }

/* ---------- chat widget ---------- */
.chat-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 62px; height: 62px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--red); color: #fff; font-size: 1.5rem;
  box-shadow: 0 14px 30px -8px rgba(201,42,33,.6);
  transition: transform .2s;
  display: flex; align-items: center; justify-content: center;
}
.chat-fab:hover { transform: scale(1.07); }
.chat-panel {
  position: fixed; right: 22px; bottom: 96px; z-index: 95;
  width: min(390px, calc(100vw - 32px)); height: min(580px, 74vh);
  background: #fff; border-radius: 18px; box-shadow: 0 30px 80px -20px rgba(12,10,8,.5);
  display: none; flex-direction: column; overflow: hidden; border: 1px solid var(--line);
}
.chat-panel.open { display: flex; }
.chat-head {
  background: var(--ink); color: #fff; padding: 16px 18px;
  display: flex; align-items: center; gap: 12px;
}
.chat-head img { height: 40px; width: auto; border-radius: 8px; object-fit: contain; background: #fff; padding: 3px 6px; }
.chat-head .t { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.chat-head .s { font-size: .74rem; color: rgba(255,255,255,.65); }
.chat-msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); }
.msg { max-width: 84%; padding: 11px 15px; border-radius: 16px; font-size: .88rem; line-height: 1.5; white-space: pre-line; }
.msg.bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.user { background: var(--red); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg a { color: var(--red); font-weight: 600; }
.msg.user a { color: #fff; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 10px; background: var(--paper); }
.chat-chips button {
  border: 1.5px solid var(--red); color: var(--red); background: #fff;
  border-radius: 999px; padding: 7px 14px; font-size: .8rem; font-weight: 600; cursor: pointer;
  font-family: var(--font-body); transition: all .15s;
}
.chat-chips button:hover { background: var(--red); color: #fff; }
.chat-input { display: flex; border-top: 1px solid var(--line); background: #fff; }
.chat-input input {
  flex: 1; border: 0; padding: 15px 16px; font-size: .9rem; outline: none; font-family: var(--font-body);
  background: transparent;
}
.chat-input button { border: 0; background: none; color: var(--red); font-size: 1.25rem; padding: 0 18px; cursor: pointer; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .split, .area-grid, .contact-grid, .est-layout { grid-template-columns: 1fr; }
  .est-panel { position: static; }
  .nav {
    position: fixed; inset: 0 0 auto 0; top: 70px; flex-direction: column; align-items: flex-start;
    background: var(--paper); color: var(--ink); padding: 20px 6vw 26px; gap: 18px;
    box-shadow: 0 20px 30px -20px rgba(0,0,0,.3);
    display: none;
  }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  section { padding: 66px 0; }
  .hero { min-height: 86vh; }
}
