/* === Design Tokens === */
:root {
  --color-terracotta: #C24A29;
  --color-terracotta-dark: #9A3A20;
  --color-terracotta-light: #D4623E;
  --color-sand: #F5EDE0;
  --color-warm-white: #FFFBF5;
  --color-olive: #3D4F2F;
  --color-gold: #B8923F;
  --color-charcoal: #1E1E1E;
  --color-text: #2A2A2A;
  --color-text-light: #5A5A5A;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
  --radius: 12px;
  --shadow-card: 0 4px 20px rgba(120,80,40,.08);
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--color-text);
  background: var(--color-sand);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-terracotta); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-terracotta-dark); }
ul, ol { list-style-position: inside; }

/* === Typography === */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-charcoal);
  line-height: 1.2;
  font-weight: 600;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: .75rem; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); margin-bottom: .5rem; }
p { margin-bottom: 1rem; }

/* === Layout === */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* === Header === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background .4s, box-shadow .4s;
}
.site-header.scrolled {
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.logo { display: flex; align-items: flex-end; gap: 0; }
.logo img { height: 42px; width: auto; }
.logo span {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-left: -0.15rem;
  line-height: 1;
  margin-bottom: 0.1rem;
}

/* Nav */
.main-nav ul { display: flex; gap: .15rem; list-style: none; }
.main-nav a {
  display: block;
  position: relative;
  padding: .5rem .75rem;
  color: rgba(255,255,255,.85);
  font-size: .85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color .2s;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: .75rem;
  right: .75rem;
  height: 2px;
  background: var(--color-gold);
  transform: scaleX(0);
  transition: transform .3s;
}
.main-nav a:hover, .main-nav a.active { color: #fff; }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }

/* Nav dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > ul {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  list-style: none;
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 8px;
  padding: .5rem 0;
  min-width: 160px;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  animation: dropFadeIn .2s ease;
}
.nav-dropdown:hover > ul,
.nav-dropdown:focus-within > ul { display: block; }
.nav-dropdown > ul > li > a {
  padding: .5rem 1.25rem;
  white-space: nowrap;
}
.nav-dropdown > ul > li > a::after { display: none; }
.nav-dropdown > ul > li > a:hover {
  background: rgba(255,255,255,.1);
  border-radius: 4px;
}
@keyframes dropFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  z-index: 1100;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  margin: 6px 0;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* Mobile menu overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(30, 30, 30, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.mobile-overlay.open { display: flex; }
.mobile-overlay ul { list-style: none; text-align: center; }
.mobile-overlay li {
  opacity: 0;
  transform: translateY(20px);
}
.mobile-overlay.open li {
  animation: fadeUp .4s ease forwards;
}
.mobile-overlay.open li:nth-child(1) { animation-delay: .05s; }
.mobile-overlay.open li:nth-child(2) { animation-delay: .1s; }
.mobile-overlay.open li:nth-child(3) { animation-delay: .15s; }
.mobile-overlay.open li:nth-child(4) { animation-delay: .2s; }
.mobile-overlay.open li:nth-child(5) { animation-delay: .25s; }
.mobile-overlay.open li:nth-child(6) { animation-delay: .3s; }
.mobile-overlay.open li:nth-child(7) { animation-delay: .35s; }
.mobile-overlay.open li:nth-child(8) { animation-delay: .4s; }
.mobile-overlay.open li:nth-child(9) { animation-delay: .45s; }
.mobile-overlay a {
  display: block;
  padding: .8rem 1rem;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  transition: color .2s;
}
.mobile-overlay a:hover, .mobile-overlay a.active { color: var(--color-gold); }

/* === Hero === */
.hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
  background: var(--color-charcoal);
}
.hero--full {
  height: 100vh;
  min-height: 600px;
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .7;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,30,30,0.7) 0%, rgba(30,30,30,0.1) 40%, transparent 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 3rem 2rem;
  max-width: 700px;
}
.hero-content h1 {
  color: #fff;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: .5rem;
}
.hero-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,.85);
  margin: 0;
  font-weight: 300;
}

/* === Breadcrumbs === */
.breadcrumbs {
  padding: 1rem 0;
  font-size: .85rem;
  color: var(--color-text-light);
}
.breadcrumbs a { color: var(--color-gold); }
.breadcrumbs a:hover { color: var(--color-terracotta); }
.breadcrumbs span { margin: 0 .4rem; }

