/* ═══════════════════════════════════════════════════════
   MODAKWORLD — GLOBAL STYLESHEET
   Shared across every page. Page-specific styles go in
   the <style> block of that page's HTML file.
═══════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ─────────────────────────────────── */
:root {
  /* Base backgrounds */
  --warm-white:    #FAFAF5;
  --warm-white-2:  #F5F3EB;
  --card-white:    #FFFFFF;

  /* Text — all pass WCAG AA 4.5:1 minimum */
  --ink:           #1A1410;
  --ink-body:      #2D2318;
  --ink-muted:     #5C4A35;
  --ink-faint:     #8C7560;

  /* Primary accents */
  --terracotta:    #B5541A;
  --terracotta-d:  #8C3E10;
  --terracotta-l:  #D4734A;
  --gold:          #C8A020;
  --gold-d:        #A07818;
  --gold-pale:     #F5E8B0;
  --green-deep:    #1A4D2E;
  --green-mid:     #2A6B40;
  --green-light:   #E8F5EC;

  /* Dark zones */
  --dark:          #1A1208;
  --dark-2:        #2D1E10;
  --dark-text:     #C8B89A;   /* 8:1 contrast on --dark */
  --dark-muted:    #8C7A60;   /* 4.6:1 contrast on --dark */
  --dark-accent:   #D4956A;

  /* Borders & shadows */
  --border:        rgba(26,20,16,0.08);
  --border-gold:   rgba(200,160,32,0.25);
  --shadow-sm:     0 2px 12px rgba(26,20,16,0.06);
  --shadow-md:     0 8px 32px rgba(26,20,16,0.10);
  --shadow-lg:     0 20px 60px rgba(26,20,16,0.14);

  /* Layout */
  --max-w:         1320px;
  --radius:        4px;
  --radius-md:     8px;
  --radius-lg:     14px;
}

/* ── RESET ──────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Source Serif 4', Georgia, serif;
  background: var(--warm-white);
  color: var(--ink-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: rgba(200,160,32,0.18); color: var(--ink); }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }
input, textarea { font: inherit; }

/* ── TYPOGRAPHY SCALE ───────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(44px, 5.5vw, 72px); font-weight: 600; }
h2 { font-size: clamp(32px, 3.5vw, 48px); font-weight: 600; }
h3 { font-size: clamp(22px, 2.5vw, 30px); font-weight: 600; }
h4 { font-size: clamp(18px, 2vw, 22px);   font-weight: 500; }
p  { font-size: 17px; line-height: 1.85; color: var(--ink-muted); font-weight: 300; }

/* ── LAYOUT HELPERS ─────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}
.section        { padding: 100px 0; }
.section-sm     { padding: 72px 0; }
.section-xs     { padding: 48px 0; }
.section-dark   { background: var(--dark); }
.section-warm   { background: var(--warm-white-2); }
.section-green  { background: var(--green-deep); }

/* Section headings */
.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-d); display: flex;
  align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.section-label::before {
  content: ''; width: 24px; height: 1px; background: var(--gold);
}
.section-label.light     { color: rgba(200,160,32,0.7); }
.section-label.light::before { background: var(--gold); opacity: 0.6; }

