/* ============================================================
   Practical Gitti — Main Stylesheet
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Nunito:wght@300;400;500;600;700&display=swap');

/* --- Design Tokens --- */
:root {
  --magenta:       #C4006E;
  --magenta-dark:  #8E004F;
  --magenta-light: #FCE4F3;
  --teal:          #008B9A;
  --teal-dark:     #005F6B;
  --teal-light:    #E0F5F8;
  --cream:         #FDF8FC;
  --warm-cream:    #FFF0F6;
  --text-dark:     #1A2A2A;
  --text-body:     #3A4848;
  --text-muted:    #6A7878;
  --border:        #D8E8EA;
  --white:         #FFFFFF;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Nunito', 'Segoe UI', sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;

  --shadow-sm:  0 2px 8px rgba(0, 95, 107, 0.08);
  --shadow-md:  0 4px 20px rgba(0, 95, 107, 0.14);
  --shadow-lg:  0 8px 40px rgba(0, 95, 107, 0.18);

  --max-width:  1200px;
  --section-gap: 80px;
}

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

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.72;
  color: var(--text-body);
  background-color: var(--cream);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1.25;
}
h1 { font-size: clamp(2.15rem, 5vw, 3.45rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.65rem); font-weight: 600; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.85rem); font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* --- Layout helpers --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--section-gap) 0; }
.section-sm { padding: 48px 0; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  color: var(--text-dark);
  margin-bottom: 16px;
}

.section-intro {
  font-size: 1.18rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 48px;
}

.text-center { text-align: center; }
.text-center .section-intro { margin-left: auto; margin-right: auto; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 34px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--magenta);
  color: var(--white);
  border-color: var(--magenta);
}
.btn-primary:hover {
  background: var(--magenta-dark);
  border-color: var(--magenta-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-outline:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--magenta);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--magenta-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-sage {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-sage:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  transform: translateY(-2px);
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 2px solid var(--magenta-light);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.site-logo img {
  height: 78px;
  width: auto;
  transition: opacity 0.2s ease;
}
.site-logo:hover img {
  opacity: 0.85;
}

/* Desktop Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-body);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--teal-dark);
  background: var(--teal-light);
}

.nav-subscribe,
.nav-subscribe.active {
  background: var(--magenta) !important;
  color: var(--white) !important;
  border-radius: 50px;
  padding: 8px 20px;
}
.nav-subscribe:hover,
.nav-subscribe.active:hover {
  background: var(--magenta-dark) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.hamburger:hover { background: var(--teal-light); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--border);
  background: var(--white);
  gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav .nav-link { font-size: 1.08rem; padding: 13px 16px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--teal-dark);
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.45;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,95,107,0.72) 0%, rgba(196,0,110,0.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  color: var(--white);
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 14px;
}

.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero p { font-size: 1.25rem; color: rgba(255,255,255,0.88); margin-bottom: 32px; max-width: 560px; }

.hero-quote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.24rem;
  color: rgba(255,255,255,0.9);
  border-left: 3px solid var(--magenta);
  padding-left: 18px;
  margin: 28px 0 36px;
  line-height: 1.5;
}

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

/* Split Hero (home page) */
.hero-split {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%);
  min-height: 520px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

/* Home-only hero colour swap: easy to reverse if needed */
.home-page .hero-split {
  background: linear-gradient(135deg, var(--magenta-dark) 0%, var(--magenta) 100%);
}

.home-page .hero-split .home-newsletter-btn {
  background: var(--teal);
  border-color: var(--teal);
}

.home-page .hero-split .home-newsletter-btn:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

.hero-split-inner {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  align-items: center;
  align-content: stretch;
  padding: 64px 0 64px;
  width: 100%;
  min-height: 520px;
}

.hero-split .hero-content { max-width: none; }

.hero-photo {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: stretch;
}

.hero-photo img {
  width: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 0;
  display: block;
}

/* Category Hero (smaller) */
.category-hero {
  --category-accent: rgba(0,139,154,0.28);
  --category-highlight: rgba(255,255,255,0.18);
  min-height: 500px;
  padding: 0;
  background:
    radial-gradient(circle at 16% 18%, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 28%),
    linear-gradient(135deg, var(--magenta-dark) 0%, var(--magenta) 58%, #d65f96 100%);
}

.category-hero::before,
.category-hero::after,
.blog-post-hero::before,
.blog-post-hero::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.category-hero::before,
.blog-post-hero::before {
  width: 420px;
  height: 420px;
  top: -150px;
  right: -90px;
  background: radial-gradient(circle, var(--category-highlight, rgba(255,255,255,0.18)) 0%, rgba(255,255,255,0) 70%);
}

.category-hero::after,
.blog-post-hero::after {
  width: 340px;
  height: 340px;
  left: -110px;
  bottom: -150px;
  background: radial-gradient(circle, var(--category-accent, rgba(0,139,154,0.18)) 0%, rgba(0,139,154,0) 72%);
}

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

.category-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
  gap: 52px;
  align-items: center;
  min-height: 500px;
  padding: 56px 0;
}

.category-hero .hero-content {
  max-width: 560px;
}

.category-hero .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.82);
  margin-bottom: 18px;
}

