/* =========================================
   Jean Tobin — TM Teacher Website
   Style inspired by TM-Women.org
   Fonts: Cormorant Garamond (serif headings)
          Montserrat (clean sans-serif body)
   Palette: Teal, golden-yellow, warm neutrals (TM Women-inspired)
   ========================================= */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --- Skip Link (Accessibility) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 12px 24px;
  background: var(--color-teal-deep);
  color: var(--color-warm-white);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 0 0 4px 4px;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
  color: var(--color-warm-white);
}

:root {
  --color-cream: #FAF8F5;
  --color-warm-white: #FFFFFF;
  --color-teal: #2A9D8F;
  --color-teal-dark: #238278;
  --color-teal-deep: #1B7A70;
  --color-gold: #F2B731;
  --color-gold-hover: #E0A620;
  --color-gold-light: #F7D070;
  --color-navy: #2C3E50;
  --color-navy-light: #3D5166;
  --color-text: #3A3A3A;
  --color-text-light: #6B6B6B;
  --color-text-muted: #9A9A9A;
  --color-border: #E8E4DE;
  --color-bg-alt: #F4F1EC;

  --font-serif: 'Cormorant Garamond', 'Georgia', serif;
  --font-sans: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;

  --max-width: 1120px;
  --section-padding: 100px 0;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--color-text);
  background-color: var(--color-cream);
  transition: background-color 0.4s ease, color 0.4s ease;
}

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

a {
  color: var(--color-teal);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-teal-dark);
}

/* --- Focus Styles (Accessibility) --- */
a:focus-visible,
.btn:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* --- Typography --- */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-teal-deep);
}

h1 {
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
}

h3 {
  font-size: 1.35rem;
  font-weight: 500;
}

.lead {
  font-size: 1.3rem;
  line-height: 1.8;
  color: var(--color-text);
  font-weight: 450;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 18px 40px;
  border-radius: 2px;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--color-gold);
  color: var(--color-warm-white);
}

.btn-primary:hover {
  background-color: var(--color-gold-hover);
  color: var(--color-warm-white);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-teal-deep);
  border: 1.5px solid var(--color-teal);
}

.btn-secondary:hover {
  background-color: var(--color-teal);
  color: var(--color-warm-white);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition);
}

.nav.scrolled {
  background-color: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
  padding: 14px 0;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-teal-deep);
  letter-spacing: 0.01em;
}

.nav-logo:hover {
  color: var(--color-teal);
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 36px;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-navy);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--color-teal);
}

.nav-cta {
  background-color: var(--color-gold) !important;
  color: var(--color-warm-white) !important;
  padding: 10px 24px !important;
  border-radius: 2px;
}

.nav-cta:hover {
  background-color: var(--color-gold-hover) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--color-teal-deep);
  transition: var(--transition);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--color-cream) 0%, #EDE8DF 50%, #E5DFD3 100%);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(42, 157, 143, 0.05) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 120px 32px 80px;
  display: flex;
  align-items: center;
  gap: 80px;
}

.hero-portrait {
  flex-shrink: 0;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--color-teal);
  box-shadow: 0 20px 60px rgba(42, 157, 143, 0.12), 0 0 0 12px rgba(42, 157, 143, 0.06);
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-text {
  flex: 1;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 16px;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 400;
  font-style: italic;
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Sections --- */
.section {
  padding: var(--section-padding);
}

.section-title {
  text-align: center;
  margin-bottom: 16px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--color-teal);
  margin: 20px auto 0;
}

.section-subtitle {
  text-align: center;
  font-size: 1.18rem;
  color: var(--color-text);
  max-width: 680px;
  margin: 0 auto 60px;
  line-height: 1.75;
}

/* --- About --- */
.about {
  background-color: var(--color-warm-white);
}

.about-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.about-content .lead {
  margin-bottom: 24px;
}

.about-content p {
  margin-bottom: 18px;
  color: var(--color-text);
  font-size: 1.08rem;
}

