/* ═══════════════════════════════════════════════════════
   DESIGN TOKENS — Courtier Hypothécaire Québec
   Warm, trustworthy, approachable palette
   ═══════════════════════════════════════════════════════ */

:root {
  /* Type Scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Fonts */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', 'Helvetica Neue', sans-serif;
}

/* ═══════════════════════════════════════════════════════
   LIGHT MODE (Default)
   Warm cream backgrounds + slate green primary
   ═══════════════════════════════════════════════════════ */

:root, [data-theme="light"] {
  --color-bg:             #faf8f5;
  --color-surface:        #ffffff;
  --color-surface-2:      #f5f2ee;
  --color-surface-offset: #efeae4;
  --color-divider:        #e2ddd6;
  --color-border:         #d4cfc7;

  --color-text:           #2c2a25;
  --color-text-muted:     #6b6860;
  --color-text-faint:     #a9a69e;
  --color-text-inverse:   #faf8f5;

  /* Slate Green — trustworthy, not corporate */
  --color-primary:        #3d7a6a;
  --color-primary-hover:  #2d5f52;
  --color-primary-active: #214a3f;
  --color-primary-light:  #e8f2ee;

  /* Warm accent */
  --color-accent:         #c97b3a;
  --color-accent-hover:   #b06a2e;

  /* Status */
  --color-success:        #437a22;
  --color-error:          #c2432a;

  /* Shadows */
  --shadow-sm: 0 1px 2px oklch(0.2 0.02 60 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.2 0.02 60 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.2 0.02 60 / 0.12);
}

/* ═══════════════════════════════════════════════════════
   DARK MODE
   ═══════════════════════════════════════════════════════ */

[data-theme="dark"] {
  --color-bg:             #1a1917;
  --color-surface:        #222120;
  --color-surface-2:      #2a2928;
  --color-surface-offset: #1f1e1c;
  --color-divider:        #333231;
  --color-border:         #3d3c3a;

  --color-text:           #e0ded9;
  --color-text-muted:     #8a8880;
  --color-text-faint:     #5c5a56;
  --color-text-inverse:   #1a1917;

  --color-primary:        #5fa892;
  --color-primary-hover:  #4a9480;
  --color-primary-active: #3d7a6a;
  --color-primary-light:  #2a3530;

  --color-accent:         #dea060;
  --color-accent-hover:   #c98a48;

  --color-success:        #6daa45;
  --color-error:          #e06050;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:             #1a1917;
    --color-surface:        #222120;
    --color-surface-2:      #2a2928;
    --color-surface-offset: #1f1e1c;
    --color-divider:        #333231;
    --color-border:         #3d3c3a;
    --color-text:           #e0ded9;
    --color-text-muted:     #8a8880;
    --color-text-faint:     #5c5a56;
    --color-text-inverse:   #1a1917;
    --color-primary:        #5fa892;
    --color-primary-hover:  #4a9480;
    --color-primary-active: #3d7a6a;
    --color-primary-light:  #2a3530;
    --color-accent:         #dea060;
    --color-accent-hover:   #c98a48;
    --color-success:        #6daa45;
    --color-error:          #e06050;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
    --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
    --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
  }
}

/* ═══════════════════════════════════════════════════════
   GLOBAL STYLES
   ═══════════════════════════════════════════════════════ */

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--color-text);
  font-weight: 400;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-interactive);
}
a:hover { color: var(--color-primary-hover); }

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

.container--narrow {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

/* ═══════════════════════════════════════════════════════
   HEADER & NAV
   ═══════════════════════════════════════════════════════ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-divider);
  transition: box-shadow 0.3s var(--ease-out);
}
.site-header--scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-3);
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--color-text);
}
.logo-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.logo-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-text);
}
.logo-text span {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.desktop-nav {
  display: none;
}
@media (min-width: 768px) {
  .desktop-nav { display: flex; align-items: center; gap: var(--space-6); }
}
.desktop-nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-interactive);
}
.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--color-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  transition: color var(--transition-interactive), background var(--transition-interactive);
}
.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface-2);
}

.mobile-toggle {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-text);
}
@media (min-width: 768px) {
  .mobile-toggle { display: none; }
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  z-index: 100;
  background: var(--color-bg);
  padding: var(--space-4);
  flex-direction: column;
}
.mobile-nav.open { display: flex; }
.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-8);
}
.mobile-nav-close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  list-style: none;
}
.mobile-nav-links a {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: background var(--transition-interactive);
}
.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  background: var(--color-primary-light);
  color: var(--color-primary);
}
.mobile-nav-cta {
  margin-top: auto;
  padding-top: var(--space-6);
}

/* ═══════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background var(--transition-interactive),
              color var(--transition-interactive),
              box-shadow var(--transition-interactive),
              transform var(--transition-interactive);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); box-shadow: var(--shadow-sm); }

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  color: var(--color-text-inverse);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary-light);
}

.btn-accent {
  background: var(--color-accent);
  color: #fff;
}
.btn-accent:hover {
  background: var(--color-accent-hover);
  color: #fff;
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

/* ═══════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════ */

.hero {
  padding: var(--space-16) var(--space-4) var(--space-20);
  text-align: left;
}
@media (min-width: 768px) {
  .hero { padding: var(--space-20) var(--space-4) var(--space-24); }
}

.hero-inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  display: grid;
  gap: var(--space-8);
  align-items: center;
}
@media (min-width: 768px) {
  .hero-inner { grid-template-columns: 1fr 1fr; gap: var(--space-12); }
}

