/* ===========================================================================
   Global Homes Infra — Marketing site styles
   Builds on the design system tokens (../../styles.css). Plain CSS, no build.
   =========================================================================== */

/* ---------- Interaction / a11y polish (UI-UX pre-delivery checklist) ---------- */
a, button, .btn, .nav-toggle, [role="button"], input[type="submit"] { cursor: pointer; }
.card, .partner, .advisor { cursor: default; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .card:hover { transform: none; }
}
html { scroll-behavior: smooth; }

/* ---------- Base layout ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section { padding: var(--space-11) 0; }
.section-sm { padding: var(--space-9) 0; }
.bg-sunken { background: var(--surface-sunken); }
.bg-inverse { background: var(--surface-inverse); color: var(--text-inverse); }
.bg-tint { background: var(--brand-tint); }
img { max-width: 100%; display: block; }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--font-roman);
  font-size: var(--text-2xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--text-brand);
  margin: 0 0 var(--space-3);
}
.eyebrow.on-dark { color: var(--terracotta-300); }
.display-2xl { font-size: var(--text-display-2xl); line-height: 1.02; letter-spacing: var(--ls-tight); }
.display-lg { font-size: var(--text-display-lg); margin: 0; }
.display-md { font-size: var(--text-display-md); margin: 0; }
.lead { font-size: var(--text-xl); color: var(--text-muted); line-height: 1.6; margin: var(--space-4) 0 0; }
.muted { color: var(--text-muted); }
.center { text-align: center; }
.section-head { max-width: 640px; }
.section-head.center { margin: 0 auto; }
.section-head .display-lg { margin-top: var(--space-3); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-sans); font-weight: var(--fw-semibold);
  font-size: var(--text-sm); line-height: 1;
  padding: 0.85rem 1.4rem; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out),
              background var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out),
              color var(--dur-med) var(--ease-out);
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--text-on-brand); box-shadow: var(--shadow-brand); }
.btn-primary:hover { background: var(--brand-strong); }
.btn-secondary { background: transparent; color: var(--text-strong); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--surface-sunken); }
.btn-ghost-light { background: rgba(255,255,255,0.10); color: var(--white); border-color: rgba(255,255,255,0.35); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.20); }
.btn-lg { padding: 1.05rem 1.8rem; font-size: var(--text-md); }
.btn [data-lucide] { width: 16px; height: 16px; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(251,248,243,0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-hair);
}
.nav-inner {
  height: var(--header-h); display: flex; align-items: center;
  justify-content: space-between; gap: var(--space-6);
}
.brand { display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  background: var(--brand); color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
}
.brand-logo { height: 62px; width: auto; display: block; flex: none; border-radius: var(--radius-sm); }
.footer .brand-logo { height: 68px; }
@media (max-width: 720px) { .brand-logo { height: 50px; } }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); color: var(--text-strong); letter-spacing: var(--ls-tight); }
.brand-name small { display: block; font-family: var(--font-roman); font-size: 9px; letter-spacing: var(--ls-wider); text-transform: uppercase; color: var(--text-brand); font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: var(--space-6); list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: var(--text-sm); font-weight: var(--fw-medium);
  color: var(--text-body); text-decoration: none; padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--text-strong); text-decoration: none; }
.nav-links a.active { color: var(--brand); border-bottom-color: var(--brand); }
.nav-right { display: flex; align-items: center; gap: var(--space-4); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; color: var(--text-strong); }

/* Transparent nav over hero */
.nav.nav-transparent { background: transparent; border-bottom-color: transparent; backdrop-filter: none; }
.nav.nav-transparent .brand-name { color: var(--white); }
.nav.nav-transparent .brand-name small { color: var(--terracotta-300); }
.nav.nav-transparent .nav-links a { color: rgba(255,255,255,0.88); }
.nav.nav-transparent .nav-links a:hover { color: var(--white); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 640px; display: flex; flex-direction: column; background: var(--sand-900); }
.hero-bg { position: absolute; inset: 0; background-color: var(--sand-900); background-size: cover; background-position: center; z-index: 0; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(23,17,11,0.62) 0%, rgba(23,17,11,0.50) 45%, rgba(23,17,11,0.86) 100%),
    radial-gradient(120% 80% at 50% 42%, rgba(23,17,11,0) 40%, rgba(23,17,11,0.35) 100%);
}
.hero > *:not(.hero-bg) { position: relative; z-index: 2; }
.hero-body {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  align-items: center; text-align: center; padding: var(--space-9) var(--gutter);
}
.hero-body h1 { color: var(--white); margin: var(--space-4) 0 0; max-width: 15ch; text-shadow: 0 2px 24px rgba(23,17,11,0.45); }
.hero-body .lead { color: var(--sand-50); max-width: 52ch; text-shadow: 0 1px 12px rgba(23,17,11,0.5); }
.hero-body .eyebrow.on-dark { color: var(--terracotta-200); text-shadow: 0 1px 10px rgba(23,17,11,0.5); }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); justify-content: center;
  margin-top: var(--space-7);
}
.hero-trust span {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--text-sm); color: var(--sand-100);
}
.hero-trust [data-lucide] { width: 16px; height: 16px; color: var(--terracotta-300); }
.hero-cta { display: flex; gap: var(--space-3); margin-top: var(--space-7); flex-wrap: wrap; justify-content: center; }

