/* ============================================================
   CFP Properties — style.css
   Palette: Navy #0A1628 | Off-white #F7F4EF | Gold #C9A84C
   Fonts:   Cormorant Garamond (display) | DM Sans (body)
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:       #0A1628;
  --navy-mid:   #122040;
  --navy-light: #1E3055;
  --gold:       #C9A84C;
  --gold-dark:  #A8893B;
  --cream:      #F7F4EF;
  --cream-dark: #EDE9E2;
  --white:      #FFFFFF;
  --text-dark:  #1A1A2E;
  --text-mid:   #4A4A6A;
  --text-light: #8A8AA8;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --shadow-card: 0 2px 16px rgba(10,22,40,0.10), 0 1px 4px rgba(10,22,40,0.06);
  --shadow-card-hover: 0 8px 32px rgba(10,22,40,0.16), 0 2px 8px rgba(10,22,40,0.10);

  --nav-h: 72px;
  --section-pad: clamp(60px, 8vw, 120px);
  --max-w: 1200px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-dark);
  background: var(--cream);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); }
h4 { font-size: 1.2rem; }

p { font-size: clamp(0.95rem, 1.2vw, 1.05rem); color: var(--text-mid); line-height: 1.75; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

/* ── Layout helpers ───────────────────────────────────────── */
.container { width: min(var(--max-w), 100% - 2rem); margin-inline: auto; }
.container--narrow { width: min(760px, 100% - 2rem); margin-inline: auto; }
section { padding-block: var(--section-pad); }

.section-header { text-align: center; margin-bottom: clamp(40px, 5vw, 64px); }
.section-header p { max-width: 56ch; margin: 1rem auto 0; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.75rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn--primary { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn--primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(201,168,76,0.35); }

.btn--outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn--outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); transform: translateY(-1px); }

.btn--outline-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline-dark:hover { background: var(--navy); color: var(--white); transform: translateY(-1px); }

.btn--ghost-gold { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn--ghost-gold:hover { background: var(--gold); color: var(--navy); transform: translateY(-1px); }

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,0.15);
}

.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

.nav__logo { display: flex; flex-direction: column; line-height: 1; }
.nav__logo-primary { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; letter-spacing: 0.02em; color: var(--white); }
.nav__logo-primary span { color: var(--gold); }
.nav__logo-sub { font-family: var(--font-body); font-size: 0.62rem; color: rgba(255,255,255,0.45); letter-spacing: 0.06em; margin-top: 1px; }

.nav__links { display: flex; align-items: center; gap: 2.25rem; }
.nav__links a { font-family: var(--font-body); font-size: 0.875rem; font-weight: 500; color: rgba(255,255,255,0.75); letter-spacing: 0.02em; transition: color 0.2s; position: relative; }
.nav__links a::after { content: ''; position: absolute; bottom: -3px; left: 0; width: 0; height: 1px; background: var(--gold); transition: width 0.25s; }
.nav__links a:hover, .nav__links a.active { color: var(--white); }
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; }

.nav__hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 36px; height: 36px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav__hamburger span { display: block; height: 2px; background: var(--white); border-radius: 2px; transition: all 0.3s ease; transform-origin: center; }
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile { position: fixed; top: var(--nav-h); left: 0; right: 0; background: var(--navy); border-top: 1px solid rgba(201,168,76,0.2); padding: 1.5rem 1.5rem 2rem; display: flex; flex-direction: column; gap: 0; transform: translateY(-105%); transition: transform 0.35s cubic-bezier(0.4,0,0.2,1); z-index: 999; }
.nav__mobile.open { transform: translateY(0); }
.nav__mobile a { display: block; font-family: var(--font-body); font-size: 1.05rem; font-weight: 500; color: rgba(255,255,255,0.8); padding: 0.9rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); transition: color 0.2s; }
.nav__mobile a:last-of-type { border-bottom: none; }
.nav__mobile a:hover { color: var(--gold); }
.nav__mobile .btn { margin-top: 1.25rem; width: 100%; justify-content: center; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: clamp(520px, 88vh, 860px);
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #1a3060 100%);
  overflow: hidden;
}

.hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 120px; background: linear-gradient(to bottom, transparent, var(--cream)); pointer-events: none; }

.hero__inner { position: relative; z-index: 1; padding-block: 6rem 8rem; max-width: 680px; }

.hero__tag { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(201,168,76,0.12); border: 1px solid rgba(201,168,76,0.3); color: var(--gold); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.4rem 1rem; border-radius: 100px; margin-bottom: 1.5rem; }

.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero h1 em { font-style: italic; color: var(--gold); }

.hero__tagline { font-size: clamp(1rem, 1.5vw, 1.15rem); color: rgba(255,255,255,0.72); margin-bottom: 2.25rem; max-width: 52ch; }