.hero-content { max-width: 560px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
  color: var(--color-text);
}
.hero h1 em {
  font-style: italic;
  color: var(--color-primary);
}

.hero-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  max-width: 48ch;
  line-height: 1.7;
}

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

.hero-visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual svg {
  width: 80%;
  height: 80%;
  opacity: 0.15;
  color: var(--color-primary);
}

/* ═══════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════ */

.section {
  padding: var(--space-12) var(--space-4);
}
@media (min-width: 768px) {
  .section { padding: var(--space-16) var(--space-4); }
}

.section--alt {
  background: var(--color-surface-2);
}

.section-header {
  text-align: left;
  margin-bottom: var(--space-8);
  max-width: var(--content-default);
  margin-inline: auto;
}
@media (min-width: 768px) {
  .section-header { margin-bottom: var(--space-10); }
}

.section-header h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}
.section-header p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  max-width: 56ch;
}

/* Trust bar */
.trust-bar {
  padding: var(--space-8) var(--space-4);
  border-bottom: 1px solid var(--color-divider);
}
.trust-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-6);
  max-width: var(--content-wide);
  margin-inline: auto;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
}
.trust-item svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════
   CARDS & GRIDS
   ═══════════════════════════════════════════════════════ */

.card-grid {
  display: grid;
  gap: var(--space-6);
  max-width: var(--content-wide);
  margin-inline: auto;
}
@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
}
.card:hover {
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 40px;
  height: 40px;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.card h3 {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}

/* Feature row — asymmetric 2-col */
.feature-row {
  display: grid;
  gap: var(--space-8);
  max-width: var(--content-wide);
  margin-inline: auto;
  align-items: center;
}
@media (min-width: 768px) {
  .feature-row { grid-template-columns: 1fr 1fr; gap: var(--space-12); }
  .feature-row--reverse .feature-text { order: -1; }
}

.feature-visual {
  background: var(--color-surface-2);
  border-radius: var(--radius-xl);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-visual svg {
  width: 60%;
  height: 60%;
  opacity: 0.12;
  color: var(--color-primary);
}

.feature-text h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}
.feature-text p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════
   STEPS
   ═══════════════════════════════════════════════════════ */

.steps {
  display: grid;
  gap: var(--space-6);
  max-width: var(--content-wide);
  margin-inline: auto;
  counter-reset: step;
}
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.step {
  counter-increment: step;
  position: relative;
  padding: var(--space-6);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-primary);
  display: block;
  margin-bottom: var(--space-3);
}
.step h3 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.step p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* ═══════════════════════════════════════════════════════
   CTA BANNER
   ═══════════════════════════════════════════════════════ */

.cta-banner {
  padding: var(--space-12) var(--space-4);
}
.cta-banner-inner {
  max-width: var(--content-default);
  margin-inline: auto;
  background: var(--color-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-8);
  text-align: center;
  color: var(--color-text-inverse);
}
.cta-banner-inner h2 {
  font-size: var(--text-xl);
  color: var(--color-text-inverse);
  margin-bottom: var(--space-3);
}
.cta-banner-inner p {
  opacity: 0.85;
  margin-bottom: var(--space-6);
  max-width: 48ch;
  margin-inline: auto;
}
.cta-banner-inner .btn {
  background: #fff;
  color: var(--color-primary);
}
.cta-banner-inner .btn:hover {
  background: var(--color-surface-2);
  color: var(--color-primary-hover);
}

/* ═══════════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════════ */