/* ---------- Page banner (interior pages) ---------- */
.page-banner { position: relative; padding: var(--space-10) 0 var(--space-9); background: var(--surface-inverse); color: var(--text-inverse); overflow: hidden; }
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 { color: var(--white); }
.page-banner .lead { color: var(--sand-200); }
.page-banner .eyebrow { color: var(--terracotta-300); }
.crumbs { font-size: var(--text-sm); color: var(--sand-400); margin-bottom: var(--space-4); }
.crumbs a { color: var(--sand-300); }

/* ---------- Stats strip ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.stat .stat-value { font-family: var(--font-display); font-weight: 600; font-size: var(--text-display-md); color: var(--terracotta-300); line-height: 1; }
.stat .stat-label { display: block; margin-top: 8px; font-family: var(--font-roman); font-size: var(--text-2xs); letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--sand-300); }

/* ---------- Generic grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: center; }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-9 { margin-top: var(--space-9); }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-5); flex-wrap: wrap; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface-card); border: 1px solid var(--border-hair);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.project-card { display: block; color: inherit; text-decoration: none; cursor: pointer; }

.project-card .pc-media { position: relative; aspect-ratio: 4 / 3; background: var(--sand-200); }
.project-card .pc-media img { width: 100%; height: 100%; object-fit: cover; }
.project-card .pc-tag {
  position: absolute; top: var(--space-3); left: var(--space-3);
  background: var(--olive-500); color: var(--white);
  font-size: var(--text-2xs); font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide); text-transform: uppercase;
  padding: 5px 10px; border-radius: var(--radius-pill);
}
.project-card .pc-rera {
  position: absolute; bottom: var(--space-3); left: var(--space-3);
  background: rgba(255,255,255,0.92); backdrop-filter: blur(4px);
  font-size: 10px; font-weight: var(--fw-semibold); color: var(--sand-800);
  padding: 4px 9px; border-radius: var(--radius-sm); letter-spacing: 0.02em;
}
.project-card .pc-body { padding: var(--space-5); }
.project-card .pc-loc { display: inline-flex; align-items: center; gap: 5px; font-size: var(--text-sm); color: var(--text-muted); }
.project-card .pc-loc [data-lucide] { width: 14px; height: 14px; }
.project-card h3 { font-size: var(--text-xl); margin: 8px 0 0; }
.project-card .pc-dev { font-size: var(--text-sm); color: var(--text-subtle); margin-top: 4px; }
.project-card .pc-foot { display: flex; align-items: baseline; justify-content: space-between; margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--border-hair); }
.project-card .pc-price { font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); color: var(--text-strong); }
.project-card .pc-specs { font-size: var(--text-xs); color: var(--text-muted); }

/* ---------- Value props / features ---------- */
.feature { display: flex; flex-direction: column; gap: var(--space-3); }
.feature .ficon {
  width: 54px; height: 54px; border-radius: var(--radius-md);
  background: var(--brand-tint); color: var(--brand-deep);
  display: inline-flex; align-items: center; justify-content: center;
}
.feature .ficon [data-lucide] { width: 24px; height: 24px; }
.feature h3 { font-size: var(--text-xl); }
.feature p { color: var(--text-muted); line-height: 1.6; margin: 0; }