/* === Section === */
.section { padding: 4rem 0; }
.section:nth-child(even) { background: var(--color-warm-white); }
.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-terracotta), var(--color-gold));
  margin: .75rem auto 0;
}

/* === Card Grid (Editorial Asymmetric) === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}
.card-grid .card:nth-child(1) { grid-column: span 7; }
.card-grid .card:nth-child(2) { grid-column: span 5; }
.card-grid .card:nth-child(3),
.card-grid .card:nth-child(4),
.card-grid .card:nth-child(5) { grid-column: span 4; }
.card-grid .card:nth-child(6),
.card-grid .card:nth-child(7),
.card-grid .card:nth-child(8) { grid-column: span 4; }

.card {
  background: var(--color-warm-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .3s, box-shadow .3s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(120,80,40,.15);
}
.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform .5s;
}
.card:hover img { transform: scale(1.05); }
.card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card-body h3 {
  font-size: 1.35rem;
}
.card-body p {
  font-size: .95rem;
  color: var(--color-text-light);
  margin-bottom: .75rem;
  flex: 1;
}
.card-link {
  display: inline-block;
  font-weight: 600;
  color: var(--color-terracotta);
  font-size: .9rem;
  letter-spacing: 0.03em;
}
.card-link::after { content: ' \2192'; transition: margin-left .2s; }
.card:hover .card-link::after { margin-left: 4px; }

/* === Page Content === */
.page-content {
  padding: 2.5rem 0 4rem;
  line-height: 1.8;
}
.page-content > .container > *:first-child { padding-top: 0; }
.page-content h1 { margin-bottom: 1.5rem; }
.page-content h2 { margin-top: 2.5rem; }
.page-content img.content-img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
  box-shadow: var(--shadow-card);
}

/* Pull quote */
.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-style: italic;
  font-weight: 500;
  color: var(--color-charcoal);
  line-height: 1.5;
  border-left: 4px solid var(--color-terracotta);
  padding: 1.5rem 2rem;
  margin: 2.5rem 0;
  background: var(--color-warm-white);
  border-radius: 0 8px 8px 0;
}

/* Content two-col */
.content-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin: 2.5rem 0;
}
.content-two-col img { border-radius: var(--radius); width: 100%; height: auto; }

/* === Timeline === */
.timeline { position: relative; padding-left: 2.5rem; margin: 2.5rem 0; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--color-terracotta);
  border-radius: 2px;
}
.timeline-item { position: relative; margin-bottom: 2.5rem; padding-left: 1.5rem; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.75rem;
  top: .3rem;
  width: 16px;
  height: 16px;
  background: var(--color-gold);
  border: 3px solid var(--color-terracotta);
  border-radius: 50%;
}
.timeline-item h3 {
  font-size: 1.25rem;
  color: var(--color-terracotta);
  font-weight: 700;
}

/* === Types Grid === */
.types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.type-card {
  background: var(--color-warm-white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  border-top: 4px solid var(--color-terracotta);
  transition: transform .3s, box-shadow .3s;
}
.type-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(120,80,40,.12);
}
.type-card h3 { margin-bottom: .5rem; }

