/* ============================================================
   AVIORA visual override — Trust & Authority design language
   Loaded after components.css; overrides + new components only.
   ============================================================ */

/* ---- Typography refinements -------------------------------- */
body {
  font-feature-settings: "kern", "liga", "calt";
}

h1, h2, h3, h4, h5 {
  letter-spacing: -0.005em;
  font-weight: 600;
}

h1 { line-height: 1.08; }
h2 { line-height: 1.15; }

.lead { font-weight: 400; }

.eyebrow {
  font-family: var(--font-body, 'Inter'), system-ui, sans-serif;
  color: var(--periwinkle, var(--accent-deep));
  letter-spacing: 0.18em;
  font-weight: 700;
}

/* ---- Nav: navy logo lockup + gold underline ---------------- */
.site-nav {
  background: rgba(251, 248, 241, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-nav .brand-mark,
.site-footer .brand-mark {
  display: none; /* AVIORA uses an image lockup, not the monogram pill */
}

.brand-lockup .brand-logo {
  display: block;
  height: 36px;
  width: auto;
}

.primary-nav a:not(.btn) {
  color: var(--text);
  font-weight: 500;
  position: relative;
}

.primary-nav a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.primary-nav a:not(.btn):hover::after,
.primary-nav a:not(.btn).active::after { transform: scaleX(1); }

/* ---- Buttons: navy primary, gold-outline secondary -------- */
.btn {
  font-family: var(--font-body, 'Lato'), system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 4px;
  padding: 0.85rem 1.6rem;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 220ms, background 220ms, color 220ms;
}

.btn-primary {
  background: var(--navy);
  color: var(--text-invert);
  border: 1px solid var(--navy);
}
.btn-primary:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  color: var(--text-invert);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(14, 27, 61, 0.22);
}

.btn-secondary, .btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--accent);
}
.btn-secondary:hover, .btn-outline:hover {
  background: var(--accent-soft);
  border-color: var(--accent-deep);
  color: var(--navy);
}

/* ---- Hero band -------------------------------------------- */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--text-invert);
  padding: 7rem 0 6rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 80% 20%, rgba(201, 164, 97, 0.16), transparent 70%),
    radial-gradient(50% 50% at 10% 90%, rgba(200, 16, 46, 0.10), transparent 65%);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero h1, .hero .lead, .hero .eyebrow {
  color: var(--text-invert);
}
.hero .eyebrow { color: var(--accent); }
.hero .lead { opacity: 0.85; }

.hero-ornament {
  position: absolute;
  inset: auto -10% -20% auto;
  width: 60%;
  height: 130%;
  opacity: 0.18;
  pointer-events: none;
}

/* Credentials chip strip just below the hero */
.credentials-strip {
  background: var(--navy-deep);
  color: var(--accent);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(201, 164, 97, 0.25);
}

.credentials-strip-inner {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  font-family: var(--font-body, 'Lato'), system-ui, sans-serif;
  font-size: 0.825rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.credentials-strip-inner span {
  position: relative;
  padding-left: 1.25rem;
}
.credentials-strip-inner span::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
}

/* ---- Section rhythm: alternate cream / navy bands --------- */
.section-alt {
  background: var(--surface);
}

.section-dark {
  background: var(--navy);
  color: var(--text-invert);
}
.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark p { color: var(--text-invert); }
.section-dark .eyebrow { color: var(--accent); }

/* ---- Page header (Trust & Authority eyebrow + serif H1) --- */
.page-header {
  padding: 5rem 0 3rem;
  background: var(--surface);
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-header-accent {
  background: var(--navy);
  color: var(--text-invert);
  border-bottom: 3px solid var(--accent);
}

.page-header-accent h1,
.page-header-accent .lead { color: var(--text-invert); }
.page-header-accent .lead { opacity: 0.85; }
.page-header-accent .eyebrow { color: var(--accent); }

/* ---- Services index: category sections -------------------- */
.category-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 0 auto 3.5rem;
  max-width: 900px;
}

.category-jump-link {
  font-family: var(--font-body, 'Lato'), system-ui, sans-serif;
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft);
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  transition: background 200ms, border-color 200ms, transform 200ms;
}

.category-jump-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--navy);
  text-decoration: none;
  transform: translateY(-1px);
}

.category-section {
  margin-bottom: 5rem;
  scroll-margin-top: 6rem;
}

.category-section:last-child { margin-bottom: 0; }

.category-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding-left: 1rem;
  border-left: 4px solid var(--accent);
}

.category-rule { display: none; } /* reserved for future ornament */

.category-title {
  font-size: clamp(1.6rem, 1.8vw + 1rem, 2rem);
  margin: 0;
  color: var(--navy);
}

.category-summary {
  color: var(--text-muted);
  max-width: 720px;
  font-size: 1rem;
  margin: 0;
}

/* Tighter card grid inside category sections */
.category-section .services-grid {
  gap: 1.25rem;
}

/* ---- Service card refinements ----------------------------- */
.service-card,
.card.service {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 240ms, border-color 240ms;
  position: relative;
  overflow: hidden;
}

.service-card::before,
.card.service::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover,
.card.service:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 16px 36px rgba(14, 27, 61, 0.10);
}

.service-card:hover::before,
.card.service:hover::before { transform: scaleX(1); }

.service-card h3,
.card.service h3 {
  color: var(--navy);
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

/* ---- Founder credential card ------------------------------ */
.founder-credentials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  padding: 2.5rem;
  border-radius: 8px;
}

@media (max-width: 800px) {
  .founder-credentials { grid-template-columns: 1fr; padding: 1.75rem; }
}

.credential-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.credential-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-soft);
  color: var(--navy);
  font-family: var(--font-body, 'Lato'), system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border-radius: 4px;
}

/* ---- Footer: white w/ dark text ---------------------------- */
.site-footer {
  background: #FFFFFF;
  color: var(--text);
  border-top: 1px solid var(--border);
}

.site-footer h4 {
  color: var(--accent-deep);
  font-family: var(--font-body, 'Inter'), system-ui, sans-serif;
  font-size: 0.825rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}

.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--accent-deep); text-decoration: none; }
.site-footer .text-muted { color: var(--text-muted); }

.footer-brand img.footer-logo {
  height: auto;
  width: 230px;
  max-width: 100%;
  margin-bottom: 0.85rem;
  object-fit: contain;
}
/* Two footer logo variants: swap on theme */
.footer-logo--light { display: none; }
html[data-theme="dark"] .footer-logo--dark { display: none; }
html[data-theme="dark"] .footer-logo--light { display: block; }

/* RCIC-IRB official badge — sits between the AVIORA logo and the name */
.footer-rcic-logo {
  display: block;
  width: 160px;
  height: auto;
  margin: 0 0 0.85rem;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* ---- FOOTER CONTACT LIST WITH ICONS ----------------------------- */
.footer-contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-contact-list li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; line-height: 1.45; }
.footer-contact-list li a,
.footer-contact-list li > span:not(.footer-contact-icon) { font-size: 0.9rem; line-height: 1.45; }
.footer-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--accent);
}
.footer-contact-icon svg { width: 14px; height: 14px; display: block; }

/* ---- FOOTER SOCIAL GROUPS (Connect / Follow) -------------------- */
.footer-social-group { margin-top: 1.1rem; }
.footer-social-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.45rem;
}

/* ---- FOOTER SOCIAL ICONS — small + tidy ------------------------- */
.site-footer .social-row { gap: 0.35rem; margin-top: 0; }
.site-footer .social-row a {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(215, 166, 72, 0.10);
  color: var(--accent);
}
.site-footer .social-row a img { width: 12px; height: 12px; }
.site-footer .social-row a:hover { background: rgba(215, 166, 72, 0.22); transform: translateY(-1px); }

/* RCIC-IRB official badge — set on a small white tile so the red marks
   and grey type read cleanly against the navy footer. */