/* ---------- Partner logos ---------- */
.partner-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-4); }
.partner {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 84px; padding: var(--space-4); overflow: hidden;
  background: var(--surface-card); border: 1px solid var(--border-hair);
  border-radius: var(--radius-md); text-align: center;
}
.partner .p-mark {
  width: 30px; height: 30px; border-radius: var(--radius-sm);
  background: var(--sand-900); color: var(--terracotta-300);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 15px; flex: none;
}
.partner .p-name { font-family: var(--font-display); font-weight: 600; font-size: var(--text-md); color: var(--text-strong); line-height: 1.15; }
/* Fixed box (not max-height + width:auto) so a logo file with no intrinsic
   width/height (some SVG exports only ship a viewBox) can't blow up unbounded —
   object-fit does the scaling, the box itself never depends on the image's own size. */
.partner .p-logo { width: 100%; height: 44px; object-fit: contain; }
.partner.has-logo { gap: 0; }

/* ---------- Testimonials ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.quote { background: var(--surface-card); border: 1px solid var(--border-hair); border-radius: var(--radius-lg); padding: var(--space-6); }
.quote .stars { color: var(--brass-500); letter-spacing: 2px; font-size: var(--text-sm); }
.quote p { margin: var(--space-3) 0 var(--space-5); color: var(--text-body); line-height: 1.6; font-size: var(--text-lg); }
.quote .q-who { display: flex; align-items: center; gap: var(--space-3); }
.avatar {
  width: 44px; height: 44px; border-radius: var(--radius-pill); flex: none;
  background: var(--brand-soft); color: var(--brand-deep);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-md);
}
.q-who .q-name { font-weight: var(--fw-semibold); color: var(--text-strong); font-size: var(--text-sm); }
.q-who .q-meta { font-size: var(--text-xs); color: var(--text-muted); }

/* ---------- Advisor cards ---------- */
.advisor { background: var(--surface-card); border: 1px solid var(--border-hair); border-radius: var(--radius-lg); padding: var(--space-6); text-align: center; }
.advisor .avatar-lg {
  width: 84px; height: 84px; border-radius: var(--radius-pill); margin: 0 auto var(--space-4);
  background: linear-gradient(160deg, var(--terracotta-300), var(--terracotta-600));
  color: var(--white); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-display-sm);
}
.advisor h3 { font-size: var(--text-lg); }
.advisor .role { font-family: var(--font-roman); font-size: var(--text-2xs); letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--text-brand); margin: 6px 0 var(--space-3); }
.advisor .bio { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.55; }
.advisor .tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: var(--space-4); }
.tag { font-size: var(--text-2xs); padding: 4px 9px; border-radius: var(--radius-pill); background: var(--surface-sunken); color: var(--text-body); border: 1px solid var(--border-hair); }

/* ---------- Split feature (image + text) ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--space-9); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); aspect-ratio: 16/10; object-fit: cover; }
.checklist { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: grid; gap: var(--space-3); }
.checklist li { display: flex; gap: var(--space-3); align-items: flex-start; }
.checklist [data-lucide] { width: 20px; height: 20px; color: var(--brand); flex: none; margin-top: 2px; }
.checklist b { color: var(--text-strong); }
.checklist span { color: var(--text-muted); }

/* ---------- Value / info tiles ---------- */
.tile { background: var(--surface-card); border: 1px solid var(--border-hair); border-radius: var(--radius-lg); padding: var(--space-6); }
.tile h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.tile p { color: var(--text-muted); line-height: 1.6; margin: 0; }
.tile .num { font-family: var(--font-display); font-size: var(--text-display-sm); color: var(--brand-soft); font-weight: 700; }