.category-hero h1 {
  margin-bottom: 18px;
}

.category-hero p {
  margin-bottom: 0;
  max-width: 560px;
  color: rgba(255,255,255,0.9);
}

.category-hero-photo {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 360px;
  padding: 14px;
  border-radius: 34px;
  background: linear-gradient(145deg, #efdcc5 0%, #ddb68f 24%, #c99466 56%, #f3e4d3 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.48),
    inset 0 -8px 18px rgba(150,103,63,0.2),
    0 26px 54px rgba(20, 8, 18, 0.24);
}

.category-hero-photo::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 24px;
  background: repeating-linear-gradient(
    10deg,
    rgba(255,255,255,0.16) 0 3px,
    rgba(155,108,69,0.08) 3px 8px,
    rgba(255,255,255,0.04) 8px 14px
  );
  opacity: 0.56;
  z-index: 0;
  pointer-events: none;
}

.category-hero-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 332px;
  object-fit: cover;
  object-position: center;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.36);
  box-shadow: 0 16px 30px rgba(94, 61, 31, 0.14);
}

.category-hero--health {
  --category-accent: rgba(0,139,154,0.34);
  --category-highlight: rgba(224,245,248,0.22);
}

.category-hero--mindful {
  --category-accent: rgba(253,248,252,0.22);
  --category-highlight: rgba(255,255,255,0.2);
}

.category-hero--alignment {
  --category-accent: rgba(224,245,248,0.2);
  --category-highlight: rgba(255,240,246,0.18);
}

.category-hero--living {
  --category-accent: rgba(0,139,154,0.24);
  --category-highlight: rgba(255,255,255,0.18);
}

.category-hero--everything {
  --category-accent: rgba(255,240,246,0.24);
  --category-highlight: rgba(255,255,255,0.22);
}

.category-hero--health .category-hero-photo img {
  object-position: center top;
}

.category-hero .hero-eyebrow,
.category-hero h1,
.category-hero p {
  text-shadow: 0 10px 28px rgba(56, 7, 35, 0.18);
}

/* ============================================================
   BLOG GRID
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.blog-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--teal-light);
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.blog-card:hover .blog-card-img img { transform: scale(1.05); }

.blog-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-light);
  color: var(--text-muted);
  font-size: 2.5rem;
}

.blog-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-cat-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 10px;
}

.blog-card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  line-height: 1.35;
  color: var(--text-dark);
  transition: color 0.2s;
}
.blog-card:hover .blog-card-body h3 { color: var(--teal-dark); }

.blog-card-body p {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 18px;
}

.read-more {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  transition: gap 0.2s;
}
.read-more::after { content: '→'; }
.blog-card:hover .read-more { gap: 10px; color: var(--magenta); }

/* Featured (wide card) */
.blog-card.featured {
  grid-column: span 2;
  flex-direction: row;
}
.blog-card.featured .blog-card-img {
  width: 46%;
  flex-shrink: 0;
  aspect-ratio: unset;
}
.blog-card.featured .blog-card-body { padding: 32px; }
.blog-card.featured .blog-card-body h3 { font-size: 1.5rem; }

/* ============================================================
   NEWSLETTER SECTION
   ============================================================ */