.footer-rcic-badge {
  display: block;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  height: auto;
  width: auto;
  max-width: 240px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.powered-by a {
  color: var(--accent-deep);
}

/* ---- Generic form primitives (kept for future use) -------- */
.intake-form {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.form-section {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-section legend {
  font-family: var(--font-heading, 'EB Garamond'), Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  padding: 0 0.5rem;
  margin-left: -0.5rem;
}

.form-section.consent-section {
  background: var(--surface);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field-label {
  font-family: var(--font-body, 'Lato'), system-ui, sans-serif;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

.field-label em {
  color: var(--maple);
  font-style: normal;
  margin-left: 2px;
}

.field-hint {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.825rem;
  margin-left: 0.25rem;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  font-family: var(--font-body, 'Lato'), system-ui, sans-serif;
  font-size: 1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #FFFFFF;
  color: var(--text);
  transition: border-color 180ms, box-shadow 180ms;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 164, 97, 0.2);
}

.field textarea { resize: vertical; min-height: 7rem; }

.radio-group,
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  border: none;
  padding: 0;
}

.radio-group legend,
.checkbox-group legend {
  font-family: var(--font-body, 'Lato'), system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
  padding: 0;
}

.radio,
.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
}

.radio input,
.checkbox input { accent-color: var(--navy); }

.consent {
  font-size: 0.9rem;
  line-height: 1.5;
  align-items: flex-start;
  padding: 0.75rem;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.consent input { margin-top: 0.25rem; flex-shrink: 0; }

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.form-actions .btn {
  padding: 1rem 2.25rem;
  font-size: 1rem;
}

.form-note { margin: 0; }

/* ---- Reduced motion --------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ============================================================
   AVIORA Phase 2 — Composition redesign (not a CIC repaint)
   ============================================================ */

/* ---- HERO: type-driven, asymmetric, no roadmap ------------ */
.aviora-hero {
  position: relative;
  background: var(--navy);
  color: var(--text-invert);
  padding: 5rem 0 4.5rem;
  overflow: hidden;
  isolation: isolate;
}
@media (max-width: 900px) { .aviora-hero { padding: 4rem 0 3.5rem; } }

.aviora-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.aviora-hero-bg .hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.hero-glow-gold {
  width: 520px;
  height: 520px;
  background: var(--accent);
  top: -10%;
  right: -12%;
  opacity: 0.22;
}

.hero-glow-maple {
  width: 320px;
  height: 320px;
  background: var(--maple);
  bottom: -12%;
  left: -6%;
  opacity: 0.10;
}

/* Subtle grid texture */
.aviora-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(201, 164, 97, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 164, 97, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 30% 40%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 30% 40%, #000 0%, transparent 75%);
}

.aviora-hero-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 900px) {
  .aviora-hero { padding: 5rem 0 4rem; }
  .aviora-hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

.aviora-hero-copy { max-width: 720px; }

.hero-credential-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body, 'Lato'), system-ui, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  background: rgba(201, 164, 97, 0.10);
  border: 1px solid rgba(201, 164, 97, 0.32);
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  margin-bottom: 2rem;
}

.hero-credential-chip .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(201, 164, 97, 0.2);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(201, 164, 97, 0.2); }
  50%      { box-shadow: 0 0 0 8px rgba(201, 164, 97, 0.05); }
}

.hero-rule {
  width: 120px;
  height: 8px;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.hero-rule svg { width: 100%; height: 100%; display: block; }

.aviora-hero-headline {
  font-family: var(--font-heading, 'EB Garamond'), Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.4rem, 4.2vw + 0.5rem, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text-invert);
  margin: 0 0 1.25rem;
}

.aviora-hero-tagline {
  font-family: var(--font-heading, 'EB Garamond'), Georgia, serif;
  font-style: italic;
  font-size: clamp(1.1rem, 0.6vw + 1rem, 1.4rem);
  color: var(--accent);
  margin: 0 0 1.5rem;
  letter-spacing: 0.01em;
}

.aviora-hero-lead {
  font-size: 1.05rem;
  color: rgba(244, 236, 218, 0.78);
  line-height: 1.65;
  margin-bottom: 2.5rem;
  max-width: 560px;
}
.aviora-hero-lead p { color: inherit; }

.aviora-hero-cta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn-large {
  font-size: 1rem;
  padding: 1.05rem 2rem;
}

/* On the navy hero specifically, swap the primary to gold-on-navy */
.aviora-hero .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--navy);
}
.aviora-hero .btn-primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: var(--navy);
}

.btn-link-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body, 'Lato'), system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: gap 200ms, border-color 200ms, color 200ms;
}
.btn-link-gold:hover {
  text-decoration: none;
  gap: 0.85rem;
  border-bottom-color: var(--accent);
  color: var(--accent);
}

/* AVIORA logo as hero visual */
.aviora-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.aviora-hero-logo-frame {
  position: relative;
  padding: 2rem;
  background: rgba(251, 248, 241, 0.04);
  border: 1px solid rgba(201, 164, 97, 0.20);
  border-radius: 4px;
  max-width: 440px;
  width: 100%;
}

.aviora-hero-logo-frame::before,
.aviora-hero-logo-frame::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border: 2px solid var(--accent);
}
.aviora-hero-logo-frame::before {
  top: -2px;
  left: -2px;
  border-right: none;
  border-bottom: none;
}
.aviora-hero-logo-frame::after {
  bottom: -2px;
  right: -2px;
  border-left: none;
  border-top: none;
}

.aviora-hero-logo {
  width: 100%;
  height: auto;
  display: block;
  background: #FFFFFF;
  padding: 1.5rem;
  border-radius: 2px;
}

/* ---- STATS BAND (replaces CIC's 4-icon value-props) -------- */
.aviora-stats {
  padding: 3.5rem 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

@media (max-width: 720px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: relative;
  padding: 0 1rem;
}

.stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 18%;
  height: 64%;
  width: 1px;
  background: var(--border);
}

@media (max-width: 720px) {
  .stat::after { display: none !important; }
}

.stat-num {
  font-family: var(--font-heading, 'EB Garamond'), Georgia, serif;
  font-size: clamp(2.4rem, 2vw + 1.5rem, 3.5rem);
  font-weight: 500;
  color: var(--navy);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-body, 'Lato'), system-ui, sans-serif;
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---- FOUNDER quote card (replaces CIC's video card) -------- */
.aviora-founder { padding: 6rem 0; }

.founder-card-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: start;
  max-width: 1040px;
  margin: 0 auto;
}

