/* ═══ FREEHOLD — INVESTOR LANDING PAGE ═══ */

/* ── Base resets (match listings / detail / simple_pages) ── */
* { box-sizing: border-box; }
a { color: inherit; text-decoration: none; }
a:focus-visible,
button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: var(--control-radius);
}

/* ── Page ── */
html:has(body.freehold-page) {
  overflow-x: hidden;
}
body.freehold-page {
  margin: 0;
  padding: 0;
  font-family: "Outfit", sans-serif;
  line-height: 1.55;
  background: var(--page-bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  --simple-wave-stroke: var(--ink-shadow);
  --simple-wave-glow: rgba(246, 250, 247, 0.14);
  --simple-wave-opacity: 0.58;
}
body.freehold-page .page {
  position: relative;
  z-index: var(--z-raised);
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
body.freehold-page .site-footer {
  margin-top: auto;
}
:root:not([data-mode="light"]) body.freehold-page {
  --simple-wave-stroke: rgba(220, 230, 225, 0.16);
  --simple-wave-glow: rgba(176, 196, 188, 0.12);
  --simple-wave-opacity: 0.5;
}
.fh-wave-svg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-base);
  opacity: var(--simple-wave-opacity);
  mix-blend-mode: multiply;
  filter: saturate(104%);
  pointer-events: none;
}
:root:not([data-mode="light"]) .fh-wave-svg {
  mix-blend-mode: screen;
  filter: saturate(108%);
}
.fh-wave {
  fill: none;
  stroke: var(--simple-wave-stroke);
  stroke-width: 0.95;
  opacity: 0.58;
  stroke-linecap: round;
  filter: drop-shadow(0 0 0.16rem var(--simple-wave-glow));
}

/* ── Shared: eyebrow ── */
.fh-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.fh-eyebrow--on-dark { color: var(--fh-accent-on-dark, var(--accent)); }

/* ── Shared: headings ── */
body.freehold-page h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 400;
  line-height: 0.93;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 28px;
  max-width: 820px;
}
body.freehold-page h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 24px;
}
body.freehold-page h1 em,
body.freehold-page h2 em {
  font-style: italic;
  color: var(--accent);
}

/* ── Shared: section container ── */
.fh-sec {
  padding: 96px 48px;
  max-width: 1240px;
  margin: 0 auto;
}

/* ── Shared: body text ── */
.fh-body {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* ── Shared: buttons ── */
.fh-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  padding: 13px 26px;
  border-radius: var(--control-radius, 12px);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: background 0.28s ease, transform 0.28s ease;
}
.fh-btn:hover {
  background: var(--accent-soft);
  transform: translateY(-1px);
}
.fh-btn:active {
  transform: none;
}
.fh-btn--lg {
  font-size: 16px;
  padding: 15px 32px;
}
.fh-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  padding: 13px 0;
  font-size: 14px;
  font-weight: 400;
  border-bottom: 1px solid currentColor;
  transition: color 0.28s ease;
}
.fh-btn-ghost:hover { color: var(--accent); }

/* ── Shared: divider ── */
.fh-divider {
  border: none;
  border-top: 1px solid var(--surface-border);
}

/* ═══ S1: HERO ═══ */
.fh-hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}
.fh-hero__bg {
  position: absolute;
  inset: 0;
  background-image: url("https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=1920&q=85&fit=crop");
  background-size: cover;
  background-position: center 40%;
  filter: brightness(0.5);
}
.fh-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 32%,
    color-mix(in srgb, var(--page-bg) 70%, transparent) 64%,
    var(--page-bg) 87%
  );
}
.fh-hero__content {
  position: relative;
  z-index: var(--z-raised);
  padding: 80px 48px 64px;
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
}
.fh-hero h1 { color: var(--ink); }
.fh-hero h1 em { color: var(--accent); }
.fh-hero__sub {
  font-size: 17px;
  font-weight: 300;
  color: var(--ink-soft);
  margin-bottom: 40px;
  max-width: 520px;
  line-height: 1.65;
}
.fh-hero__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ═══ S2: STATS BAR ═══ */
.fh-stats {
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
  background: var(--surface-layer-1);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  position: relative;
  z-index: var(--z-sticky);
}
.fh-stats__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.fh-stat {
  padding: 34px 28px;
  border-inline-end: 1px solid var(--surface-border);
}
.fh-stat:last-child { border-inline-end: none; }
.fh-stat__number {
  font-family: "Cormorant Garamond", serif;
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 6px;
  color: var(--ink);
}
.fh-stat__number span { color: var(--accent); }
.fh-stat__label {
  font-size: var(--text-sm);
  color: var(--ink-soft);
  line-height: 1.45;
}

