/* ============================================
   maracuyas.co — Global Stylesheet
   Tropical editorial luxury
   ============================================ */

:root {
  --gold: #D4A843;
  --gold-light: #F2D98B;
  --gold-pale: #FFF8E7;
  --green-deep: #1A3A2A;
  --green-mid: #2D5E3F;
  --green-sage: #6B8F71;
  --green-light: #A8C5A0;
  --cream: #FDF9F0;
  --cream-warm: #F7F0E3;
  --brown-dark: #3B2F20;
  --brown-mid: #6B5A47;
  --brown-light: #9C8B78;
  --text-primary: #2A2218;
  --text-secondary: #5C5041;
  --text-muted: #8A7E70;
  --border: #E5DDD0;
  --border-light: #EDE7DA;
  --white: #FFFFFF;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
  --max-w: 800px;
  --max-w-wide: 1000px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: var(--gold-light);
  color: var(--brown-dark);
}

a { color: inherit; }
img { max-width: 100%; display: block; }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 2rem;
  background: rgba(253,249,240,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.06); }
.nav-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--green-deep);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.8; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--green-deep); }
.nav-links a.active {
  color: var(--green-deep);
  font-weight: 600;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* ── HERO ── */
.hero {
  padding: 10rem 2rem 6rem;
  position: relative;
  overflow: hidden;
}
.hero--short { padding: 9rem 2rem 3.5rem; }

/* Hero with image */
.hero--with-image { padding-top: 6rem; }
.hero-image-wrap {
  max-width: var(--max-w);
  margin: 0 auto 3rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.10), 0 2px 12px rgba(0,0,0,0.06);
  position: relative;
}
.hero-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
  pointer-events: none;
}
.hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 420px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 80% 15%, rgba(212,168,67,0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 15% 85%, rgba(45,94,63,0.05) 0%, transparent 50%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}
.hero-tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green-sage);
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: italic;
  color: var(--green-deep);
  font-weight: 400;
}
.hero-sub {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 620px;
  margin-bottom: 2.5rem;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--green-deep);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--green-mid);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(26,58,42,0.2);
}
.btn-secondary {
  background: transparent;
  color: var(--green-deep);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--green-deep);
  background: var(--white);
}

/* ── HERO META GRID ── */
.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 4rem;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.hero-meta-item {
  background: var(--white);
  padding: 1.25rem 1.5rem;
}
.hero-meta-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.hero-meta-value {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--text-primary);
}

/* ── SECTIONS ── */
.section {
  padding: 5rem 2rem;
}
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green-sage);
  margin-bottom: 1rem;
}
.section h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  letter-spacing: -0.015em;
}
.section p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-size: 1.02rem;
}
.section p:last-child { margin-bottom: 0; }

.section-divider {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  height: 1px;
  background: var(--border);
}

/* ── SIDEBAR NOTE ── */
.sidebar-note {
  background: var(--cream-warm);
  border-left: 3px solid var(--gold);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 6px 6px 0;
}
.sidebar-note p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
}
.sidebar-note strong { color: var(--text-primary); }

/* ── NUMBERED ITEMS ── */
.numbered-items { margin-top: 2rem; }
.numbered-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-light);
}
.numbered-item:last-child { border-bottom: none; }
.numbered-item-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--gold);
  min-width: 32px;
  padding-top: 0.15rem;
}
.numbered-item h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.numbered-item p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ── NUTRITION GRID ── */
.nutrition-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin: 2rem 0;
}
.nutrition-card {
  background: var(--white);
  padding: 1.5rem;
}
.nutrition-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.nutrition-card p {
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 0;
}

/* ── LETTERED ITEMS ── */
.lettered-items { margin-top: 2rem; }
.lettered-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-light);
}
.lettered-item:last-child { border-bottom: none; }
.lettered-item-letter {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--green-mid);
  min-width: 32px;
  padding-top: 0.1rem;
}
.lettered-item h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.lettered-item p { font-size: 0.95rem; margin-bottom: 0; }

/* ── AVOIDANCE BOX ── */
.avoidance-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}
.avoidance-box h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}
.avoidance-list { list-style: none; }
.avoidance-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}
.avoidance-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

