/* ============================================================
   Michaud Advisory — Design System
   ============================================================ */

/* ─── Custom Properties ─────────────────────────────────────── */
:root {
  /* Brand Blues */
  --primary:        #2d82d8;
  --primary-dark:   #1a62b0;
  --primary-xdark:  #0f3e7a;
  --primary-light:  #e6f2fd;
  --primary-mid:    #a8d4f5;

  /* Neutrals */
  --navy:    #0c2140;
  --ink:     #1c3450;
  --muted:   #5a7898;
  --subtle:  #8aa8c4;

  /* Accent */
  --gold:       #f59e0b;
  --gold-dark:  #d97706;
  --gold-light: #fef3c7;

  /* Surfaces */
  --white:        #ffffff;
  --surface:      #ffffff;
  --bg:           #f2f8fe;
  --bg-alt:       #e9f3fb;

  /* Borders */
  --border:       #c0d9f0;
  --border-light: #ddedf9;

  /* Shadows */
  --sh-xs:   0 1px 2px rgba(12,33,64,.05);
  --sh-sm:   0 2px 8px rgba(12,33,64,.08);
  --sh-md:   0 6px 24px rgba(12,33,64,.10), 0 2px 6px rgba(12,33,64,.06);
  --sh-lg:   0 16px 48px rgba(12,33,64,.13), 0 4px 12px rgba(12,33,64,.07);
  --sh-blue: 0 8px 32px rgba(45,130,216,.28);

  /* Typography */
  --font-sans:  "Space Grotesk", system-ui, sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;

  /* Radii */
  --r-xs: 0.375rem;
  --r-sm: 0.5rem;
  --r:    0.875rem;
  --r-lg: 1.125rem;
  --r-xl: 1.75rem;

  /* Transition */
  --ease: cubic-bezier(.4,0,.2,1);
  --dur:  220ms;
}

/* ─── Base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
ul { list-style: none; padding: 0; }
a { color: inherit; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ─── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); font-weight: 600; }
h3 { font-size: clamp(1.05rem, 2vw, 1.25rem); font-weight: 600; }

.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .76rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .5rem;
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 54ch;
  margin: 0;
}

/* ─── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(242, 248, 254, .88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--dur) var(--ease);
}

.site-header.scrolled { box-shadow: var(--sh-sm); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 0;
  width: min(1120px, 92%);
  margin-inline: auto;
}

.brand {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -.01em;
  flex-shrink: 0;
}

.brand span { color: var(--primary); }

/* ─── Navigation ─────────────────────────────────────────── */
.nav-list {
  display: flex;
  gap: .25rem;
  align-items: center;
}

.nav-link {
  display: inline-block;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: .88rem;
  padding: .4rem .8rem;
  border-radius: 999px;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible {
  background: var(--primary-light);
  color: var(--primary-dark);
  outline: none;
}

.nav-link.is-active {
  background: var(--navy);
  color: #fff;
}

.nav-cta,
.nav-booking {
  margin-left: .5rem;
  background: var(--primary) !important;
  color: #fff !important;
  border-radius: 999px;
  padding: .45rem 1.1rem;
  font-weight: 700;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), color var(--dur) var(--ease);
}

.nav-link.nav-booking.is-active,
.nav-link.nav-cta.nav-booking.is-active {
  background: var(--navy) !important;
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(12, 33, 64, .22);
}

.nav-cta:hover,
.nav-booking:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-1px);
  box-shadow: var(--sh-blue);
}

.nav-link.nav-booking.is-active:hover,
.nav-link.nav-cta.nav-booking.is-active:hover {
  background: var(--navy) !important;
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(12, 33, 64, .22);
}

/* ─── Hamburger ──────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .45rem .5rem;
  border-radius: var(--r-sm);
  transition: background var(--dur) var(--ease);
}

.hamburger:hover { background: var(--primary-light); }

.hamburger .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.hamburger.is-open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Main Layout ────────────────────────────────────────── */
main {
  width: min(1120px, 92%);
  margin-inline: auto;
  padding: 2rem 0 4rem;
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--r-lg);
  padding: .72rem 1.4rem;
  cursor: pointer;
  transition:
    background var(--dur) var(--ease),
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--sh-blue);
}
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 12px 40px rgba(45,130,216,.38); }

.btn-white {
  background: #fff;
  color: var(--primary-dark);
}
.btn-white:hover { background: rgba(255,255,255,.9); }