/* ---------- Eyebrow on brand (over terracotta) ---------- */
.eyebrow.on-brand { color: rgba(255,255,255,0.85); }

/* ---------- Grouped CTA actions (centered button row) ---------- */
.cta-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; justify-content: center; margin-top: var(--space-6); }

/* ---------- Price "onwards" suffix ---------- */
.pc-onwards { font-size: var(--text-xs); font-family: var(--font-sans); font-weight: var(--fw-regular); color: var(--text-muted); }

/* ---------- Square tile icon (awards / info) ---------- */
.tile-icon {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  background: var(--brand-tint); color: var(--brand-deep);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-4);
}
.tile-icon [data-lucide] { width: 20px; height: 20px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--surface-brand); color: var(--white); border-radius: var(--radius-lg); padding: var(--space-9); text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band .lead { color: rgba(255,255,255,0.88); max-width: 46ch; margin-left: auto; margin-right: auto; }
.cta-band .btn-primary { background: var(--white); color: var(--brand-deep); box-shadow: none; }
.cta-band .btn-primary:hover { background: var(--sand-100); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: var(--text-sm); font-weight: var(--fw-medium); color: var(--text-strong); }
.field input, .field select, .field textarea {
  font-family: var(--font-sans); font-size: var(--text-md); color: var(--text-body);
  padding: 0.75rem 0.9rem; border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
  background: var(--surface-raised); width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--focus-ring); outline-offset: 1px; border-color: var(--brand); }
.form-note { font-size: var(--text-xs); color: var(--text-subtle); margin-top: var(--space-3); }
.contact-cols { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--space-9); align-items: start; }
.info-line { display: flex; gap: var(--space-3); align-items: flex-start; margin-bottom: var(--space-5); }
.info-line .ficon { width: 42px; height: 42px; border-radius: var(--radius-md); background: var(--brand-tint); color: var(--brand-deep); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.info-line .ficon [data-lucide] { width: 18px; height: 18px; }
.info-line .l-label { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: var(--ls-wide); color: var(--text-subtle); }
.info-line .l-value { color: var(--text-strong); font-weight: var(--fw-medium); }
.info-line a { color: var(--text-strong); }

/* ---------- Footer ---------- */
.footer { background: var(--surface-inverse); color: var(--sand-300); padding: var(--space-9) 0 var(--space-6); }
.footer a { color: var(--sand-300); text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: none; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--space-7); }
.footer .brand-name { color: var(--white); }
.footer-blurb { margin-top: var(--space-4); max-width: 34ch; line-height: 1.6; color: var(--sand-400); font-size: var(--text-sm); }
.footer h4 { font-family: var(--font-roman); font-size: var(--text-2xs); letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--sand-500); margin-bottom: var(--space-4); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); font-size: var(--text-sm); }
.footer-socials { display: flex; gap: var(--space-3); margin-top: var(--space-5); }
.footer-socials a { width: 36px; height: 36px; border-radius: var(--radius-sm); border: 1px solid var(--border-inverse); display: inline-flex; align-items: center; justify-content: center; }
.footer-socials [data-lucide] { width: 16px; height: 16px; }
.footer-bottom { margin-top: var(--space-8); padding-top: var(--space-5); border-top: 1px solid var(--border-inverse); display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; font-size: var(--text-xs); color: var(--sand-500); }
.rera-line { font-size: var(--text-xs); color: var(--sand-400); }
.rera-line b { color: var(--sand-200); }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: var(--z-overlay);
  width: 54px; height: 54px; border-radius: var(--radius-pill);
  background: #1FA855; color: #fff; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); transition: transform var(--dur-fast) var(--ease-out);
}
.wa-float:hover { transform: scale(1.06); text-decoration: none; }
.wa-float [data-lucide] { width: 26px; height: 26px; }