.newsletter-section {
  background: var(--teal-dark);
  color: var(--white);
  padding: var(--section-gap) 0;
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.newsletter-content h2 { color: var(--white); margin-bottom: 16px; }
.newsletter-content p { color: rgba(255,255,255,0.82); font-size: 1.15rem; margin-bottom: 24px; }

.newsletter-perks {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.newsletter-perk {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.02rem;
  color: rgba(255,255,255,0.88);
}
.newsletter-perk::before {
  content: '✓';
  width: 22px;
  height: 22px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.newsletter-form { display: flex; flex-direction: column; gap: 14px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.05em;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1.06rem;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
}
.form-input::placeholder { color: rgba(255,255,255,0.45); }
.form-input:focus {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.15);
}

.form-note {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

/* Light form (for subscribe page) */
.newsletter-section.light {
  background: var(--warm-cream);
  color: var(--text-dark);
}
.newsletter-section.light .newsletter-content h2 { color: var(--text-dark); }
.newsletter-section.light .newsletter-content p,
.newsletter-section.light .newsletter-perk { color: var(--text-body); }
.newsletter-section.light .form-group label { color: var(--text-muted); }
.newsletter-section.light .form-input {
  background: var(--white);
  border-color: var(--border);
  color: var(--text-dark);
}
.newsletter-section.light .form-input::placeholder { color: var(--text-muted); }
.newsletter-section.light .form-input:focus { border-color: var(--teal); }
.newsletter-section.light .form-note { color: var(--text-muted); }

/* ============================================================
   EBOOKS SECTION
   ============================================================ */
.ebooks-section {
  background: var(--warm-cream);
}

.ebooks-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.ebooks-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.ebooks-img img { width: 100%; }

.ebooks-content .section-label { margin-bottom: 12px; }
.ebooks-content h2 { margin-bottom: 18px; }
.ebooks-content p { color: var(--text-body); margin-bottom: 16px; }

.ebooks-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 32px;
}
.ebook-tag {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 50px;
}

/* ============================================================
   READER TIPS SECTION
   ============================================================ */
.reader-tips-section {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%);
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}
.reader-tips-section h2 { color: var(--white); margin-bottom: 16px; }
.reader-tips-section p { color: rgba(255,255,255,0.85); max-width: 600px; margin: 0 auto 32px; font-size: 1.15rem; }

/* ============================================================
   ABOUT PREVIEW / BIO
   ============================================================ */
.about-preview {
  background: var(--white);
}

.about-inner {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 64px;
  align-items: center;
}

.about-photo {
  position: relative;
}
.about-photo img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  aspect-ratio: 3/4;
}
.about-photo::before {
  content: '';
  position: absolute;
  inset: -12px -12px auto auto;
  width: 100px;
  height: 100px;
  background: var(--magenta-light);
  border-radius: 50%;
  z-index: -1;
}
.about-photo::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: -12px;
  width: 70px;
  height: 70px;
  background: var(--teal-light);
  border-radius: 50%;
  z-index: -1;
}

.about-text h2 { margin-bottom: 20px; }
.about-text p { color: var(--text-body); margin-bottom: 16px; font-size: 1.15rem; }
.about-sig {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--teal-dark);
  margin: 24px 0 32px;
}

/* Full about page */
.about-full .about-inner {
  grid-template-columns: 380px 1fr;
}
.about-full .about-text p { font-size: 1.18rem; }

.ebooks-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 20px 0 32px;
}
.ebook-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 1.05rem;
  color: var(--text-body);
}
.ebook-item::before {
  content: '♥';
  color: var(--magenta);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================================
   CATEGORY PAGE
   ============================================================ */
.category-intro {
  background: var(--white);
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}
.category-intro-inner {
  max-width: 700px;
}
.category-intro p { font-size: 1.18rem; color: var(--text-body); }

.blogs-section { padding: var(--section-gap) 0; }

/* ============================================================
   SUBSCRIBE PAGE
   ============================================================ */
.subscribe-hero {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--magenta) 100%);
  padding: 80px 0;
  text-align: center;
  color: var(--white);
}
.subscribe-hero h1 { color: var(--white); margin-bottom: 16px; }
.subscribe-hero p { color: rgba(255,255,255,0.85); font-size: 1.18rem; max-width: 540px; margin: 0 auto; }

.subscribe-form-section {
  padding: var(--section-gap) 0;
  background: var(--cream);
}
.subscribe-form-wrapper {
  max-width: 560px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 48px;
  box-shadow: var(--shadow-md);
}
.subscribe-form-wrapper h2 { margin-bottom: 8px; }
.subscribe-form-wrapper > p { color: var(--text-muted); margin-bottom: 32px; }

.subscribe-form { display: flex; flex-direction: column; gap: 18px; }
.subscribe-form .form-group label { color: var(--text-body); font-size: 0.98rem; font-weight: 600; }
.subscribe-form .form-input {
  background: var(--cream);
  border: 2px solid var(--border);
  color: var(--text-dark);
  border-radius: var(--radius-sm);
}
.subscribe-form .form-input:focus { border-color: var(--teal); background: var(--white); }
.subscribe-form .form-input::placeholder { color: var(--text-muted); }
.subscribe-form .btn { align-self: flex-start; margin-top: 8px; }
.subscribe-form .form-note { color: var(--text-muted); font-size: 0.9rem; }