.section-title { margin-bottom: 16px; }
.section-title em { font-style: italic; color: var(--terracotta); }
.section-title.light { color: #F0EBE0; }
.section-title.light em { color: var(--gold); }

.section-desc {
  font-size: 18px; line-height: 1.85;
  color: var(--ink-muted); font-weight: 300;
  max-width: 560px; margin-top: 0;
}
.section-desc.light { color: rgba(240,235,224,0.65); }

.section-head-row {
  display: flex; justify-content: space-between;
  align-items: flex-end; gap: 32px; margin-bottom: 56px;
}
.view-all {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em; color: var(--terracotta);
  border-bottom: 1px solid rgba(181,84,26,0.3);
  padding-bottom: 2px; white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}
.view-all:hover { border-color: var(--terracotta); }
.view-all.light { color: var(--gold); border-color: rgba(200,160,32,0.35); }

/* ── BUTTONS ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.05em; border-radius: var(--radius);
  padding: 13px 28px; transition: all 0.2s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--terracotta); color: white;
  box-shadow: 0 4px 16px rgba(181,84,26,0.25);
}
.btn-primary:hover {
  background: var(--terracotta-d);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(181,84,26,0.32);
}
.btn-ghost {
  background: transparent; color: var(--ink-muted);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--ink-muted); color: var(--ink);
  background: var(--warm-white-2);
}
.btn-gold {
  background: var(--gold); color: var(--dark);
  box-shadow: 0 4px 16px rgba(200,160,32,0.3);
}
.btn-gold:hover { background: #D4B030; transform: translateY(-2px); }
.btn-dark {
  background: var(--dark); color: var(--dark-text);
}
.btn-dark:hover { background: var(--dark-2); }
.btn-green {
  background: var(--green-deep); color: white;
}
.btn-green:hover { background: var(--green-mid); }
.btn-sm { font-size: 12px; padding: 9px 18px; }
.btn-lg { font-size: 16px; padding: 16px 36px; }

/* ── TAGS / BADGES ──────────────────────────────────── */
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 2px;
}
.tag-green  { background: var(--green-deep); color: white; }
.tag-gold   { background: var(--gold-d);    color: white; }
.tag-terra  { background: var(--terracotta); color: white; }
.tag-dark   { background: var(--dark);       color: var(--dark-text); }
.tag-light  { background: var(--warm-white-2); color: var(--ink-muted); border: 1px solid var(--border); }

/* ── IMAGE PLACEHOLDER SYSTEM ───────────────────────── */
/* Replace <div class="img-ph ..."> with <img src="images/..."> */
.img-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  text-align: center; padding: 16px; line-height: 1.7;
}
.img-ph span:first-child { font-size: 20px; }

