/* =========================================================
   Alma Vive Psychiatry — Brand palette pulled from the logo
   Deep teal + soft teal + leaf green on warm cream
   ========================================================= */

:root {
  /* Brand colors from the logo */
  --teal-900: #0d3b3d;
  --teal-800: #14524f;
  --teal-700: #1f6e6a;
  --teal-500: #3a8d87;
  --teal-300: #8cc1bb;
  --teal-100: #e0efed;

  --green-600: #3aa15a;
  --green-500: #4dbb6c;
  --green-300: #a8e0b7;

  --cream-100: #fbf8f2;
  --cream-200: #f3ede1;
  --ink-900:  #0f1f1f;
  --ink-700:  #1f2f2f;
  --ink-500:  #4a5959;
  --ink-300:  #8a9999;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --shadow-sm: 0 2px 8px rgba(13, 59, 61, 0.06);
  --shadow-md: 0 10px 30px rgba(13, 59, 61, 0.08);
  --shadow-lg: 0 30px 60px rgba(13, 59, 61, 0.12);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter Tight', system-ui, -apple-system, sans-serif;
}

/* =========================================================
   Reset & base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--cream-100);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; margin: 0; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* =========================================================
   Typography
   ========================================================= */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--teal-900);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 0.4em;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400;
}
h1 em {
  font-style: italic;
  color: var(--green-600);
  font-weight: 500;
}

h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  font-weight: 500;
}
h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--teal-800);
}
h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--teal-800);
}

p { margin: 0 0 1em; color: var(--ink-700); }

.eyebrow,
.section-label {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal-700);
  margin-bottom: 0.9rem;
  display: inline-block;
}
.section-label.light { color: var(--teal-300); }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 242, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(13, 59, 61, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-mark { height: 42px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--teal-900);
  letter-spacing: -0.01em;
}
.brand-tag {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin-top: 4px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-700);
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--teal-700); }
.nav-cta {
  background: var(--teal-900);
  color: var(--cream-100) !important;
  padding: 10px 18px;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.nav-cta:hover { background: var(--teal-700); transform: translateY(-1px); }

/* Language toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(13, 59, 61, 0.12);
  background: rgba(255, 255, 255, 0.5);
}
.lang-btn {
  border: 0;
  background: transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--ink-500);
  padding: 4px 6px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}
.lang-btn.active {
  color: var(--cream-100);
  background: var(--teal-900);
  padding: 4px 10px;
}
.lang-btn:hover:not(.active) { color: var(--teal-700); }
.lang-sep { color: var(--ink-300); font-size: 0.82rem; }

@media (max-width: 860px) {
  .nav a:not(.nav-cta) { display: none; }
  .nav { gap: 12px; }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal-900);
  color: var(--cream-100);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--teal-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-ghost {
  background: transparent;
  color: var(--teal-900);
  border-color: rgba(13, 59, 61, 0.15);
}
.btn-ghost:hover {
  background: var(--teal-100);
  border-color: var(--teal-700);
}
.btn.full { width: 100%; justify-content: center; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55; }
.orb-1 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, var(--teal-300), transparent 70%);
  top: -160px; right: -120px;
}
.orb-2 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, var(--green-300), transparent 70%);
  bottom: -120px; left: -100px;
  opacity: 0.45;
}
.orb-3 {
  width: 240px; height: 240px;
  background: radial-gradient(circle, var(--teal-100), transparent 70%);
  top: 40%; left: 50%;
  opacity: 0.4;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-copy { opacity: 0; transform: translateY(20px); transition: all 0.8s ease; }
.hero-portrait { opacity: 0; transform: translateY(20px); transition: all 0.8s ease 0.15s; position: relative; }
.hero-copy.in-view, .hero-portrait.in-view { opacity: 1; transform: translateY(0); }

.lede {
  font-size: 1.12rem;
  color: var(--ink-700);
  max-width: 540px;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 0.88rem;
  color: var(--ink-500);
}
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); display: inline-block; }

.portrait-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  background: var(--teal-700);
}
.portrait-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 59, 61, 0.0) 50%, rgba(13, 59, 61, 0.35) 100%);
  z-index: 1;
  pointer-events: none;
}
.portrait-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.credential-card {
  position: absolute;
  bottom: -28px;
  left: -28px;
  background: var(--cream-100);
  padding: 22px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  max-width: 320px;
  border: 1px solid rgba(13, 59, 61, 0.06);
}
.cred-row { display: flex; flex-direction: column; margin-bottom: 12px; }
.cred-row:last-child { margin-bottom: 0; }
.cred-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--teal-700);
  font-weight: 600;
}
.cred-value {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-900);
  margin-top: 2px;
}

@media (max-width: 900px) {
  .hero { padding: 56px 0 64px; }
  .hero-inner { grid-template-columns: 1fr; gap: 60px; }
  .credential-card { left: 0; }
}

/* =========================================================
   Trust strip
   ========================================================= */
.trust-strip {
  background: var(--teal-900);
  color: var(--cream-100);
  padding: 28px 0;
}
.trust-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.trust-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.74rem;
  font-weight: 600;
  margin: 0;
  color: var(--teal-300);
}
.insurance-list {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 0.92rem;
  font-weight: 500;
}
.insurance-list li { position: relative; }
.insurance-list li + li::before {
  content: '·';
  position: absolute;
  left: -13px;
  color: var(--teal-500);
}

