/* Dream Home — home page sections (hero, categories bento, projects rail, about, tabs, CTA band, FAQ, contact). */

/* ================= Hero ================= */
.hero { position: relative; isolation: isolate; color: var(--on-deep); min-height: max(640px, 100svh); display: flex; flex-direction: column; justify-content: flex-end; padding-top: calc(var(--header-h) + var(--space-7)); padding-bottom: var(--space-7); margin: 10px 10px 0; border-radius: var(--radius-md); border-start-start-radius: calc(var(--radius-roof) * 2); overflow: hidden; background: var(--brand-deep); }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media picture, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(13, 18, 48, .88) 0%, rgba(13, 18, 48, .45) 45%, rgba(13, 18, 48, .30) 100%); }
.hero-media .media-note { inset-block-end: auto; inset-block-start: calc(var(--header-h) + var(--space-3)); inset-inline-start: auto; inset-inline-end: var(--space-4); }
.hero-inner { display: grid; gap: var(--space-7); }
.hero-text { max-width: 720px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: var(--space-2); font-size: 14px; line-height: 22px; font-weight: 600; color: var(--sand); }
.hero-eyebrow::before { content: ""; width: 16px; height: 8px; background: var(--sand); clip-path: polygon(0 100%, 50% 0, 100% 100%); }
.hero-title { color: #fff; margin-top: var(--space-4); }
.hero-lead { margin-top: var(--space-4); font-size: 18px; line-height: 32px; color: rgba(255, 255, 255, .86); max-width: 58ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.hero .dh-btn-primary { background: var(--sand); color: var(--on-sand); }
.hero .dh-btn-primary:hover { background: #e6c793; }
.hero .dh-btn-inverse { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.hero .dh-btn-inverse:hover { background: #fff; color: #141d52; }

/* Floating search */
.hero-search { background: var(--surface-raised); color: var(--ink); border-radius: var(--radius-md); border-start-start-radius: var(--radius-roof); box-shadow: var(--shadow-lg); padding: var(--space-4) var(--space-5) var(--space-5); }
.hs-tabs { display: inline-flex; gap: var(--space-1); padding: 4px; margin-bottom: var(--space-4); background: var(--surface-sunken); border-radius: var(--radius-sm); }
.hs-tabs [role="tab"] { display: inline-flex; align-items: center; gap: var(--space-2); height: var(--control-sm); padding: 0 var(--space-4); border: 0; border-radius: 6px; background: transparent; color: var(--ink-muted); font-weight: 600; font-size: 14px; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.hs-tabs [role="tab"][aria-selected="true"] { background: var(--surface-raised); color: var(--brand); box-shadow: var(--shadow-sm); }
.hs-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: var(--space-4); align-items: end; }
.hs-form .dh-btn { height: 46px; }
@media (max-width: 767px) {
  .hero { margin: 0; border-radius: 0 0 var(--radius-md) var(--radius-md); min-height: auto; padding-top: calc(var(--header-h) + var(--space-8)); }
  .hs-form { grid-template-columns: 1fr; }
  .hero-search { padding: var(--space-4); }
}

/* ================= Category bento ================= */
.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 230px; gap: var(--space-5); grid-template-areas: "villas villas apart town" "villas villas lands lands" "proj proj used used"; }
.cat-villas { grid-area: villas; } .cat-apartments { grid-area: apart; } .cat-townhouses { grid-area: town; }
.cat-lands { grid-area: lands; } .cat-projects { grid-area: proj; } .cat-used { grid-area: used; }
.cat-card { position: relative; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; border-radius: var(--radius-md); border-start-start-radius: var(--radius-roof); color: #fff; text-decoration: none; background: var(--brand-deep); box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .2s ease; }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.cat-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(13, 18, 48, .86) 0%, rgba(13, 18, 48, .35) 55%, rgba(13, 18, 48, .05) 100%); }
.cat-card:hover { color: #fff; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cat-card:hover img { transform: scale(1.05); }
.cat-card .media-note { inset-block-end: auto; inset-block-start: var(--space-3); inset-inline-start: auto; inset-inline-end: var(--space-3); }
.cat-body { display: flex; flex-direction: column; gap: 2px; padding: var(--space-5); padding-inline-end: 72px; }
.cat-count { font-size: 13px; line-height: 20px; font-weight: 600; color: var(--sand); }
.cat-title { font-family: var(--font-display); font-size: 22px; line-height: 32px; font-weight: 600; }
.cat-villas .cat-title { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.4; }
.cat-desc { font-size: 14px; line-height: 22px; color: rgba(255, 255, 255, .82); max-width: 40ch; }
.cat-arrow { position: absolute; inset-block-end: var(--space-5); inset-inline-end: var(--space-5); display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius-full); background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .35); transition: background-color .2s ease, color .2s ease; }
.cat-card:hover .cat-arrow { background: var(--sand); color: var(--on-sand); border-color: var(--sand); }
@media (max-width: 1023px) {
  .cat-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 210px; grid-template-areas: "villas villas" "apart town" "lands lands" "proj used"; }
}
@media (max-width: 599px) {
  .cat-grid { grid-template-columns: 1fr; grid-auto-rows: 190px; grid-template-areas: "villas" "apart" "town" "lands" "proj" "used"; gap: var(--space-4); }
  .cat-villas { min-height: 240px; }
}

/* ================= Stats ================= */
.stats-wrap { padding-top: var(--space-2); }

/* ================= Projects rail ================= */
.projects-showcase { overflow: hidden; }
.rail-viewport { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rail-viewport::-webkit-scrollbar { display: none; }
.rail-track { display: flex; gap: var(--space-5); padding-inline: max(var(--gutter), calc((100vw - var(--content-max)) / 2)); padding-block: var(--space-2) var(--space-5); width: max-content; }
.rail-item { flex: none; width: clamp(290px, 32vw, 410px); scroll-snap-align: start; }
.rail-item > .dh-pcard { height: 100%; }
.rail-more-link { height: 100%; min-height: 320px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-3); text-align: center; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-md); border-start-start-radius: var(--radius-roof); color: var(--ink); text-decoration: none; padding: var(--space-6); transition: background-color .2s ease, border-color .2s ease; }
.rail-more-link:hover { background: var(--brand-soft); border-color: var(--brand); color: var(--ink); }
.rail-more-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: var(--radius-full); background: var(--brand); color: var(--on-brand); }
.rail-viewport.is-pinned { overflow: visible; scroll-snap-type: none; }

/* ================= About ================= */
.about-split { align-items: stretch; }
.about-media { position: relative; min-height: 420px; margin: 0; }
.about-media img { position: absolute; inset: 0; width: 100%; height: 115%; object-fit: cover; top: -7.5%; }
.values { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); margin-top: var(--space-6); padding-block: var(--space-4); border-block: 1px solid var(--line); }
.values li { display: flex; flex-direction: column; gap: 2px; }
.values strong { font-family: var(--font-display); font-size: 17px; line-height: 26px; color: var(--ink); }
.values span { font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.services-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3) var(--space-5); margin-top: var(--space-5); }
.services-list li { display: flex; align-items: center; gap: var(--space-3); font-weight: 500; }
.svc-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--brand-soft); color: var(--brand); }
.license-chips { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
.license-chip { display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-raised); }
.license-chip .dh-icon { color: var(--available); }
.lc-label { display: block; font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.lc-value { display: block; font-weight: 600; font-size: 15px; line-height: 20px; }
@media (max-width: 899px) { .about-media { min-height: 260px; } }
@media (max-width: 599px) { .values { grid-template-columns: 1fr; } .services-list { grid-template-columns: 1fr; } }

/* ================= Segmented tabs ================= */
.tabs-bar { display: flex; justify-content: flex-start; margin-bottom: var(--space-6); overflow-x: auto; }
.seg-tabs { display: inline-flex; gap: var(--space-1); padding: 4px; background: var(--surface-sunken); border: 1px solid var(--line); border-radius: var(--radius-full); }
.seg-tabs [role="tab"] { display: inline-flex; align-items: center; gap: var(--space-2); height: 40px; padding: 0 var(--space-5); border: 0; border-radius: var(--radius-full); background: transparent; color: var(--ink-muted); font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap; transition: background-color .15s ease, color .15s ease; }
.seg-tabs [role="tab"]:hover { color: var(--ink); }
.seg-tabs [role="tab"][aria-selected="true"] { background: var(--brand); color: var(--on-brand); }

/* ================= Plan chips ================= */
.plan-chips { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: var(--space-5); }
.plan-chips-label { font-size: 14px; font-weight: 600; color: var(--ink-muted); margin-inline-end: var(--space-2); }

/* ================= CTA band ================= */
.cta-section { padding-top: calc(var(--section-gap) + 8px); }
.cta-band { --parapet-color: var(--brand-deep); display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--space-7); align-items: center; padding: var(--space-8) var(--space-7); background: var(--brand-deep); color: var(--on-deep); border-radius: 0 0 var(--radius-md) var(--radius-md); }
.cta-band h2 { color: var(--on-deep); margin-top: var(--space-3); }
.cta-band .eyebrow-on-deep, .eyebrow-on-deep { display: inline-flex; align-items: center; gap: var(--space-2); font-size: 13px; line-height: 20px; font-weight: 600; color: var(--sand); }
.eyebrow-on-deep::before { content: ""; width: 16px; height: 8px; background: var(--sand); clip-path: polygon(0 100%, 50% 0, 100% 100%); }
.cta-lead { margin-top: var(--space-3); color: var(--on-deep-muted); font-size: 18px; line-height: 32px; }
.cta-points { list-style: none; display: grid; gap: var(--space-2); margin: var(--space-5) 0 var(--space-6); }
.cta-points li { display: flex; align-items: center; gap: var(--space-2); }
.cta-points .dh-icon { color: var(--sand); }
.cta-media { position: relative; margin: 0; aspect-ratio: 4 / 3; }
.cta-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 899px) { .cta-band { grid-template-columns: 1fr; padding: var(--space-7) var(--space-5); } }

