/* ============================================================
   Pealia Cocina — Spanish Andalusian Kitchen
   Editorial palette: olive grove green, terracotta, azulejo blue,
   warm sand. High-contrast serif (Fraunces) + warm sans (Mulish).
   ============================================================ */

:root {
  --olive-deep:   #2f3a23;   /* dark olive grove */
  --olive:        #4a5a32;   /* olive leaf */
  --olive-soft:   #6c7a4a;
  --terracotta:   #b6492b;   /* andalusian clay */
  --terracotta-d: #8f3620;
  --azulejo:      #2a6f8f;   /* tile blue accent */
  --gold:         #c98a2b;   /* saffron / olive oil gold */
  --sand:         #f6f0e4;   /* warm cream background */
  --sand-deep:    #efe6d3;
  --paper:        #fffdf8;
  --ink:          #2a2a22;   /* near-black warm ink */
  --ink-soft:     #54534a;

  --heading-font: 'Fraunces', 'Playfair Display', Georgia, serif;
  --body-font:    'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--body-font);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.72;
  font-size: 18.5px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--terracotta); text-decoration: none; transition: color .2s; }
a:hover { color: var(--terracotta-d); }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--heading-font);
  color: var(--olive-deep);
  line-height: 1.14;
  font-weight: 600;
  font-variation-settings: "SOFT" 0, "WONK" 0;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 26px; }

/* small uppercase eyebrow used across sections */
.eyebrow {
  display: inline-block;
  font-family: var(--body-font);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--terracotta);
}

/* ===================== NAVBAR ===================== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,253,248,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(47,58,35,0.10);
  transition: box-shadow .3s, background .3s;
}
.navbar.scrolled { background: rgba(255,253,248,0.98); box-shadow: 0 6px 26px rgba(47,58,35,0.09); }
.nav-container {
  max-width: 1180px; margin: 0 auto; padding: 0 26px;
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.nav-logo {
  display: flex; align-items: baseline; gap: 9px;
  font-family: var(--heading-font);
  font-size: 25px; font-weight: 600;
  color: var(--olive-deep);
  letter-spacing: -.01em;
}
.nav-logo .logo-mark { font-size: 24px; }
.nav-logo em { font-style: italic; color: var(--terracotta); font-weight: 500; }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 6px; font-size: 26px; color: var(--olive-deep);
}
.nav-links { list-style: none; display: flex; gap: 30px; align-items: center; }
.nav-links a {
  color: var(--ink); font-size: 15.5px; font-weight: 600;
  letter-spacing: .01em; padding: 3px 0;
  border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.nav-links a:hover { color: var(--terracotta); border-bottom-color: var(--terracotta); }
.nav-links a.nav-cta {
  background: var(--olive-deep); color: var(--paper);
  padding: 9px 18px; border-radius: 2px; border: none;
}
.nav-links a.nav-cta:hover { background: var(--terracotta); color: var(--paper); }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(31,40,22,0.78) 0%, rgba(31,40,22,0.62) 45%, rgba(31,40,22,0.86) 100%),
    url('https://images.unsplash.com/photo-1504674900247-0877df9cc836?w=1600&q=80') center/cover no-repeat;
  min-height: 88vh;
  display: flex; align-items: center;
  overflow: hidden;
  padding: 96px 26px;
}
/* decorative azulejo tile strip at bottom */
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 14px;
  background:
    repeating-linear-gradient(45deg, var(--azulejo) 0 14px, #fffdf8 14px 28px, var(--terracotta) 28px 42px, var(--gold) 42px 56px);
  opacity: .92;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 880px; margin: 0 auto;
  text-align: center;
}
.hero .eyebrow { color: var(--gold); letter-spacing: .32em; }
.hero h1 {
  font-family: var(--heading-font);
  font-size: clamp(44px, 6.4vw, 86px);
  line-height: 1.04;
  color: var(--paper);
  margin: 20px auto 22px;
  letter-spacing: -.02em;
  font-weight: 600;
  max-width: 14ch;
  text-shadow: 0 2px 28px rgba(0,0,0,0.35);
}
.hero h1 em { font-style: italic; color: var(--gold); font-weight: 500; }
.hero-content p {
  font-size: 21px;
  color: rgba(255,253,248,0.92);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto 38px;
  font-weight: 400;
}
.btn-hero {
  display: inline-block;
  background: var(--terracotta);
  color: var(--paper);
  padding: 17px 42px;
  border-radius: 2px;
  font-family: var(--body-font);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: transform .25s, background .25s, box-shadow .25s;
  box-shadow: 0 10px 30px rgba(0,0,0,0.28);
}
.btn-hero:hover { background: var(--gold); color: var(--olive-deep); transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,0.34); }

