/* ============================================================
   Tessa Rhodes — 2026 redesign skin
   Warm editorial personal-brand look inspired by the BlueFx
   wellness demos: Fraunces serif headings + Inter body, a soft
   aqua-tinted palette, big airy hero, and pill buttons.
   Loaded AFTER main.css, so equal-specificity rules win by order.
   ============================================================ */

:root {
  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;

  /* Refined "calm water" palette */
  --ascent-red: #0e7490;          /* primary — ocean teal */
  --ascent-red-dark: #0a5a6e;
  --ascent-red-soft: rgba(14, 116, 144, 0.07);
  --ascent-blue: #1f6b8c;
  --ascent-blue-soft: rgba(31, 107, 140, 0.07);

  --ink: #12343b;                 /* deep sea ink */
  --ink-2: #3e5a61;
  --ink-3: #6e898f;
  --line: #d9e7ea;
  --line-2: #bfd6db;
  --bg: #ffffff;
  --bg-soft: #e8f2f3;             /* soft aqua tint for alt sections */
  --bg-soft-2: #d8eaed;
  --sand: #e7b566;                /* warm honey accent (used sparingly) */

  --header-h: 76px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;

  --shadow-sm: 0 2px 8px rgba(18, 52, 59, 0.05);
  --shadow-md: 0 10px 30px -14px rgba(18, 52, 59, 0.22);
  --shadow-lg: 0 24px 60px -24px rgba(18, 52, 59, 0.30);
}

/* Airy tinted page so even white sections sit on warmth */
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.72;
  background: #f4fafb;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* --- Typography: Fraunces editorial headings --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 560;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 5.4vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 600; }
h4 { font-size: 1.2rem; font-weight: 600; }
p { color: var(--ink-2); }
.lead { font-size: clamp(18px, 2.1vw, 21px); line-height: 1.6; color: var(--ink-2); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ascent-red);
}

/* More generous section rhythm */
section { padding-block: clamp(56px, 9vw, 104px); }
section.alt { background: var(--bg-soft); }