/* ================= FAQ ================= */
.faq-home { max-width: 860px; }
.faq-list { display: grid; gap: var(--space-3); }
.faq-item { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); transition: border-color .15s ease, box-shadow .2s ease; }
.faq-item[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) var(--space-5); cursor: pointer; font-weight: 600; font-size: 17px; line-height: 28px; border-radius: var(--radius-md); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--radius-full); background: var(--brand-soft); color: var(--brand); transition: transform .2s ease, background-color .2s ease; }
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--brand); color: var(--on-brand); }
.faq-a { padding: 0 var(--space-5) var(--space-5); color: var(--ink-muted); }

/* ================= Contact block ================= */
.contact-split { align-items: start; }
.phone-cards { display: grid; gap: var(--space-3); }
.phone-card { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-3) var(--space-4); background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); }
.phone-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius-full); background: var(--brand-soft); color: var(--brand); }
.phone-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.phone-label { font-size: 13px; line-height: 20px; color: var(--ink-muted); }
.phone-number { white-space: nowrap; font-family: var(--font-display); font-size: clamp(17px, 4.6vw, 20px); line-height: 30px; font-weight: 600; color: var(--ink); text-decoration: none; }
.phone-number:hover { color: var(--brand); }
.phone-actions { display: flex; gap: var(--space-2); }
.form-card { padding: var(--space-6); }
.form-title { font-size: 22px; line-height: 32px; margin-bottom: var(--space-5); }