/* =========================================================
   Section base
   ========================================================= */
.section {
  padding: 110px 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.section.in-view { opacity: 1; transform: translateY(0); }

.section-head.centered {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--ink-500);
  max-width: 620px;
  margin: 0 auto;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 72px 0; }
}

/* =========================================================
   About
   ========================================================= */
.about blockquote {
  margin: 28px 0 0;
  padding: 22px 26px;
  border-left: 3px solid var(--green-500);
  background: var(--cream-200);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--teal-900);
  line-height: 1.5;
}

/* =========================================================
   Mission & Vision
   ========================================================= */
.mission {
  background: linear-gradient(160deg, var(--teal-900), var(--teal-800));
  color: var(--cream-100);
  position: relative;
  overflow: hidden;
}
.mission::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 187, 108, 0.18), transparent 70%);
  top: -200px; left: -200px;
  pointer-events: none;
}
.mission::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(140, 193, 187, 0.18), transparent 70%);
  bottom: -200px; right: -200px;
  pointer-events: none;
}
.mission h2 { color: var(--cream-100); }
.mission p { color: rgba(251, 248, 242, 0.85); }

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  position: relative;
  z-index: 1;
  margin-bottom: 72px;
}
@media (max-width: 800px) { .mission-grid { grid-template-columns: 1fr; } }

.mission-card {
  background: rgba(251, 248, 242, 0.04);
  border: 1px solid rgba(251, 248, 242, 0.12);
  padding: 40px 36px;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.mission-card.in-view { opacity: 1; transform: translateY(0); }
.mission-card h3 {
  color: var(--cream-100);
  font-size: 1.5rem;
  margin-bottom: 14px;
}
.mission-card p { margin: 0; line-height: 1.6; }

.mission-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green-500), var(--teal-500));
  color: var(--cream-100);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 26px;
}
.mission-icon svg { width: 26px; height: 26px; }

/* Values row */
.values-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
  padding-top: 48px;
  border-top: 1px solid rgba(251, 248, 242, 0.12);
}
@media (max-width: 900px) { .values-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .values-row { grid-template-columns: 1fr; } }

.value {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.value.in-view { opacity: 1; transform: translateY(0); }
.value-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--green-500);
  font-weight: 500;
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 12px;
}
.value h4 { color: var(--cream-100); margin-bottom: 8px; }
.value p { font-size: 0.92rem; margin: 0; line-height: 1.55; }

/* =========================================================
   Approach grid
   ========================================================= */
.approach { background: var(--cream-200); }
.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 920px) { .approach-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .approach-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--cream-100);
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(13, 59, 61, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  opacity: 0; transform: translateY(20px);
}
.card.in-view { opacity: 1; transform: translateY(0); transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-300);
}
.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal-700), var(--green-600));
  color: var(--cream-100);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-500); font-size: 0.96rem; margin: 0; }

/* =========================================================
   Services / specialties
   ========================================================= */
.specialties {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
}
@media (max-width: 580px) { .specialties { grid-template-columns: 1fr; } }
.specialties li {
  padding: 14px 18px;
  background: var(--cream-100);
  border: 1px solid rgba(13, 59, 61, 0.08);
  border-radius: var(--radius-md);
  font-weight: 500;
  color: var(--teal-900);
  position: relative;
  padding-left: 42px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.specialties li:hover { border-color: var(--green-500); background: #fff; }
.specialties li::before {
  content: '';
  position: absolute;
  left: 18px; top: 50%;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green-500);
  transform: translateY(-50%);
}

/* =========================================================
   Hours
   ========================================================= */
.hours {
  background: var(--cream-200);
  position: relative;
}
.hours-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 860px) { .hours-grid { grid-template-columns: 1fr; gap: 40px; } }

