/* ANDY HOFMANN — Ocean Reef Club Real Estate
   Brand: Hofmann Navy #142850 · Estate Gold #C9B78F · White #FFFFFF
   Type: Gilda Display (display only) · Lato (everything else, Light default) */

:root {
  --navy: #142850;
  --gold: #C9B78F;
  --white: #FFFFFF;
  --navy-panel: rgba(14, 26, 52, 0.82);
  --max: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  color: var(--white);
  background: var(--navy);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.display {
  font-family: 'Gilda Display', serif;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.15;
}

.kicker {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 0.82rem;
}

.gold-rule {
  width: 88px;
  height: 2px;
  background: var(--gold);
  margin: 1.1rem auto;
  border: 0;
}

.gold-rule.left { margin-left: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.4rem; }

/* ---------- NAV ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgba(201, 183, 143, 0.35);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.4rem; max-width: var(--max); margin: 0 auto;
}
.nav-name { font-family: 'Gilda Display', serif; font-size: 1.15rem; letter-spacing: 0.12em; color: var(--white); text-decoration: none; text-transform: uppercase; }
.nav-name span { color: var(--gold); }
.nav-links { display: flex; gap: 1.8rem; list-style: none; align-items: center; }
.nav-links a { color: var(--white); text-decoration: none; font-size: 0.9rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 300; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-cta {
  border: 1px solid var(--gold); color: var(--gold) !important;
  padding: 0.5rem 1.1rem; transition: all .2s;
}
.nav-cta:hover { background: var(--gold); color: var(--navy) !important; }
.burger { display: none; background: none; border: none; color: var(--gold); font-size: 1.6rem; cursor: pointer; }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 86vh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background-size: cover; background-position: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  transform: scale(1.12); will-change: transform;
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(rgba(20,40,80,.55), rgba(14,26,52,.88)); }
.hero-inner { position: relative; z-index: 2; padding: 4rem 1.4rem; }
.hero h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); color: var(--white); }
.hero .kicker { margin-bottom: 1rem; display: block; }
.hero-stats { color: var(--gold); font-size: 1.05rem; letter-spacing: 0.08em; margin-top: 1.2rem; }
.hero-tag { font-weight: 300; margin-top: 1.4rem; font-size: 1.15rem; }

.btn-row { display: flex; gap: 1rem; justify-content: center; margin-top: 2.2rem; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; letter-spacing: 0.22em; text-transform: uppercase;
  font-size: 0.85rem; padding: 0.9rem 2rem; transition: all .2s; font-weight: 400;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--white); }
.btn-ghost { border: 1px solid var(--gold); color: var(--gold); }
.btn-ghost:hover { background: var(--gold); color: var(--navy); }

/* frame hairlines (signature motif) */
.frame { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.frame::before { content: ""; position: absolute; top: 26px; left: 0; right: 0; height: 2px; background: rgba(201,183,143,.6); }
.frame::after { content: ""; position: absolute; bottom: 26px; left: 0; right: 0; height: 2px; background: rgba(201,183,143,.6); }

/* ---------- SECTIONS ---------- */
section { padding: 5rem 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); color: var(--white); }

.alt { background: #0E1A34; }

/* two-col */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.cols img { border: 1px solid rgba(201,183,143,.4); }

/* stats band */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat-num { font-family: 'Gilda Display', serif; font-size: 2.6rem; color: var(--gold); }
.stat-label { font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase; margin-top: 0.3rem; }
.stats-note { text-align: center; margin-top: 2.2rem; font-size: .95rem; color: rgba(255,255,255,.85); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.card { background: #0E1A34; border: 1px solid rgba(201,183,143,.35); display: flex; flex-direction: column; }
.card-img { height: 220px; background-size: cover; background-position: center; }
.card-body { padding: 1.6rem; flex: 1; display: flex; flex-direction: column; }
.card h3 { font-family: 'Gilda Display', serif; font-weight: 400; letter-spacing: .06em; font-size: 1.25rem; margin-bottom: .4rem; }
.card .price { color: var(--gold); letter-spacing: .1em; margin-bottom: .8rem; font-weight: 400; }
.card p { font-size: .95rem; flex: 1; }
.card .btn { margin-top: 1.4rem; align-self: flex-start; }

/* numbered list (membership steps) */
.steps { max-width: 780px; margin: 0 auto; }
.step { display: flex; gap: 1.4rem; padding: 1.4rem 0; border-bottom: 1px solid rgba(201,183,143,.25); }
.step:last-child { border-bottom: 0; }
.step-num { font-family: 'Gilda Display', serif; color: var(--gold); font-size: 1.6rem; min-width: 2.2rem; }
.step h4 { font-weight: 400; letter-spacing: .06em; margin-bottom: .2rem; font-size: 1.05rem; }
.step p { font-size: .95rem; color: rgba(255,255,255,.85); }

/* quote */
.quote { text-align: center; max-width: 760px; margin: 0 auto; }
.quote blockquote { font-family: 'Gilda Display', serif; font-size: clamp(1.3rem, 3vw, 1.8rem); line-height: 1.5; color: var(--white); }
.quote cite { display: block; margin-top: 1.2rem; color: var(--gold); font-style: normal; letter-spacing: .25em; text-transform: uppercase; font-size: .8rem; }

/* about prose */
.prose { max-width: 720px; margin: 0 auto; }
.prose p { margin-bottom: 1.4rem; font-size: 1.02rem; }
.prose p strong { font-weight: 400; color: var(--gold); }

/* contact footer */
footer { background: #0B1529; padding: 4rem 0 2.5rem; text-align: center; border-top: 2px solid rgba(201,183,143,.5); }
.foot-name { font-family: 'Gilda Display', serif; font-size: 1.6rem; letter-spacing: .1em; text-transform: uppercase; }
.foot-contact { margin: 1.4rem 0; display: flex; flex-direction: column; gap: .4rem; }
.foot-contact a { color: var(--gold); text-decoration: none; font-size: 1.05rem; }
.foot-contact a:hover { color: var(--white); }
.socials { display: flex; gap: 1.6rem; justify-content: center; margin: 1.2rem 0; }
.socials a { color: var(--white); text-decoration: none; letter-spacing: .15em; font-size: .85rem; text-transform: uppercase; }
.socials a:hover { color: var(--gold); }
.hof { font-family: 'Gilda Display', serif; letter-spacing: .08em; margin-top: 1.6rem; font-size: 1.1rem; }
.legal { font-size: .75rem; color: rgba(255,255,255,.5); margin-top: 1.6rem; }

/* ---------- SCROLL EXPERIENCE ---------- */
header { transition: box-shadow .35s ease; }
header.scrolled { box-shadow: 0 8px 30px rgba(0, 0, 0, .45); }

/* hero entrance: content rises in sequence, hairlines draw across */
.hero-inner > * { opacity: 0; animation: heroUp 1s cubic-bezier(.22, .61, .21, 1) forwards; }
.hero-inner > :nth-child(1) { animation-delay: .15s; }
.hero-inner > :nth-child(2) { animation-delay: .3s; }
.hero-inner > :nth-child(3) { animation-delay: .5s; }
.hero-inner > :nth-child(4) { animation-delay: .65s; }
.hero-inner > :nth-child(5) { animation-delay: .8s; }
.hero-inner > :nth-child(6) { animation-delay: .95s; }
@keyframes heroUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}
.frame::before, .frame::after { transform: scaleX(0); animation: drawLine 1.6s cubic-bezier(.22, .61, .21, 1) .4s forwards; }
@keyframes drawLine { to { transform: scaleX(1); } }

/* reveal-on-scroll (classes added by js/experience.js) */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s cubic-bezier(.22, .61, .21, 1), transform 1s cubic-bezier(.22, .61, .21, 1); }
.reveal.in { opacity: 1; transform: none; }
hr.gold-rule.reveal { transform: none; width: 0; transition: opacity .6s ease, width 1.1s cubic-bezier(.22, .61, .21, 1) .15s; }
hr.gold-rule.reveal.in { width: 88px; }
img.reveal, .cols > img.reveal { transform: translateY(30px) scale(.97); }
img.reveal.in { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hero-inner > *, .frame::before, .frame::after { animation: none; opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  hr.gold-rule.reveal { width: 88px; }
  .hero-bg { transform: none; }
}

/* ---------- MOBILE ---------- */
@media (max-width: 760px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy); flex-direction: column; padding: 1.4rem;
    border-bottom: 1px solid rgba(201,183,143,.4); gap: 1.2rem;
  }
  .nav-links.open { display: flex; }
  .burger { display: block; }
  .cols { grid-template-columns: 1fr; gap: 2rem; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  section { padding: 3.4rem 0; }
  .hero { min-height: 78vh; }
}