.btn-dark {
  background: var(--navy);
  color: #fff;
}
.btn-dark:hover { background: #0a1b2d; }

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

.btn-ghost-white {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.45);
  color: #fff;
  backdrop-filter: blur(8px);
}
.btn-ghost-white:hover {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.7);
}

/* Legacy cta alias */
.cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
  background: var(--primary);
  color: #fff;
  border-radius: var(--r-lg);
  padding: .72rem 1.4rem;
  cursor: pointer;
  border: none;
  box-shadow: var(--sh-blue);
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.cta:hover { background: var(--primary-dark); transform: translateY(-2px); }

.cta-secondary {
  background: var(--navy);
  box-shadow: none;
}
.cta-secondary:hover { background: #0a1b2d; }

/* ─── Text Link ──────────────────────────────────────────── */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: var(--primary);
  font-weight: 700;
  font-size: .88rem;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.text-link:hover { color: var(--primary-dark); }

.text-link svg {
  width: .9rem;
  height: .9rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--dur) var(--ease);
}
.text-link:hover svg { transform: translateX(3px); }

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: 5rem 2.5rem 4.5rem;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, #0c2140 0%, #0f3262 30%, #155caa 65%, #2d82d8 100%);
  color: #fff;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 85%, rgba(255,255,255,.05) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 15%, rgba(255,255,255,.07) 0%, transparent 50%);
  pointer-events: none;
}

/* Decorative rings */
.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.08);
  pointer-events: none;
}
.hero-ring-1 { width: 420px; height: 420px; top: -140px; right: -100px; }
.hero-ring-2 { width: 260px; height: 260px; bottom: -80px; left: -60px; }
.hero-ring-3 {
  width: 160px; height: 160px;
  top: 20%; left: 5%;
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.06);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 660px;
  margin-inline: auto;
}

.hero .eyebrow { color: var(--primary-mid); margin-bottom: .8rem; }

.hero-headline {
  font-size: clamp(2.5rem, 6vw, 3.8rem);
  font-weight: 600;
  color: #fff;
  max-width: none;
  margin-bottom: .9rem;
  line-height: 1.1;
}

.hero-headline em {
  font-style: normal;
  background: linear-gradient(90deg, #7ec8fa 0%, #c6e8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  color: rgba(255,255,255,.72);
  font-size: 1.08rem;
  margin: 0 auto 2.2rem;
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ─── Section Spacing ────────────────────────────────────── */
.section { margin-bottom: 3.5rem; }

.section-header { margin-bottom: 1.75rem; }
.homepage-services-header { margin-bottom: 1rem; }
.homepage-testimonials-header { margin-bottom: 1rem; }
.homepage-resources-header { margin-bottom: 1rem; }
.section-header h2 { margin-bottom: .35rem; }
.section-header p { color: var(--muted); font-size: 1rem; }

/* ─── Card Grid ──────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
}

/* ─── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  box-shadow: var(--sh-sm);
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

/* Feature card (value props on home) */
.feature-card {
  display: flex;
  flex-direction: column;
  gap: .8rem;
}

.feature-card h2, .feature-card h3 { margin-bottom: 0; }
.feature-card p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Icon */
.icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--r);
  background: var(--primary-light);
  color: var(--primary);
  flex-shrink: 0;
}

.icon-wrap svg {
  width: 1.3rem;
  height: 1.3rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Interactive (link) cards */
.service-link-card {
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
}

.service-link-card:hover,
.service-link-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
  border-color: var(--primary-mid);
  outline: none;
}

.service-link-card h3 { margin-bottom: .4rem; }
.service-link-card p { color: var(--muted); margin: 0; font-size: .92rem; }

/* Service-detail card (services page) */
.service-detail-card {
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.service-detail-card h2 { margin-bottom: 0; }
.service-detail-card p { color: var(--muted); margin: 0; font-size: .95rem; }

.services-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-serif);
}

.price-label {
  font-size: .78rem;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ─── Services tiered layout ─────────────────────────────── */
.service-group { margin-bottom: 2.5rem; }

.service-group-label {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .75rem;
}

.tier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.tier-card {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.tier-card h3 { margin-bottom: 0; font-size: 1.05rem; }
.tier-card p { color: var(--muted); margin: 0; font-size: .93rem; flex: 1; }

.tier-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: .2rem .6rem;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary-dark);
  width: fit-content;
}

