/* NEWPROD — Property Investment Advisory
   Ren CSS, ingen build. Mobile-first.
   Brand: Navy / Champagne Gold / Ivory / Charcoal.
   Typography: Cormorant Garamond (display) + Inter (body). */

/* ─── Tokens ──────────────────────────────────────────────── */

:root {
  /* Palette per brief */
  --navy:      #0F172A;
  --gold:      #B89A64;
  --gold-dim:  #9F8550;
  --ivory:     #F9F6F1;
  --charcoal:  #1A1A1A;
  --line:      rgba(184, 154, 100, 0.32);
  --muted:     rgba(26, 26, 26, 0.62);

  /* Typography */
  --font-display: 'Cormorant Garamond', Garamond, 'EB Garamond', 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Scale */
  --content-max: 1120px;
  --reading-max: 640px;
  --section-pad: clamp(5rem, 12vw, 10rem);
  --gutter:      clamp(1.5rem, 5vw, 3rem);

  /* Radii + transitions */
  --radius: 2px;
  --t-fast: 180ms cubic-bezier(.2, .8, .2, 1);
}

/* ─── Reset ───────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0.005em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; height: auto; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast);
}

button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
  color: var(--navy);
}

p { margin: 0; }

ol, ul { list-style: none; margin: 0; padding: 0; }

/* ─── Layout helpers ──────────────────────────────────────── */

.wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left:  var(--gutter);
  padding-right: var(--gutter);
}

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

.section-head {
  max-width: var(--reading-max);
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
.section-head .eyebrow { margin-bottom: 1rem; }
.section-head h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
}

/* Editorial chapter numerals (italic serif, gold).
   Used in section heads and at the top of each section block
   to give the page a magazine-spread rhythm. */
.chapter-num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
  color: var(--gold);
  margin-bottom: 1.25rem;
  letter-spacing: 0.01em;
}

/* About + Contact sections have inline eyebrows (no .section-head wrapper)
   so chapter-num spacing needs to align with that pattern */
.about-inner .chapter-num,
.contact-inner .chapter-num {
  margin-bottom: 1rem;
}

/* ─── Header ──────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(249, 246, 241, 0.85);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  color: var(--navy);
  line-height: 0;
}

.wordmark svg {
  display: block;
  height: 18px;
  width: auto;
}

/* Footer wordmark sits on dark navy bg → ivory tint */
.site-footer .wordmark {
  color: var(--ivory);
}
.site-footer .wordmark svg {
  height: 16px;
}

.primary-nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  font-size: 0.95rem;
}
.primary-nav a {
  color: var(--navy);
  opacity: 0.78;
  padding: 0.5rem 0;
  border-bottom: 1px solid transparent;
}
.primary-nav a:hover {
  opacity: 1;
  border-bottom-color: var(--gold);
}
.primary-nav .nav-cta {
  color: var(--navy);
  opacity: 1;
  font-weight: 500;
}

/* Hide nav text on small screens; keep wordmark + CTA only */
@media (max-width: 540px) {
  .primary-nav a:not(.nav-cta) { display: none; }
}

/* ─── Hero (editorial, dark) ──────────────────────────────── */