/* --- Buttons → soft pills --- */
.btn {
  font-family: var(--font-sans);
  border-radius: 999px;
  padding: 14px 30px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.005em;
  border: 1.5px solid transparent;
  transition: transform 0.18s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.btn-lg { padding: 17px 38px; font-size: 17px; }
.btn-sm { padding: 9px 20px; font-size: 14px; }
.btn-primary {
  background: var(--ascent-red);
  color: #fff;
  box-shadow: 0 12px 26px -12px rgba(14, 116, 144, 0.7);
}
.btn-primary:hover { background: var(--ascent-red-dark); transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(14, 116, 144, 0.7); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-outline:hover { background: #fff; border-color: var(--ink); transform: translateY(-2px); }
.btn-secondary { background: var(--ascent-blue); color: #fff; }

/* --- Header: lighter, refined --- */
.site-header {
  background: rgba(244, 250, 251, 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(18, 52, 59, 0.06);
}
.brand-wordmark {
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
nav.primary > ul > li > a {
  font-weight: 500;
  font-size: 15.5px;
  color: var(--ink-2);
}
nav.primary > ul > li > a:hover { color: var(--ascent-red); }

/* ============================================================
   HERO — light, airy, editorial (replaces the dark teal block)
   ============================================================ */
.hero.hero-water {
  background: linear-gradient(170deg, #eaf6f8 0%, #dceef1 60%, #cfe7ec 100%);
  min-height: 0;
  padding: clamp(64px, 11vw, 132px) 0 clamp(96px, 13vw, 168px);
  position: relative;
  overflow: hidden;
}
.hero.hero-water .hero-overlay { display: none; }
.hero-content { max-width: 920px; }
.hero.hero-water .eyebrow { color: var(--ascent-red); }
.hero.hero-water h1 {
  font-family: var(--font-serif);
  color: var(--ink);
  font-weight: 580;
  font-size: clamp(2.7rem, 6vw, 4.6rem);
  letter-spacing: -0.015em;
  line-height: 1.04;
  margin: 14px 0 22px;
}
.hero.hero-water .subhead {
  color: var(--ink-2);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.55;
  max-width: 620px;
}
.hero.hero-water .subhead strong { color: var(--ink); }
.hero.hero-water .cta-row { margin-top: 32px; }
/* The hero's secondary button (was white-on-dark) → outline pill on light */
.hero.hero-water .btn-ghost-on-dark {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--line-2);
  border-radius: 999px;
  padding: 17px 32px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.hero.hero-water .btn-ghost-on-dark:hover { border-color: var(--ink); transform: translateY(-2px); }
/* Decorative layered water wave along the hero's bottom edge */
.hero.hero-water::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 70px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath fill='%23f4fafb' d='M0,40 C240,72 480,72 720,48 C960,24 1200,24 1440,44 L1440,70 L0,70 Z'/%3E%3C/svg%3E") no-repeat center / cover;
  pointer-events: none;
}

/* Split hero — text + photo with a floating stat badge */
.hero.hero-water .hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-text { max-width: 600px; }
.hero.hero-water .hero-text h1 { font-size: clamp(2.5rem, 4.6vw, 3.75rem); }
.hero-media { position: relative; }
.hero-media > img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 34px 64px -28px rgba(18, 52, 59, 0.5);
  position: relative;
  z-index: 1;
}
.hero-media::before {
  content: "";
  position: absolute;
  inset: -26px -26px auto auto;
  width: 55%; height: 55%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 116, 144, 0.18), rgba(14, 116, 144, 0) 70%);
  z-index: 0;
}
.hero-badge {
  position: absolute;
  left: -12px; bottom: 24px;
  z-index: 2;
  background: #fff;
  border-radius: 16px;
  padding: 13px 18px;
  box-shadow: 0 18px 40px -16px rgba(18, 52, 59, 0.45);
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.hero-badge strong { font-family: var(--font-serif); font-size: 23px; font-weight: 600; color: var(--ascent-red); }
.hero-badge span { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; max-width: 15ch; }
@media (min-width: 900px) {
  .hero.hero-water .hero-grid { grid-template-columns: 1.04fr 0.96fr; gap: 56px; }
}

/* Generic image + text split sections (academy, about teaser) */
.split-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
.split-section .split-text { text-align: left; }
.split-section .split-text .lead { margin: 12px 0 24px; max-width: 52ch; }
.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--shadow-md);
}
@media (min-width: 860px) {
  .split-section { grid-template-columns: 1fr 1fr; gap: 60px; }
  .split-reverse .split-media { order: 2; }
}
/* About teaser uses a portrait photo of Tessa — taller frame, face kept in view */
.home-about-teaser .split-media img { aspect-ratio: 5 / 6; object-position: 50% 22%; max-width: 440px; margin-inline: auto; }

/* ============================================================
   CARDS — softer, rounder, gentle hover lift
   ============================================================ */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.card-img { aspect-ratio: 16 / 10; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 22px 24px 24px; }
.card-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 8px;
}
.card-desc { color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.card-link { color: var(--ascent-red); font-weight: 600; }

/* --- Homepage bands --- */
.home-intro .lead, .home-academy .lead, .home-about-teaser .lead { max-width: 62ch; }
.home-leadmagnet { background: transparent; padding: clamp(40px, 7vw, 80px) 0; }
.leadmagnet-card {
  background: linear-gradient(165deg, #ffffff 0%, #f3fafb 100%);
  border: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(32px, 5vw, 52px);
  box-shadow: var(--shadow-md);
}
.leadmagnet-card h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.leadmagnet-eyebrow { color: var(--ascent-red); }
.home-academy { background: var(--bg-soft); }

/* Blog index cards */
.blog-list-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.blog-list-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-list-title a, .blog-list-title { font-family: var(--font-serif); font-weight: 600; }
.blog-list-card:hover .blog-list-title a { color: var(--ascent-red); }

/* Page hero / breadcrumb header */
.page-hero { background: var(--bg-soft); }
.page-hero h1 { font-family: var(--font-serif); }

/* Feature page-hero — image + intro split (e.g. About page leads with Tessa) */
.page-hero-feature {
  background: linear-gradient(170deg, #eaf6f8 0%, #dceef1 100%);
  padding: clamp(40px, 7vw, 84px) 0 clamp(48px, 8vw, 92px);
}
.page-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  align-items: center;
}
.page-hero-text .breadcrumbs { margin-bottom: 18px; }
.page-hero-text .eyebrow { display: block; margin-bottom: 10px; }
.page-hero-feature h1 {
  font-family: var(--font-serif);
  font-weight: 580;
  font-size: clamp(2.3rem, 4.6vw, 3.7rem);
  line-height: 1.05;
  margin: 0 0 16px;
}
.page-hero-sub {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 46ch;
  margin: 0;
}
.page-hero-cta { margin: 26px 0 0; }
.page-hero-media { position: relative; }
.page-hero-media img {
  width: 100%;
  max-width: 320px;
  margin-inline: auto;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: 26px;
  box-shadow: 0 30px 58px -24px rgba(18, 52, 59, 0.46);
}
.page-hero-media::before {
  content: "";
  position: absolute;
  inset: auto -22px -22px auto;
  width: 52%; height: 52%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 116, 144, 0.16), rgba(14, 116, 144, 0) 70%);
  z-index: 0;
}
.page-hero-media img { position: relative; z-index: 1; }
@media (min-width: 820px) {
  .page-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 56px; }
  .page-hero-media img { margin-left: auto; margin-right: 0; }
}