/* ── FAQ ── */
.faq-section { background: var(--cream-warm); }
.faq-list { margin-top: 2rem; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-q::after {
  content: '+';
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.4rem;
  color: var(--text-muted);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq-item.open .faq-q::after {
  transform: rotate(45deg);
}
.faq-a {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-item.open .faq-a {
  max-height: 300px;
  padding-top: 0.25rem;
}

/* ── BLOG CARDS ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.07);
}
.card-img {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  flex-shrink: 0;
}
.card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}
.card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.75rem;
  flex: 1;
}
.card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-deep);
  text-decoration: none;
  transition: color 0.2s;
}
.card-link:hover { color: var(--green-mid); }

/* Horizontal card variant for blog index */
.card--horizontal {
  flex-direction: row;
}
.card--horizontal .card-img {
  width: 240px;
  height: auto;
  min-height: 180px;
}
.card--horizontal .card-body {
  padding: 1.5rem;
}
.card--horizontal h3 {
  font-size: 1.15rem;
}
.card--horizontal p {
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

/* ── CITE LINKS ── */
.cite {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  vertical-align: super;
  line-height: 0;
  transition: color 0.2s;
}
.cite:hover { color: var(--green-mid); }

/* ── RECIPE SPECIFIC ── */
.recipe-intro {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem;
  margin: 2rem 0;
}
.recipe-intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.recipe-intro-item h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}
.recipe-intro-item p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.recipe-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  transition: box-shadow 0.3s;
}
.recipe-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.recipe-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}
.recipe-ingredients { list-style: none; margin-bottom: 1rem; }
.recipe-ingredients li {
  font-size: 0.92rem;
  color: var(--text-secondary);
  padding: 0.2rem 0 0.2rem 1rem;
  position: relative;
}
.recipe-ingredients li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--gold);
}
.recipe-method {
  font-size: 0.92rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 0;
}

.pairing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}
.pairing-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}
.pairing-box h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}
.pairing-box ul { list-style: none; }
.pairing-box li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 0.15rem 0 0.15rem 1rem;
  position: relative;
}
.pairing-box li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ── SOURCES ── */
.source-list { margin-top: 2rem; }
.source-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-light);
}
.source-item:last-child { border-bottom: none; }
.source-num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold);
  font-size: 0.9rem;
}
.source-item p {
  font-size: 0.92rem;
  margin-bottom: 0.25rem;
}
.source-item strong { color: var(--text-primary); }
.source-use {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}
.source-link {
  font-size: 0.85rem;
  color: var(--green-mid);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.source-link:hover {
  color: var(--green-deep);
  text-decoration: underline;
}

/* ── BLOG ARTICLE ── */
.article-body {
  max-width: var(--max-w);
  margin: 0 auto;
}
.article-body h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.3;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}
.article-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}
.article-body p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-size: 1.02rem;
}
.article-body em { color: var(--text-primary); }

.article-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.article-meta-item {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.article-meta-item span {
  color: var(--text-secondary);
  font-weight: 500;
}

.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.article-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--green-deep);
  text-decoration: none;
}
.article-nav a:hover { text-decoration: underline; }

/* ── FOOTER ── */
.footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}
.footer-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 360px;
  line-height: 1.6;
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--green-deep); }

/* ── SCROLL ANIMATIONS ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0; right: 0;
    background: rgba(253,249,240,0.98);
    backdrop-filter: blur(16px);
    padding: 1.5rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  }
  .nav-links.open a::after { display: none; }
  .hamburger { display: block; }

  .hero { padding: 8rem 1.5rem 4rem; }
  .hero--with-image { padding-top: 5rem; }
  .hero--short { padding: 8rem 1.5rem 2.5rem; }
  .hero-image-wrap { margin-bottom: 2rem; border-radius: 8px; }
  .hero-image { max-height: 260px; }
  .hero-meta { grid-template-columns: 1fr; }
  .nutrition-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .recipe-intro-grid { grid-template-columns: 1fr; }
  .pairing-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }

  .card--horizontal { flex-direction: column; }
  .card--horizontal .card-img {
    width: 100%;
    height: 160px;
    min-height: auto;
  }

  .section { padding: 3.5rem 1.5rem; }
  .article-nav { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.75rem; }
  .section h2 { font-size: 1.4rem; }
  .numbered-item, .lettered-item { flex-direction: column; gap: 0.5rem; }
}