/* ============================================================
   TERMS PAGE
   ============================================================ */
.terms-section {
  padding: var(--section-gap) 0;
  max-width: 780px;
  margin: 0 auto;
}
.terms-content { background: var(--white); border-radius: var(--radius-md); padding: 56px; box-shadow: var(--shadow-sm); }
.terms-content h1 { margin-bottom: 6px; }
.terms-date { color: var(--text-muted); font-size: 0.98rem; margin-bottom: 40px; }
.terms-content h2 { font-size: 1.5rem; margin: 36px 0 12px; color: var(--teal-dark); }
.terms-content p, .terms-content li { color: var(--text-body); margin-bottom: 12px; line-height: 1.8; }
.terms-content ul { padding-left: 24px; list-style: disc; }
.terms-content a { color: var(--teal); text-decoration: underline; }
.terms-content a:hover { color: var(--magenta); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { color: rgba(255,255,255,0.75); }

/* --- Upper footer (magenta) --- */
.footer-upper {
  background: linear-gradient(135deg, var(--magenta-dark) 0%, var(--magenta) 100%);
  padding: 56px 0;
}

.footer-upper-inner {
  display: flex;
  align-items: center;
  gap: 56px;
}

.footer-quote-img {
  width: 320px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  display: block;
}

.footer-upper-text {
  flex: 1;
}

.footer-upper-text p {
  font-size: 1.25rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.9);
  margin-bottom: 28px;
  font-family: var(--font-heading);
  font-style: italic;
}

.footer-coffee-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--magenta-dark);
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: var(--font-body);
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.footer-coffee-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
}

/* --- Lower footer (teal-dark) --- */
.footer-lower {
  background: var(--teal-dark);
  padding: 52px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col li a {
  color: rgba(255,255,255,0.6);
  font-size: 1.02rem;
  transition: color 0.2s;
}
.footer-col li a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.35);
}
.footer-bottom a { color: rgba(255,255,255,0.45); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--white); }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%);
  padding: 64px 0;
  color: var(--white);
}
.page-hero h1 { color: var(--white); margin-bottom: 14px; }
.page-hero p { color: rgba(255,255,255,0.82); font-size: 1.18rem; max-width: 580px; }

/* ============================================================
   DIVIDERS & DECORATIVE
   ============================================================ */
.divider {
  width: 60px;
  height: 3px;
  background: var(--magenta);
  border-radius: 2px;
  margin: 20px 0 36px;
}
.divider.center { margin-left: auto; margin-right: auto; }

.quote-band {
  background: var(--warm-cream);
  padding: 56px 0;
  text-align: center;
}
.quote-band blockquote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  color: var(--teal-dark);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.5;
}
.quote-band cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 16px;
  letter-spacing: 0.05em;
}

/* ============================================================
   BLOG POST PAGE
   ============================================================ */
.blog-post-hero {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%);
  padding: 64px 0 56px;
  overflow: hidden;
  position: relative;
}

.blog-hero-split {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 56px;
  align-items: center;
  min-height: 340px;
}

.blog-hero-content {
  color: var(--white);
}

.blog-hero-content .blog-cat-tag {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  padding: 5px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
  text-decoration: none;
}

.blog-hero-content h1 {
  font-size: clamp(1.85rem, 3.2vw, 2.85rem);
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 18px;
}

.blog-hero-content .post-info {
  font-size: 0.98rem;
  color: rgba(255,255,255,0.65);
}

.blog-hero-image {
  position: relative;
}

.blog-hero-image::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: calc(var(--radius-lg) + 8px);
  background: rgba(255,255,255,0.1);
  z-index: 0;
}

.blog-hero-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  display: block;
  border: 3px solid rgba(255,255,255,0.2);
}