.hours-card {
  background: var(--cream-100);
  color: var(--ink-900);
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(13, 59, 61, 0.08);
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.7s ease 0.2s, transform 0.7s ease 0.2s;
}
.hours-card.in-view { opacity: 1; transform: translateY(0); }
.hours-card h3 {
  font-size: 1.4rem;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(13, 59, 61, 0.08);
}
.hours-list { margin-bottom: 22px; }
.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(13, 59, 61, 0.06);
  font-size: 0.98rem;
}
.hours-list li:last-child { border-bottom: none; }
.hours-list li span:first-child { font-weight: 600; color: var(--teal-900); }
.hours-list li span:last-child { color: var(--ink-500); }
.hours-note {
  font-size: 0.88rem;
  color: var(--ink-500);
  margin-bottom: 22px;
  padding: 14px;
  background: var(--cream-200);
  border-radius: var(--radius-sm);
}

/* =========================================================
   Booking
   ========================================================= */
.book-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}
@media (max-width: 720px) { .book-grid { grid-template-columns: 1fr; } }

.book-card {
  position: relative;
  display: block;
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  background: var(--cream-100);
  border: 1px solid rgba(13, 59, 61, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.book-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-700);
}
.book-card.primary {
  background: linear-gradient(135deg, var(--teal-900), var(--teal-700));
  color: var(--cream-100);
  border-color: var(--teal-700);
}
.book-card.primary h3 { color: var(--cream-100); }
.book-card.primary p { color: rgba(251, 248, 242, 0.85); }
.book-card h3 { margin-bottom: 10px; }
.book-card p { font-size: 0.98rem; margin-bottom: 20px; color: var(--ink-500); }

.book-badge {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--green-500);
  color: var(--teal-900);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}
.book-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.96rem;
  color: inherit;
}
.book-card:hover .book-link svg { transform: translateX(4px); }
.book-link svg { transition: transform 0.2s ease; }

.contact-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 28px 32px;
  background: var(--cream-200);
  border-radius: var(--radius-lg);
}
@media (max-width: 720px) { .contact-bar { grid-template-columns: 1fr; } }

.contact-item { display: flex; flex-direction: column; }
.contact-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-700);
  font-weight: 600;
  margin-bottom: 6px;
}
.contact-item a, .contact-item span:last-child {
  font-size: 1rem;
  color: var(--teal-900);
  font-weight: 500;
}
.contact-item a:hover { color: var(--green-600); }

/* =========================================================
   Blog section (home page) + archive + single post
   ========================================================= */
.blog-section { background: var(--cream-100); }

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
@media (max-width: 900px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }

.post-card {
  background: var(--cream-100);
  border: 1px solid rgba(13, 59, 61, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}
.post-card.in-view { opacity: 1; transform: translateY(0); transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-300);
}
.post-card-link {
  display: block;
  padding: 32px 28px;
  height: 100%;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  font-size: 0.82rem;
}
.post-tag {
  background: var(--teal-100);
  color: var(--teal-800);
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}
.post-date { color: var(--ink-500); }
.post-title {
  font-size: 1.32rem;
  margin-bottom: 12px;
  line-height: 1.2;
}
.post-card:hover .post-title { color: var(--teal-700); }
.post-excerpt {
  color: var(--ink-500);
  font-size: 0.96rem;
  margin-bottom: 20px;
  line-height: 1.55;
}
.post-readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal-700);
  font-weight: 600;
  font-size: 0.9rem;
}
.post-card:hover .post-readmore svg { transform: translateX(4px); }
.post-readmore svg { transition: transform 0.2s ease; }

.blog-cta {
  text-align: center;
}

/* Blog archive page hero */
.blog-hero {
  padding: 96px 0 48px;
  text-align: center;
  background: var(--cream-100);
}
.blog-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  margin-bottom: 18px;
}
.blog-hero .lede {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--ink-500);
}
.blog-archive { padding-top: 32px; background: var(--cream-100); }

/* Single post page */
.container-narrow {
  max-width: 760px;
}
.single-post {
  padding: 64px 0 96px;
  background: var(--cream-100);
  min-height: 60vh;
}
.post-back {
  display: inline-block;
  color: var(--teal-700);
  font-weight: 500;
  font-size: 0.94rem;
  margin-bottom: 40px;
  transition: color 0.2s ease;
}
.post-back:hover { color: var(--green-600); }