@media (max-width: 860px) {
  .founder-card-layout { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .founder-portrait { display: flex; flex-direction: column; align-items: center; }
}

.founder-portrait-frame {
  width: 220px;
  height: 280px;
  background:
    linear-gradient(180deg, var(--accent-soft) 0%, var(--bg) 100%);
  border: 1px solid var(--accent);
  border-radius: 2px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.founder-portrait-frame::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid var(--accent);
  pointer-events: none;
}

.founder-initials {
  font-family: var(--font-heading, 'EB Garamond'), Georgia, serif;
  font-size: 5rem;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.founder-rule {
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 0.75rem;
}

@media (max-width: 860px) {
  .founder-rule { margin-left: auto; margin-right: auto; }
}

.founder-name {
  font-family: var(--font-heading, 'EB Garamond'), Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
}

.founder-title {
  font-family: var(--font-body, 'Lato'), system-ui, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}

.founder-quote {
  position: relative;
  padding-top: 1.5rem;
}

.founder-quote .eyebrow { margin-bottom: 1.5rem; }

.quote-mark {
  font-family: var(--font-heading, 'EB Garamond'), Georgia, serif;
  font-size: 6rem;
  line-height: 0.5;
  color: var(--accent);
  margin: 0 0 0.5rem;
  letter-spacing: -0.05em;
}

.founder-quote blockquote {
  font-family: var(--font-heading, 'EB Garamond'), Georgia, serif;
  font-style: italic;
  font-size: clamp(1.25rem, 0.8vw + 1.05rem, 1.7rem);
  line-height: 1.4;
  color: var(--navy);
  margin: 0 0 1.75rem;
  padding: 0;
  border: none;
  max-width: 640px;
}

/* ---- SERVICES horizontal bands (replaces CIC card grid) ---- */
.aviora-services {
  padding: 6rem 0 0;
  background: var(--surface-gold, #FBF6E9);
}

.category-band {
  display: block;
  text-decoration: none;
  color: var(--text);
  border-top: 1px solid var(--border);
  position: relative;
  transition: background 280ms ease, color 280ms ease;
}

.category-band:last-of-type {
  border-bottom: 1px solid var(--border);
}

.category-band:nth-child(even) {
  background: var(--surface);
}

.category-band:hover {
  background: var(--navy);
  color: var(--text-invert);
  text-decoration: none;
}

.category-band-inner {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 2.5rem;
  padding: 2.25rem 1.5rem;
  transition: padding 280ms;
}

@media (max-width: 800px) {
  .category-band-inner {
    grid-template-columns: 48px 1fr;
    gap: 1.25rem;
    padding: 1.75rem 1.5rem;
  }
  .category-band-cta { display: none; }
}

.category-band-numeral {
  font-family: var(--font-heading, 'EB Garamond'), Georgia, serif;
  font-size: clamp(2.5rem, 2vw + 1.5rem, 3.5rem);
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  transition: color 280ms;
}

.category-band-title h3 {
  font-family: var(--font-heading, 'EB Garamond'), Georgia, serif;
  font-size: clamp(1.4rem, 1vw + 1rem, 2rem);
  font-weight: 500;
  color: var(--navy);
  margin: 0 0 0.4rem;
  transition: color 280ms;
}

.category-band-title p {
  color: var(--text-muted);
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  max-width: 720px;
  transition: color 280ms;
}

.category-band-cta {
  font-family: var(--font-body, 'Lato'), system-ui, sans-serif;
  font-size: 0.825rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
}

.category-band-cta .arrow {
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
}

.category-band:hover .category-band-title h3,
.category-band:hover .category-band-title p {
  color: var(--text-invert);
}

.category-band:hover .category-band-numeral { color: var(--accent); }

.category-band:hover .category-band-cta .arrow {
  transform: translateX(8px);
}

/* ---- TRUST list (white surface) ---------------------------- */
.aviora-trust {
  padding: 6rem 0;
  background: var(--bg);
  color: var(--text);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.aviora-trust-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}

.aviora-trust-head h2 { color: var(--navy); }
.aviora-trust-head .lead { color: var(--text-muted); }

.aviora-trust-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 3rem;
  max-width: 1040px;
  margin: 0 auto;
}

@media (max-width: 800px) {
  .aviora-trust-list { grid-template-columns: 1fr; gap: 2rem; }
}

.aviora-trust-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.aviora-trust-num {
  font-family: var(--font-heading, 'Fraunces'), Georgia, serif;
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--accent-deep);
  line-height: 1;
  border-right: 1px solid var(--border);
  padding-right: 1.25rem;
}

.aviora-trust-body h3 {
  color: var(--navy);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.aviora-trust-body p {
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

/* ---- PROCESS timeline (vertical, replaces CIC card grid) --- */
.aviora-process {
  padding: 6rem 0;
  background: var(--surface-gold, #FBF6E9);
}

/* Connected timeline (keeps images) — vertical joining line draws in on scroll */
.process-flow {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 980px;
}
.process-node {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 300px;
  column-gap: 2.5rem;
  align-items: start;
  padding-bottom: 3rem;
  position: relative;
}
.process-node:last-child { padding-bottom: 0; }
.process-node-rail {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
}
.process-node-num {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading, 'Fraunces'), Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--navy);
  background: #FFFFFF;
  border: 2px solid var(--accent);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 18px -10px rgba(5, 20, 57, 0.5);
}
/* sonar ripple radiating from the step number when it scrolls into view */
.process-node-num::before,
.process-node-num::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  z-index: -1;
  opacity: 0;
  pointer-events: none;
}
.process-node.in-view .process-node-num::before,
.process-node.in-view .process-node-num::after {
  animation: process-ripple 2.8s ease-out infinite;
}
.process-node.in-view .process-node-num::after { animation-delay: 1.4s; }
@keyframes process-ripple {
  0%   { transform: scale(1);    opacity: 0.55; }
  70%  { opacity: 0.1; }
  100% { transform: scale(1.45); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .process-node-num::before,
  .process-node-num::after { animation: none !important; }
}
/* the connecting line from this number down to the next */
.process-node-track {
  flex: 1;
  width: 2px;
  margin-top: 0.5rem;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-soft) 100%);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.7s ease;
  transition-delay: calc(var(--i, 0) * 0.12s + 0.15s);
}
.process-node:last-child .process-node-track { display: none; }
.process-node.in-view .process-node-track { transform: scaleY(1); }
.process-node-body { padding-top: 0.75rem; }
.process-node-body h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.process-node-body p { color: var(--text-muted); line-height: 1.6; }
.process-node-media {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.process-node-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

@media (max-width: 880px) {
  .process-node { grid-template-columns: 56px 1fr; column-gap: 1.25rem; }
  .process-node-num { width: 56px; height: 56px; font-size: 1.3rem; }
  .process-node-media { grid-column: 2 / -1; margin-top: 1rem; max-width: 420px; }
}

.aviora-process-step-body {
  padding-top: 0.5rem;
}

.aviora-process-step-body h3 {
  color: var(--navy);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.aviora-process-step-body p {
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* Per-step thumbnail photo: square-ish portrait next to the body */
.aviora-process-step-media {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(21, 33, 74, 0.10);
  background: var(--surface);
  aspect-ratio: 4 / 3;
  width: 100%;
  margin-top: 0.5rem;
}
.aviora-process-step-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.aviora-process-step:hover .aviora-process-step-media img { transform: scale(1.06); }

/* ---- CTA banner (full-bleed navy, replaces gold strip) ----- */
.aviora-cta {
  background: var(--navy);
  color: var(--text-invert);
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.aviora-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 50% 50%, rgba(201, 164, 97, 0.12), transparent 70%);
  pointer-events: none;
}

.aviora-cta-inner {
  position: relative;
  max-width: 720px;
}

.aviora-cta-ornament {
  width: 120px;
  height: 8px;
  margin: 0 auto 1.5rem;
  color: var(--accent);
}
.aviora-cta-ornament svg { width: 100%; height: 100%; display: block; }

.aviora-cta-headline {
  font-family: var(--font-heading, 'EB Garamond'), Georgia, serif;
  font-size: clamp(2rem, 2.4vw + 1rem, 3rem);
  font-weight: 500;
  color: var(--text-invert);
  margin: 0 0 1rem;
  line-height: 1.15;
}

.aviora-cta-lead {
  color: rgba(244, 236, 218, 0.78);
  font-size: 1.1rem;
  margin: 0 0 2.25rem;
}

.aviora-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.btn-gold {
  background: var(--accent);
  color: var(--navy);
  border: 1px solid var(--accent);
}
.btn-gold:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: var(--navy);
}

/* ---- Hide stray boilerplate sections that aren't wanted ---- */
.value-band,
.founder-section,
.programs-marquee,
.world-map-section { display: none !important; }

/* (Pre-Assessment stepper CSS removed — page no longer exists.) */

/* ============================================================
   Layout polish: hero density, stat boxes, page-header lead
   ============================================================ */

/* Hero copy: tighter spacing so CTAs land above the fold */
.hero-credential-chip { margin-bottom: 1.25rem; }
.hero-rule { margin-bottom: 0.85rem; }
.aviora-hero-headline { margin: 0 0 0.9rem; font-size: clamp(2.1rem, 3.4vw + 0.5rem, 3.5rem); }
.aviora-hero-tagline   { margin: 0 0 1rem; }
.aviora-hero-lead      { margin-bottom: 1.85rem; }
.aviora-hero-lead p:last-child { margin-bottom: 0; }

/* Stat cards: components.css gives them border + radius + bg; this just
   restores generous interior padding (my earlier override stripped it). */
.aviora-stats .stat {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-top: 3px solid var(--periwinkle);
  border-radius: 10px;
  padding: 1.6rem 1.25rem 1.75rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Vertical divider in the stats row was visually confusing once each
   stat became a card — hide it. */
.aviora-stats .stat:not(:last-child)::after { display: none; }

/* Page header lead — center the description and cap its width so it
   doesn't span 1000px and break with awkward 2-line wraps. */
.page-header .lead,
.page-header-accent .lead {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 1rem;
  text-align: center;
}

/* ============================================================
   Nav density — tighten so everything fits on one line cleanly
   ============================================================ */

.site-header .nav-row {
  gap: 1.25rem;
}

.primary-nav { gap: 1rem; }
.primary-nav ul {
  gap: 1.5rem;
  font-size: 0.95rem;
}

.primary-nav a:not(.btn) {
  font-size: 0.92rem;
  white-space: nowrap;
}

/* Smaller lang pill */
.lang-toggle {
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
}

/* Flag rendered in the lang button (replaces the globe SVG) */
img.lang-flag-current {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  object-fit: cover;
  display: inline-block;
  flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
}
.lang-menu img.lang-flag {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  object-fit: cover;
  display: inline-block;
  margin-right: 0.6rem;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
}

/* Smaller nav CTA */
.nav-cta {
  padding: 0.65rem 1.1rem !important;
  font-size: 0.875rem !important;
  white-space: nowrap;
}

/* Tighter logo height in header */
.brand-logo {
  height: 32px;
}

/* ============================================================
   AVIORA Phase 3 — Image-driven home (slider + parallax + photo cards)
   ============================================================ */

/* ---- HERO SLIDER ----------------------------------------- */
.hero-slider {
  position: relative;
  width: 100%;
  height: clamp(560px, 70vh, 760px);
  background: var(--navy);
  overflow: hidden;
  isolation: isolate;
}

.hero-slides { position: relative; width: 100%; height: 100%; }

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 900ms ease;
  z-index: 1;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-slide-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: transform 9000ms ease-out;
  will-change: transform;
}

.hero-slide.is-active .hero-slide-image {
  transform: scale(1);
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 20, 48, 0.55) 0%, rgba(14, 27, 61, 0.85) 100%),
    linear-gradient(90deg, rgba(10, 20, 48, 0.78) 0%, rgba(10, 20, 48, 0.45) 50%, rgba(10, 20, 48, 0.2) 100%);
}

.hero-slide-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  color: var(--text-invert);
  padding-block: 4rem;
}

.hero-slide .eyebrow {
  color: var(--accent);
  margin-bottom: 1rem;
}

/* On the video hero, brighten the gold accents so they pop against bright frames */
.hero-video .hero-slide .eyebrow,
.hero-video .hero-slide-subhead { color: #F2D27A; }
.hero-video .hero-slide .hero-rule { color: #F2D27A; }

.hero-slide .hero-rule {
  color: var(--accent);
  width: 120px;
  height: 8px;
  margin-bottom: 1.25rem;
}
.hero-slide .hero-rule svg { width: 100%; height: 100%; display: block; }

.hero-slide-headline {
  font-family: var(--font-heading, 'EB Garamond'), Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.4rem, 4vw + 0.5rem, 4rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--text-invert);
  margin: 0 0 1rem;
}

.hero-slide-subhead {
  font-family: var(--font-heading, 'EB Garamond'), Georgia, serif;
  font-style: italic;
  font-size: clamp(1.1rem, 0.6vw + 1rem, 1.4rem);
  color: var(--accent);
  margin: 0 0 2.25rem;
}

.hero-slide-cta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* Hero slider buttons: gold-on-navy in hero context */
.hero-slide .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--navy);
}
.hero-slide .btn-primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: var(--navy);
}

