/* ============================================================
   Simply Desserts — SEO Content Pages
   Shared styles for recipes, guides, answers, comparisons
   V2: Cream article card on purple bg
   ============================================================ */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --bg-deep:    #2d1d5b;
  --bg-dark:    #231550;
  --bg-mid:     #572d86;
  --bg-card:    #352266;
  --purple:     #623493;
  --purple-lt:  #7B4BA8;
  --teal:       #00afae;
  --teal-lt:    #1dc5c4;
  --teal-dark:  #009090;
  --choc:       #7B4A1E;
  --van:        #C8A84B;
  --ban:        #D4B820;
  --text-light: #F5F0E8;
  --text-muted: #c4b8d9;
  --text-dark:  #1A1025;
  --white:      #ffffff;
  --border:     rgba(255,255,255,0.08);

  --font: 'Arial Narrow', Arial, sans-serif;
  --font-heading: 'Anton', sans-serif;
  --font-heading-light: 'Antonio', sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 12px;
  --radius-sm: 8px;
  --max-w: 1300px;
  --max-w-wide: 1300px;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: #5c378e;
  color: #453025;
  font-family: var(--font);
  font-size: 1.25rem;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1 { font-family: var(--font-heading); font-weight: 400; text-transform: uppercase; }
h2 { font-family: var(--font-heading); font-weight: 400; text-transform: uppercase; }
h3, h4, h5, h6 { font-family: var(--font-heading-light); font-weight: 600; text-transform: uppercase; }
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: var(--teal-lt); transition: color 0.2s; }
a:hover { color: var(--teal); }
ul, ol { list-style: none; }

/* ── Header (matches landing page) ───────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1300px;
  margin: 0 auto;
  padding: 1rem 0;
}
.header-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #e3d4ff;
}
.header-wrap.scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
.mobile-nav-logo {
  display: none;
}
.header-logo img { height: 56px; width: auto; }
.header-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 1.2rem;
  font-weight: 500;
}
.header-nav .nav-cta,
.header-nav .header-cta {
  font-family: 'Arial Narrow', Arial, sans-serif;
  font-weight: 700;
}
.header-nav a { color: #453025; transition: color 0.2s; text-decoration: none; }
.header-nav a:hover { color: #5c378e; }
.header-nav .nav-active { color: #453025; text-decoration: underline; text-underline-offset: 4px; }
.header-nav .nav-cta,
.header-nav .header-cta {
  color: #fff !important;
  background: #3a2a1a;
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s;
}
.header-nav .nav-cta:hover,
.header-nav .header-cta:hover {
  background: #5c378e;
}
.header-nav .nav-cta-secondary,
.header-nav .header-cta-secondary {
  background: transparent !important;
  color: #453025 !important;
  border: 1.5px solid #453025;
}
.header-nav .nav-cta-secondary:hover,
.header-nav .header-cta-secondary:hover {
  background: #453025 !important;
  color: #fff !important;
}

/* ── Article Layout ──────────────────────────────────────── */
.article-header {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.25rem 4vw 1.25rem;
  text-align: center;
}
.article-header h1 {
  font-size: 2.7rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #fff;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.5rem;
}
.article-meta span { display: inline-flex; align-items: center; gap: 0.3rem; }