.single-post-head {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(13, 59, 61, 0.08);
}
.single-post-head h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-top: 14px;
  margin-bottom: 0;
}

.single-post-body {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--ink-700);
}
.single-post-body p {
  margin-bottom: 1.4em;
  color: var(--ink-700);
}
.single-post-body h2 {
  font-size: 1.6rem;
  margin-top: 2em;
  margin-bottom: 0.6em;
  color: var(--teal-900);
}
.single-post-body h3 {
  font-size: 1.25rem;
  margin-top: 1.8em;
  margin-bottom: 0.6em;
}
.single-post-body ul {
  list-style: disc;
  padding-left: 1.5em;
  margin-bottom: 1.4em;
}
.single-post-body li {
  margin-bottom: 0.5em;
}
.single-post-body strong { color: var(--teal-900); }
.single-post-body em { font-style: italic; }
.single-post-body a {
  color: var(--teal-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.single-post-body a:hover { color: var(--green-600); }

.post-cta {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(13, 59, 61, 0.08);
  text-align: center;
}

/* =========================================================
   Tag filter bar (blog archive page)
   ========================================================= */
.tag-filter-bar {
  background: var(--cream-100);
  padding: 0 0 8px;
  border-bottom: 1px solid rgba(13, 59, 61, 0.06);
}
.tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 0;
}
.tag-filter-btn {
  border: 1px solid rgba(13, 59, 61, 0.12);
  background: transparent;
  color: var(--ink-500);
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.tag-filter-btn:hover {
  background: var(--teal-100);
  color: var(--teal-800);
  border-color: var(--teal-300);
}
.tag-filter-btn.active {
  background: var(--teal-900);
  color: var(--cream-100);
  border-color: var(--teal-900);
}
.no-posts {
  color: var(--ink-500);
  font-size: 1rem;
  text-align: center;
  padding: 48px 0;
  grid-column: 1 / -1;
}

/* =========================================================
   Email signup section
   ========================================================= */
.email-signup {
  background: linear-gradient(160deg, var(--teal-900), var(--teal-800));
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}
.email-signup::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 187, 108, 0.2), transparent 70%);
  top: -180px; right: -120px;
  pointer-events: none;
}

.signup-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 860px) {
  .signup-inner { grid-template-columns: 1fr; gap: 36px; }
}

.signup-copy h2 { color: var(--cream-100); }
.signup-copy p  { color: rgba(251, 248, 242, 0.8); font-size: 1.06rem; margin: 0; }

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.signup-fields {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.signup-input {
  flex: 1;
  min-width: 220px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--cream-100);
  font-family: var(--font-body);
  font-size: 0.98rem;
  transition: border-color 0.2s ease, background 0.2s ease;
  outline: none;
}
.signup-input::placeholder { color: rgba(251, 248, 242, 0.45); }
.signup-input:focus {
  border-color: var(--green-500);
  background: rgba(255, 255, 255, 0.12);
}
.signup-btn {
  background: var(--green-500);
  color: var(--teal-900);
  border-color: transparent;
  flex-shrink: 0;
}
.signup-btn:hover {
  background: var(--green-600);
  transform: translateY(-2px);
}
.signup-note {
  font-size: 0.82rem;
  color: rgba(251, 248, 242, 0.45);
  margin: 0;
}
.signup-success {
  font-size: 0.96rem;
  color: var(--green-300);
  font-weight: 500;
  margin: 0;
}

/* =========================================================
   Footer (keep at the very end)
   ========================================================= */
.site-footer {
  background: var(--teal-900);
  color: var(--cream-100);
  padding: 64px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 800px) { .footer-inner { grid-template-columns: 1fr; gap: 32px; } }

.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-mark { height: 56px; width: auto; filter: brightness(0) invert(1) opacity(0.85); }
.footer-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 4px;
  color: var(--cream-100);
}
.footer-sub { font-size: 0.88rem; color: var(--teal-300); margin: 0; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-nav a {
  font-size: 0.94rem;
  color: rgba(251, 248, 242, 0.75);
  transition: color 0.2s ease;
}
.footer-nav a:hover { color: var(--green-500); }

.footer-legal { font-size: 0.82rem; color: rgba(251, 248, 242, 0.6); }
.footer-legal p { margin: 0 0 8px; color: inherit; }
.disclaimer { font-style: italic; line-height: 1.5; }