.tier-badge::before {
  content: '◇ ';
  font-style: normal;
}

.tier-badge.premium {
  background: var(--primary);
  color: #fff;
}

.tier-badge.premium::before {
  content: '★ ';
}

.bundle-card {
  background: linear-gradient(135deg, var(--primary-xdark), var(--primary));
  color: #fff;
  border-radius: var(--r-xl);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  margin-top: 1rem;
}

.bundle-card h2 { color: #fff; margin: 0; }
.bundle-card p { color: rgba(255,255,255,.8); margin: 0; max-width: 48ch; font-size: .97rem; }
.bundle-card .price { color: #fff; font-size: 2rem; margin: 0; }

.bundle-includes {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
}

.bundle-tag {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  padding: .3rem .85rem;
  border-radius: 999px;
}

.best-value-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.65);
}

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

/* Testimonial cards */
.testimonial-card {
  border-top: 3px solid var(--primary);
  display: flex;
  flex-direction: column;
  gap: .8rem;
}

.quote {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-style: italic;
  color: var(--navy);
  line-height: 1.6;
  margin: 0;
}

.attribution {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-weight: 700;
  font-size: .87rem;
  color: var(--muted);
  margin: 0;
}

.attribution::before {
  content: '';
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  flex-shrink: 0;
}

/* Research cards */
.research-card {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.research-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--r);
  background: var(--primary-light);
  color: var(--primary);
}

.research-icon svg {
  width: 1.1rem;
  height: 1.1rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.research-card h3 { margin-bottom: 0; }

/* ─── View-all / links ───────────────────────────────────── */
.view-all-wrap {
  text-align: center;
  margin-top: 1.2rem;
}

.view-all-articles {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  font-size: .92rem;
  padding: .55rem 1.2rem;
  border: 1.5px solid var(--primary-mid);
  border-radius: 999px;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.view-all-articles:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.view-all-articles svg {
  width: .9rem;
  height: .9rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--dur) var(--ease);
}

.view-all-articles:hover svg { transform: translateX(3px); }

/* ─── Newsletter ─────────────────────────────────────────── */
.newsletter-card {
  background: linear-gradient(135deg, #0c2140 0%, #0f3060 100%);
  border-color: transparent;
  color: #fff;
}

.newsletter-card h2 { color: #fff; margin-bottom: .4rem; }
.newsletter-card p { color: rgba(255,255,255,.7); margin-bottom: 1.2rem; max-width: 50ch; }

.newsletter-form { max-width: 480px; }

.newsletter-row {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  margin-top: .5rem;
}

.newsletter-row label {
  display: block;
  font-size: .85rem;
  color: rgba(255,255,255,.65);
  margin-bottom: .4rem;
}

.newsletter-row input {
  flex: 1 1 240px;
  min-width: 0;
  font: inherit;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--r-lg);
  padding: .7rem 1rem;
  color: #fff;
  outline: none;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.newsletter-row input::placeholder { color: rgba(255,255,255,.4); }
.newsletter-row input:focus {
  border-color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.16);
}

/* ─── Page Header ────────────────────────────────────────── */
.page-header {
  padding: 2.5rem 0 2rem;
}

.page-header .eyebrow { margin-bottom: .6rem; }
.page-header h1 { max-width: 22ch; margin-bottom: .6rem; }

.contact-page-header {
  text-align: center;
}

.contact-page-header .eyebrow,
.contact-page-header h1,
.contact-page-header .lead {
  margin-left: auto;
  margin-right: auto;
}

.contact-page-header .lead {
  max-width: 60ch;
}

/* ─── About Page ─────────────────────────────────────────── */
.about-intro {
  display: grid;
  grid-template-columns: minmax(320px, 400px) minmax(0, .9fr);
  gap: 1.35rem;
  align-items: stretch;
  margin-bottom: 2.5rem;
}

.headshot-card {
  padding: 0;
  overflow: hidden;
  min-height: 340px;
}

.headshot-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.about-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .75rem;
}

.about-copy h1 { max-width: none; margin-bottom: 0; }
.about-copy p { color: var(--ink); font-size: .97rem; line-height: 1.7; }

/* ── Value Proposition ──────────────────────────────────────── */
.value-prop-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.value-prop-text p {
  color: var(--ink);
  font-size: .97rem;
  line-height: 1.75;
}

.value-prop-text p + p {
  margin-top: 1.1rem;
}

.value-prop-chart {
  min-width: 0;
}

.advisor-home {
  margin-top: -.5rem;
  margin-bottom: 2.1rem;
}

.advisor-home-card {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 1.5rem;
  align-items: start;
  background: #fdfefe;
}

.advisor-home-media {
  display: inline-flex;
  flex-direction: column;
  gap: .7rem;
  align-self: start;
  justify-self: start;
}

.advisor-home-shot {
  min-height: 0;
  height: auto;
}

.advisor-home-shot img {
  width: 100%;
  height: auto;
  object-position: center 18%;
}

.advisor-home-caption {
  color: var(--muted);
  font-size: .84rem;
  text-align: center;
}

.advisor-home-copy {
  justify-content: flex-start;
  align-self: start;
  gap: .85rem;
  padding-top: .1rem;
}

.advisor-home-copy .eyebrow {
  margin-bottom: 0;
}

.credentials {
  margin-top: 1rem;
}

.credentials .card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.credentials h2 { margin-bottom: 1.2rem; }

.credential-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .75rem;
}