/* Subtle entrance animation for slide content when it becomes active */
.hero-slide .eyebrow,
.hero-slide .hero-rule,
.hero-slide-headline,
.hero-slide-subhead,
.hero-slide-cta {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slide.is-active .eyebrow        { opacity: 1; transform: none; transition-delay: 250ms; }
.hero-slide.is-active .hero-rule      { opacity: 1; transform: none; transition-delay: 350ms; }
.hero-slide.is-active .hero-slide-headline  { opacity: 1; transform: none; transition-delay: 450ms; }
.hero-slide.is-active .hero-slide-subhead   { opacity: 1; transform: none; transition-delay: 600ms; }
.hero-slide.is-active .hero-slide-cta { opacity: 1; transform: none; transition-delay: 750ms; }

/* Slider arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 52px;
  height: 52px;
  background: rgba(14, 27, 61, 0.5);
  border: 1px solid rgba(201, 164, 97, 0.4);
  border-radius: 50%;
  color: var(--text-invert);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 220ms, border-color 220ms, transform 220ms;
}
.slider-arrow:hover {
  background: var(--navy);
  border-color: var(--accent);
}
.slider-arrow svg { width: 22px; height: 22px; }
.slider-prev { left: 1.5rem; }
.slider-next { right: 1.5rem; }
@media (max-width: 760px) {
  .slider-arrow { display: none; }
}

/* Dots */
.slider-dots {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.slider-dot {
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: rgba(244, 236, 218, 0.32);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 280ms ease, width 280ms ease;
}
.slider-dot:hover { background: rgba(244, 236, 218, 0.55); }
.slider-dot.is-active {
  background: var(--accent);
  width: 56px;
}

/* ---- CATEGORY PHOTO GRID ---------------------------------- */
.category-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 980px) { .category-photo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .category-photo-grid { grid-template-columns: 1fr; } }

.category-photo-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text-invert);
  isolation: isolate;
  background: var(--navy);
  box-shadow: 0 10px 30px rgba(14, 27, 61, 0.10);
  transition: transform 360ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 360ms;
}

.category-photo-card:hover {
  transform: translateY(-4px);
  text-decoration: none;
  box-shadow: 0 20px 48px rgba(14, 27, 61, 0.22);
}

.category-photo-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 1200ms cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}

.category-photo-card:hover .category-photo-image {
  transform: scale(1.08);
}

.category-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.78) 70%, rgba(0, 0, 0, 0.92) 100%);
  z-index: 1;
}

.category-photo-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  height: 100%;
  padding: 1.75rem 1.5rem 1.5rem;
  gap: 0.5rem;
}

.category-photo-numeral {
  font-family: var(--font-heading, 'EB Garamond'), Georgia, serif;
  font-size: 2.25rem;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.category-photo-content h3 {
  font-family: var(--font-heading, 'EB Garamond'), Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-invert);
  margin: 0;
  line-height: 1.2;
}

.category-photo-content p {
  font-size: 0.92rem;
  color: rgba(244, 236, 218, 0.85);
  margin: 0 0 0.5rem;
  line-height: 1.45;
}

.category-photo-cta {
  font-family: var(--font-body, 'Lato'), system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.25rem;
}

/* ---- PARALLAX FOUNDER & CTA sections ---------------------- */
.aviora-founder-parallax,
.aviora-cta-parallax {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 7rem 0;
  color: var(--text-invert);
}

.parallax-bg {
  position: absolute;
  inset: -10% 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
  transform: translate3d(0, 0, 0) scale(1.08);
  will-change: transform;
}

.parallax-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.72) 100%);
}
/* Home "Begin your Canadian journey" CTA: brand navy tint to match nav/footer accents on other sections */
.aviora-cta-parallax .parallax-overlay {
  background: linear-gradient(180deg, rgba(5, 20, 57, 0.82) 0%, rgba(5, 20, 57, 0.1) 100%);
}

/* On the parallax founder section, invert colors */
.founder-card-layout-on-image .founder-portrait-frame {
  background: rgba(251, 248, 241, 0.06);
  border-color: var(--accent);
}
.founder-card-layout-on-image .founder-portrait-frame::before {
  border-color: var(--accent);
}
.founder-card-layout-on-image .founder-initials { color: var(--accent); }
.founder-card-layout-on-image .founder-rule { background: var(--accent); }
.founder-card-layout-on-image .founder-name  { color: var(--text-invert); }
.founder-card-layout-on-image .founder-title { color: rgba(244, 236, 218, 0.65); }

.founder-card-layout-on-image .quote-mark { color: var(--accent); }
.founder-card-layout-on-image .founder-quote blockquote {
  color: var(--text-invert);
}
.founder-card-layout-on-image .credential-chip {
  background: rgba(201, 164, 97, 0.16);
  color: var(--accent);
  border: 1px solid rgba(201, 164, 97, 0.4);
}

/* Hide the original cream-bg founder section since we have the parallax one */
.aviora-founder { display: none; }

/* Parallax CTA inherits aviora-cta styles for the inner content */
.aviora-cta-parallax .aviora-cta-headline { color: var(--text-invert); }
.aviora-cta-parallax .aviora-cta-lead { color: rgba(244, 236, 218, 0.85); }

/* Mobile: disable parallax fixed-attachment fallback (iOS doesn't support well) */
@media (max-width: 760px) {
  .parallax-bg {
    transform: none !important;
    inset: 0;
  }
}