.about-content p:last-child {
  margin-bottom: 0;
}

/* --- What Is TM --- */
.what-is-tm {
  background-color: var(--color-cream);
}

.tm-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.tm-card {
  background: var(--color-warm-white);
  padding: 40px 28px;
  text-align: center;
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.tm-card:hover {
  border-color: var(--color-teal);
  box-shadow: 0 8px 40px rgba(42, 157, 143, 0.08);
  transform: translateY(-4px);
}

.tm-card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
  color: var(--color-teal);
}

.tm-card-icon svg {
  width: 100%;
  height: 100%;
}

.tm-card h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.tm-card p {
  font-size: 1.02rem;
  color: var(--color-text);
  line-height: 1.7;
}

/* --- Testimonials --- */
.testimonials {
  background-color: var(--color-warm-white);
}

.testimonial-card {
  max-width: 800px;
  margin: 0 auto 48px;
  padding: 48px;
  background: var(--color-cream);
  border-left: 3px solid var(--color-teal);
  position: relative;
}

.testimonial-card:last-child {
  margin-bottom: 0;
}

.testimonial-body blockquote {
  margin-bottom: 28px;
}

.testimonial-body blockquote p {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.8;
  color: var(--color-teal-deep);
}

.testimonial-meta h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--color-teal-deep);
  margin-bottom: 4px;
}

.testimonial-role {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-teal);
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.testimonial-detail p {
  font-size: 1.05rem;
  color: var(--color-text);
  line-height: 1.75;
  margin-bottom: 12px;
}

.testimonial-link {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-teal);
}

.testimonial-link:hover {
  color: var(--color-teal-dark);
}

/* --- Video --- */
.video {
  background-color: var(--color-bg-alt);
}

.video-wrapper {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 12px 48px rgba(42, 157, 143, 0.08);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* --- Contact --- */
.contact {
  background: linear-gradient(135deg, var(--color-teal-deep) 0%, var(--color-teal) 100%);
  color: var(--color-warm-white);
}

.contact .section-title {
  color: var(--color-warm-white);
}

.contact .section-title::after {
  background: var(--color-gold);
}

.contact .section-subtitle {
  color: rgba(255, 255, 255, 0.75);
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-item {
  margin-bottom: 32px;
}

.contact-item h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.contact-item p {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 16px;
}

.contact-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* --- Contact Form (Google Script) --- */
.contact-form {
  margin-top: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  padding: 16px 20px;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: #FFFFFF;
  transition: all 0.3s ease;
}

/* Placeholders inside the form */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(236, 231, 220, 0.65);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--color-gold);
  box-shadow: 0 0 16px rgba(242, 183, 49, 0.25);
}

.form-actions {
  margin-top: 16px;
  margin-bottom: 24px;
}

.form-status {
  padding: 16px;
  border-radius: 8px;
  margin-top: 16px;
  font-weight: 500;
  display: none; /* hidden by default */
}
.form-status.success {
  display: block;
  background: rgba(88, 214, 196, 0.15);
  border: 1px solid var(--color-teal);
  color: #FFFFFF;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.form-status.error {
  display: block;
  background: rgba(255, 100, 100, 0.15);
  border: 1px solid #FF6464;
  color: #FFDDDD;
}

.contact-direct {
  margin-top: 24px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}
.contact-direct a {
  color: var(--color-gold);
  text-decoration: none;
}
.contact-direct a:hover {
  text-decoration: underline;
}

/* Dark mode tweaks for form */
[data-theme="dark"] .contact-form input,
[data-theme="dark"] .contact-form textarea {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(111, 224, 208, 0.3);
}


.contact .btn-primary {
  background-color: var(--color-gold);
}

.contact .btn-primary:hover {
  background-color: var(--color-gold-hover);
  color: var(--color-teal-deep);
}

.contact .btn-secondary {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--color-warm-white);
}

.contact .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--color-warm-white);
}