/* ---------- Mobile nav panel ---------- */
.mobile-panel { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-4, .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-7); }
  .grid-3, .quote-grid { grid-template-columns: 1fr 1fr; }
  .grid-2, .split, .contact-cols, .footer-top { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .footer-top { gap: var(--space-6); }
}
@media (max-width: 720px) {
  .nav-links, .nav-right .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .grid-3, .quote-grid, .grid-4, .partner-grid, .form-grid { grid-template-columns: 1fr; }
  .hero { min-height: 560px; }
  .section { padding: var(--space-9) 0; }
  .mobile-panel.open {
    display: block; position: fixed; inset: var(--header-h) 0 0; z-index: 90;
    background: var(--surface-page); padding: var(--space-6) var(--gutter);
    border-top: 1px solid var(--border-hair);
  }
  .mobile-panel .nav-links { display: grid; gap: var(--space-4); }
  .mobile-panel .nav-links a { font-size: var(--text-lg); }
  .mobile-panel .btn { display: inline-flex; margin-top: var(--space-5); }
}

/* ===========================================================================
   Search / filters, feature chips, blog, gallery, newsletter, map
   =========================================================================== */
.filter-bar { background: var(--surface-card); border: 1px solid var(--border-hair); border-radius: var(--radius-lg); padding: var(--space-5); margin-bottom: var(--space-7); }
.filter-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: var(--space-3); }
.filter-bar label { display: block; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: var(--ls-wide); color: var(--text-subtle); margin-bottom: 5px; }
.filter-bar input, .filter-bar select { width: 100%; padding: 9px 11px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); font-size: var(--text-sm); background: var(--white); font-family: var(--font-sans); color: var(--text-body); }
.filter-bar input:focus, .filter-bar select:focus { outline: 2px solid var(--focus-ring); outline-offset: 1px; border-color: var(--brand); }
.feature-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-4); }
.feature-chk { position: relative; }
.feature-chk input { position: absolute; opacity: 0; pointer-events: none; }
.feature-chk span { display: inline-flex; align-items: center; gap: 5px; font-size: var(--text-xs); padding: 6px 12px; border-radius: var(--radius-pill); border: 1px solid var(--border-soft); background: var(--white); color: var(--text-body); cursor: pointer; user-select: none; transition: all var(--dur-fast) var(--ease-out); }
.feature-chk input:checked + span { background: var(--brand); color: #fff; border-color: var(--brand); }
.filter-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-4); flex-wrap: wrap; }
.result-count { font-size: var(--text-sm); color: var(--text-muted); }
.result-count b { color: var(--text-strong); }

.pc-feats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--space-3); }
.pc-feat { font-size: 11px; padding: 3px 9px; border-radius: var(--radius-pill); background: var(--surface-sunken); color: var(--text-muted); border: 1px solid var(--border-hair); display: inline-flex; align-items: center; gap: 4px; }
.pc-feat [data-lucide] { width: 12px; height: 12px; color: var(--brand); }

.no-results { grid-column: 1 / -1; text-align: center; padding: var(--space-10); color: var(--text-subtle); }