/* ═══ S3: ITC EXPLAINER ═══ */
.fh-itc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-top: 52px;
}
.fh-itc-points { border-top: 1px solid var(--surface-border); margin-top: 32px; }
.fh-itc-point {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--surface-border);
}
.fh-itc-num {
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--accent);
  padding-top: 1px;
}
.fh-itc-head {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}
.fh-itc-body {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.fh-itc-panel {
  border-radius: var(--control-radius, 12px);
  padding: 44px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.fh-big-num {
  font-family: "Cormorant Garamond", serif;
  font-size: 72px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.fh-big-num span { color: var(--accent); }
.fh-big-label {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-top: 5px;
}

/* ═══ S4: PROJECTS ═══ */
.fh-projects {
  background: var(--surface-layer-1);
  padding: 96px 0;
  position: relative;
  z-index: var(--z-sticky);
}
.fh-projects__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 48px;
}
.fh-projects__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 44px;
  gap: 24px;
}
.fh-proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ── Project card ── */
.fh-card {
  background: var(--surface-layer-2);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--surface-border);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  display: flex;
  flex-direction: column;
}
.fh-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--panel-shadow-strong);
}
.fh-card--wide {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 400px 1fr;
}
.fh-card__img {
  height: 220px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.fh-card--wide .fh-card__img {
  height: 100%;
  min-height: 240px;
}
.fh-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}
.fh-card:hover .fh-card__bg { transform: scale(1.04); }
.fh-card__ov {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, transparent 50%);
}
.fh-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}
.fh-card__date {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.fh-card__price {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  color: white;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
}
.fh-card__body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.fh-card__name {
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 3px;
  line-height: 1.2;
}
.fh-card__loc {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.fh-card__loc svg { flex-shrink: 0; fill: currentColor; }
.fh-card__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}
.fh-card__mi { padding: 10px 14px; }
.fh-card__mi:first-child { border-inline-end: 1px solid var(--surface-border); }
.fh-card__ml {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 3px;
}
.fh-card__mv {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.fh-card__pros {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.fh-card__pro {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.45;
}
.fh-card__pro::before {
  content: "";
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 5px;
}
.fh-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.fh-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
}
.fh-tag-gv {
  background: var(--chip-bg);
  color: var(--accent);
  border: 1px solid var(--chip-border);
}
.fh-tag-roi {
  background: rgba(181, 155, 120, 0.12);
  color: var(--gold);
  border: 1px solid var(--gold-border);
}
.fh-tag-plan {
  background: var(--indigo-muted);
  color: var(--indigo);
  border: 1px solid var(--indigo-border);
}
.fh-card__foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--surface-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.fh-card__fp {
  font-size: 12px;
  color: var(--muted);
}
.fh-card__fp strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.fh-card__enq {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 12px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.28s ease;
}
.fh-card__enq:hover { border-color: var(--accent); }
a.fh-card__name {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}
a.fh-card__name:hover { color: var(--accent); }
.fh-card__view {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 12px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.28s ease;
}
.fh-card__view:hover { border-color: var(--accent); }

/* ═══ S5: RESIDENCY ═══ */
/* Dark sections need a fixed light accent — --accent is too dark in light mode */
.fh-residency,
.fh-cta {
  --fh-accent-on-dark: #7fbf9a;
}
.fh-residency {
  background: var(--dark);
  padding: 96px 48px;
  position: relative;
  z-index: var(--z-sticky);
}
.fh-res__inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 88px;
  align-items: center;
}
body.freehold-page .fh-res__heading {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 400;
  line-height: 1.04;
  color: var(--white);
  margin-bottom: 22px;
}
body.freehold-page .fh-res__heading em { font-style: italic; color: var(--fh-accent-on-dark); }
.fh-res__body {
  font-size: 15px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.78;
  margin-bottom: 30px;
}
.fh-res__points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 36px;
}
.fh-res__pt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--white-soft);
}
.fh-res__pt::before {
  content: "";
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  background: var(--fh-accent-on-dark);
  border-radius: 50%;
  margin-top: 6px;
}
.fh-res__panels {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.fh-res-panel {
  padding: 26px 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--control-radius, 12px);
}
.fh-res-panel__num {
  font-family: "Cormorant Garamond", serif;
  font-size: 54px;
  font-weight: 400;
  line-height: 1;
  color: var(--white);
  letter-spacing: -0.025em;
  margin-bottom: 6px;
}
.fh-res-panel__num span { color: var(--fh-accent-on-dark); }
.fh-res-panel__label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 300;
}