.hero__ctas { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ── Property Cards ───────────────────────────────────────── */
.prop-card { background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.prop-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }

.prop-card__img { position: relative; padding-top: 62%; background: var(--cream-dark); overflow: hidden; }
.prop-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.prop-card:hover .prop-card__img img { transform: scale(1.04); }

.prop-card__badge { position: absolute; top: 12px; left: 12px; background: var(--gold); color: var(--navy); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.25rem 0.65rem; border-radius: 100px; z-index: 1; }

.prop-card__body { padding: 1.25rem 1.5rem 1.5rem; }
.prop-card__location { display: flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; color: var(--text-light); margin-bottom: 0.4rem; }
.prop-card__location svg { flex-shrink: 0; }
.prop-card__name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--navy); margin-bottom: 0.5rem; line-height: 1.25; }
.prop-card__meta { display: flex; align-items: center; gap: 1rem; font-size: 0.82rem; color: var(--text-mid); margin-bottom: 1rem; flex-wrap: wrap; }
.prop-card__meta span { display: flex; align-items: center; gap: 0.3rem; }
.prop-card__footer { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; border-top: 1px solid var(--cream-dark); gap: 0.75rem; }
.prop-card__price { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--navy); line-height: 1; }
.prop-card__price span { font-family: var(--font-body); font-size: 0.8rem; font-weight: 400; color: var(--text-light); }

/* ── Why CFP Benefits ─────────────────────────────────────── */
.benefits { background: var(--white); }

.benefit-item { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; padding: 2rem; border-radius: var(--radius-md); background: var(--cream); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.benefit-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }

.benefit-icon { width: 52px; height: 52px; border-radius: var(--radius-sm); background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%); display: grid; place-items: center; flex-shrink: 0; }
.benefit-icon svg { width: 24px; height: 24px; stroke: var(--gold); }
.benefit-item h3 { font-size: 1.2rem; margin-bottom: 0.25rem; }

/* ── How it Works ─────────────────────────────────────────── */
.how-it-works { background: var(--cream-dark); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.step { text-align: center; padding: 2.5rem 2rem; background: var(--white); border-radius: var(--radius-md); }
.step__number { width: 60px; height: 60px; border-radius: 50%; background: var(--navy); color: var(--gold); font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; display: grid; place-items: center; margin: 0 auto 1.25rem; }
.step h3 { margin-bottom: 0.6rem; font-size: 1.2rem; }

/* ── Owner Banner ─────────────────────────────────────────── */
.owner-banner { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-light) 100%); padding-block: clamp(48px,7vw,96px); position: relative; overflow: hidden; }
.owner-banner::before { content: ''; position: absolute; top: -60px; right: -60px; width: 360px; height: 360px; border-radius: 50%; border: 1px solid rgba(201,168,76,0.15); }
.owner-banner::after { content: ''; position: absolute; bottom: -80px; right: 60px; width: 240px; height: 240px; border-radius: 50%; border: 1px solid rgba(201,168,76,0.1); }
.owner-banner__inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 2rem; }
.owner-banner h2 { color: var(--white); margin-bottom: 0.75rem; }
.owner-banner p { color: rgba(255,255,255,0.7); max-width: 50ch; }

/* ── Filters ──────────────────────────────────────────────── */
.filters { background: var(--white); border-bottom: 1px solid var(--cream-dark); padding-block: 1.25rem; }
.filters__inner { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }
.filters__label { font-size: 0.85rem; font-weight: 600; color: var(--text-mid); white-space: nowrap; }
.filter-select { appearance: none; -webkit-appearance: none; background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234A4A6A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 0.75rem center; border: 1.5px solid var(--cream-dark); border-radius: var(--radius-sm); padding: 0.55rem 2.25rem 0.55rem 0.85rem; font-family: var(--font-body); font-size: 0.88rem; color: var(--text-dark); cursor: pointer; transition: border-color 0.2s; min-width: 160px; }
.filter-select:focus { outline: none; border-color: var(--gold); }

/* ── Forms ────────────────────────────────────────────────── */
.form-section { background: var(--white); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group--full { grid-column: 1 / -1; }

label { font-size: 0.85rem; font-weight: 600; color: var(--text-dark); letter-spacing: 0.02em; }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  font-family: var(--font-body); font-size: 0.95rem; color: var(--text-dark); background: var(--cream);
  border: 1.5px solid var(--cream-dark); border-radius: var(--radius-sm); padding: 0.75rem 1rem; width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s; -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.12); background: var(--white); }
textarea { resize: vertical; min-height: 140px; }
.form-submit { display: flex; justify-content: flex-end; padding-top: 0.5rem; }