/* === Recipe Card === */
.recipe-card {
  background: var(--color-warm-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 2.5rem;
}
.recipe-card .recipe-header { display: grid; grid-template-columns: 1fr 1fr; }
.recipe-card .recipe-header img { width: 100%; height: 300px; object-fit: cover; }
.recipe-card .recipe-header-text {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.recipe-card .recipe-body { padding: 1.5rem 2rem; }
.recipe-card .recipe-body h3 { color: var(--color-terracotta); margin-bottom: .5rem; }
.recipe-card .recipe-body ul { margin-bottom: 1rem; }
.recipe-card .recipe-body li { margin-bottom: .25rem; }

.recipe-card--flipped .recipe-header { direction: rtl; }
.recipe-card--flipped .recipe-header > * { direction: ltr; }

/* === Seal images === */
.seal-row { display: flex; gap: 2rem; align-items: center; flex-wrap: wrap; margin: 2rem 0; }
.seal-row img { height: 120px; width: auto; }
.seal-row--centered { justify-content: center; flex-direction: column; align-items: center; }
.seal-framed {
  background: #fff;
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(184,146,63,.2);
  box-shadow: var(--shadow-card);
}

/* === Shop Cards === */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.shop-card {
  background: var(--color-warm-white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  border-top: 4px solid var(--color-gold);
  transition: transform .3s, box-shadow .3s;
  display: flex;
  flex-direction: column;
}
.shop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(120,80,40,.12);
}
.shop-card p {
  flex: 1;
  color: var(--color-text-light);
  font-size: .95rem;
}
.shop-card .shop-link {
  display: inline-block;
  margin-top: auto;
  padding-top: .75rem;
  font-weight: 600;
  font-size: .9rem;
  color: var(--color-terracotta);
  letter-spacing: 0.03em;
}
.shop-card .shop-link:hover { color: var(--color-terracotta-dark); }
.shop-card .shop-link::after { content: ' \2197'; }

/* === Gallery (Horizontal Scroll-Snap) === */
.gallery {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: .5rem;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery img {
  border-radius: var(--radius);
  min-width: 320px;
  width: 320px;
  height: 240px;
  object-fit: cover;
  scroll-snap-align: start;
  flex-shrink: 0;
  transition: transform .3s;
}
.gallery img:hover { transform: scale(1.03); }

/* === Footer === */
.site-footer {
  background: var(--color-charcoal);
  color: rgba(255,255,255,.6);
  padding: 3rem 0 1.5rem;
  font-size: .9rem;
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--color-terracotta), var(--color-gold)) 1;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-col h4 {
  color: var(--color-gold);
  font-size: 1.1rem;
  margin-bottom: .75rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .4rem; }
.footer-col a { color: rgba(255,255,255,.6); transition: color .2s; }
.footer-col a:hover { color: var(--color-gold); }
.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .8rem;
}

/* === Animations === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: .1s; }
.reveal:nth-child(3) { transition-delay: .2s; }
.reveal:nth-child(4) { transition-delay: .3s; }
.reveal:nth-child(5) { transition-delay: .4s; }
.reveal:nth-child(6) { transition-delay: .5s; }
.reveal:nth-child(7) { transition-delay: .6s; }

/* === Language Selector === */
.lang-selector {
  display: flex;
  align-items: center;
  margin-left: .75rem;
}
.lang-selector a {
  color: rgba(255,255,255,.55);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: .3rem .5rem;
  transition: color .2s;
  text-decoration: none;
}
.lang-selector a:hover { color: #fff; }
.lang-selector a.active { color: #fff; }
.lang-selector span.sep {
  color: rgba(255,255,255,.2);
  font-size: .7rem;
  user-select: none;
}

/* Mobile overlay lang selector */
.mobile-overlay .lang-selector {
  margin: 1.5rem auto 0;
  justify-content: center;
}
.mobile-overlay .lang-selector a {
  font-family: var(--font-body);
  font-size: 1.1rem;
  padding: .4rem .7rem;
}
.mobile-overlay .lang-selector span.sep { font-size: .9rem; }

/* === Responsive === */
@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .card-grid .card:nth-child(1),
  .card-grid .card:nth-child(2) { grid-column: span 3; }
  .card-grid .card:nth-child(3),
  .card-grid .card:nth-child(4),
  .card-grid .card:nth-child(5) { grid-column: span 2; }
  .card-grid .card:nth-child(6),
  .card-grid .card:nth-child(7),
  .card-grid .card:nth-child(8) { grid-column: span 2; }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .main-nav { display: none; }

  .hero { height: 50vh; min-height: 350px; }
  .hero--full { height: 70vh; }
  .hero-content { padding: 2rem 1.5rem; }
  .hero-content h1 { font-size: clamp(1.8rem, 8vw, 2.5rem); }

  .card-grid {
    grid-template-columns: 1fr;
  }
  .card-grid .card { grid-column: span 1 !important; }
  .card img { height: 200px; }

  .content-two-col { grid-template-columns: 1fr; gap: 1.5rem; }
  .recipe-card .recipe-header { grid-template-columns: 1fr; }
  .recipe-card .recipe-header img { height: 220px; }
  .recipe-card--flipped .recipe-header { direction: ltr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 480px) {
  .hero { min-height: 300px; }
  .hero-content { padding: 1.5rem 1rem; }
  .gallery img { min-width: 260px; width: 260px; height: 190px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