/* Reduced motion: stop all the moving parts */
@media (prefers-reduced-motion: reduce) {
  .hero-slide-image,
  .category-photo-image,
  .parallax-bg {
    transition: none !important;
    transform: none !important;
  }
  .hero-slide .eyebrow,
  .hero-slide .hero-rule,
  .hero-slide-headline,
  .hero-slide-subhead,
  .hero-slide-cta {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   Polish — credentials strip on one line, tighter section
   transitions, larger nav logo so the wordmark reads cleanly.
   ============================================================ */

/* Credentials strip — one line on desktop, scrolls horizontally on mobile */
.credentials-strip-inner {
  flex-wrap: nowrap;
  gap: 2rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  white-space: nowrap;
}
.credentials-strip-inner::-webkit-scrollbar { display: none; }
.credentials-strip-inner span { padding-left: 1rem; flex-shrink: 0; }

@media (min-width: 1100px) {
  .credentials-strip-inner { gap: 3rem; font-size: 0.825rem; }
}

/* Pull the parallax founder section flush with the category grid */
.aviora-founder-parallax { padding: 4rem 0 5rem; }

/* Same tightening for the parallax CTA */
.aviora-cta-parallax { padding: 5rem 0; }

/* Logo — the supplied PNG (1480×420) has ~35% whitespace below the
   artwork. We render at a fixed box (wider than the natural aspect)
   with object-fit: cover + top-anchored position so only the artwork
   portion is visible — the empty bottom strip is cropped. */
.brand-logo {
  display: block;
  height: 60px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}
/* nudge the wordmark flush to the left edge of the container */
.site-header .brand { margin-left: -2px; }
/* dark mode: render the navy logo as light so it stays legible */
/* Two logo variants: swap on theme */
.brand-logo--light { display: none; }
html[data-theme="dark"] .brand-logo--dark { display: none; }
html[data-theme="dark"] .brand-logo--light { display: block; }
/* Legacy filter fallback if only one logo is present */
html[data-theme="dark"] .brand-logo:only-child { filter: brightness(0) invert(1); }
@media (max-width: 760px) {
  .brand-logo { height: 46px; }
}

/* Service detail hero — cover photo with title overlaid */
.service-hero {
  position: relative;
  background-size: inherit;
  background-position: center;
  border-bottom: 3px solid var(--accent);
  min-height: clamp(380px, 46vh, 560px);
  display: flex;
  align-items: flex-end;
}
.service-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 20, 57, 0.25) 0%, rgba(5, 20, 57, 0.55) 50%, rgba(5, 20, 57, 0.9) 100%);
}
.service-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  width: 100%;
}
.service-hero-inner .eyebrow { color: var(--accent); }
.service-hero-inner h1 { color: #fff; }
.service-hero-inner .lead {
  color: rgba(255, 255, 255, 0.9);
  max-width: 640px;
  margin: 1rem auto 0;
}

/* RCIC badge on the hero video banner */
.hero-rcic-badge {
  position: absolute;
  right: clamp(1rem, 3vw, 2.5rem);
  bottom: clamp(1.5rem, 4vw, 3rem);
  z-index: 3;
  border-radius: 12px;
  padding: 10px 14px;
}
.hero-rcic-badge img { width: 15.57rem; height: auto; display: block; }
@media (max-width: 760px) {
  .hero-rcic-badge { padding: 8px 10px; }
  .hero-rcic-badge img { width: 96px; }
}

/* Contact page — Email / Phone / WhatsApp cards */
.contact-cards-section { padding-top: 3rem; }
.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1080px) {
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
  padding: 2.5rem 1.75rem;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(5, 20, 57, 0.12);
  border-color: var(--accent);
  text-decoration: none;
}
.contact-card-icon {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  margin-bottom: 0.75rem;
}
.contact-card-icon svg { width: 28px; height: 28px; }
.contact-card h3 { font-size: 1.3rem; margin-bottom: 0.25rem; }
.contact-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.55; }
.contact-card-value {
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--accent-deep);
}
@media (max-width: 880px) {
  .contact-cards { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}

/* Extra padding inside the nav row so the larger logo has breathing room */
.site-header .nav-row { padding-block: 1rem; min-height: 92px; }
@media (max-width: 760px) {
  .site-header .nav-row { padding-block: 0.65rem; min-height: 72px; }
}

/* ============================================================
   Clean separation between the (dark) photo-card grid and the
   (dark) parallax founder section. Adds cream breathing space
   below the cards so the two sections read as distinct.
   ============================================================ */

.aviora-services {
  padding: 6rem 0 6rem;
}

.aviora-founder-parallax {
  padding: 6rem 0 6rem;
}

/* ============================================================
   Phase 4 — UI upgrades:
   1) Animated stat counters
   2) Process timeline reveal (line draws + steps stagger in)
   3) Bento grid for the 6 service categories
   4) Maple-leaf decorative accents
   ============================================================ */

/* ---- 1) Stat counters: tabular numerals so width doesn't jump - */
.aviora-stats .stat-num[data-counter-to] {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* ---- 2) Process timeline reveal --------------------------------- */
/* Default state: steps invisible, line collapsed to zero height. The
   JS observer adds .is-revealed to each step in sequence when the
   timeline scrolls into view. */
.aviora-process-timeline[data-process-timeline] .aviora-process-step {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 600ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.aviora-process-timeline[data-process-timeline] .aviora-process-step-num {
  transform: scale(0.4);
  opacity: 0;
  transition:
    transform 500ms cubic-bezier(0.34, 1.56, 0.64, 1) 120ms,
    opacity 400ms ease 120ms;
}

.aviora-process-timeline[data-process-timeline] .aviora-process-step-line {
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1) 280ms;
}

.aviora-process-timeline[data-process-timeline] .aviora-process-step.is-revealed {
  opacity: 1;
  transform: translateY(0);
}
.aviora-process-timeline[data-process-timeline] .aviora-process-step.is-revealed .aviora-process-step-num {
  transform: scale(1);
  opacity: 1;
}
.aviora-process-timeline[data-process-timeline] .aviora-process-step.is-revealed .aviora-process-step-line {
  transform: scaleY(1);
}

/* ---- 3) Bento grid for service categories ----------------------- */
/* Layout:
     Row 1: [ 1 1 1 | 2 2 2 ]   (card 1 spans 2 rows — featured)
     Row 2: [ 1 1 1 | 3 3 3 ]
     Row 3: [ 4 4 | 5 5 | 6 6 ]
   The first card (Temporary Residence) becomes the visual anchor. */
.category-photo-grid.category-bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: clamp(200px, 22vw, 280px);
  gap: 1.25rem;
}

.category-photo-grid.category-bento .category-photo-card {
  aspect-ratio: auto;
  grid-column: span 2;
}

.category-photo-grid.category-bento .category-photo-card:nth-child(1) {
  grid-column: span 3;
  grid-row: span 2;
}
.category-photo-grid.category-bento .category-photo-card:nth-child(2),
.category-photo-grid.category-bento .category-photo-card:nth-child(3) {
  grid-column: span 3;
}
.category-photo-grid.category-bento .category-photo-card:nth-child(4),
.category-photo-grid.category-bento .category-photo-card:nth-child(5),
.category-photo-grid.category-bento .category-photo-card:nth-child(6) {
  grid-column: span 2;
}

/* The featured card's content gets larger type to match its scale */
.category-photo-grid.category-bento .category-photo-card:nth-child(1) .category-photo-content {
  padding: 2.5rem 2rem 2rem;
}
.category-photo-grid.category-bento .category-photo-card:nth-child(1) .category-photo-numeral {
  font-size: 3rem;
}
.category-photo-grid.category-bento .category-photo-card:nth-child(1) h3 {
  font-size: 2rem;
}
.category-photo-grid.category-bento .category-photo-card:nth-child(1) p {
  font-size: 1.02rem;
  max-width: 480px;
}

@media (max-width: 980px) {
  .category-photo-grid.category-bento {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: clamp(220px, 36vw, 300px);
  }
  .category-photo-grid.category-bento .category-photo-card,
  .category-photo-grid.category-bento .category-photo-card:nth-child(1),
  .category-photo-grid.category-bento .category-photo-card:nth-child(2),
  .category-photo-grid.category-bento .category-photo-card:nth-child(3) {
    grid-column: span 1;
    grid-row: auto;
  }
}

@media (max-width: 600px) {
  .category-photo-grid.category-bento {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(260px, auto);
  }
  .category-photo-grid.category-bento .category-photo-card,
  .category-photo-grid.category-bento .category-photo-card:nth-child(1) {
    grid-column: span 1;
    grid-row: auto;
  }
}

/* ---- 4) Maple-leaf decorative accents --------------------------- */
/* (a) Corner-of-card maple — sits above the photo, below content */
.maple-corner {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 24px;
  height: 24px;
  color: var(--accent);
  opacity: 0;
  transform: rotate(-12deg) scale(0.85);
  transition: opacity 360ms ease, transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
  pointer-events: none;
}

.category-photo-card:hover .maple-corner {
  opacity: 0.92;
  transform: rotate(8deg) scale(1);
}

/* The featured card gets a slightly larger, always-visible maple */
.category-photo-grid.category-bento .category-photo-card:nth-child(1) .maple-corner {
  width: 36px;
  height: 36px;
  opacity: 0.6;
  top: 1.5rem;
  right: 1.5rem;
}
.category-photo-grid.category-bento .category-photo-card:nth-child(1):hover .maple-corner {
  opacity: 1;
  transform: rotate(14deg) scale(1.05);
}

/* (b) Floating maple leaves in the founder parallax background */
.maple-drift {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.maple-drift .maple {
  position: absolute;
  color: var(--accent);
  opacity: 0.12;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
  will-change: transform;
}

.maple-drift .maple-1 { top: 12%;  left: 6%;   width: 64px; height: 64px; animation: mapleDrift 14s ease-in-out infinite; }
.maple-drift .maple-2 { top: 28%;  right: 8%;  width: 96px; height: 96px; opacity: 0.18; animation: mapleDrift 18s ease-in-out infinite reverse; animation-delay: -3s; }
.maple-drift .maple-3 { bottom: 18%; left: 14%; width: 48px; height: 48px; opacity: 0.10; animation: mapleDrift 12s ease-in-out infinite; animation-delay: -6s; }
.maple-drift .maple-4 { bottom: 10%; right: 18%; width: 72px; height: 72px; opacity: 0.14; animation: mapleDrift 16s ease-in-out infinite reverse; animation-delay: -9s; }

@keyframes mapleDrift {
  0%, 100% { transform: translate(0, 0)    rotate(-8deg); }
  25%      { transform: translate(18px, -22px) rotate(10deg); }
  50%      { transform: translate(-12px, 14px) rotate(-4deg); }
  75%      { transform: translate(22px, 8px)   rotate(16deg); }
}

@media (prefers-reduced-motion: reduce) {
  .maple-drift .maple { animation: none !important; }
  .aviora-process-timeline[data-process-timeline] .aviora-process-step,
  .aviora-process-timeline[data-process-timeline] .aviora-process-step-num,
  .aviora-process-timeline[data-process-timeline] .aviora-process-step-line {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ---- "Real moments" gallery -------------------------------------- */
.aviora-moments {
  padding: 6rem 0;
  background: var(--surface-gold, #FBF6E9);
}

.aviora-moments .section-head h2 {
  font-family: var(--font-heading, 'Fraunces'), Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.8rem, 2vw + 1rem, 2.5rem);
  line-height: 1.2;
  margin: 0.5rem 0 0.85rem;
}

/* 4-col grid where the first tile spans 2 cols × 2 rows (hero) and
   the other 3 fill the remaining cells. Same bento DNA as the
   category cards above so the page reads as one composition. */
.moments-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(180px, 18vw, 240px);
  gap: 1rem;
}

.moments-grid .moment-tile:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}
.moments-grid .moment-tile {
  grid-column: span 2;
}

.moment-tile {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(21, 33, 74, 0.10);
  transition: transform 360ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 360ms;
}

.moment-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.moment-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(21, 33, 74, 0.18);
}
.moment-tile:hover img { transform: scale(1.06); }