/* ===================== INTRO STRIP (editorial) ===================== */
.philosophy {
  background: var(--paper);
  padding: 92px 26px;
  border-bottom: 1px solid rgba(47,58,35,0.08);
}
.philosophy .container { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center; }
.philosophy-img { position: relative; }
.philosophy-img img { width: 100%; height: 460px; object-fit: cover; border-radius: 4px; box-shadow: 0 22px 50px rgba(47,58,35,0.18); }
.philosophy-img::before {
  content: ""; position: absolute; inset: 16px -16px -16px 16px;
  border: 2px solid var(--gold); border-radius: 4px; z-index: -1;
}
.philosophy h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  margin: 14px 0 20px;
  letter-spacing: -.015em;
}
.philosophy h2 em { font-style: italic; color: var(--terracotta); }
.philosophy p { font-size: 18.5px; color: var(--ink-soft); margin-bottom: 18px; }
.philosophy .fat-list {
  list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px;
}
.philosophy .fat-list li {
  background: var(--sand-deep); color: var(--olive-deep);
  font-weight: 700; font-size: 14.5px; letter-spacing: .02em;
  padding: 9px 16px; border-radius: 50px; border: 1px solid rgba(47,58,35,0.10);
}

/* ===================== SHAPEON SECTION ===================== */
.shapeon-section {
  position: relative;
  background:
    linear-gradient(165deg, var(--olive-deep) 0%, var(--olive) 100%);
  padding: 96px 26px;
  color: var(--paper);
  overflow: hidden;
}
.shapeon-section::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(201,138,43,0.16) 0, transparent 38%),
    radial-gradient(circle at 88% 82%, rgba(42,111,143,0.18) 0, transparent 42%);
  pointer-events: none;
}
.shapeon-section .container { position: relative; z-index: 2; }
.shapeon-header { max-width: 780px; margin: 0 auto 52px; text-align: center; }
.shapeon-badge {
  display: inline-block;
  background: rgba(255,253,248,0.10);
  color: var(--gold);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 13px; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase;
  margin-bottom: 20px;
  border: 1px solid rgba(201,138,43,0.4);
}
.shapeon-header h2 {
  font-family: var(--heading-font);
  font-size: clamp(30px, 4.2vw, 50px);
  color: var(--paper);
  margin-bottom: 18px;
  line-height: 1.12;
  letter-spacing: -.015em;
}
.shapeon-header h2 em { font-style: italic; color: var(--gold); }
.shapeon-header p { font-size: 19px; color: rgba(255,253,248,0.82); max-width: 680px; margin: 0 auto; }

/* ===================== PRODUCT CARDS ===================== */
.product-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 26px; max-width: 1080px; margin: 52px auto 0;
  align-items: stretch;
}
.product-card {
  background: rgba(255,253,248,0.06);
  border: 1px solid rgba(255,253,248,0.14);
  border-radius: 8px;
  padding: 34px 26px 30px;
  text-align: center;
  position: relative;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-7px); border-color: rgba(201,138,43,0.55); box-shadow: 0 18px 48px rgba(0,0,0,0.34); }
.product-card.featured {
  background: rgba(255,253,248,0.11);
  border-color: var(--gold);
  box-shadow: 0 16px 44px rgba(0,0,0,0.30);
}
@media (min-width: 769px) { .product-card.featured { transform: scale(1.05); } .product-card.featured:hover { transform: scale(1.05) translateY(-7px); } }
.product-label {
  display: inline-block;
  background: rgba(255,253,248,0.14);
  color: var(--paper);
  padding: 6px 15px; border-radius: 50px;
  font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  margin-bottom: 18px; border: 1px solid rgba(255,253,248,0.22);
}
.product-card.featured .product-label { background: var(--gold); color: var(--olive-deep); border-color: var(--gold); }
.product-img { width: 150px; height: 196px; object-fit: contain; margin: 6px auto 20px; filter: drop-shadow(0 12px 18px rgba(0,0,0,0.35)); }
.product-bottles { font-family: var(--heading-font); color: var(--paper); font-size: 29px; margin-bottom: 14px; font-weight: 600; }
.product-price-old { color: rgba(255,253,248,0.5); font-size: 15px; text-decoration: line-through; margin-bottom: 6px; }
.product-price { color: var(--gold); font-size: 38px; font-weight: 800; margin-bottom: 6px; line-height: 1; font-family: var(--heading-font); }
.product-price span { font-size: 14px; color: rgba(255,253,248,0.7); font-weight: 400; margin-left: 4px; font-family: var(--body-font); }
.product-total { color: rgba(255,253,248,0.86); font-size: 15px; margin-bottom: 8px; font-weight: 700; }
.product-savings { color: #8fd49a; font-size: 14.5px; font-weight: 800; margin-bottom: 12px; }
.product-shipping { color: rgba(255,253,248,0.8); font-size: 13.5px; margin-bottom: 22px; margin-top: auto; }
.btn-order {
  display: block; width: 100%;
  background: var(--terracotta); color: var(--paper);
  padding: 15px 20px; border-radius: 2px;
  font-weight: 800; font-size: 15px; letter-spacing: .07em; text-transform: uppercase;
  text-align: center; border: none; cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s;
}
.btn-order:hover { background: var(--gold); color: var(--olive-deep); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,0.32); }

