/* ===========================================================
   Canadian Real Estate Fund — Site Stylesheet
   Design tokens defined as CSS variables for easy theming
   when this is ported into WordPress.
   =========================================================== */

:root {
  /* Color */
  --navy-900: #0B1F3A;   /* dominant — header, footer, dark sections */
  --navy-700: #1B3A6B;   /* secondary surfaces */
  --paper:    #F7F5F0;   /* warm off-white background */
  --paper-dim:#EFEBE2;   /* slightly deeper paper for cards */
  --ink:      #13161C;   /* body text on light */
  --ink-soft: #4A5160;   /* secondary text on light */
  --cream:    #F2EFE7;   /* text on dark */
  --cream-soft: #B9C2D0; /* secondary text on dark */
  --brass:    #B8862E;   /* single accent — used sparingly */
  --brass-soft: #D9B872;
  --line:     #D9D4C7;   /* hairline borders on light */
  --line-dark: rgba(242,239,231,0.16);

  /* Type */
  --font-display: 'Source Serif 4', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
  --space-7: 9rem;

  --radius: 2px;
  --max-width: 1240px;
}

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

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (max-width: 640px) {
  .container { padding: 0 var(--space-3); }
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

/* ===========================================================
   Typography
   =========================================================== */

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

.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--cream); }

h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); font-weight: 600; }
h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }

p { margin: 0; color: var(--ink-soft); }
.on-dark p { color: var(--cream-soft); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  display: inline-block;
  margin-bottom: var(--space-2);
}

.lede {
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  line-height: 1.65;
  max-width: 46ch;
}

/* ===========================================================
   Roofline motif — the repeating signature element.
   A single architectural chevron (echoes the logo's roofline)
   used as a section transition, never as a decorative stripe.
   =========================================================== */

.roofline {
  width: 100%;
  height: 48px;
  display: block;
}

.roofline path { fill: none; stroke: var(--brass); stroke-width: 1.5; }

/* ===========================================================
   Buttons
   =========================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.95rem 1.9rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--navy-900);
  color: var(--cream);
}
.btn-primary:hover { background: var(--navy-700); }

.btn-on-dark {
  background: var(--brass);
  color: var(--navy-900);
}
.btn-on-dark:hover { background: var(--brass-soft); }

.btn-ghost {
  background: transparent;
  border-color: currentColor;
  color: var(--navy-900);
}
.btn-ghost:hover { background: var(--navy-900); color: var(--cream); }

.on-dark .btn-ghost { color: var(--cream); }
.on-dark .btn-ghost:hover { background: var(--cream); color: var(--navy-900); }

/* ===========================================================
   Header / Nav
   =========================================================== */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(11, 31, 58, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-dark);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand img { height: 38px; width: auto; }

.brand-word {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.1;
}
.brand-word span { display: block; font-size: 0.62rem; letter-spacing: 0.12em; color: var(--brass-soft); font-family: var(--font-body); font-weight: 600; margin-top: 2px; }

.main-nav { display: flex; align-items: center; gap: var(--space-5); }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: var(--space-4);
  margin: 0; padding: 0;
}

.main-nav a {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--cream-soft);
  transition: color 0.2s ease;
  position: relative;
  padding: 0.5rem 10px;
}
.main-nav a:hover, .main-nav a.active { color: var(--cream); }
.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1.5px;
  background: var(--brass);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--cream);
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 880px) {
  .main-nav ul { 
    position: fixed;
    top: 88px; left: 0; right: 0;
    flex-direction: column;
    background: var(--navy-900);
    padding: var(--space-3) var(--space-4) var(--space-4);
    gap: var(--space-3);
    border-bottom: 1px solid var(--line-dark);
    transform: translateY(-24px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  }
  .main-nav.open ul {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .main-nav .btn { display: none; }
  .nav-toggle { display: inline-flex; position: relative; z-index: 10; }
  .brand-word { font-size: 1rem; }
}

/* ===========================================================
   Hero
   =========================================================== */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: var(--navy-900);
  overflow: hidden;
  padding-top: 88px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(11,31,58,0.97) 28%, rgba(11,31,58,0.55) 70%, rgba(11,31,58,0.25) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: var(--space-6) 0;
  max-width: 760px;
}

.hero h1 { margin-bottom: var(--space-3); color: var(--cream); }
.hero .lede { color: var(--cream-soft); margin-bottom: var(--space-4); max-width: 50ch; }

.hero-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* ===========================================================
   Sections
   =========================================================== */

section { position: relative; }

.section { padding: var(--space-7) 0; }
@media (max-width: 720px) { .section { padding: var(--space-6) 0; } }

.section-dark { background: var(--navy-900); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--cream); }
.section-dark p { color: var(--cream-soft); }
.section-paper { background: var(--paper); }
.section-dim { background: var(--paper-dim); }

.section-head {
  max-width: 680px;
  margin-bottom: var(--space-5);
}

.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }

/* Two-column split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: center;
}
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; gap: var(--space-4); }
}
.split.reverse > *:first-child { order: 2; }
@media (max-width: 880px) { .split.reverse > *:first-child { order: 0; } }

.split img, .split .image-frame { border-radius: var(--radius); }

.image-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; }

/* Pillars / value props grid */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
@media (max-width: 880px) { .pillars { grid-template-columns: 1fr; } }

.pillar {
  padding: var(--space-4);
  background: var(--paper);
  border: 1px solid var(--line);
}
.section-dark .pillar { background: rgba(242,239,231,0.04); border-color: var(--line-dark); }
.section-dim .pillar { background: var(--paper); }

.pillar-icon {
  width: 44px; height: 44px;
  margin-bottom: var(--space-3);
  color: var(--brass);
}
.pillar-icon svg { width: 100%; height: 100%; }

.pillar h3 { margin-bottom: 0.6rem; }
.pillar p { font-size: 0.97rem; }

/* Statement / quote-style block */
.statement {
  max-width: 880px;
}
.statement p.big {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.5;
  color: var(--navy-900);
  font-weight: 500;
}
.section-dark .statement p.big { color: var(--cream); }

/* Logo strip / trust bar (text-only, no fabricated logos) */
.trust-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--space-3) 0;
}
.trust-bar .container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  justify-content: space-between;
  align-items: center;
}
.trust-item {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Full-bleed photo band */
.photo-band {
  position: relative;
  height: 60vh;
  min-height: 380px;
  overflow: hidden;
}
.photo-band img { width: 100%; height: 100%; object-fit: cover; }
.photo-band .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(11,31,58,0.65) 0%, rgba(11,31,58,0) 45%);
  display: flex;
  align-items: flex-end;
}
.photo-band .overlay .container { padding-bottom: var(--space-4); }
.photo-band .overlay p {
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.3rem;
  max-width: 50ch;
}

/* CTA band */
.cta-band {
  background: var(--navy-900);
  padding: var(--space-6) 0;
  text-align: center;
}
.cta-band h2 { color: var(--cream); }
.cta-band p { color: var(--cream-soft); }
.cta-band .container { max-width: 720px; }
.cta-band h2 { margin-bottom: var(--space-2); }
.cta-band p { margin-bottom: var(--space-4); }
.cta-band .hero-actions { justify-content: center; }

/* ===========================================================
   Forms (Contact page)
   =========================================================== */

.form-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-6);
}
@media (max-width: 880px) { .form-grid { grid-template-columns: 1fr; } }

form .field { margin-bottom: var(--space-3); }
form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}
form input, form textarea, form select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
}
form input:focus, form textarea:focus, form select:focus {
  border-color: var(--navy-700);
  outline: none;
  box-shadow: 0 0 0 3px rgba(27,58,107,0.12);
}
form textarea { resize: vertical; min-height: 140px; }

.contact-info-card {
  background: var(--navy-900);
  color: var(--cream);
  padding: var(--space-5);
  border-radius: var(--radius);
}
.contact-info-card h3 { color: var(--cream); margin-bottom: var(--space-3); }
.contact-row { margin-bottom: var(--space-3); }
.contact-row .label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-soft);
  font-weight: 600;
  margin-bottom: 0.3rem;
  display: block;
}
.contact-row a, .contact-row span.value { color: var(--cream); font-size: 1.02rem; }
.contact-row a:hover { color: var(--brass-soft); }

/* ===========================================================
   Footer
   =========================================================== */

.site-footer {
  background: var(--navy-900);
  color: var(--cream-soft);
  padding: var(--space-5) 0 var(--space-3);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line-dark);
  margin-bottom: var(--space-3);
}
.footer-brand { max-width: 320px; }
.footer-brand .brand { margin-bottom: var(--space-2); }
.footer-brand p { font-size: 0.92rem; }

.footer-links { display: flex; gap: var(--space-6); flex-wrap: wrap; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-soft);
  margin-bottom: var(--space-2);
  font-weight: 600;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { font-size: 0.92rem; color: var(--cream-soft); }
.footer-col a:hover { color: var(--cream); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: 0.82rem;
  color: rgba(242,239,231,0.55);
}

/* ===========================================================
   Reveal-on-scroll (subtle, orchestrated, not scattered)
   =========================================================== */

/* Content is always visible by default — no scroll-triggered hide/reveal.
   Kept as a no-op hook in case a future, more conservative entrance
   animation is wanted; currently .reveal has no visual effect. */
.reveal { }

/* ===========================================================
   About page specific
   =========================================================== */

.about-hero {
  background: var(--navy-900);
  padding: calc(88px + var(--space-6)) 0 var(--space-6);
}
.about-hero h1 { color: var(--cream); }
.about-hero p { color: var(--cream-soft); }
.about-hero .eyebrow { color: var(--brass-soft); }

.values-list { display: grid; gap: var(--space-4); }
.value-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--line);
}
.value-row:last-child { border-bottom: 1px solid var(--line); }
.value-row .num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--brass);
}
.value-row h3 { margin-bottom: 0.5rem; }