@media (max-width: 900px) {
  .moments-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: clamp(200px, 36vw, 280px);
  }
  .moments-grid .moment-tile,
  .moments-grid .moment-tile:nth-child(1) {
    grid-column: span 1;
    grid-row: auto;
  }
}

@media (max-width: 540px) {
  .moments-grid { grid-template-columns: 1fr; grid-auto-rows: minmax(220px, auto); }
}

/* ---- TESTIMONIALS section -------------------------------------- */
.aviora-testimonials {
  padding: 6rem 0;
  background: #FFFFFF;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.aviora-testimonials .section-head h2 {
  font-family: var(--font-heading, 'Fraunces'), Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.8rem, 2vw + 1rem, 2.5rem);
  margin: 0.5rem 0 0;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 720px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}

.testimonial-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1.75rem 1.75rem;
  margin: 0;
  position: relative;
  box-shadow: 0 8px 24px rgba(21, 33, 74, 0.05);
}

.testimonial-quote-icon {
  width: 32px;
  height: 24px;
  color: var(--periwinkle);
  margin-bottom: 0.85rem;
  opacity: 0.6;
}

.testimonial-card blockquote {
  font-family: var(--font-heading, 'Fraunces'), Georgia, serif;
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--text);
  margin: 0 0 1.25rem;
  padding: 0;
  border: none;
}

.testimonial-card figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.testimonial-card figcaption strong {
  color: var(--navy);
  font-weight: 700;
}

.testimonial-context {
  color: var(--periwinkle-deep);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.testimonial-country { font-size: 0.95rem; display: inline-flex; align-items: center; gap: 0.45rem; }
.testimonial-flag { width: 18px; height: 13px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,0.08); display: inline-block; }

/* ---- HOME QUERY FORM ------------------------------------------- */
.aviora-home-form {
  padding: 6rem 0;
  background: var(--surface-gold, #FBF6E9);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.aviora-home-form::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(251, 246, 233, 0.92) 0%, rgba(251, 246, 233, 0.78) 35%, rgba(251, 246, 233, 0.65) 100%),
    url('/assets/images/home/get-in-touch-bg.jpg');
  background-size: cover;
  background-position: center left;
  background-repeat: no-repeat;
  opacity: 0.55;
  z-index: -1;
  pointer-events: none;
}

.aviora-home-form > .container { position: relative; z-index: 1; }

.home-form-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 900px) {
  .home-form-layout { grid-template-columns: 1fr; gap: 2.5rem; }
}

.home-form-intro h2 {
  font-family: var(--font-heading, 'Fraunces'), Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.8rem, 2vw + 1rem, 2.6rem);
  line-height: 1.15;
  margin: 0.5rem 0 1rem;
}

.home-form-intro .lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 2rem;
}

.home-form-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.home-form-points li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text);
  line-height: 1.5;
}

.home-form-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.home-form-points li strong { color: var(--navy); }

.home-form {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  box-shadow: 0 16px 36px rgba(21, 33, 74, 0.08);
}

/* Inline submit feedback */
.home-form-feedback {
  margin-top: 0.5rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.5;
  border: 1px solid var(--border);
  background: var(--surface-gold, #FBF6E9);
  color: var(--text);
}
.home-form-feedback[data-state="success"] {
  background: #ECF7EE;
  border-color: #BFE0C5;
  color: #1E5B2B;
}
.home-form-feedback[data-state="error"] {
  background: #FBECEC;
  border-color: #E5BCBC;
  color: #8A2A2A;
}
.home-form-feedback[data-state="sending"] { opacity: 0.85; }
.home-form button[data-form-submit]:disabled { opacity: 0.7; cursor: progress; }

.home-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 540px) {
  .home-form .form-row { grid-template-columns: 1fr; }
}

.home-form .form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.home-form .form-field > span {
  font-family: var(--font-body, 'Inter'), system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

.home-form input,
.home-form select,
.home-form textarea {
  font-family: var(--font-body, 'Inter'), system-ui, sans-serif;
  font-size: 0.95rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #FFFFFF;
  color: var(--text);
  transition: border-color 180ms, box-shadow 180ms;
}

.home-form input:focus,
.home-form select:focus,
.home-form textarea:focus {
  outline: none;
  border-color: var(--periwinkle);
  box-shadow: 0 0 0 3px rgba(111, 111, 171, 0.2);
}

.home-form textarea { resize: vertical; min-height: 110px; }

/* ---- FORM FIELD ICONS (data-icon="user|email|phone|globe|briefcase|message") ---- */
.home-form .form-field[data-icon] input,
.home-form .form-field[data-icon] select {
  padding-left: 2.6rem;
  background-repeat: no-repeat;
  background-position: 0.9rem center;
  background-size: 16px 16px;
}
.home-form .form-field[data-icon] textarea {
  padding-left: 2.6rem;
  background-repeat: no-repeat;
  background-position: 0.9rem 0.85rem;
  background-size: 16px 16px;
}
.home-form .form-field[data-icon] select {
  background-position: 0.9rem center, right 0.85rem center;
  background-size: 16px 16px, 12px 12px;
  background-image:
    var(--field-icon, none),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  appearance: none;
  -webkit-appearance: none;
}
.home-form .form-field[data-icon="user"] input,
.home-form .form-field[data-icon="user"] select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B08D3E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/><circle cx='12' cy='7' r='4'/></svg>");
}
.home-form .form-field[data-icon="email"] input {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B08D3E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2Z'/><polyline points='22,6 12,13 2,6'/></svg>");
}
.home-form .form-field[data-icon="phone"] input {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B08D3E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M22 16.92v3a2 2 0 0 1-2.18 2A19.79 19.79 0 0 1 2.08 4.18 2 2 0 0 1 4.07 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92Z'/></svg>");
}
.home-form .form-field[data-icon="globe"] input {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B08D3E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><path d='M2 12h20'/><path d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/></svg>");
}
.home-form .form-field[data-icon="briefcase"] select {
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B08D3E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='2' y='7' width='20' height='14' rx='2'/><path d='M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16'/></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
}
.home-form .form-field[data-icon="message"] textarea {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B08D3E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/></svg>");
}

.home-form button[type="submit"] {
  align-self: flex-start;
  margin-top: 0.25rem;
}

.home-form-disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ---- CONTACT US layout ----------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 920px) {
  .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
}

.contact-info-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 8px 24px rgba(21, 33, 74, 0.06);
}

.contact-info-card h3 {
  font-family: var(--font-heading, 'Fraunces'), Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 1.25rem;
}

.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-info-list > li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 0.85rem;
  align-items: start;
}

.contact-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  flex-shrink: 0;
}

.contact-info-icon svg { width: 18px; height: 18px; }

.contact-info-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--periwinkle-deep);
  margin: 0 0 0.15rem;
}

.contact-info-list a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}
.contact-info-list a:hover { color: var(--accent-deep); text-decoration: underline; }

.contact-info-list address {
  font-style: normal;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.55;
}
.contact-info-list > li > div > p {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.55;
}
.contact-info-list > li > div > p.contact-info-label { font-size: 0.72rem; color: var(--periwinkle-deep); }
.contact-consult-options { font-size: 0.95rem; }

/* ============ CONTACT — reorganized layout ============ */
.contact-hero-note {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: var(--navy);
  background: var(--accent);
  border: 1px solid var(--accent-deep);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 18px rgba(215, 166, 72, 0.35);
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 0 0 0 rgba(5, 20, 57, 0.55);
  animation: pulse-dot 2s ease-out infinite;
}
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(5, 20, 57, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(5, 20, 57, 0); }
  100% { box-shadow: 0 0 0 0 rgba(5, 20, 57, 0); }
}

.contact-main-section { padding-top: 4rem; padding-bottom: 5rem; }
.contact-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}
.contact-main-grid--info-left {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
}
@media (max-width: 960px) {
  .contact-main-grid,
  .contact-main-grid--info-left { grid-template-columns: 1fr; gap: 1.75rem; }
}
.contact-main-form form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow);
}
.contact-main-info .contact-info-card {
  border-radius: 16px;
  padding: 1.85rem;
}
.contact-info-divider {
  height: 1px;
  background: var(--border);
  margin: 1.5rem 0 1.25rem;
}
.contact-trust-list--compact {
  margin: 0.5rem 0 1.25rem;
  gap: 0.55rem;
}
.contact-trust-list--compact li { font-size: 0.92rem; }
.contact-trust-list--compact .tick { width: 18px; height: 18px; font-size: 0.68rem; }
.contact-main-info .contact-socials {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.hours-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.15rem 0;
  font-size: 0.93rem;
}
.hours-list li span:first-child { font-weight: 600; color: var(--navy); }
.hours-list li span:last-child { color: var(--text-muted); }

.contact-socials {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.contact-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  transition: background 200ms, border-color 200ms, transform 200ms;
}
.contact-socials a:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.contact-form-title {
  font-family: var(--font-heading, 'Fraunces'), Georgia, serif;
  font-size: clamp(1.5rem, 1.4vw + 1rem, 2rem);
  font-weight: 500;
  color: var(--navy);
  margin: 0 0 0.5rem;
}