.ph-hero     { background: linear-gradient(145deg,#8B5E3C,#3A2010); }
.ph-r1       { background: linear-gradient(145deg,#8B4513,#5A2808); }
.ph-r2       { background: linear-gradient(145deg,#9B7B10,#6A5008); }
.ph-r3       { background: linear-gradient(145deg,#7A3010,#4A1808); }
.ph-r4       { background: linear-gradient(145deg,#6B4A10,#3A2808); }
.ph-r5       { background: linear-gradient(145deg,#5C7A30,#2A4018); }
.ph-r6       { background: linear-gradient(145deg,#4A7A5C,#1A4030); }
.ph-r7       { background: linear-gradient(145deg,#7A5C3C,#3A2818); }
.ph-r8       { background: linear-gradient(145deg,#8B6B20,#5A4010); }
.ph-festival { background: linear-gradient(145deg,#1A3D20,#080F08); }
.ph-variety  { background: linear-gradient(145deg,#5C3820,#2A1808); }
.ph-about    { background: linear-gradient(145deg,#6B5020,#3A2808); }
.ph-tech     { background: linear-gradient(145deg,#4A5C30,#1A2810); }

.img-wrap { overflow: hidden; position: relative; }
.img-wrap img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
}
.img-wrap:hover img { transform: scale(1.04); }

/* ── ANNOUNCEMENT BAR ───────────────────────────────── */
.ann-bar {
  background: var(--dark); height: 40px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.ann-track {
  display: flex; white-space: nowrap;
  animation: ann-scroll 20s linear infinite;
}
.ann-item {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.06em; color: var(--dark-text);
  padding: 0 48px;
  display: inline-flex; align-items: center; gap: 12px;
}
.ann-item b  { color: var(--gold); font-weight: 600; }
.ann-item a  { color: var(--gold); border-bottom: 1px solid rgba(200,160,32,0.3); }
.ann-sep { color: var(--gold); opacity: 0.35; font-size: 8px; }
@keyframes ann-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── NAVIGATION ─────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(250,250,245,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(26,20,16,0.08); }

.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 40px; height: 68px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 28px;
}
.nav-logo {
  display: flex; flex-direction: column;
  line-height: 1; flex-shrink: 0; text-decoration: none;
}
.nav-logo-main {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 600;
  color: var(--ink); letter-spacing: 0.02em;
}
.nav-logo-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-top: 1px;
}
.nav-countdown {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 14px; border-radius: 20px;
  border: 1px solid var(--border-gold);
  background: rgba(200,160,32,0.05); flex-shrink: 0;
}
.nav-countdown-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em; color: var(--gold-d);
  white-space: nowrap;
}
.nav-countdown-num { color: var(--terracotta); font-weight: 700; }
.nav-links {
  display: flex; gap: 0; flex: 1; justify-content: center;
}
.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.03em; color: var(--ink-muted);
  padding: 8px 14px; border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--ink); background: var(--warm-white-2); }
.nav-links .nav-calc a {
  color: var(--green-deep); font-weight: 600;
  border: 1px solid rgba(26,77,46,0.2); border-radius: 20px;
  padding: 6px 14px;
}
.nav-links .nav-calc a:hover { background: var(--green-light); border-color: var(--green-mid); }
.nav-cta-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em; background: var(--terracotta);
  color: white; padding: 9px 20px;
  border-radius: var(--radius); flex-shrink: 0;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta-btn:hover { background: var(--terracotta-d); transform: translateY(-1px); }
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 4px; cursor: pointer;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px; transition: all 0.3s;
}

/* Mobile nav */
.mobile-backdrop {
  position: fixed; inset: 0; background: rgba(26,18,8,0.5);
  z-index: 299; opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.mobile-backdrop.open { opacity: 1; visibility: visible; }
.mobile-nav {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(320px, 85vw); background: var(--card-white);
  z-index: 300; padding: 80px 32px 40px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.25,0.46,0.45,0.94);
  box-shadow: -8px 0 40px rgba(26,18,8,0.15);
  overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-close {
  position: absolute; top: 20px; right: 20px;
  font-size: 22px; cursor: pointer; color: var(--ink-faint);
  padding: 8px; transition: color 0.2s; background: none; border: none;
}
.mobile-nav-close:hover { color: var(--ink); }
.mobile-nav-links { display: flex; flex-direction: column; gap: 4px; margin-bottom: 32px; }
.mobile-nav-links a {
  font-family: 'Source Serif 4', serif;
  font-size: 20px; font-weight: 300; color: var(--ink);
  padding: 11px 0; border-bottom: 1px solid var(--border);
  display: block; transition: color 0.2s, padding-left 0.2s;
}
.mobile-nav-links a:hover { color: var(--terracotta); padding-left: 8px; }

/* ── MARQUEE ─────────────────────────────────────────── */
.marquee-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0; overflow: hidden; background: var(--warm-white);
}
.marquee-track {
  display: flex; white-space: nowrap;
  animation: marquee-scroll 40s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 0 28px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px; font-style: italic; font-weight: 400;
  color: var(--ink-muted);
}
.marquee-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold); opacity: 0.6; flex-shrink: 0;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── PULL QUOTE ──────────────────────────────────────── */
.pull-quote-band {
  background: var(--warm-white-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 40px; text-align: center;
}
.pull-quote {
  max-width: 760px; margin: 0 auto;
}
.pq-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 80px; line-height: 0.5;
  color: var(--gold); opacity: 0.35; display: block;
  margin-bottom: 16px;
}
.pq-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 3vw, 34px);
  font-style: italic; font-weight: 400;
  color: var(--ink); line-height: 1.5;
}
.pq-source {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-faint); margin-top: 24px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.pq-source::before, .pq-source::after {
  content: ''; width: 32px; height: 1px; background: var(--border-gold);
}

/* ── BREADCRUMB ──────────────────────────────────────── */
.breadcrumb {
  max-width: var(--max-w); margin: 0 auto;
  padding: 16px 40px 0;
  display: flex; align-items: center; gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; color: var(--ink-faint);
}
.breadcrumb a { color: var(--ink-faint); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--terracotta); }
.breadcrumb-sep { font-size: 10px; opacity: 0.5; }
.breadcrumb-current { color: var(--ink-muted); font-weight: 500; }

/* ── RECIPE / CONTENT CARD ───────────────────────────── */
.card {
  background: var(--card-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card:hover .img-wrap img { transform: scale(1.04); }
.card-body { padding: 24px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 600; color: var(--ink);
  line-height: 1.2; margin: 10px 0 8px;
  transition: color 0.2s;
}
.card:hover .card-title { color: var(--terracotta); }
.card-desc {
  font-size: 15px; line-height: 1.75;
  color: var(--ink-muted); font-weight: 300;
  flex: 1; margin-bottom: 16px;
}
.card-meta {
  display: flex; gap: 14px; flex-wrap: wrap;
  border-top: 1px solid var(--border); padding-top: 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; color: var(--ink-faint);
  margin-top: auto;
}
.card-meta strong { color: var(--ink-muted); font-weight: 600; }

/* ── FORM ELEMENTS ───────────────────────────────────── */
.form-input {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius); font-size: 16px;
  font-family: 'Source Serif 4', serif;
  color: var(--ink); background: white; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input::placeholder { color: var(--ink-faint); }
.form-input:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(181,84,26,0.1);
}
.form-input.dark {
  background: rgba(255,255,255,0.06);
  border-color: rgba(200,160,32,0.2);
  color: var(--dark-text);
}
.form-input.dark::placeholder { color: rgba(200,160,32,0.35); }
.form-input.dark:focus { border-color: var(--gold); box-shadow: none; }

/* ── SCROLL REVEAL ───────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.25,0.46,0.45,0.94),
              transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.10s; }
.d2 { transition-delay: 0.20s; }
.d3 { transition-delay: 0.30s; }
.d4 { transition-delay: 0.40s; }

/* ── FOOTER ──────────────────────────────────────────── */
.footer {
  background: var(--dark);
  border-top: 1px solid rgba(200,160,32,0.08);
}
.footer-upper {
  max-width: var(--max-w); margin: 0 auto;
  padding: 80px 40px 64px;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 56px;
}
.footer-logo-main {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px; font-weight: 600;
  color: var(--dark-text); display: block; margin-bottom: 4px;
}
.footer-logo-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); display: block; margin-bottom: 20px;
}
.footer-tagline {
  font-family: 'Source Serif 4', serif;
  font-size: 15px; line-height: 1.85; font-style: italic;
  color: var(--dark-muted); max-width: 280px;
}
.footer-deva {
  font-family: 'DM Sans', sans-serif; font-size: 11px;
  letter-spacing: 0.12em; color: rgba(200,160,32,0.3);
  margin-top: 16px; display: block;
}
.footer-col-title {
  font-family: 'DM Sans', sans-serif; font-size: 11px;
  font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 20px; display: block;
}
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a {
  font-family: 'Source Serif 4', serif;
  font-size: 15px; color: var(--dark-text);
  line-height: 1.4; transition: color 0.2s;
}
.footer-links a:hover { color: var(--dark-accent); }
.footer-lower {
  border-top: 1px solid rgba(255,255,255,0.05);
  max-width: var(--max-w); margin: 0 auto;
  padding: 24px 40px;
  display: flex; justify-content: space-between;
  align-items: center; gap: 24px; flex-wrap: wrap;
}
.footer-copy {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; color: var(--dark-muted);
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a {
  font-family: 'DM Sans', sans-serif; font-size: 13px;
  color: var(--dark-muted); transition: color 0.2s;
}
.footer-legal a:hover { color: var(--dark-text); }

/* ── RESPONSIVE BREAKPOINTS ──────────────────────────── */
@media (max-width: 1100px) {
  .container    { padding: 0 24px; }
  .nav-links    { display: none; }
  .nav-countdown { display: none; }
  .nav-hamburger { display: flex; }
  .nav-inner    { padding: 0 24px; }
  .footer-upper { grid-template-columns: 1fr 1fr; gap: 40px; padding: 60px 24px 48px; }
  .footer-lower { padding: 20px 24px; }
  .breadcrumb   { padding: 16px 24px 0; }
  .pull-quote-band { padding: 60px 24px; }
  .section-head-row { flex-direction: column; align-items: flex-start; gap: 16px; }
}
@media (max-width: 640px) {
  .footer-upper { grid-template-columns: 1fr; }
  .footer-lower { flex-direction: column; text-align: center; }
  .section-head-row { margin-bottom: 36px; }
  h1 { font-size: clamp(36px, 9vw, 56px); }
  h2 { font-size: clamp(28px, 7vw, 40px); }
}