.blog-post-content {
  max-width: 780px;
  margin: 0 auto;
  padding: var(--section-gap) 24px;
}
.blog-post-content h2 { margin: 48px 0 16px; color: var(--teal-dark); }
.blog-post-content h3 { margin: 36px 0 12px; }
.blog-post-content p { font-size: 1.16rem; line-height: 1.85; color: var(--text-body); margin-bottom: 24px; }
.blog-post-content ul, .blog-post-content ol {
  padding-left: 28px;
  margin-bottom: 22px;
  list-style: disc;
}
.blog-post-content ol { list-style: decimal; }
.blog-post-content li { font-size: 1.16rem; line-height: 1.85; color: var(--text-body); margin-bottom: 10px; }
.blog-post-content blockquote {
  border-left: 4px solid var(--magenta);
  padding: 16px 24px;
  background: var(--magenta-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 28px 0;
  font-style: italic;
  color: var(--magenta-dark);
}
.blog-post-content img {
  border-radius: var(--radius-md);
  margin: 28px 0;
  box-shadow: var(--shadow-sm);
}

.breadcrumb { background: var(--teal-light); padding: 10px 0; }
.breadcrumb-list { display: flex; gap: 0; list-style: none; padding: 0; margin: 0; font-size: 0.92rem; color: var(--text-muted); flex-wrap: wrap; }
.breadcrumb-list li + li::before { content: " › "; padding: 0 6px; color: var(--text-muted); }
.breadcrumb-list a { color: var(--teal); }
.breadcrumb-list a:hover { color: var(--magenta); }
.breadcrumb-list li:last-child { color: var(--text-body); font-weight: 500; }

.post-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 40px;
  transition: gap 0.2s, color 0.2s;
}
.post-back-link::before { content: '←'; }
.post-back-link:hover { gap: 10px; color: var(--magenta); }

.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--magenta);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.2s ease;
  z-index: 999;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--magenta-dark);
  transform: translateY(0);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .site-nav { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-card.featured { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-upper-inner { gap: 36px; }
  .footer-quote-img { width: 260px; }
  .newsletter-inner { grid-template-columns: 1fr; gap: 40px; }
  .ebooks-inner { grid-template-columns: 1fr; }
  .ebooks-img { max-width: 480px; margin: 0 auto; }
  .about-inner { grid-template-columns: 280px 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  :root { --section-gap: 60px; }

  .site-nav { display: none; }
  .hamburger { display: flex; }

  .hero-split-inner {
    grid-template-columns: 1fr;
    padding: 48px 0 0;
  }
  .hero-photo img { border-radius: var(--radius-lg); max-height: 320px; margin: 0 auto; }

  .category-hero {
    min-height: unset;
  }
  .category-hero-inner {
    grid-template-columns: 1fr;
    gap: 30px;
    min-height: unset;
    padding: 48px 0 56px;
  }
  .category-hero .hero-content {
    max-width: none;
  }
  .category-hero-photo {
    min-height: unset;
    padding: 12px;
    border-radius: 28px;
  }
  .category-hero-photo::before {
    inset: 8px;
    border-radius: 20px;
  }
  .category-hero-photo img {
    min-height: unset;
    height: 236px;
    border-radius: 18px;
  }

  .blog-hero-split {
    grid-template-columns: 1fr;
    gap: 36px;
    min-height: unset;
  }
  .blog-hero-image { order: -1; }
  .blog-hero-image img { height: 240px; }
  .blog-post-hero { padding: 48px 0 44px; }


  .blog-grid { grid-template-columns: 1fr; gap: 24px; }
  .blog-card.featured { flex-direction: column; }
  .blog-card.featured .blog-card-img { width: 100%; aspect-ratio: 16/10; }

  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-photo img { max-width: 320px; margin: 0 auto; }
  .about-photo::before, .about-photo::after { display: none; }

  .footer-upper-inner { flex-direction: column; text-align: center; gap: 28px; }
  .footer-quote-img { width: 100%; max-width: 300px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .subscribe-form-wrapper { padding: 32px 24px; }

  .terms-content { padding: 32px 24px; }
  .terms-section { padding: var(--section-gap) 24px; }

  .ebooks-list { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .category-hero {
    min-height: unset;
  }
  .category-hero-inner {
    gap: 24px;
    padding: 40px 0 44px;
  }
  .category-hero .hero-eyebrow {
    padding: 7px 14px;
    font-size: 0.86rem;
  }
  .category-hero h1 {
    line-height: 1.15;
  }
  .category-hero-photo::before {
    inset: 7px;
  }
  .category-hero-photo img {
    height: 208px;
    border-radius: 16px;
  }
  .blog-hero-image img { height: 200px; }
  .blog-post-hero { padding: 40px 0 32px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-quote-img { max-width: 240px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; justify-content: center; }
  .back-to-top {
    right: 20px;
    bottom: 20px;
  }
}