.contact-form-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 1.5rem;
  line-height: 1.55;
}

.contact-form { padding: 2.25rem; }

/* ============================================================
   Phase 5 — Hero video bg, scroll-to-top, theme toggle, copy
   protection alert, dark theme overrides.
   ============================================================ */

/* ---- Hero: fixed background video (replaces per-slide image) ----- */
.hero-video { background: var(--navy); }
.hero-video .hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  background: var(--navy);
}

.hero-video .hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.65);
}

/* Soft halo behind hero text for readability against bright video frames */
.hero-video .hero-slide .eyebrow,
.hero-video .hero-slide .hero-rule,
.hero-video .hero-slide-headline,
.hero-video .hero-slide-subhead {
  text-shadow:
    0 2px 12px rgba(0, 0, 0, 0.55),
    0 1px 3px rgba(0, 0, 0, 0.45);
}
.hero-video .hero-slide .hero-rule { filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55)); }

/* In the video-bg hero, individual slides become text-only — drop
   their per-slide background image rules and bump z-index. */
.hero-video .hero-slide { background: transparent; z-index: 2; }
.hero-video .hero-slide-image,
.hero-video .hero-slide-overlay { display: none; }

/* Typing caret on headlines while they're being typed in */
.hero-slide-headline.is-typing::after {
  content: '';
  display: inline-block;
  width: 0.08em;
  height: 1em;
  background: var(--accent);
  margin-left: 0.08em;
  vertical-align: -0.12em;
  animation: heroCaret 700ms steps(1) infinite;
}
@keyframes heroCaret {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* Override the previous bulk fade-in for the headline (it should be
   visible immediately as the JS types into it). */
.hero-slide.is-active .hero-slide-headline {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide-headline.is-typing::after { display: none; }
}

/* ---- Scroll-to-top button --------------------------------------- */
/* WhatsApp FAB lives at right: 20px, bottom: 20px (56px tall).
   We stack the scroll-to-top above it with a small gap. */
.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 88px;
  z-index: 80;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--accent);
  border: 1px solid var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 240ms ease, transform 240ms cubic-bezier(0.16, 1, 0.3, 1), background 220ms, color 220ms;
  box-shadow: 0 10px 24px rgba(14, 27, 61, 0.18);
}

.scroll-top:hover {
  background: var(--accent);
  color: var(--navy);
  transform: translateY(8px);
}

.scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top svg { width: 22px; height: 22px; }

@media (max-width: 760px) {
  .scroll-top { right: 16px; bottom: 80px; width: 44px; height: 44px; }
}

/* ---- Nav utility group: lang + theme on the extreme right ------ */
/* The original components.css uses `justify-content: space-between` on
   .nav-row with two children (brand, primary-nav). We now have THREE
   children (brand, primary-nav, nav-utility) — override to a left/right
   split with brand on the far left and nav-utility on the far right. */
.site-header .nav-row {
  justify-content: flex-start;
}
.site-header .nav-row > .brand { margin-right: auto; }
.site-header .nav-row > .nav-utility { margin-left: 1rem; }

.nav-utility {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

@media (max-width: 980px) {
  /* Hide utility group on mobile — keep mobile nav focused on links */
  .nav-utility { display: none; }
}

/* ---- Theme toggle (nav button) ---------------------------------- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  transition: background 200ms, border-color 200ms, color 200ms, transform 200ms;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--navy);
  transform: rotate(-12deg);
}

.theme-toggle .theme-icon { width: 18px; height: 18px; }

/* Sun shows by default (light theme), Moon hidden */
.theme-toggle .theme-icon-moon { display: none; }
.theme-toggle .theme-icon-sun  { display: block; }

/* When dark theme active, swap the icons */
[data-theme="dark"] .theme-toggle .theme-icon-sun  { display: none; }
[data-theme="dark"] .theme-toggle .theme-icon-moon { display: block; }

/* ---- Copy-protection alert toast -------------------------------- */
.copy-alert {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.4rem 0.95rem 1.1rem;
  background: #2A0A0A;
  color: #FCE0E0;
  border: 1px solid rgba(255, 90, 90, 0.5);
  border-radius: 10px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
  font-family: var(--font-body, 'Lato'), system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: opacity 240ms ease, transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  white-space: nowrap;
}

.copy-alert.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.copy-alert-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: #FF7A7A;
}

.copy-alert-body strong { font-weight: 700; margin-right: 0.25rem; color: #FFB3B3; }

@media (max-width: 560px) {
  .copy-alert {
    width: calc(100% - 2rem);
    max-width: 420px;
    white-space: normal;
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
  }
}

/* Discourage selection of body content (still allow inputs/textarea) */
body.copy-protected {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
body.copy-protected input,
body.copy-protected textarea,
body.copy-protected [contenteditable] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* ============================================================
   Dark theme — overrides activated when html[data-theme="dark"]
   ============================================================ */

html[data-theme="dark"] {
  --bg: #0A1330;
  --surface: #11203F;
  --text: #F4ECDA;
  --text-muted: rgba(244, 236, 218, 0.62);
  --text-invert: #F4ECDA;
  --border: rgba(201, 164, 97, 0.22);
  /* Accent stays gold; navy stays navy */
  color-scheme: dark;
}

html[data-theme="dark"] body { background: var(--bg); color: var(--text); }

/* Nav: navy backdrop, gold accents */
html[data-theme="dark"] .site-nav,
html[data-theme="dark"] .site-header {
  background: rgba(14, 27, 61, 0.92);
  border-bottom-color: rgba(201, 164, 97, 0.2);
}
html[data-theme="dark"] .primary-nav a:not(.btn) { color: var(--text); }

/* (single logo image used in both themes — light variant) */
html[data-theme="dark"] .theme-toggle { color: var(--accent); border-color: rgba(201, 164, 97, 0.4); }
html[data-theme="dark"] .theme-toggle:hover { background: rgba(201, 164, 97, 0.12); border-color: var(--accent); color: var(--accent); }

/* Surfaces that were cream now go to deep navy */
html[data-theme="dark"] .aviora-stats,
html[data-theme="dark"] .aviora-services,
html[data-theme="dark"] .aviora-process,
html[data-theme="dark"] .section-alt,
html[data-theme="dark"] .page-header {
  background: var(--bg);
}

/* Stat cards on dark */
html[data-theme="dark"] .aviora-stats .stat {
  background: var(--surface);
  border-color: rgba(201, 164, 97, 0.2);
}
html[data-theme="dark"] .stat-num { color: var(--accent); }
html[data-theme="dark"] .stat-label { color: rgba(244, 236, 218, 0.65); }

/* Service cards on dark */
html[data-theme="dark"] .service-card,
html[data-theme="dark"] .card.service {
  background: var(--surface);
  border-color: rgba(201, 164, 97, 0.18);
  color: var(--text);
}
html[data-theme="dark"] .service-card h3,
html[data-theme="dark"] .card.service h3 { color: var(--accent); }
html[data-theme="dark"] .service-card p,
html[data-theme="dark"] .card.service p { color: rgba(244, 236, 218, 0.78); }

/* Headings + paragraphs default to invert on dark */
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4 { color: var(--text); }
html[data-theme="dark"] p { color: rgba(244, 236, 218, 0.82); }
html[data-theme="dark"] .text-muted,
html[data-theme="dark"] .lead { color: rgba(244, 236, 218, 0.72); }

/* Category sections on dark */
html[data-theme="dark"] .category-title { color: var(--accent); }
html[data-theme="dark"] .category-summary { color: rgba(244, 236, 218, 0.72); }

/* Process timeline numerals on dark */
html[data-theme="dark"] .aviora-process-step-num {
  background: var(--surface);
  color: var(--accent);
}
html[data-theme="dark"] .aviora-process-step-body h3 { color: var(--text); }
html[data-theme="dark"] .aviora-process-step-body p  { color: rgba(244, 236, 218, 0.72); }

/* Buttons on dark — primary stays navy with gold ring on hover */
html[data-theme="dark"] .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #0A1330;
}
html[data-theme="dark"] .btn-primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: #0A1330;
}

html[data-theme="dark"] .btn-secondary,
html[data-theme="dark"] .btn-outline {
  color: var(--accent);
  border-color: var(--accent);
}
html[data-theme="dark"] .btn-secondary:hover,
html[data-theme="dark"] .btn-outline:hover {
  background: rgba(201, 164, 97, 0.14);
  color: var(--accent);
}

/* Form inputs on dark */
html[data-theme="dark"] input[type="text"],
html[data-theme="dark"] input[type="email"],
html[data-theme="dark"] input[type="tel"],
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  background: var(--surface);
  color: var(--text);
  border-color: rgba(201, 164, 97, 0.25);
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: rgba(244, 236, 218, 0.4);
}

/* Founder credential card on dark */
html[data-theme="dark"] .founder-credentials {
  background: var(--surface);
  border-color: rgba(201, 164, 97, 0.25);
}

/* FAQ summary etc. on dark */
html[data-theme="dark" ] details summary,
html[data-theme="dark"] .faq summary { color: var(--text); }

