/* ==========================================================================
   CRAVITA FOODS — Premium Luxury Design System (Mobile-Optimized Header)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400..700;1,9..144,400..700&family=Inter:wght@400;500;600;700&family=Inter+Tight:wght@500;600;700&display=swap');

:root {
  /* Premium Deep Luxury Palette */
  --espresso:        #21120B; 
  --espresso-deep:   #150A05;
  --tamarind:        #802B13; 
  --tamarind-bright: #A23B1E;
  --gold:            #C99A4A;
  --gold-soft:       #D4A24C;
  --cream:           #E8DCB9; 
  --cream-warm:      #DFD0AA; 
  --paper:           #F5ECD7; 
  --ink:             #21120B;
  --ink-soft:        #4A3B32;
  --line:            rgba(33,18,11,0.18);
  --line-on-dark:    rgba(245,236,215,0.2);

  /* Typography Variables */
  --display: 'Fraunces', serif;
  --body: 'Inter', sans-serif;
  --utility: 'Inter Tight', sans-serif;
  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Structural Grid & Layout Components */
section { padding: 80px 0; }
@media (max-width: 768px) { section { padding: 50px 0; } }
.section-cream { background: var(--cream-warm); }
.section-dark { background: var(--espresso); color: var(--cream); }
.section-dark h2, .section-dark h3 { color: var(--paper); }
.section-dark p { color: rgba(245,236,215,0.75); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Global Typography Elements */
h1, h2, h3, h4 { font-family: var(--display); color: var(--espresso); font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.2; }
h3 { font-size: 1.35rem; line-height: 1.3; }
p { margin-bottom: 1rem; color: var(--ink-soft); }

/* Eyebrows & Badges */
.eyebrow {
  font-family: var(--utility); font-size: 0.8rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--tamarind); font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px;
}
.eyebrow::before { content: ''; width: 16px; height: 1px; background: var(--tamarind); display: inline-block; }
.tag {
  display: inline-block; font-family: var(--utility); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; padding: 4px 10px; border-radius: 4px;
  background: rgba(128,43,19,0.15); color: var(--tamarind);
}

/* Premium Buttons Layout */
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--utility);
  font-weight: 600; font-size: 0.95rem; padding: 12px 24px; border-radius: 4px;
  border: 1.5px solid transparent; cursor: pointer; transition: all 0.2s ease; white-space: nowrap;
}
.btn-primary { background: var(--tamarind); color: var(--paper); }
.btn-primary:hover { background: var(--espresso); }
.btn-ghost { background: transparent; border-color: var(--line-on-dark); color: inherit; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline-dark { background: transparent; border-color: var(--line); color: var(--espresso); }
.btn-outline-dark:hover { border-color: var(--tamarind); color: var(--tamarind); }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Structural Navigation Bar - Re-engineered for Mobile Scaling */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(245,236,215,0.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; max-width: var(--maxw); margin: 0 auto; gap: 12px; }

/* Logo Branding Enclosure */
.brand { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 1.4rem; font-weight: 700; color: var(--espresso); flex-shrink: 1; min-width: 0; }
.brand-logo-img { height: 38px; width: auto; object-fit: contain; flex-shrink: 0; }

@media (max-width: 480px) {
  .brand { font-size: 1.15rem; gap: 6px; }
  .brand-logo-img { height: 32px; }
}

/* Nav Links Menu Container */
.nav-links { display: flex; align-items: center; gap: 28px; font-family: var(--utility); font-weight: 600; font-size: 0.95rem; }
.nav-links a { position: relative; padding: 4px 0; color: var(--ink-soft); transition: color 0.15s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--espresso); }
.nav-links a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--tamarind); }

/* Navigation CTA Grouping */
.nav-cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; width: 36px; height: 36px; flex-shrink: 0; }
.nav-toggle span { width: 20px; height: 2px; background: var(--espresso); display: block; margin: 0 auto; }