/* ═══ S6: STEPS ═══ */
.fh-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--surface-border);
  margin-top: 52px;
}
.fh-step {
  padding: 46px 38px;
  border-inline-end: 1px solid var(--surface-border);
}
.fh-step:last-child { border-inline-end: none; }
.fh-step__num {
  font-family: "Cormorant Garamond", serif;
  font-size: 84px;
  font-weight: 300;
  color: var(--surface-border);
  line-height: 1;
  margin-bottom: 18px;
  letter-spacing: -0.04em;
}
.fh-step__head {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}
.fh-step__body {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.72;
  margin: 0;
}

/* ═══ S7: FAQ ═══ */
.fh-faq-list {
  border-top: 1px solid var(--surface-border);
  margin-top: 44px;
}
.fh-faq-item { border-bottom: 1px solid var(--surface-border); }
.fh-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: start;
  gap: 24px;
  font-family: inherit;
  color: inherit;
}
.fh-faq-qt {
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.4;
}
.fh-faq-ico {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1px solid var(--surface-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.28s ease, border-color 0.28s ease, transform 0.28s ease;
}
.fh-faq-ico svg { fill: var(--ink-soft); transition: fill 0.28s ease; }
.fh-faq-item.open .fh-faq-ico {
  background: var(--accent);
  border-color: var(--accent);
  transform: rotate(45deg);
}
.fh-faq-item.open .fh-faq-ico svg { fill: white; }
.fh-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.38s ease; /* H20: layout transition removed — animate via transform instead */
}
.fh-faq-a__inner {
  padding-bottom: 24px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.78;
  max-width: 760px;
  font-weight: 300;
}

/* ═══ S8: FINAL CTA ═══ */
.fh-cta {
  background: var(--dark);
  padding: 108px 48px;
  text-align: center;
  position: relative;
  z-index: var(--z-sticky);
}
.fh-cta__inner {
  max-width: 640px;
  margin: 0 auto;
}
body.freehold-page .fh-cta__heading {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(48px, 7vw, 92px);
  font-weight: 400;
  color: var(--white);
  line-height: 0.94;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
}
body.freehold-page .fh-cta__heading em { font-style: italic; color: var(--fh-accent-on-dark); }
.fh-cta__sub {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
  margin-bottom: 36px;
  line-height: 1.65;
}

/* ═══ REVEAL ANIMATION ═══ */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 320ms ease, transform 320ms cubic-bezier(0.25, 1, 0.5, 1);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
  .fh-proj-grid { grid-template-columns: 1fr 1fr; }
  .fh-card--wide { grid-column: span 2; grid-template-columns: 300px 1fr; }
}

@media (max-width: 768px) {
  .fh-hero__content,
  .fh-sec { padding-inline: 20px; }
  .fh-stats__inner { grid-template-columns: 1fr 1fr; padding: 0 20px; }
  .fh-stat:nth-child(2) { border-inline-end: none; }
  .fh-stat:nth-child(3),
  .fh-stat:nth-child(4) { border-top: 1px solid var(--surface-border); }
  .fh-stat:nth-child(4) { border-inline-end: none; }
  .fh-itc-grid { grid-template-columns: 1fr; gap: 40px; }
  .fh-projects__inner { padding: 0 20px; }
  .fh-projects__head { flex-direction: column; align-items: flex-start; }
  .fh-proj-grid { grid-template-columns: 1fr; }
  .fh-card--wide { grid-column: span 1; grid-template-columns: 1fr; }
  .fh-card--wide .fh-card__img { height: 220px; }
  .fh-residency { padding: 64px 20px; }
  .fh-res__inner { grid-template-columns: 1fr; gap: 48px; }
  .fh-steps { grid-template-columns: 1fr; }
  .fh-step { border-inline-end: none; border-bottom: 1px solid var(--surface-border); }
  .fh-step:last-child { border-bottom: none; }
  .fh-cta { padding: 72px 20px; }
}

/* ═══ REDUCED MOTION ═══ */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .fh-card { transition: none; }
  .fh-card__bg { transition: none; }
  .fh-faq-ico { transition: none; }
  .fh-faq-a { transition: none; }
  .fh-wave-svg { display: none; }
}