.hero {
  position: relative;
  /* Mobile: content-driven height (padding does the work).
     Desktop: cinematic 88vh — see media query below. */
  padding-top:    clamp(5rem, 12vw, 11rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  color: var(--ivory);

  /* Layered background:
     1. Soft radial highlight (suggests natural light, upper-left)
     2. Subtle vertical gradient on navy base
     To add real photography later, set:
       background-image: url('assets/hero.jpg'), <gradients above>;
       background-size: cover, auto;
       background-position: center, top left;
     Keep the gradient layer on top of the image at lower opacity
     for text-overlay safety. */
  background:
    radial-gradient(ellipse 60% 50% at 18% 18%, rgba(184, 154, 100, 0.10), transparent 65%),
    linear-gradient(180deg, #11192C 0%, #0F172A 55%, #0B1322 100%);

  display: flex;
  align-items: center;
  overflow: hidden;
}

@media (min-width: 720px) {
  .hero {
    min-height: 88vh;
  }
}

/* Subtle architectural detail — thin vertical gold line in right gutter.
   Reads as printed-magazine column rule, not a chart-line. */
.hero::after {
  content: "";
  position: absolute;
  right: clamp(1.5rem, 5vw, 4rem);
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, rgba(184, 154, 100, 0.45) 30%, rgba(184, 154, 100, 0.45) 70%, transparent 100%);
  pointer-events: none;
}

.hero-inner {
  max-width: 980px;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Editorial eyebrow on dark: gold caps with wide spacing */
.hero .eyebrow {
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.36em;
  margin-bottom: 1.75rem;
}

/* Slim gold rule between eyebrow and headline (editorial anchor) */
.hero-rule {
  display: block;
  width: 64px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 2.5rem;
  opacity: 0.85;
}

/* Massive editorial display headline (ivory on navy).
   Each child <span> becomes its own line — controlled break,
   keeps the H1 a single semantic sentence for SR + SEO. */
.hero-display {
  font-size: clamp(2.6rem, 8vw, 6.4rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.018em;
  margin-bottom: 2.75rem;
  max-width: none;
  color: var(--ivory);
}

.hero-display span {
  display: block;
}

/* Italic accent on the closing phrase (editorial touch) */
.hero-display em {
  font-style: italic;
  font-weight: 400;
  color: var(--ivory);
}

.hero .lede {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.55vw, 1.2rem);
  font-weight: 400;
  color: rgba(248, 246, 242, 0.74);
  max-width: 36rem;
  margin-bottom: 3rem;
  line-height: 1.65;
}

/* Primary button needs to invert against the dark hero */
.hero .btn-primary {
  background: var(--ivory);
  color: var(--navy);
  border-color: var(--ivory);
}
.hero .btn-primary:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

/* ─── Buttons ─────────────────────────────────────────────── */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1.1rem 2.2rem;
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  cursor: pointer;
}

.btn-primary {
  background: var(--navy);
  color: var(--ivory);
}
.btn-primary:hover {
  background: var(--charcoal);
  border-color: var(--charcoal);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
}
.btn-ghost:hover {
  background: var(--navy);
  color: var(--ivory);
}

/* ─── Services ────────────────────────────────────────────── */

.services {
  background: var(--ivory);
  padding-top:    var(--section-pad);
  padding-bottom: var(--section-pad);
  border-top: 1px solid var(--line);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem);
}

@media (min-width: 720px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.service {
  max-width: 36rem;
}

.service h3 {
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.service p {
  color: var(--muted);
  line-height: 1.65;
}

/* ─── About (editorial, with pull quote) ──────────────────── */

.about {
  background: var(--navy);
  color: var(--ivory);
  padding-top:    var(--section-pad);
  padding-bottom: var(--section-pad);
}

.about .eyebrow { color: var(--gold); }
.about h2 { color: var(--ivory); }

/* Two-column body: prose left, pull quote right (Knight Frank pattern) */
.about-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

@media (min-width: 860px) {
  .about-body {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: clamp(3rem, 6vw, 5.5rem);
  }
}

.about-prose {
  max-width: 38rem;
}

.about-prose p {
  color: rgba(248, 246, 242, 0.78);
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0 0 1.5rem;
}
.about-prose p:last-child { margin-bottom: 0; }

/* Editorial pull quote — italic serif, gold, with leading rule */
.about-pullquote {
  margin: 0;
  padding-top: 0.35rem;
}

@media (min-width: 860px) {
  .about-pullquote {
    /* Slight right-side push for editorial asymmetry on desktop */
    padding-left: clamp(0rem, 2vw, 1.5rem);
  }
}

.pullquote-rule {
  display: block;
  width: 56px;
  height: 1px;
  background: var(--gold);
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
  opacity: 0.7;
}

.about-pullquote p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;            /* 500 over 400 so strokes hold on mobile */
  font-size: clamp(2.1rem, 5vw, 3rem);
  line-height: 1.18;
  letter-spacing: -0.005em;
  color: var(--gold);
  margin: 0;
}

/* Mobile: 2 lines, one per sentence.
   "A decade in new-builds." flows inline; ::before forces a line break
   before "Twenty years"; "in Spain." flows inline after. */
.about-pullquote p span {
  display: inline;
}
.about-pullquote .pullquote-break::before {
  content: "";
  display: block;
  margin-top: 0.4em;
}

/* Desktop: editorial 4-line cadence — every phrase on its own line. */
@media (min-width: 720px) {
  .about-pullquote p span {
    display: block;
  }
  .about-pullquote .pullquote-break::before {
    display: none;
  }
  .about-pullquote .pullquote-break {
    margin-top: 0.5em;
  }
}

/* ─── Why ─────────────────────────────────────────────────── */

.why {
  background: var(--ivory);
  padding-top:    var(--section-pad);
  padding-bottom: var(--section-pad);
}

.why-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 3.5rem) clamp(2rem, 4vw, 3rem);
  counter-reset: why;
}