.credential-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--r);
  background: var(--primary-light);
  color: var(--primary);
}

.credential-icon svg {
  width: 1.3rem;
  height: 1.3rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.credential-card p {
  margin: 0;
  font-size: .88rem;
  color: var(--ink);
  line-height: 1.45;
  max-width: none;
}

/* ─── Blog / Research Articles ─────────────────────────── */
.article-list {
  display: grid;
  gap: 1rem;
}

.article-item {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--primary);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  box-shadow: var(--sh-xs);
  display: grid;
  gap: .5rem;
  transition: box-shadow var(--dur) var(--ease), border-left-color var(--dur) var(--ease);
}

.article-item:hover { box-shadow: var(--sh-sm); border-left-color: var(--primary-dark); }

.meta {
  font-size: .78rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin: 0;
}

.article-item h2 {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  margin-bottom: 0;
}

.article-item p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ─── Article Page (research articles) ─────────────────── */
.article-page {
  max-width: 740px;
  margin-inline: auto;
}

.article-page h1 { max-width: none; margin-bottom: .5rem; }

.article-body { margin-top: 1.8rem; }
.article-body h2, .article-body h3 { margin-top: 2rem; margin-bottom: .6rem; }
.article-body p { color: var(--ink); margin-bottom: 1rem; }
.article-body ul, .article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--ink);
}
.article-body li { margin-bottom: .4rem; }