/* ===================== TRUST + GUARANTEE ===================== */
.trust-badges {
  display: flex; justify-content: center; align-items: center;
  gap: 36px; flex-wrap: wrap; margin: 44px auto 0; max-width: 760px;
}
.trust-badges img { height: 50px; width: auto; opacity: .85; filter: brightness(0) invert(1); }
.guarantee {
  display: flex; align-items: center; justify-content: center; gap: 26px;
  background: rgba(255,253,248,0.06);
  border: 1px solid rgba(255,253,248,0.14);
  border-radius: 10px; padding: 26px 34px; max-width: 720px; margin: 34px auto 0;
}
.guarantee img { width: 84px; height: 84px; flex-shrink: 0; }
.guarantee p { color: rgba(255,253,248,0.88); font-size: 16px; margin: 0; text-align: left; }
.guarantee p strong { color: var(--gold); }

/* ===================== RECIPES ===================== */
.recipes-section { padding: 100px 26px; background: var(--sand); }
.recipes-header { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.recipes-header h2 {
  font-family: var(--heading-font);
  font-size: clamp(34px, 4.6vw, 56px);
  color: var(--olive-deep); margin: 14px 0 16px; line-height: 1.1; letter-spacing: -.02em;
}
.recipes-header h2 em { font-style: italic; color: var(--terracotta); }
.recipes-header p { font-size: 19px; color: var(--ink-soft); }
.recipes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.recipe-card {
  background: var(--paper);
  border: 1px solid rgba(47,58,35,0.08);
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 6px 24px rgba(47,58,35,0.07);
  transition: transform .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.recipe-card:hover { transform: translateY(-5px); box-shadow: 0 18px 46px rgba(47,58,35,0.15); }
.recipe-img-wrap { position: relative; overflow: hidden; }
.recipe-img { width: 100%; height: 230px; object-fit: cover; display: block; transition: transform .6s ease; }
.recipe-card:hover .recipe-img { transform: scale(1.05); }
.recipe-region {
  position: absolute; top: 14px; left: 14px;
  background: rgba(47,58,35,0.92); color: var(--paper);
  font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 50px;
}
.recipe-info { padding: 26px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.recipe-info h3 {
  font-family: var(--heading-font);
  font-size: 24px; color: var(--olive-deep); margin-bottom: 12px; line-height: 1.22;
}
.recipe-meta {
  display: flex; flex-wrap: wrap; gap: 16px;
  color: var(--ink-soft); font-size: 13.5px; margin-bottom: 14px; font-weight: 700;
}
.recipe-meta span { white-space: nowrap; }
.recipe-desc { color: var(--ink-soft); font-size: 16px; line-height: 1.62; margin-bottom: 20px; flex-grow: 1; }
.btn-expand {
  background: var(--olive-deep); color: var(--paper); border: none;
  padding: 13px 20px; border-radius: 2px;
  font-family: var(--body-font); font-size: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer; transition: background .2s, transform .2s; width: 100%; text-align: center;
}
.btn-expand:hover { background: var(--terracotta); transform: translateY(-1px); }
.recipe-details {
  display: none; margin-top: 20px; padding-top: 20px;
  border-top: 2px solid var(--sand-deep);
  animation: fadeIn .35s ease;
}
.recipe-details.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.recipe-details h4 {
  font-family: var(--heading-font); color: var(--terracotta); font-size: 18px;
  margin: 18px 0 10px; letter-spacing: -.01em;
}
.recipe-details h4:first-child { margin-top: 0; }
.recipe-details ul, .recipe-details ol { padding-left: 22px; color: var(--ink); font-size: 16px; line-height: 1.78; }
.recipe-details ul li, .recipe-details ol li { margin-bottom: 7px; }

/* ===================== ABOUT / OUR KITCHEN ===================== */
.about {
  background: var(--olive-deep);
  color: var(--paper);
  padding: 100px 26px;
  position: relative;
}
.about .container { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; }
.about .eyebrow { color: var(--gold); }
.about h2 {
  font-family: var(--heading-font);
  font-size: clamp(32px, 4vw, 50px);
  color: var(--paper); margin: 14px 0 22px; letter-spacing: -.018em; line-height: 1.1;
}
.about h2 em { font-style: italic; color: var(--gold); }
.about p { font-size: 18.5px; color: rgba(255,253,248,0.84); margin-bottom: 18px; }
.about .signature { font-family: var(--heading-font); font-style: italic; font-size: 22px; color: var(--gold); margin-top: 26px; }
.about-img { position: relative; }
.about-img img { width: 100%; height: 480px; object-fit: cover; border-radius: 4px; box-shadow: 0 24px 54px rgba(0,0,0,0.4); }
.about-img::before {
  content: ""; position: absolute; inset: -16px 16px 16px -16px;
  border: 2px solid var(--gold); border-radius: 4px; z-index: 0;
}

/* ===================== FOOTER ===================== */
.footer { background: #232c19; color: rgba(255,253,248,0.84); padding: 72px 26px 34px; }
.footer .container { max-width: 1180px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.6fr; gap: 52px; margin-bottom: 44px; }
.footer-logo { font-family: var(--heading-font); font-size: 27px; font-weight: 600; color: var(--paper); display: inline-block; margin-bottom: 16px; }
.footer-logo em { font-style: italic; color: var(--gold); }
.footer-brand p { color: rgba(255,253,248,0.68); font-size: 16px; line-height: 1.66; max-width: 34ch; }
.footer-links h4, .footer-company h4 { color: var(--gold); font-size: 14px; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 18px; font-weight: 800; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: rgba(255,253,248,0.7); font-size: 16px; transition: color .2s; }
.footer-links a:hover { color: var(--gold); }
.footer-company p { color: rgba(255,253,248,0.7); font-size: 15px; line-height: 1.74; }
.footer-company strong { color: var(--paper); }
.footer-disclaimer { border-top: 1px solid rgba(255,253,248,0.12); padding-top: 28px; margin-bottom: 20px; }
.footer-disclaimer p { color: rgba(255,253,248,0.5); font-size: 13.5px; line-height: 1.7; max-width: 1080px; }
.footer-bottom { border-top: 1px solid rgba(255,253,248,0.08); padding-top: 22px; text-align: center; }
.footer-bottom p { color: rgba(255,253,248,0.5); font-size: 13.5px; margin: 0; }

/* ===================== LEGAL PAGES ===================== */
.legal-main { max-width: 900px; margin: 64px auto 80px; padding: 0 26px; line-height: 1.78; color: var(--ink); }
.legal-main h1 { font-family: var(--heading-font); font-size: clamp(38px, 5vw, 56px); color: var(--olive-deep); margin-bottom: 10px; letter-spacing: -.02em; }
.legal-main h2 { font-family: var(--heading-font); font-size: clamp(23px, 3vw, 29px); color: var(--olive-deep); margin: 40px 0 14px; letter-spacing: -.01em; }
.legal-main h3 { font-family: var(--heading-font); font-size: 20px; color: var(--olive-deep); margin: 18px 0 10px; }
.legal-main p { margin-bottom: 15px; font-size: 18px; color: var(--ink); }
.legal-main ul, .legal-main ol { margin: 15px 0 15px 28px; }
.legal-main li { margin-bottom: 9px; font-size: 18px; }
.legal-main a { color: var(--terracotta); text-decoration: underline; }
.legal-main a:hover { color: var(--terracotta-d); }
.legal-main strong { color: var(--olive-deep); font-weight: 800; }
.legal-meta { opacity: .68; font-style: italic; margin-bottom: 34px; }
.company-contact-box {
  background: var(--sand-deep);
  border-left: 5px solid var(--gold);
  padding: 26px; border-radius: 8px; margin-top: 26px;
}
.company-contact-box h3 { margin-top: 0; color: var(--olive-deep); }
.company-contact-box p { margin-bottom: 6px; }

/* ===================== MOBILE ===================== */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .recipes-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .philosophy .container, .about .container { grid-template-columns: 1fr; gap: 40px; }
  .philosophy-img::before, .about-img::before { display: none; }
  .about-img { order: -1; }
}
@media (max-width: 768px) {
  body { font-size: 18px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 76px; left: 0; right: 0;
    background: var(--paper); flex-direction: column; padding: 26px; gap: 16px;
    box-shadow: 0 8px 26px rgba(47,58,35,0.14);
    transform: translateY(-220%); transition: transform .35s;
  }
  .nav-links.open { transform: translateY(0); }
  .product-grid { grid-template-columns: 1fr; max-width: 420px; }
  .product-card.featured { transform: none; }
  .recipes-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero { min-height: 76vh; padding: 72px 22px; }
  .philosophy-img img, .about-img img { height: 340px; }
  .trust-badges { gap: 24px; }
  .trust-badges img { height: 40px; }
  .guarantee { flex-direction: column; padding: 24px; text-align: center; }
  .guarantee p { text-align: center; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 38px; }
  .hero-content p { font-size: 18px; }
  .recipes-section, .shapeon-section, .philosophy, .about { padding: 64px 18px; }
}

/* ===================== REDUCED MOTION ===================== */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .recipe-card:hover .recipe-img { transform: none; }
}