/* Mobile Menu Layout Breakpoint Queries */
@media (max-width: 991px) {
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); flex-direction: column; align-items: flex-start; padding: 20px 24px; border-bottom: 1px solid var(--line); display: none; gap: 16px; box-shadow: 0 12px 24px rgba(0,0,0,0.08); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  
  /* Hides text text version of WhatsApp inside the header on tablet/mobile views */
  .nav-cta .btn-primary { display: none; }
}

/* Dynamic Page Cards */
.card { background: var(--cream); border: 1px solid var(--line); border-radius: 6px; padding: 28px; }

/* Grid Components */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 32px; }
}

/* Slogan Spotlight Element */
.slogan-box { background: var(--espresso); color: var(--cream); padding: 16px 20px; border-radius: 4px; border-left: 3px solid var(--gold); margin-top: 20px; display: inline-block; }
.slogan-box .title { font-family: var(--utility); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 2px; font-weight: 700; }
.slogan-box .text { font-family: var(--display); font-style: italic; font-size: 1.25rem; color: var(--paper); letter-spacing: 0.02em; }

/* Product Display Framework */
.product-row { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: center; padding: 48px 0; border-bottom: 1px solid var(--line); }
.product-row:last-child { border-bottom: none; }
.product-row.reverse .pr-img { order: 2; }
.product-row.reverse .pr-text { order: 1; }
.pr-img-frame { aspect-ratio: 1/1; border-radius: 6px; overflow: hidden; background: var(--cream-warm); box-shadow: 0 16px 32px -12px rgba(33,18,11,0.25); }
.pr-img-frame img { width: 100%; height: 100%; object-fit: cover; }
.pack-list { list-style: none; margin: 12px 0 16px; display: flex; flex-direction: column; gap: 6px; }
.pack-list li { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; color: var(--ink-soft); }
.pack-list li svg { width: 14px; height: 14px; color: var(--tamarind); flex-shrink: 0; }

@media (max-width: 768px) {
  .product-row, .product-row.reverse { grid-template-columns: 1fr; gap: 24px; }
  .product-row.reverse .pr-img { order: 1; }
  .product-row.reverse .pr-text { order: 2; }
}

/* Quality Steps Tracking */
.journey { position: relative; max-width: 700px; margin: 0 auto; }
.journey::before { content: ''; position: absolute; left: 23px; top: 10px; bottom: 10px; width: 2px; background: repeating-linear-gradient(to bottom, var(--gold) 0, var(--gold) 4px, transparent 4px, transparent 8px); }
.j-step { position: relative; display: flex; gap: 20px; padding-bottom: 36px; }
.j-step:last-child { padding-bottom: 0; }
.j-num { flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; background: var(--espresso); color: var(--gold-soft); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 1.15rem; z-index: 2; border: 2px solid var(--paper); }
.j-body { padding-top: 4px; }

/* Site Global Footer Styles */
.site-footer { background: var(--espresso-deep); color: var(--cream); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.9fr 1fr 1fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid var(--line-on-dark); }
.footer-brand { font-family: var(--display); font-size: 1.4rem; color: var(--paper); margin-bottom: 8px; font-weight: 700; }
.footer-col h4 { font-family: var(--utility); color: var(--gold-soft); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; font-weight: 700; }
.footer-col p, .footer-col a { color: rgba(245,236,215,0.7); font-size: 0.9rem; display: block; margin-bottom: 8px; }
.footer-col a:hover { color: var(--gold-soft); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 18px 0; font-size: 0.8rem; color: rgba(245,236,215,0.4); font-family: var(--utility); }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* Shared Functional Utilities */
.divider-pod { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 32px 0; }
.divider-pod svg { width: 24px; height: 12px; opacity: 0.4; }
.divider-pod .line { height: 1px; width: 48px; background: var(--line); }
.wa-float { position: fixed; bottom: 20px; right: 20px; z-index: 90; width: 52px; height: 52px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,0.2); transition: transform 0.2s ease; }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 26px; height: 26px; fill: #fff; }
.fade-up { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-up.in { opacity: 1; transform: translateY(0); }