@media (min-width: 720px) {
  .why-list {
    grid-template-columns: 1fr 1fr;
  }
}

.why-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  max-width: 36rem;
}

.why-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--gold);
  line-height: 1;
  padding-top: 0.15rem;
}

.why-list h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  margin-bottom: 0.5rem;
}

.why-list p {
  color: var(--muted);
}

/* ─── Contact ─────────────────────────────────────────────── */

.contact {
  background: var(--navy);
  color: var(--ivory);
  padding-top:    var(--section-pad);
  padding-bottom: var(--section-pad);
  /* No text-align: center — every section anchors to the same left rail */
}

.contact .eyebrow { color: var(--gold); }
.contact h2 { color: var(--ivory); }

/* Lede inside any section-head (reused from hero pattern) */
.section-head .lede {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.55vw, 1.2rem);
  color: var(--muted);
  margin-top: 1.5rem;
  max-width: 36rem;
  line-height: 1.65;
}
/* On dark sections the lede gets the dim-ivory treatment */
.about .section-head .lede,
.contact .section-head .lede {
  color: rgba(248, 246, 242, 0.74);
}

/* Advisor card (Knight Frank-style): portrait left, info right.
   Hierarchy: NAME is the focal point, email is a quiet CTA.  */

.advisor {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
  max-width: 880px;
}

@media (min-width: 720px) {
  .advisor {
    grid-template-columns: minmax(240px, 320px) 1fr;
    gap: clamp(2.5rem, 5vw, 4.5rem);
  }
}

/* Portrait — presentation orientation (4:5), B&W, thin gold outline.
   Mobile: fills the column (full width).
   Desktop: capped at 320px so the right-column content has room. */
.advisor-portrait {
  width: 100%;
}

@media (min-width: 720px) {
  .advisor-portrait {
    max-width: 320px;
  }
}

.advisor-portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 4px;
  border: 1px solid rgba(184, 154, 100, 0.3);
}

/* Credentials band below the advisor card. Editorial closing punctuation
   that balances the section's left-heavy portrait column. Full width on
   desktop (3-up row), stacks vertically on mobile. */
.advisor-stats {
  list-style: none;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  padding: clamp(2rem, 4vw, 2.5rem) 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  position: relative;
  max-width: 880px;
}

.advisor-stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 1px;
  background: var(--gold);
}

@media (min-width: 720px) {
  .advisor-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
  }
}

.advisor-stats li {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-number {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 2.6rem);
  line-height: 1;
  color: var(--ivory);
  letter-spacing: -0.01em;
}

.stat-plus {
  font-size: 0.7em;
  vertical-align: 0.35em;
  margin-left: 0.04em;
  color: var(--gold);
}

.stat-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(249, 246, 241, 0.78);
}

/* Right side: name + role + divider + note + email */
.advisor-meta {
  padding-top: 0.25rem;
}

.advisor-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.05;
  color: var(--ivory);
  margin: 0;
  letter-spacing: -0.005em;
}

.advisor-role {
  margin: 0.65rem 0 0;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Thin gold divider — printed-magazine signature separator */
.advisor-divider {
  display: block;
  width: 56px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
  margin: 1.75rem 0 1.5rem;
}

.advisor-note {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  line-height: 1.55;
  color: rgba(248, 246, 242, 0.78);
  margin: 0 0 1.75rem;
  max-width: 36rem;
}

/* Quiet, functional email CTA — NOT the focal point */
.advisor-email {
  display: inline-flex;
  align-items: baseline;
  gap: 0.65rem;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--gold);
  letter-spacing: 0.01em;
  border-bottom: 1px solid rgba(184, 154, 100, 0.35);
  padding-bottom: 0.35rem;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.advisor-email:hover {
  color: var(--ivory);
  border-bottom-color: var(--ivory);
}

.advisor-arrow {
  display: inline-block;
  transform: translateY(-1px);
  transition: transform var(--t-fast);
}
.advisor-email:hover .advisor-arrow {
  transform: translate(4px, -1px);
}

/* ─── Footer ──────────────────────────────────────────────── */

.site-footer {
  background: var(--navy);
  color: rgba(248, 246, 242, 0.55);
  padding: 2rem 0;
  border-top: 1px solid rgba(184, 154, 100, 0.15);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.site-footer .wordmark { color: var(--ivory); font-size: 1rem; }

.footer-meta {
  letter-spacing: 0.04em;
}

/* ─── Motion ──────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