/* Scroll-to-top button colors stay readable (navy fill on cream — invert) */
html[data-theme="dark"] .scroll-top {
  background: var(--accent);
  color: #0A1330;
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}
html[data-theme="dark"] .scroll-top:hover {
  background: var(--accent-deep);
  color: #0A1330;
}

/* Copy alert variant on dark */
html[data-theme="dark"] .copy-alert {
  background: rgba(40, 12, 12, 0.96);
  color: #FCD2D2;
  border-color: rgba(200, 16, 46, 0.5);
}
html[data-theme="dark"] .copy-alert-icon { color: #E15B5B; }

/* ============================================================
   ABOUT US PAGE — redesigned
   ============================================================ */

.about-hero { padding: 5rem 0 3.5rem; }

/* MISSION + PULL QUOTE -------------------------------------- */
.about-mission { padding: 5rem 0; background: var(--bg); }
.about-mission-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 900px) {
  .about-mission-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
.about-mission-body h2 {
  font-family: var(--font-heading, 'Fraunces'), Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.9rem, 2.2vw + 1rem, 2.8rem);
  line-height: 1.15;
  margin: 0.4rem 0 0.5rem;
}
.about-tagline {
  font-family: var(--font-heading, 'Fraunces'), Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 0.005em;
  color: var(--accent-deep);
  margin: 0 0 1.5rem;
}
.about-mission-body p { color: var(--text-muted); line-height: 1.7; margin-bottom: 1.1rem; }
.about-mission-body p:last-child { margin-bottom: 0; }

.about-pullquote {
  background: var(--surface-gold, #FBF6E9);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 2rem 2rem 1.75rem;
  position: relative;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.04);
}
.about-pullquote-mark {
  width: 28px;
  height: 22px;
  color: var(--accent);
  margin-bottom: 0.85rem;
  opacity: 0.85;
}
.about-pullquote blockquote {
  font-family: var(--font-heading, 'Fraunces'), Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--text);
  margin: 0 0 1.1rem;
  font-style: italic;
  font-weight: 400;
}
.about-pullquote-attribution {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0;
  font-weight: 600;
}

/* FOUNDER --------------------------------------------------- */
.about-founder {
  padding: 5rem 0;
  background: var(--surface-gold, #FBF6E9);
}
.about-founder-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 900px) {
  .about-founder-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

.about-founder-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  text-align: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 110px;
}
@media (max-width: 900px) {
  .about-founder-card { position: static; top: auto; }
}
.about-founder-badge {
  display: block;
  width: 140px;
  height: auto;
  margin: 0 auto 1.25rem;
}
.about-founder-name {
  font-family: var(--font-heading, 'Fraunces'), Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.25rem;
}
.about-founder-license {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  letter-spacing: 0.02em;
}
/* Founder photo card (replaces the credential card) */
.about-founder-card--photo { padding: 0; overflow: hidden; text-align: center; }
.about-founder-photo { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; }
.about-founder-card--photo .about-founder-caption { padding: 1.4rem 1.5rem 1.6rem; }
.about-founder-card--photo .about-founder-name { margin-bottom: 0.3rem; }
.about-founder-card--photo .about-founder-license { margin-bottom: 0; }
.about-founder-credentials {
  list-style: none;
  padding: 1.25rem 0 0;
  margin: 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-align: left;
}
.about-founder-credentials li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.about-founder-credentials strong {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 700;
}
.about-founder-credentials span {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.about-founder-body h2 {
  font-family: var(--font-heading, 'Fraunces'), Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.8rem, 2vw + 1rem, 2.4rem);
  line-height: 1.15;
  margin: 0.4rem 0 1.25rem;
}
.about-founder-body p { color: var(--text-muted); line-height: 1.7; margin-bottom: 1.1rem; }
.about-founder-body p:last-child { margin-bottom: 0; }

/* VALUES ---------------------------------------------------- */
.about-values { padding: 5rem 0; background: var(--bg); }
.about-values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1024px) { .about-values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .about-values-grid { grid-template-columns: 1fr; } }

.about-value-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 240ms;
}
.about-value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}
.about-value-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--surface-gold, #FBF6E9);
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.about-value-icon svg { width: 24px; height: 24px; display: block; }
.about-value-card h3 {
  font-family: var(--font-heading, 'Fraunces'), Georgia, serif;
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0 0 0.6rem;
  color: var(--text);
}
.about-value-card p {
  color: var(--text-muted);
  line-height: 1.55;
  font-size: 0.95rem;
  margin: 0;
}

/* ABOUT HERO WELCOME (text + collage) ----------------------- */
.about-hero-welcome {
  background: var(--bg);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.about-hero-welcome::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 90% 30%, rgba(215, 166, 72, 0.10), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(215, 166, 72, 0.06), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.about-hero-welcome > .container { position: relative; z-index: 1; }

.about-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 980px) {
  .about-hero-grid { grid-template-columns: 1fr; gap: 3rem; }
}

.about-hero-text h1 {
  font-family: var(--font-heading, 'Fraunces'), Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.2rem, 3vw + 1rem, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0.5rem 0 0.85rem;
  color: var(--text);
}
.about-hero-text .about-tagline {
  font-family: var(--font-heading, 'Fraunces'), Georgia, serif;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--accent-deep);
  margin: 0 0 1.5rem;
}
.about-hero-text .lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 2rem;
}
.about-hero-cta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* Image collage — 3 overlapping cards */
.about-hero-collage {
  position: relative;
  aspect-ratio: 1 / 1;
  min-height: 480px;
}
@media (max-width: 980px) {
  .about-hero-collage { aspect-ratio: 4 / 3; min-height: 380px; }
}
@media (max-width: 600px) {
  .about-hero-collage { aspect-ratio: 5 / 4; min-height: 300px; }
}

.about-hero-image {
  position: absolute;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.14), 0 0 0 6px rgba(255, 255, 255, 0.9);
  background: var(--surface);
  transition: transform 480ms cubic-bezier(0.16, 1, 0.3, 1);
}
.about-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-hero-image:hover { transform: translateY(-4px); }

/* Large lead image — left side, taller */
.about-hero-image--lead {
  left: 0;
  top: 12%;
  width: 56%;
  height: 76%;
  z-index: 2;
}
/* Top right — smaller, slightly tilted feel via offset */
.about-hero-image--top {
  right: 0;
  top: 0;
  width: 48%;
  height: 40%;
  z-index: 1;
}
/* Bottom right */
.about-hero-image--bottom {
  right: 4%;
  bottom: 0;
  width: 50%;
  height: 42%;
  z-index: 3;
}

@media (max-width: 600px) {
  .about-hero-image--lead   { width: 60%; height: 78%; }
  .about-hero-image--top    { width: 44%; height: 40%; }
  .about-hero-image--bottom { width: 46%; height: 40%; right: 0; }
}

/* Floating maple-leaf style decoration */
.about-hero-collage-deco {
  position: absolute;
  right: -2%;
  top: 38%;
  width: 56px;
  height: 56px;
  color: var(--accent);
  opacity: 0.7;
  z-index: 4;
  filter: drop-shadow(0 6px 16px rgba(215, 166, 72, 0.35));
  animation: about-deco-float 6s ease-in-out infinite;
}
.about-hero-collage-deco svg { width: 100%; height: 100%; display: block; }

@keyframes about-deco-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-10px) rotate(-6deg); }
}
@media (prefers-reduced-motion: reduce) {
  .about-hero-collage-deco { animation: none; }
}

/* ============================================================
   Dark-theme overrides for newly-added contact + CRS + blog UI
   ============================================================ */
html[data-theme="dark"] .contact-trust-section,
html[data-theme="dark"] .crs-clb-section {
  background: var(--surface);
}
html[data-theme="dark"] .crs-disclaimer-section { background: var(--bg); }

html[data-theme="dark"] .contact-calendly {
  background: var(--surface);
  border-color: rgba(201, 164, 97, 0.28);
}
html[data-theme="dark"] .contact-calendly h3 { color: var(--text); }
html[data-theme="dark"] .contact-langs-label { color: var(--accent); }
html[data-theme="dark"] .contact-trust-list li { color: var(--text); }
html[data-theme="dark"] .contact-info-note { color: var(--text-muted); }

html[data-theme="dark"] .clb-heading { color: var(--accent); }
html[data-theme="dark"] .clb-table-wrap {
  background: var(--surface);
  border-color: rgba(201, 164, 97, 0.28);
}
html[data-theme="dark"] .clb-table thead th {
  background: rgba(201, 164, 97, 0.14);
  color: var(--accent);
}
html[data-theme="dark"] .clb-table thead tr:nth-child(2) th {
  color: rgba(244, 236, 218, 0.62);
}
html[data-theme="dark"] .clb-table tbody th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--accent);
}
html[data-theme="dark"] .clb-table th,
html[data-theme="dark"] .clb-table td {
  border-color: rgba(201, 164, 97, 0.18);
  color: var(--text);
}

html[data-theme="dark"] .blog-cover {
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.6);
}