/* --- Footer --- */
.footer {
  background-color: #153330;
  color: rgba(255, 255, 255, 0.6);
  padding: 48px 0 32px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
}

.footer-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-warm-white);
}

.footer-tagline {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.footer-links a:hover {
  color: var(--color-teal);
}

/* =========================================
   THEME TOGGLE (Sun / Moon) — Elegant Neon
   ========================================= */
.theme-toggle {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1.5px solid var(--color-gold);
  border-radius: 50%;
  cursor: pointer;
  margin-left: 24px;
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.4s ease, transform 0.3s ease, background-color 0.3s ease;
  flex-shrink: 0;
  color: var(--color-gold);
  box-shadow:
    0 0 0 1px rgba(242, 183, 49, 0.20),
    0 0 14px rgba(242, 183, 49, 0.32);
}
.theme-toggle:hover,
.theme-toggle:focus-visible {
  transform: rotate(-12deg);
  border-color: var(--color-gold);
  box-shadow:
    0 0 0 1px rgba(242, 183, 49, 0.35),
    0 0 18px rgba(242, 183, 49, 0.45),
    0 0 32px rgba(42, 157, 143, 0.25);
  outline: none;
}
.theme-toggle svg {
  width: 22px;
  height: 22px;
  transition: opacity 0.35s ease, transform 0.5s ease;
  position: absolute;
}
.theme-toggle .icon-sun  { opacity: 1; transform: scale(1) rotate(0deg); }
.theme-toggle .icon-moon { opacity: 0; transform: scale(0.5) rotate(-90deg); }

[data-theme="dark"] .theme-toggle .icon-sun  { opacity: 0; transform: scale(0.5) rotate(90deg); }
[data-theme="dark"] .theme-toggle .icon-moon { opacity: 1; transform: scale(1) rotate(0deg); }

[data-theme="dark"] .theme-toggle {
  border-color: var(--color-teal-deep);
  color: var(--color-teal-deep);
  box-shadow:
    0 0 0 1px rgba(111, 224, 208, 0.25),
    0 0 16px rgba(111, 224, 208, 0.40);
}
[data-theme="dark"] .theme-toggle:hover,
[data-theme="dark"] .theme-toggle:focus-visible {
  border-color: #9CECDF;
  box-shadow:
    0 0 0 1px rgba(156, 236, 223, 0.50),
    0 0 24px rgba(156, 236, 223, 0.55),
    0 0 38px rgba(242, 183, 49, 0.20);
}

/* Mobile placement */
@media (max-width: 880px) {
  .theme-toggle {
    margin-left: 12px;
    width: 38px;
    height: 38px;
  }
  .theme-toggle svg { width: 18px; height: 18px; }
}

/* =========================================
   DARK THEME — Elegant, Calming Night Mode
   Activated via [data-theme="dark"] on <html>
   ========================================= */
[data-theme="dark"] {
  --color-cream: #0E1B1A;
  --color-warm-white: #142625;
  --color-bg-alt: #0A1716;
  --color-text: #ECE7DC;
  --color-text-light: #C5CFCC;
  --color-text-muted: #8E9C99;
  --color-border: #1F3431;
  --color-teal-deep: #6FE0D0;   /* lighter so headings shine */
  --color-teal-dark: #4DC9B8;
  --color-teal: #58D6C4;
  --color-navy: #ECE7DC;
  --color-navy-light: #C5CFCC;
}

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

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3 {
  color: var(--color-teal-deep);
}

/* Hero gradient — re-paint for night */
[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #0A1716 0%, #112826 50%, #163834 100%);
}
[data-theme="dark"] .hero-overlay {
  background: radial-gradient(ellipse at 70% 50%, rgba(111, 224, 208, 0.10) 0%, transparent 70%);
}

/* Nav */
[data-theme="dark"] .nav.scrolled {
  background-color: rgba(14, 27, 26, 0.96);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .nav-logo,
[data-theme="dark"] .nav-links a {
  color: var(--color-text);
}
[data-theme="dark"] .nav-links a:hover { color: var(--color-teal-deep); }
[data-theme="dark"] .nav-toggle span { background-color: var(--color-text); }

/* CTA buttons — keep gold radiant */
[data-theme="dark"] .btn-primary {
  background-color: var(--color-gold);
  color: #1A1310;
}
[data-theme="dark"] .btn-primary:hover {
  background-color: var(--color-gold-light);
  color: #1A1310;
}
[data-theme="dark"] .btn-secondary {
  color: var(--color-teal-deep);
  border-color: var(--color-teal-deep);
}
[data-theme="dark"] .btn-secondary:hover {
  background-color: var(--color-teal-deep);
  color: #0E1B1A;
}

/* Cards & sections */
[data-theme="dark"] .about,
[data-theme="dark"] .testimonials {
  background-color: var(--color-warm-white);
}
[data-theme="dark"] .what-is-tm,
[data-theme="dark"] .video {
  background-color: var(--color-cream);
}
[data-theme="dark"] .tm-card {
  background-color: var(--color-bg-alt);
  border-color: var(--color-border);
}
[data-theme="dark"] .tm-card:hover {
  border-color: var(--color-teal-deep);
  box-shadow: 0 8px 40px rgba(111, 224, 208, 0.12);
}
[data-theme="dark"] .testimonial-card {
  background-color: var(--color-bg-alt);
  border-left-color: var(--color-teal-deep);
}
[data-theme="dark"] .testimonial-body blockquote p,
[data-theme="dark"] .testimonial-meta h3 {
  color: var(--color-teal-deep);
}
[data-theme="dark"] .testimonial-role,
[data-theme="dark"] .testimonial-link {
  color: var(--color-teal);
}

/* Contact section — deepen the gradient */
[data-theme="dark"] .contact {
  background: linear-gradient(135deg, #0A1F1C 0%, #143C36 100%);
}
[data-theme="dark"] .contact .section-title {
  color: #F5F0E5;
  text-shadow: 0 0 24px rgba(111, 224, 208, 0.25);
}
[data-theme="dark"] .contact .section-subtitle { color: rgba(236, 231, 220, 0.92); }
[data-theme="dark"] .contact-item h3 {
  color: #F2B731;
  text-shadow: 0 0 18px rgba(242, 183, 49, 0.35);
}
[data-theme="dark"] .contact-item p { color: rgba(236, 231, 220, 0.92); }

/* Footer */
[data-theme="dark"] .footer { background-color: #050E0D; }

/* Section title underline */
[data-theme="dark"] .section-title::after { background: var(--color-teal-deep); }

/* Smooth transitions on common elements */
.nav, .nav.scrolled, .hero, .about, .testimonials, .what-is-tm, .video, .contact,
.tm-card, .testimonial-card, .footer, .btn {
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* =========================================
   ELEGANT GLOW TREATMENTS
   ========================================= */

/* Active / current nav link — soft underline glow */
.nav-links a.is-active {
  color: var(--color-teal-deep);
  position: relative;
}
.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  width: 22px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-teal), var(--color-gold));
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(42, 157, 143, 0.55), 0 0 16px rgba(242, 183, 49, 0.35);
}
[data-theme="dark"] .nav-links a.is-active { color: var(--color-teal-deep); }

/* Glowing card framing — used for elevated content blocks */
.glow-card {
  position: relative;
  background: var(--color-warm-white);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 36px 36px 32px;
  box-shadow: 0 0 0 1px rgba(42, 157, 143, 0.10), 0 12px 36px rgba(42, 157, 143, 0.08);
  transition: box-shadow 0.5s ease, border-color 0.4s ease, transform 0.4s ease;
}
.glow-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 14px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(42, 157, 143, 0.45), rgba(242, 183, 49, 0.35), rgba(42, 157, 143, 0.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.5;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.glow-card:hover,
.glow-card:focus-within {
  border-color: var(--color-teal);
  box-shadow:
    0 0 0 1px rgba(42, 157, 143, 0.30),
    0 0 26px rgba(42, 157, 143, 0.20),
    0 0 42px rgba(242, 183, 49, 0.14),
    0 16px 44px rgba(42, 157, 143, 0.14);
}
.glow-card:hover::before,
.glow-card:focus-within::before { opacity: 1; }

[data-theme="dark"] .glow-card {
  background: var(--color-bg-alt);
  border-color: var(--color-border);
  box-shadow: 0 0 0 1px rgba(111, 224, 208, 0.18), 0 14px 40px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .glow-card:hover,
[data-theme="dark"] .glow-card:focus-within {
  border-color: var(--color-teal-deep);
  box-shadow:
    0 0 0 1px rgba(111, 224, 208, 0.45),
    0 0 28px rgba(111, 224, 208, 0.30),
    0 0 48px rgba(242, 183, 49, 0.20),
    0 18px 48px rgba(0, 0, 0, 0.5);
}

/* Hero portrait — gentle aura ring */
.hero-portrait {
  box-shadow:
    0 20px 60px rgba(42, 157, 143, 0.18),
    0 0 0 12px rgba(42, 157, 143, 0.08),
    0 0 36px rgba(242, 183, 49, 0.12);
}
[data-theme="dark"] .hero-portrait {
  border-color: var(--color-teal-deep);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 0 12px rgba(111, 224, 208, 0.10),
    0 0 44px rgba(242, 183, 49, 0.20);
}

/* Contact section — wrap content in glowing card */
.contact-card {
  max-width: 640px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 40px 36px;
  text-align: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow:
    0 0 0 1px rgba(242, 183, 49, 0.20),
    0 0 32px rgba(242, 183, 49, 0.12),
    0 16px 44px rgba(0, 0, 0, 0.18);
  transition: box-shadow 0.5s ease, border-color 0.4s ease, transform 0.4s ease;
}
.contact-card:hover {
  border-color: rgba(242, 183, 49, 0.55);
  box-shadow:
    0 0 0 1px rgba(242, 183, 49, 0.45),
    0 0 38px rgba(242, 183, 49, 0.28),
    0 0 60px rgba(255, 255, 255, 0.06),
    0 20px 50px rgba(0, 0, 0, 0.25);
}

/* =========================================
   SUB-PAGE STYLES (testimonials / about / tm)
   ========================================= */
.page-hero {
  position: relative;
  padding: 160px 0 80px;
  text-align: center;
  background: linear-gradient(135deg, var(--color-cream) 0%, #EDE8DF 50%, #E5DFD3 100%);
  overflow: hidden;
}
[data-theme="dark"] .page-hero {
  background: linear-gradient(135deg, #0A1716 0%, #112826 50%, #163834 100%);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(42, 157, 143, 0.10) 0%, transparent 65%);
  pointer-events: none;
}
[data-theme="dark"] .page-hero::before {
  background: radial-gradient(ellipse at 50% 30%, rgba(111, 224, 208, 0.12) 0%, transparent 65%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 14px;
}
.page-hero h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  margin-bottom: 18px;
}
.page-hero p {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--color-text);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
}

/* "Read more" link from homepage to subpages */
.section-cta {
  text-align: center;
  margin-top: 48px;
}
.section-cta a {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: 1.5px solid var(--color-teal);
  border-radius: 2px;
  color: var(--color-teal-deep);
  background: transparent;
  transition: all var(--transition);
}
.section-cta a:hover,
.section-cta a:focus-visible {
  background: var(--color-teal);
  color: var(--color-warm-white);
  box-shadow: 0 0 18px rgba(42, 157, 143, 0.30), 0 0 28px rgba(242, 183, 49, 0.18);
  outline: none;
}
[data-theme="dark"] .section-cta a:hover,
[data-theme="dark"] .section-cta a:focus-visible {
  background: var(--color-teal-deep);
  color: #0E1B1A;
}

/* Long-form testimonial entries */
.testimonial-full {
  max-width: 820px;
  margin: 0 auto 56px;
  padding: 48px;
  background: var(--color-warm-white);
  border-radius: 14px;
  border: 1px solid var(--color-border);
  box-shadow: 0 0 0 1px rgba(42, 157, 143, 0.08), 0 12px 36px rgba(42, 157, 143, 0.06);
  transition: box-shadow 0.4s ease, border-color 0.4s ease, transform 0.4s ease;
}
.testimonial-full:hover {
  border-color: var(--color-teal);
  box-shadow: 0 0 0 1px rgba(42, 157, 143, 0.25), 0 0 24px rgba(42, 157, 143, 0.15), 0 16px 44px rgba(42, 157, 143, 0.10);
}
[data-theme="dark"] .testimonial-full {
  background: var(--color-bg-alt);
  box-shadow: 0 0 0 1px rgba(111, 224, 208, 0.15), 0 14px 40px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .testimonial-full:hover {
  border-color: var(--color-teal-deep);
  box-shadow: 0 0 0 1px rgba(111, 224, 208, 0.40), 0 0 26px rgba(111, 224, 208, 0.22), 0 18px 48px rgba(0, 0, 0, 0.55);
}
.testimonial-full .tf-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}
.tf-portrait {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid var(--color-teal);
  background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
  box-shadow: 0 0 0 4px rgba(42, 157, 143, 0.10);
}
.tf-portrait img { width: 100%; height: 100%; object-fit: cover; }
.tf-meta h2 {
  font-size: 1.55rem;
  margin-bottom: 4px;
}
.tf-meta .tf-role {
  font-size: 0.92rem;
  color: var(--color-teal);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.testimonial-full blockquote p {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-style: italic;
  line-height: 1.85;
  color: var(--color-text);
  margin-bottom: 18px;
}
.testimonial-full blockquote p:last-child { margin-bottom: 0; }
.testimonial-full .tf-link {
  display: inline-block;
  margin-top: 24px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-teal);
  border-bottom: 1px solid transparent;
  transition: all 0.25s ease;
}
.testimonial-full .tf-link:hover {
  border-bottom-color: var(--color-teal);
}

/* Generic content prose for about-tm / about-jean */
.prose {
  max-width: 760px;
  margin: 0 auto;
}
.prose h2 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  margin: 56px 0 16px;
}
.prose h3 {
  font-size: 1.4rem;
  margin: 36px 0 12px;
}
.prose p {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--color-text);
  margin-bottom: 18px;
}
.prose ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 28px;
}
.prose ul li {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--color-text);
  padding: 10px 0 10px 32px;
  position: relative;
}
.prose ul li::before {
  content: "✦";
  position: absolute;
  left: 4px;
  top: 8px;
  color: var(--color-gold);
  font-size: 1.1rem;
}
.prose .pull-quote {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-style: italic;
  text-align: center;
  color: var(--color-teal-deep);
  padding: 32px 24px;
  margin: 32px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .testimonial-full { padding: 32px 24px; }
  .testimonial-full .tf-header { flex-direction: column; text-align: center; }
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
}

.footer-credit a {
  color: var(--color-teal);
}

.footer-credit a:hover {
  color: var(--color-gold);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 48px;
    padding-top: 140px;
  }

  .hero-portrait {
    width: 260px;
    height: 260px;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

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

  .footer-content {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

@media (max-width: 640px) {
  :root {
    --section-padding: 72px 0;
  }

  .container {
    padding: 0 20px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-warm-white);
    flex-direction: column;
    padding: 24px 32px;
    gap: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-portrait {
    width: 200px;
    height: 200px;
  }

  .hero-content {
    padding-top: 120px;
  }

  .tm-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    padding: 32px 24px;
  }

  .testimonial-body blockquote p {
    font-size: 1.05rem;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .btn {
    padding: 14px 28px;
    font-size: 0.8rem;
  }
}