.faq-list {
  max-width: var(--content-default);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.faq-item {
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-base);
  font-weight: 600;
  text-align: left;
  color: var(--color-text);
  cursor: pointer;
  transition: background var(--transition-interactive);
  min-height: 44px;
}
.faq-question:hover {
  background: var(--color-surface-2);
}
.faq-question svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out);
  color: var(--color-text-muted);
}
.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-out), padding 0.35s var(--ease-out);
}
.faq-item.open .faq-answer {
  max-height: 500px;
}
.faq-answer-inner {
  padding: 0 var(--space-5) var(--space-5);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════
   VIDEOS
   ═══════════════════════════════════════════════════════ */

.video-grid {
  display: grid;
  gap: var(--space-6);
  max-width: var(--content-wide);
  margin-inline: auto;
}
@media (min-width: 640px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .video-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.video-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
}
.video-card .video-embed {
  aspect-ratio: 16/9;
  width: 100%;
}
.video-card .video-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.video-card-body {
  padding: var(--space-4);
}
.video-card-body h3 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-1);
}
.video-card-body p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Shorts grid */
.shorts-grid {
  display: grid;
  gap: var(--space-4);
  max-width: var(--content-wide);
  margin-inline: auto;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) {
  .shorts-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .shorts-grid { grid-template-columns: repeat(4, 1fr); }
}

.short-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  aspect-ratio: 9/16;
  max-height: 360px;
}
.short-card iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ═══════════════════════════════════════════════════════
   CONTACT FORM
   ═══════════════════════════════════════════════════════ */

.contact-grid {
  display: grid;
  gap: var(--space-8);
  max-width: var(--content-wide);
  margin-inline: auto;
}
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: var(--space-12); }
}

.contact-info h3 {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.contact-detail svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-detail span {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.contact-detail a {
  color: var(--color-primary);
  font-weight: 500;
}

.form-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

.form-group {
  margin-bottom: var(--space-4);
}
.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-1);
  color: var(--color-text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  font-size: var(--text-sm);
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px oklch(from var(--color-primary) l c h / 0.15);
  outline: none;
}
.form-group textarea { resize: vertical; min-height: 120px; }

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}
.form-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--color-primary);
}

.form-success {
  display: none;
  text-align: center;
  padding: var(--space-8);
}
.form-success.show { display: block; }
.form-success svg {
  width: 48px;
  height: 48px;
  color: var(--color-success);
  margin-inline: auto;
  margin-bottom: var(--space-3);
}
.form-success h3 {
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.form-success p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* ═══════════════════════════════════════════════════════
   ABOUT PAGE
   ═══════════════════════════════════════════════════════ */

.about-hero {
  padding: var(--space-12) var(--space-4) var(--space-8);
}
@media (min-width: 768px) {
  .about-hero { padding: var(--space-16) var(--space-4) var(--space-12); }
}

.about-grid {
  display: grid;
  gap: var(--space-8);
  max-width: var(--content-wide);
  margin-inline: auto;
  align-items: center;
}
@media (min-width: 768px) {
  .about-grid { grid-template-columns: 2fr 3fr; gap: var(--space-12); }
}

.about-photo {
  aspect-ratio: 3/4;
  background: var(--color-surface-2);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-photo svg {
  width: 50%;
  height: 50%;
  opacity: 0.12;
  color: var(--color-primary);
}

.about-text h1 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}
.about-text h1 em {
  font-style: italic;
  color: var(--color-primary);
}
.about-text p {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}
.about-text p strong {
  color: var(--color-text);
  font-weight: 600;
}

.values-grid {
  display: grid;
  gap: var(--space-4);
  max-width: var(--content-wide);
  margin-inline: auto;
}
@media (min-width: 640px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .values-grid { grid-template-columns: repeat(4, 1fr); }
}

.value-card {
  text-align: center;
  padding: var(--space-6);
}
.value-card svg {
  width: 32px;
  height: 32px;
  color: var(--color-primary);
  margin-inline: auto;
  margin-bottom: var(--space-3);
}
.value-card h3 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.value-card p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════
   PRIVACY / LONG TEXT
   ═══════════════════════════════════════════════════════ */

.legal-content {
  max-width: var(--content-narrow);
  margin-inline: auto;
  padding: var(--space-12) var(--space-4) var(--space-16);
}
.legal-content h1 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}
.legal-content .legal-date {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  margin-bottom: var(--space-8);
}
.legal-content h2 {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}
.legal-content p,
.legal-content li {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-bottom: var(--space-3);
}
.legal-content ul {
  padding-left: var(--space-5);
  margin-bottom: var(--space-4);
}
.legal-content li {
  margin-bottom: var(--space-2);
}
.legal-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */

.site-footer {
  border-top: 1px solid var(--color-divider);
  padding: var(--space-10) var(--space-4) var(--space-6);
  background: var(--color-surface-2);
}

.footer-inner {
  max-width: var(--content-wide);
  margin-inline: auto;
}

.footer-top {
  display: grid;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}
@media (min-width: 768px) {
  .footer-top { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-brand p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  max-width: 36ch;
  margin-top: var(--space-3);
  line-height: 1.6;
}

.footer-links h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-faint);
  margin-bottom: var(--space-3);
}
.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.footer-links a {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: color var(--transition-interactive);
}
.footer-links a:hover { color: var(--color-primary); }