/* Prose article typography */
.prose h2, .prose h3 { font-family: var(--font-serif); }
.prose { font-size: 17.5px; line-height: 1.78; }

/* --- Lead magnet feature (Free Resources) + testimonials --- */
.leadmagnet-feature-card {
  background: linear-gradient(165deg, #eaf6f8 0%, #dceef1 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.leadmagnet-cta { margin: 26px 0 14px; }

/* Free-course card with a contained photo at the top (not full-width) */
.leadmagnet-feature-card.has-image { padding: clamp(28px, 4.5vw, 44px); }
.leadmagnet-feature-card .leadmagnet-feature-media img {
  display: block;
  width: 100%;
  max-width: 540px;
  margin: 0 auto 24px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center 30%;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}
.leadmagnet-feature-body { padding: 0; text-align: center; }

/* Free Resources — "more help" link cards */
.more-resources { max-width: 760px; margin: 12px auto 0; }
.more-resources h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  text-align: center;
  margin: 0 0 22px;
}
.resource-links { display: grid; gap: 14px; }
.resource-link {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.resource-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-2); text-decoration: none; }
.resource-link strong {
  display: block;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 4px;
}
.resource-link span { display: block; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
/* Whole card is the link — drop the inherited `.prose a` underline (needs higher specificity to win) */
.more-resources .resource-link,
.more-resources .resource-link:hover { text-decoration: none; }
.more-resources .resource-link:hover strong { color: var(--ascent-red); }
.testimonials { border-radius: var(--r-lg); }
.testimonial {
  border: 1px solid var(--line);
  border-left: 3px solid var(--sand);
  border-radius: var(--r-md);
}
.testimonial blockquote { font-family: var(--font-serif); font-style: italic; font-size: 16px; }
.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
  margin-top: 16px;
}
.prose .testimonial figcaption .testimonial-avatar,
.testimonial figcaption .testimonial-avatar {
  width: 68px;
  height: 68px;
  max-width: 68px;
  margin: 0;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  background: var(--bg-soft);
  border: 2px solid #fff;
  box-shadow: 0 3px 10px rgba(18, 52, 59, 0.16);
}

/* Inline blog-post CTA */
.post-cta {
  background: linear-gradient(135deg, #eaf6f8 0%, #e3f1f3 100%);
  border-left: 3px solid var(--ascent-red);
  border-radius: var(--r-md);
  padding: 18px 22px;
}
.post-cta a { color: var(--ascent-red); }

/* Pre-footer CTA banner — soft teal, rounded, centered */
.cta-banner { background: linear-gradient(135deg, #0e7490 0%, #135e7a 100%); }
.cta-banner-title { font-family: var(--font-serif); font-weight: 560; color: #fff; }
.btn-on-burgundy {
  background: #fff;
  color: var(--ascent-red);
  border-radius: 999px;
  font-weight: 600;
  padding: 14px 30px;
}
.btn-on-burgundy:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Footer wordmark in serif */
.footer-wordmark { font-family: var(--font-serif); font-weight: 600; }

/* Author byline / bio cards soften */
.author-bio-card { border-radius: var(--r-lg); background: var(--bg-soft); border: 1px solid var(--line); }
.author-bio-name a, .post-byline-author { font-family: var(--font-serif); }
/* Keep the bio avatar small — beat the generic `.prose img` rule that was sizing it up */
.prose .author-bio-card .author-bio-photo,
.author-bio-card .author-bio-photo {
  width: 64px;
  height: 64px;
  max-width: 64px;
  margin: 0;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
}

/* --- Article sidebar cards --- */
.sidebar-card { border-radius: var(--r-lg); }
.sidebar-card h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 16px;
  text-transform: none;
  letter-spacing: -0.005em;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 12px;
}
/* Free-course CTA card — retheme the leftover near-black Ascent gradient to teal */
.sidebar-cta {
  background: linear-gradient(150deg, #0e7490 0%, #114e66 100%);
  border-color: transparent;
}
.sidebar-cta h3 { color: #fff; border-bottom-color: rgba(255, 255, 255, 0.22); font-size: 19px; }
.sidebar-cta p { color: rgba(255, 255, 255, 0.85); }
.sidebar-cta .eyebrow, .sidebar-cta .eyebrow-red { color: #b4e6f1; }
.sidebar-cta .btn-primary { background: #fff; color: var(--ascent-red); box-shadow: none; }
.sidebar-cta .btn-primary:hover { background: #eafaff; transform: translateY(-2px); }

/* --- Mobile header: declutter so the larger serif wordmark + hamburger fit.
   The redundant CTA pill is hidden < 880px (the hero + nav drawer carry it). --- */
@media (max-width: 879px) {
  .header-cta .btn { display: none; }
  .brand-wordmark { font-size: 21px; }
}