/* Blog */
.post-card { background: var(--surface-card); border: 1px solid var(--border-hair); border-radius: var(--radius-lg); overflow: hidden; transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out); display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card .p-media { aspect-ratio: 16/10; background: var(--sand-200); }
.post-card .p-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card .p-body { padding: var(--space-5); display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card .p-cat { font-family: var(--font-roman); font-size: var(--text-2xs); letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--text-brand); }
.post-card h3 { font-size: var(--text-xl); }
.post-card .p-ex { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.55; }
.post-card .p-meta { font-size: var(--text-xs); color: var(--text-subtle); margin-top: auto; padding-top: var(--space-3); }
.article-body { max-width: 720px; margin: 0 auto; }
.article-body p { color: var(--text-body); line-height: 1.7; margin-bottom: var(--space-5); font-size: var(--text-lg); }
.article-body h2 { font-family: var(--font-display); font-size: var(--text-display-sm); margin: var(--space-8) 0 var(--space-4); }
.article-hero { width: 100%; aspect-ratio: 21/9; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: var(--space-7); }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.gitem { position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/3; cursor: pointer; background: var(--sand-200); }
.gitem img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.gitem:hover img { transform: scale(1.05); }
.gitem .g-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--space-4); background: linear-gradient(0deg, rgba(23,17,11,0.7), transparent); color: #fff; font-size: var(--text-sm); font-weight: 600; }
.gitem .g-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.gitem .g-play span { width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,0.9); display: flex; align-items: center; justify-content: center; color: var(--brand-deep); }
.lightbox { position: fixed; inset: 0; background: rgba(23,17,11,0.92); z-index: 500; display: none; align-items: center; justify-content: center; padding: var(--space-6); }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: var(--radius-md); }
.lightbox .lb-close { position: absolute; top: 20px; right: 24px; color: #fff; background: none; border: 0; cursor: pointer; }
.lightbox .lb-close [data-lucide] { width: 30px; height: 30px; }

/* Newsletter */
.newsletter { background: var(--surface-sunken); border: 1px solid var(--border-hair); border-radius: var(--radius-lg); padding: var(--space-8); text-align: center; }
.newsletter form { display: flex; gap: var(--space-3); max-width: 460px; margin: var(--space-5) auto 0; }
.newsletter input { flex: 1; padding: 12px 15px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); font-size: var(--text-md); background: var(--white); }

/* ---------- Project detail page ---------- */
.pd-hero { position: relative; aspect-ratio: 16 / 7; background: var(--sand-200); border-radius: var(--radius-lg); overflow: hidden; }
.pd-hero img { width: 100%; height: 100%; object-fit: cover; }
.pd-hero .pc-tag { position: absolute; top: var(--space-4); left: var(--space-4); }
.pd-hero .pc-rera { position: absolute; bottom: var(--space-4); left: var(--space-4); }
.pd-layout { display: grid; grid-template-columns: 2fr 1fr; gap: var(--space-8); margin-top: var(--space-8); align-items: start; }
.pd-meta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); margin: var(--space-6) 0; }
.pd-meta-grid .m-label { font-size: var(--text-2xs); text-transform: uppercase; letter-spacing: var(--ls-wide); color: var(--text-subtle); }
.pd-meta-grid .m-value { font-family: var(--font-display); font-size: var(--text-lg); color: var(--text-strong); margin-top: 3px; }
.pd-amenities { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-3); }
.pd-sidebar { position: sticky; top: 100px; background: var(--surface-card); border: 1px solid var(--border-hair); border-radius: var(--radius-lg); padding: var(--space-6); }
.pd-sidebar .btn { width: 100%; justify-content: center; margin-top: var(--space-3); }
@media (max-width: 880px) {
  .pd-layout { grid-template-columns: 1fr; }
  .pd-sidebar { position: static; }
  .pd-meta-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Horizontal project scroller (related projects) ---------- */
.rel-scroll {
  display: flex; gap: var(--space-5); overflow-x: auto; padding: 4px 4px var(--space-3);
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.rel-scroll .project-card { flex: 0 0 300px; scroll-snap-align: start; }
.rel-scroll::-webkit-scrollbar { height: 8px; }
.rel-scroll::-webkit-scrollbar-thumb { background: var(--border-soft); border-radius: var(--radius-pill); }

/* ---------- Founder profile ---------- */
.founder-avatar {
  width: 220px; height: 220px; border-radius: 50%; flex: none;
  background: linear-gradient(160deg, var(--terracotta-300), var(--terracotta-600));
  color: var(--white); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 64px;
  border: 4px solid var(--brass-500);
}
.founder-quote {
  font-family: var(--font-display); font-style: italic; font-size: var(--text-lg);
  color: var(--text-strong); line-height: 1.5; border-left: 3px solid var(--brand);
  padding-left: var(--space-5); margin: var(--space-5) 0;
}
/* Stylized rendering of the founder's name standing in for a scanned signature —
   swapped automatically for the real signature image once one is supplied (see about.php). */
.founder-signature { font-family: 'Dancing Script', cursive; font-size: 42px; color: var(--text-strong); line-height: 1; }