/* ── Contact ──────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-info__list { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
.contact-info__item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-info__icon { width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--navy); display: grid; place-items: center; flex-shrink: 0; }
.contact-info__icon svg { width: 20px; height: 20px; stroke: var(--gold); }
.contact-info__text strong { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-dark); margin-bottom: 0.2rem; }
.contact-info__text span, .contact-info__text a { font-size: 0.95rem; color: var(--text-mid); }
.contact-info__text a:hover { color: var(--gold); }

/* ── Page Hero (inner pages) ──────────────────────────────── */
.page-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); padding-block: clamp(60px,8vw,100px); text-align: center; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 80px; background: linear-gradient(to bottom, transparent, var(--cream)); }
.page-hero__inner { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 1.1rem; max-width: 56ch; margin: 0 auto; }

/* ── Owners page ──────────────────────────────────────────── */
.owner-benefits { background: var(--cream-dark); }
.owner-benefit { display: flex; gap: 1.5rem; align-items: flex-start; padding: 2rem; background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-card); transition: transform 0.3s; }
.owner-benefit:hover { transform: translateY(-4px); }
.owner-benefit__icon { width: 56px; height: 56px; flex-shrink: 0; border-radius: var(--radius-sm); background: var(--navy); display: grid; place-items: center; }
.owner-benefit__icon svg { width: 26px; height: 26px; stroke: var(--gold); }
.owner-benefit h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }

/* ── Stats bar ────────────────────────────────────────────── */
.stats-bar { background: var(--navy); padding-block: 3rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 2rem; text-align: center; }
.stat h3 { font-family: var(--font-display); font-size: clamp(2rem,4vw,3rem); color: var(--gold); font-weight: 700; line-height: 1; margin-bottom: 0.35rem; }
.stat p { font-size: 0.85rem; color: rgba(255,255,255,0.6); }

/* ── Legal pages ──────────────────────────────────────────── */
.legal-content { background: var(--white); }
.legal-body { max-width: 780px; margin: 0 auto; }
.legal-body h2 { font-size: 1.5rem; margin-top: 2.5rem; margin-bottom: 0.75rem; padding-top: 1rem; border-top: 1px solid var(--cream-dark); }
.legal-body h2:first-of-type { border-top: none; margin-top: 0; }
.legal-body p, .legal-body li { font-size: 0.97rem; color: var(--text-mid); margin-bottom: 0.9rem; }
.legal-body ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-body ul li { margin-bottom: 0.4rem; }
.legal-body strong { color: var(--text-dark); }
.legal-meta { font-size: 0.82rem !important; color: var(--text-light) !important; margin-bottom: 2.5rem !important; }

/* ── Footer ───────────────────────────────────────────────── */
.footer { background: var(--navy); color: rgba(255,255,255,0.7); padding-block: clamp(40px,6vw,72px) 2rem; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 2rem; }
.footer__logo-primary { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--white); }
.footer__logo-primary span { color: var(--gold); }
.footer__logo-sub { font-size: 0.65rem; color: rgba(255,255,255,0.35); letter-spacing: 0.06em; margin-top: 2px; display: block; }
.footer__tagline { font-size: 0.9rem; margin-top: 0.75rem; max-width: 36ch; color: rgba(255,255,255,0.5); }
.footer__col h4 { color: var(--white); font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem; }
.footer__col a { display: block; font-size: 0.88rem; color: rgba(255,255,255,0.55); margin-bottom: 0.55rem; transition: color 0.2s; }
.footer__col a:hover { color: var(--gold); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.8rem; color: rgba(255,255,255,0.35); }
.footer__bottom a { color: rgba(255,255,255,0.45); transition: color 0.2s; }
.footer__bottom a:hover { color: var(--gold); }

/* ── Scroll animation ─────────────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up--delay-1 { transition-delay: 0.1s; }
.fade-up--delay-2 { transition-delay: 0.2s; }
.fade-up--delay-3 { transition-delay: 0.3s; }
.fade-up--delay-4 { transition-delay: 0.4s; }

/* ── Misc ─────────────────────────────────────────────────── */
.gold-divider { width: 48px; height: 2px; background: var(--gold); margin: 1rem auto; border-radius: 2px; }
.gold-divider--left { margin-left: 0; }

.notice { background: var(--gold); padding: 0.6rem 1.5rem; text-align: center; font-size: 0.82rem; font-weight: 600; color: var(--navy); letter-spacing: 0.02em; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .hero__inner { padding-block: 4rem 6rem; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group--full { grid-column: auto; }
  .owner-banner__inner { flex-direction: column; align-items: flex-start; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
  .prop-card__footer { flex-direction: column; align-items: flex-start; }
}

/* ── Utility ──────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-gold   { color: var(--gold); }
.text-white  { color: var(--white); }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