/* ─── Contact Page ───────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
  gap: 1.5rem;
  align-items: start;
}

.contact-info {
  display: grid;
  gap: 1rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
}

.contact-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--r);
  background: var(--primary-light);
  color: var(--primary);
  flex-shrink: 0;
  margin-top: .15rem;
}

.contact-info-icon svg {
  width: 1.1rem;
  height: 1.1rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-info-text strong { display: block; font-size: .9rem; color: var(--navy); margin-bottom: .1rem; }
.contact-info-text span { font-size: .85rem; color: var(--muted); }

.contact-form {
  display: grid;
  gap: 1.1rem;
}

.form-group {
  display: grid;
  gap: .38rem;
}

.form-group label {
  font-weight: 600;
  font-size: .85rem;
  color: var(--navy);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: .72rem 1rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45,130,216,.14);
}

.form-group textarea { resize: vertical; min-height: 130px; }

.contact-form .cta { margin-top: .25rem; }

/* ─── CTA Banner ─────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-xdark), var(--primary));
  color: #fff;
  border-radius: var(--r-xl);
  padding: 3rem 2rem;
  text-align: center;
  margin-top: 2.5rem;
}

.cta-banner h2 { color: #fff; margin-bottom: .5rem; }
.cta-banner p { color: rgba(255,255,255,.75); margin: 0 auto 1.6rem; max-width: 48ch; }

/* ─── Checkout Modal ─────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: #fff;
  border-radius: var(--r-xl);
  padding: 2rem;
  width: min(90vw, 480px);
  position: relative;
  transform: translateY(16px);
  transition: transform var(--dur) var(--ease);
}

.modal-overlay.is-open .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
  padding: .25rem .5rem;
}

.modal-close:hover { color: var(--ink); }

.modal h2 { margin-bottom: .25rem; }

.modal-service-name {
  font-size: .9rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.modal .form-group {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-bottom: 1rem;
}

.modal label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink);
}

.modal input {
  padding: .65rem .9rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--r);
  font-family: var(--font-sans);
  font-size: .95rem;
  width: 100%;
  transition: border-color var(--dur) var(--ease);
}

.modal input:focus {
  outline: none;
  border-color: var(--primary);
}

.modal input.is-invalid { border-color: #dc2626; }

.modal select {
  padding: .65rem .9rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--r);
  font-family: var(--font-sans);
  font-size: .95rem;
  width: 100%;
  background: #fff;
  color: var(--ink);
  transition: border-color var(--dur) var(--ease);
  cursor: pointer;
}

.modal select:focus {
  outline: none;
  border-color: var(--primary);
}

.modal select.is-invalid { border-color: #dc2626; }

.field-optional {
  font-size: .8rem;
  font-weight: 400;
  color: var(--subtle);
}

.modal input[type="file"] {
  width: 100%;
  padding: .5rem;
  border: 1px dashed var(--primary-mid);
  border-radius: var(--r);
  background: var(--primary-light);
  color: var(--ink);
  font-size: .88rem;
  cursor: pointer;
}

.modal input[type="file"]:hover {
  border-color: var(--primary);
  background: #d8edfb;
}

.upload-hint {
  font-size: .78rem;
  color: var(--subtle);
  margin: .35rem 0 0;
}

.upload-hint a {
  color: var(--primary);
  text-decoration: none;
}

.upload-hint a:hover {
  text-decoration: underline;
}

.modal .btn { width: 100%; justify-content: center; margin-top: .5rem; }

.ai-disclosure {
  color: var(--subtle);
  font-size: .8rem;
  line-height: 1.5;
  margin-bottom: .75rem;
}

.ai-disclosure a {
  color: var(--subtle);
  text-decoration: underline;
}

.ai-disclosure a:hover {
  color: var(--muted);
}

.modal-error {
  color: #dc2626;
  font-size: .85rem;
  font-weight: 600;
  margin-top: .5rem;
  min-height: 1.2em;
}

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.55);
  margin-top: 2rem;
}

.footer-inner {
  width: min(1120px, 92%);
  margin-inline: auto;
  padding: 3rem 0 1.8rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.09);
  margin-bottom: 1.5rem;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: .4rem;
}

.footer-tagline {
  font-size: .84rem;
  color: rgba(255,255,255,.45);
  max-width: 36ch;
  margin: 0;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.footer-link {
  text-decoration: none;
  color: rgba(255,255,255,.5);
  font-size: .87rem;
  font-weight: 500;
  transition: color var(--dur) var(--ease);
}

.footer-link:hover { color: #fff; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
}

.footer-copy {
  font-size: .8rem;
  color: rgba(255,255,255,.3);
  margin: 0;
}

/* ─── Scroll Reveal ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

/* ─── Home page section spacing ─────────────────────────── */
.home-services    { margin-top: 0; }
.testimonials     { margin-top: 3.5rem; }
.latest-research  { margin-top: 3.5rem; }
.free-resources   { margin-top: 3.5rem; }
.newsletter       { margin-top: 3.5rem; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Mobile nav */
  .hamburger { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(242, 248, 254, .97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--sh-md);
    padding: .75rem 0 1rem;
  }

  .site-nav.is-open { display: block; }

  .nav-list {
    flex-direction: column;
    gap: .15rem;
    padding: 0 5%;
    align-items: stretch;
  }

  .nav-link { border-radius: var(--r); font-size: .92rem; }
  .nav-cta { margin-left: 0; text-align: center; border-radius: var(--r); }

  /* Hero */
  .hero { padding: 3rem 1.5rem 2.5rem; border-radius: var(--r-lg); }
  .hero-ring { display: none; }

  /* About */
  .about-intro { grid-template-columns: 1fr; }
  .value-prop-card { grid-template-columns: 1fr; }
  .advisor-home-card { grid-template-columns: 1fr; }
  .advisor-home-media { max-width: 320px; margin: 0 auto; }
  .credentials .card-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .headshot-card { min-height: 280px; }

  /* Contact */
  .contact-layout { grid-template-columns: 1fr; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-nav { gap: 1rem; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .newsletter-row { flex-direction: column; }
  .newsletter-row input { flex: none; width: 100%; }
  .btn, .cta { width: 100%; justify-content: center; }
  .hero-actions .btn, .hero-actions .cta { width: auto; }
  .view-all-articles { width: auto; }
}
