:root {
  --ivory: #f8f4ee;
  --sand: #efe6da;
  --ink: #221d18;
  --ink-2: #5b5249;
  --line: #e2d7c8;
  --terra: #b4572e;
  --terra-dark: #8f4222;
  --wa: #1fa855;
  --wa-dark: #178a45;
  --radius: 18px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 6vw, 2.9rem); }
h3 { font-size: 1.35rem; }
p { margin: 0; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); }

.eyebrow {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--terra); margin-bottom: 12px;
}
.eyebrow.light { color: #f3c9a8; }
.lead { color: var(--ink-2); font-size: 1.08rem; margin-top: 14px; max-width: 56ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 26px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 1rem var(--sans); text-decoration: none; transition: transform .15s, background .15s;
}
.btn:active { transform: scale(.98); }
.btn-sm { padding: 10px 18px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--sand); }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 244, 238, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.3rem var(--serif); }
.logo em { font-style: italic; font-weight: 400; color: var(--terra); margin-left: 4px; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 8px 8px 50% 50%;
  background: var(--terra); position: relative;
}
.logo-mark::after { content: ""; position: absolute; inset: 9px 9px 0; border-radius: 6px 6px 0 0; background: var(--ivory); }
.nav-toggle {
  display: grid; gap: 6px; width: 44px; height: 44px; place-content: center;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: transform .2s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav {
  position: absolute; top: 68px; left: 0; right: 0;
  display: none; flex-direction: column; gap: 4px; padding: 12px 20px 22px;
  background: var(--ivory); border-bottom: 1px solid var(--line);
}
.nav.open { display: flex; }
.nav a:not(.btn) { padding: 12px 0; text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
.nav .btn { margin-top: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 88svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,14,10,.15) 0%, rgba(20,14,10,.35) 45%, rgba(20,14,10,.85) 100%); }
.hero-content { position: relative; padding: 120px 0 56px; }
.hero h1 { font-size: clamp(2.6rem, 10vw, 5rem); max-width: 14ch; }
.hero-sub { font-size: 1.12rem; max-width: 46ch; margin-top: 18px; color: rgba(255,255,255,.88); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- Services ---------- */
.services { background: var(--ink); color: #fff; padding: 26px 0; }
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
.service { display: flex; gap: 12px; align-items: flex-start; }
.service strong { display: block; font-size: .98rem; }
.service span:not(.ico) { font-size: .85rem; color: rgba(255,255,255,.65); }
.ico {
  flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #f3c9a8; font-size: 1.1rem;
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-sand { background: var(--sand); }
.section-head { margin-bottom: 34px; }

/* ---------- Filters + grid ---------- */
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 26px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 10px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; font: 600 .92rem var(--sans); color: var(--ink);
}
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.project { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.project-img { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.project:hover .project-img img { transform: scale(1.04); }
.project h3 { margin-top: 14px; font-size: 1.2rem; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font-size: .9rem; color: var(--ink-2); }
.meta .budget { color: var(--terra-dark); font-weight: 700; }
.project[hidden] { display: none; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li { background: var(--ivory); border-radius: var(--radius); padding: 26px; }
.step-no { font: 600 1rem var(--serif); color: var(--terra); }
.steps h3 { margin: 8px 0 8px; }
.steps p { color: var(--ink-2); font-size: .98rem; }

/* ---------- Estimator ---------- */
.estimate { display: grid; gap: 30px; }
.card { background: #fff; border-radius: 22px; padding: 26px; box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(60, 40, 20, .35); }
fieldset { border: 0; padding: 0; margin: 0 0 22px; }
legend { font-weight: 700; margin-bottom: 10px; font-size: .95rem; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg-col { flex-direction: column; }
.seg[data-name="bhk"] { display: grid; grid-template-columns: repeat(4, 1fr); }
.seg[data-name="bhk"] span { padding-inline: 4px; text-align: center; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span {
  display: block; padding: 11px 16px; border-radius: 12px; border: 1px solid var(--line);
  font-weight: 600; font-size: .94rem; cursor: pointer; background: var(--ivory);
}
.seg input:checked + span { background: var(--terra); border-color: var(--terra); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--terra); outline-offset: 2px; }
.result {
  display: grid; gap: 4px; padding: 20px; border-radius: 16px; background: var(--ink); color: #fff; margin-bottom: 14px;
}
.result-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: #f3c9a8; font-weight: 700; }
.result-value { font: 600 2.2rem var(--serif); }
.result-note { font-size: .82rem; color: rgba(255,255,255,.65); }

/* ---------- FAQ ---------- */
details { background: var(--ivory); border-radius: 14px; margin-bottom: 10px; padding: 0 22px; }
summary {
  cursor: pointer; list-style: none; padding: 20px 30px 20px 0; font-weight: 700; position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 16px; font-size: 1.5rem; color: var(--terra); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { padding-bottom: 20px; color: var(--ink-2); }

/* ---------- Contact ---------- */
.contact { display: grid; gap: 34px; }
.contact-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.contact-list strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2); }
.contact-list a { font-weight: 700; text-decoration: none; }
.enquiry { display: grid; gap: 16px; }
.enquiry label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.opt { color: var(--ink-2); font-weight: 400; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
input, select, textarea {
  font: 500 1rem var(--sans); color: var(--ink); width: 100%;
  padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--ivory);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--terra); border-color: transparent; }
input[aria-invalid="true"] { border-color: #c0392b; background: #fdf1ef; }
.form-error { color: #b03a2e; font-size: .9rem; font-weight: 600; min-height: 0; }
.form-error:empty { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.8); padding: 56px 0 100px; }
.logo-light { color: #fff; }
.logo-light .logo-mark::after { background: var(--ink); }
.footer-grid { display: grid; gap: 28px; }
.footer-grid p { margin-top: 12px; max-width: 40ch; }
.map {
  display: flex; align-items: flex-end; gap: 10px; min-height: 160px; padding: 18px; border-radius: 16px;
  text-decoration: none; color: #fff; font-weight: 600;
  background-color: #2e2822;
  background-image: linear-gradient(rgba(255,255,255,.06) 2px, transparent 2px), linear-gradient(90deg, rgba(255,255,255,.06) 2px, transparent 2px);
  background-size: 36px 36px;
}
.map-pin { width: 22px; height: 22px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--terra); flex: none; margin-bottom: 2px; }
.footer-note {
  display: flex; flex-direction: column; gap: 6px; margin-top: 36px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; color: rgba(255,255,255,.55);
}
.footer-note strong { color: #f3c9a8; }

/* ---------- WhatsApp FAB ---------- */
.wa-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 26px rgba(0,0,0,.28);
}
.wa-fab svg { width: 32px; height: 32px; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0;
  background: rgba(16, 12, 9, .94); color: #fff;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox figure { margin: 0; width: min(1100px, 100% - 32px); }
.lightbox img { width: 100%; max-height: 76svh; object-fit: contain; border-radius: 12px; }
.lightbox figcaption { margin-top: 14px; text-align: center; font-size: .98rem; }
.lightbox figcaption strong { font-family: var(--serif); font-size: 1.2rem; display: block; }
.lb-close, .lb-nav {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1;
}
.lb-close { top: 16px; right: 16px; }
.lb-nav { bottom: 22px; }
.lb-prev { left: calc(50% - 60px); }
.lb-next { right: calc(50% - 60px); }

/* ---------- Larger screens ---------- */
@media (min-width: 700px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.2fr 1fr; align-items: start; }
  .footer-note { flex-direction: row; justify-content: space-between; }
}
@media (min-width: 980px) {
  .nav-toggle { display: none; }
  .nav { position: static; display: flex; flex-direction: row; align-items: center; gap: 28px; padding: 0; background: none; border: 0; }
  .nav a:not(.btn) { padding: 0; border: 0; font-size: .95rem; }
  .nav .btn { margin-top: 0; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .estimate, .contact { grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }
  .section { padding: 110px 0; }
  .hero-content { padding-bottom: 80px; }
  .lb-nav { bottom: auto; top: 50%; transform: translateY(-50%); }
  .lb-prev { left: 24px; }
  .lb-next { right: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