/* Back to recipes link — inline with meta */
.back-to-recipes {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: color 0.2s;
}
.back-to-recipes:hover { color: #fff; }
.back-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.4);
  transition: border-color 0.2s;
}
.back-to-recipes:hover .back-icon { border-color: #fff; }

.article-hero {
  max-width: var(--max-w-wide);
  margin: 1.5rem auto 2rem;
  padding: 0 20px;
}
.article-hero img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* ── Article Body — Cream card on purple ─────────────────── */
.article-body {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.5rem 2rem 2rem;
  background: #f5ede6;
  border-radius: 16px;
  margin-bottom: 2rem;
  color: #453025;
}

/* ── Typography ──────────────────────────────────────────── */
.article-body h2 {
  font-size: 1.5rem;
  margin: 2rem 0 0.5rem;
  color: #453025;
  border-bottom: none;
  padding-bottom: 0;
  display: block;
}
.article-body h3 {
  font-size: 1.3rem;
  margin: 2rem 0 0.75rem;
  color: #5c378e;
}
.article-body p {
  margin-bottom: 1.25rem;
  color: #453025;
  opacity: 1;
}
.article-body ul, .article-body ol {
  margin: 0 0 1.5rem 1.25rem;
}
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body ol.method-steps { list-style: none; margin-left: 0; padding-left: 0; }
.article-body li {
  margin-bottom: 0.5rem;
  color: #453025;
  opacity: 1;
}
.article-body strong { color: #453025; font-weight: 600; }
.article-body a { color: #5c378e; font-weight: 600; text-decoration: underline; }
.article-body a:hover { color: #7B4BA8; }
.article-body a.btn-cta { text-decoration: none; }
.article-body blockquote {
  border-left: 3px solid #5c378e;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(92,55,142,0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: #5e4d42;
}

/* ── Recipe Card ─────────────────────────────────────────── */
.recipe-card {
  background: #fff;
  border: 1px solid rgba(69,48,37,0.1);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 1px 4px rgba(69,48,37,0.06);
}
.recipe-card h3 {
  color: #5c378e;
  margin-top: 0;
  font-weight: 500;
}
.recipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(69,48,37,0.1);
}
.recipe-meta-item {
  text-align: center;
}
.recipe-meta-label {
  display: block;
  font-size: 0.75rem;
  color: #7a6b5f;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.recipe-meta-value {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  color: #5c378e;
}
.recipe-card ol {
  margin-left: 1.25rem;
  list-style: decimal;
}
.recipe-card li { margin-bottom: 0.75rem; }

/* ── Variation Card ─────────────────────────────────────── */
.variation-card {
  background: #fff;
  border: 1px solid rgba(69,48,37,0.1);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.variation-card h4 {
  color: #5c378e;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}
.variation-card p {
  font-size: 0.9rem;
  color: #5e4d42;
  margin-bottom: 0;
}

/* ── Tip Box ────────────────────────────────────────────── */
.tip-box {
  background: rgba(92,55,142,0.06);
  border-left: 3px solid #5c378e;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

/* ── Nutrition Table ─────────────────────────────────────── */
.nutrition-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
.nutrition-table th,
.nutrition-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(69,48,37,0.12);
}
.nutrition-table th {
  color: #5c378e;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.nutrition-table td { color: #453025; }
.nutrition-table tr:hover { background: rgba(92,55,142,0.04); }
.nutrition-table .highlight { color: #5c378e; font-weight: 600; }

/* ── FAQ Section ─────────────────────────────────────────── */
.faq-section {
  margin: 3rem 0 2rem;
}
.faq-section h2 {
  display: block;
}
.faq-item {
  border-bottom: 1px solid rgba(69,48,37,0.1);
  padding: 1.25rem 0;
}
.faq-item:first-of-type { border-top: none; }
.faq-item:last-of-type { border-bottom: none; }
.faq-question {
  font-weight: 500;
  color: #453025;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}
.faq-answer {
  color: #5e4d42;
  line-height: 1.7;
}

/* ── Product CTA Card ────────────────────────────────────── */
.product-cta {
  background: linear-gradient(135deg, #e3d4ff 0%, #d4c1f5 100%);
  border: 1px solid rgba(69,48,37,0.08);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 1rem auto;
  max-width: 1300px;
  text-align: center;
}
.product-cta h3 {
  color: #453025;
  font-size: 1.7rem;
  margin: 0 0 0.5rem;
}
.product-cta p {
  color: #5e4d42;
  margin-bottom: 1.25rem;
  font-size: 1.2rem;
}
.product-cta .cta-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.product-cta .cta-chip {
  background: #d8c1af;
  color: #453025;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  font-size: 1.1rem;
  font-weight: 500;
}
.product-cta .btn-cta { color: #fff; }
.btn-cta {
  display: inline-block;
  background: #3a2a1a;
  color: #fff;
  padding: 10px 26px;
  border-radius: 100px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  transition: background 0.2s, transform 0.2s;
}
.btn-cta:hover,
.product-cta .btn-cta:hover {
  background: #5c378e;
  color: #fff !important;
  transform: translateY(-1px);
}

/* ── Related Content (outside cream card, on purple bg) ─── */
.related-content {
  border-top: none;
  max-width: var(--max-w);
  margin: 1.5rem auto 2rem;
  padding: 0;
}
.related-content h2 {
  color: #fff;
  border-bottom: none;
  display: block;
  margin: 0 0 1rem;
  padding-bottom: 0;
  text-align: center;
  font-size: 2.5rem;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.25rem;
}
.related-card {
  background: #f5ede6;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 0;
  overflow: hidden;
  transition: transform 0.2s;
}
.related-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.related-card h4,
.related-card p {
  padding: 0 1.25rem;
  text-align: center;
}
.related-card:hover {
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}
.related-card h4 {
  font-family: 'Arial Narrow', Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #453025;
  margin-bottom: 0.5rem;
  padding-top: 1rem;
  line-height: 1.3;
}
.related-card p {
  font-size: 1.1rem;
  color: #453025;
  margin-bottom: 1rem;
  padding-bottom: 0;
  line-height: 1.3;
}
.related-card .card-meta {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 1.25rem 1.25rem;
}
.related-card .card-meta span {
  background: #d8c1af;
  color: #453025;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.9rem;
}

/* ── Recipes Index ───────────────────────────────────────── */
.index-header {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 1.5rem 0;
  text-align: center;
}
.index-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
  color: #fff;
}
.index-header p {
  color: #fff;
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.4rem;
}
.recipe-grid {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.recipe-grid-card {
  background: #f5ede6;
  border: 1px solid rgba(69,48,37,0.1);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.recipe-grid-card:hover {
  border-color: rgba(69,48,37,0.1);
  transform: translateY(-3px);
}
.recipe-grid-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.recipe-grid-card .card-body {
  padding: 1.25rem 1.5rem;
  text-align: center;
}
.recipe-grid-card h3 {
  font-family: 'Arial Narrow', Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #453025;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.recipe-grid-card p {
  font-size: 1.1rem;
  color: #453025;
  margin-bottom: 1rem;
  line-height: 1.3;
}
.recipe-grid-card .card-meta {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.8rem;
}
.recipe-grid-card .card-meta span {
  background: #d8c1af;
  color: #453025;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.9rem;
}
.header-nav .nav-active {
  color: #453025;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ── Footer (matches landing page exactly) ───────────────── */
.site-footer {
  background: #e3d4ff;
  border-top: 1px solid rgba(69,48,37,0.1);
  padding: 3rem 8vw 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.footer-logo {
  height: 65px;
  width: auto;
  opacity: 0.85;
  margin-bottom: 0.75rem;
}
.footer-socials {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(69,48,37,0.1);
  color: #453025;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.social-icon svg { width: 16px; height: 16px; }
.social-icon:hover {
  background: #453025;
  color: #e3d4ff;
  transform: translateY(-2px);
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
}
.footer-links a {
  color: #453025;
  transition: color 0.2s;
  text-decoration: none;
}
.footer-links a:hover { color: #5c378e; }
.footer-sep { color: #453025; }
.footer-contact {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: #453025;
}
.footer-contact a { color: #453025; text-decoration: none; transition: color 0.2s; }
.footer-contact a:hover { color: #5c378e; }
.footer-copy {
  font-size: 1rem;
  color: #453025;
  text-align: center;
  max-width: 60ch;
}

/* ── Back to Top (matches index.html) ────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(69,48,37,0.2);
  background: rgba(227, 212, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #5c378e;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.2s ease;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover {
  background: #5c378e;
  border-color: #5c378e;
  color: #fff;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .recipe-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Hamburger ────────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  position: relative;
  z-index: 120;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #453025;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .hamburger { display: flex; width: 28px; height: 28px; gap: 4px; }
  .hamburger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .hamburger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .site-header { padding: 0.6rem 20px; }
  .header-logo img { height: 44px; }
  .mobile-nav-logo { display: block; margin-bottom: 1.5rem; }
  .mobile-nav-logo img { height: 64px; width: auto; }

  .header-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(227, 212, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 100px;
    align-items: center;
    gap: 1.4rem;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    z-index: 110;
  }

  .header-nav::before {
    display: none;
  }

  .header-nav.open { opacity: 1; visibility: visible; }

  .header-nav a {
    font-size: 1.1rem;
    letter-spacing: 0;
    color: #453025;
    transform: translateY(10px);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease, color 0.2s;
  }
  .header-nav.open a { transform: translateY(0); opacity: 1; }
  .header-nav.open a:nth-child(1) { transition-delay: 0.05s; }
  .header-nav.open a:nth-child(2) { transition-delay: 0.1s; }
  .header-nav.open a:nth-child(3) { transition-delay: 0.15s; }
  .header-nav.open a:nth-child(4) { transition-delay: 0.2s; }

  .header-nav .nav-cta,
  .header-nav .header-cta {
    margin-top: 0.5rem;
    font-size: 1rem;
    padding: 0.75rem 2rem;
    min-width: 200px;
    text-align: center;
  }

  .index-header { padding: 0.75rem 20px 1.5rem; }

  .article-hero { margin: 1rem auto 1rem; padding: 0 20px; }
  .hero-gradient { padding: 1.5rem 20px 0; margin-bottom: 1rem; }
  .article-header { padding: 0.5rem 20px 0.5rem; }
  .article-header h1 { font-size: 1.8rem; line-height: 1.15; }
  .article-meta { gap: 0.4rem 0.8rem; line-height: 1.3; }
  .article-body { padding: 1.5rem 1.25rem 2rem; border-radius: 12px; margin-left: 20px; margin-right: 20px; }
  .article-body h2 { font-size: 1.3rem; line-height: 1.2; margin: 1.5rem 0 0.5rem; }
  .related-content { padding: 0 20px; margin: 1.5rem auto 2rem; }
  .related-grid { grid-template-columns: 1fr; }
  .site-footer { padding: 2rem 6vw 2rem; }
  .recipe-meta { gap: 1rem; }
  .product-cta { padding: 1.5rem; }
  .recipe-grid { grid-template-columns: 1fr; padding: 0 20px 1.5rem; }
}