/* Compliance / AMF discrete block */
.footer-compliance {
  border-top: 1px solid var(--color-divider);
  padding: var(--space-4) 0;
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  max-width: 44ch;
}
.footer-compliance-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-text-faint);
  margin-top: 1px;
}
.footer-compliance strong {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}
.footer-compliance p {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  line-height: 1.55;
  margin: 0;
}

.footer-bottom {
  border-top: 1px solid var(--color-divider);
  padding-top: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.footer-bottom a {
  color: var(--color-text-faint);
  text-decoration: none;
}
.footer-bottom a:hover { color: var(--color-primary); }

/* ═══════════════════════════════════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════════════════════════════════ */

.fade-in { opacity: 1; }

@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }
}

@keyframes reveal-fade {
  to { opacity: 1; }
}

/* ═══════════════════════════════════════════════════════
   PAGE HERO (interior pages)
   ═══════════════════════════════════════════════════════ */

.page-hero {
  padding: var(--space-12) var(--space-4) var(--space-8);
  text-align: center;
}
@media (min-width: 768px) {
  .page-hero { padding: var(--space-16) var(--space-4) var(--space-10); }
}
.page-hero h1 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}
.page-hero p {
  color: var(--color-text-muted);
  max-width: 48ch;
  margin-inline: auto;
}

/* ═══════════════════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════════════════ */

.testimonial-grid {
  display: grid;
  gap: var(--space-6);
  max-width: var(--content-wide);
  margin-inline: auto;
}
@media (min-width: 768px) {
  .testimonial-grid { grid-template-columns: repeat(3, 1fr); }
}

.testimonial {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.testimonial-stars {
  color: var(--color-accent);
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
}
.testimonial p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: var(--space-4);
}
.testimonial-author {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  z-index: 200;
  font-size: var(--text-sm);
}
.skip-link:focus {
  top: var(--space-2);
}

/* ═══════════════════════════════════════════════════════
   LOGO SIGNATURE IMAGE
═══════════════════════════════════════════════════════ */
.logo-img {
  height: 80px;
  width: auto;
  display: block;
  object-fit: contain;
}
.logo-img--dark { display: none; }
.logo-img--light { display: block; }

[data-theme="dark"] .logo-img--light { display: none; }
[data-theme="dark"] .logo-img--dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .logo-img--light { display: none; }
  :root:not([data-theme]) .logo-img--dark { display: block; }
}
.footer-brand .logo-img { height: 56px; }

/* ═══════════════════════════════════════════════════════
   HERO PHOTO
═══════════════════════════════════════════════════════ */
.hero-visual {
  aspect-ratio: 800 / 1239;
  max-height: 520px;
  background: transparent;
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ═══════════════════════════════════════════════════════
   ABOUT PHOTO
═══════════════════════════════════════════════════════ */
.about-photo {
  overflow: hidden;
  background: transparent;
}
.about-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ═══════════════════════════════════════════════════════
   CONTACT — CALENDLY CTA
═══════════════════════════════════════════════════════ */
.calendly-cta {
  margin: var(--space-6) 0;
}
.calendly-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
}
.calendly-note {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.contact-info-title {
  font-size: var(--text-2xl);
  font-family: var(--font-display);
  font-weight: 400;
  margin-bottom: var(--space-4);
}
.contact-form-title {
  font-size: var(--text-xl);
  font-family: var(--font-display);
  font-weight: 400;
  margin-bottom: var(--space-2);
  padding-top: var(--space-6);
}
.contact-form-intro {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}
.contact-callout {
  background: var(--color-surface-2);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}


/* ═══════════════════════════════════════════════════════
   LOGO DUO — Francis Roberts + Planipret
═══════════════════════════════════════════════════════ */
.header-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.brand-separator {
  display: block;
  width: 1px;
  height: 28px;
  background: var(--color-border);
  opacity: 0.5;
  flex-shrink: 0;
}

.brand-separator--footer {
  height: 20px;
}

.logo-planipret {
  height: 32px;
  width: auto;
  display: block;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.logo-planipret:hover {
  opacity: 1;
}

.logo-planipret--footer {
  height: 22px;
  opacity: 0.75;
}

/* Dark mode: Planipret logo is blue on white — invert to white */
[data-theme="dark"] .logo-planipret {
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .logo-planipret {
    filter: brightness(0) invert(1);
    opacity: 0.85;
  }
}

/* Footer logos flex container */
.footer-logos {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

/* Mobile: slightly smaller */
@media (max-width: 640px) {
  .header-brand {
    gap: var(--space-2);
  }
  .logo-planipret {
    height: 30px;
  }
  .brand-separator {
    height: 22px;
  }
}
