/* ===== El Khabya — palette from brand color sheet ===== */
:root {
  /* Three-color palette — background, text, accent */
  --eggshell: #F2E9D8;   /* background            */
  --coffee:   #2A2118;   /* text + dark sections  */
  --olive:    #5A5728;   /* accent (olive leaf)   */

  /* aliases so existing rules resolve to the three colors above */
  --gold:          var(--olive);
  --walnut:        var(--coffee);
  --eggshell-soft: var(--eggshell);

  --line: rgba(42, 33, 24, 0.14);

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Guard rails: nothing may push the page wider than the viewport */
html, body { overflow-x: clip; }
img, svg, video { max-width: 100%; }

body {
  background: var(--eggshell);
  color: var(--coffee);
  font-family: var(--sans);
  font-weight: 300;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--olive);
  letter-spacing: 0.01em;
}

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 11px;
  font-weight: 400;
  color: var(--gold);
  margin-bottom: 14px;
}
.eyebrow.center { text-align: center; }
.section-title { font-size: clamp(28px, 4vw, 40px); line-height: 1.2; }
h2.center { text-align: center; }
.section-title.center { margin-bottom: 56px; }

a { text-decoration: none; color: inherit; }
em { font-style: italic; color: var(--walnut); }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-solid { background: var(--olive); color: var(--eggshell); border: 1px solid var(--olive); }
.btn-solid:hover { background: var(--coffee); border-color: var(--coffee); }
.btn-line { border: 1px solid var(--olive); color: var(--olive); background: transparent; }
.btn-line:hover { background: var(--olive); color: var(--eggshell); }

/* ===== Announcement ===== */
.announce {
  background: var(--coffee);
  color: var(--eggshell);
  text-align: center;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 9px 16px;
  font-weight: 300;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(242, 233, 216, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand-mark { height: 50px; width: auto; display: block; color: var(--olive); }
.nav { display: flex; gap: 36px; font-size: 13px; letter-spacing: 0.04em; }
.nav a { color: var(--coffee); opacity: 0.75; transition: opacity 0.2s, color 0.2s; }
.nav a:hover { opacity: 1; color: var(--olive); }
.nav-cta { padding: 10px 22px; font-size: 11px; }

/* Language switcher (injected by lang.js) */
.lang-switch {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--olive);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 6px 10px;
  margin: 0 14px;
}
.lang-switch:hover { border-color: var(--olive); }

/* Mobile nav toggle (button injected by nav.js) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 8px;
  margin-left: auto;
  margin-right: 14px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--coffee);
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  padding: 96px 0 92px;
  text-align: center;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(90,87,40,0.08), transparent 60%),
    var(--eggshell);
}
.hero-inner { max-width: 780px; margin: 0 auto; }
.hero-logo {
  width: 188px;
  height: auto;
  margin: 0 auto 30px;
  display: block;
  color: var(--olive);
}
.hero h1 {
  font-size: clamp(34px, 5.2vw, 56px);
  line-height: 1.16;
  margin: 14px 0 22px;
}
.hero-sub {
  font-size: 17px;
  color: var(--walnut);
  opacity: 0.85;
  max-width: 560px;
  margin: 0 auto 38px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== Marquee ===== */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  background: var(--olive);
  color: var(--eggshell);
  padding: 16px 0;
}
.marquee-track {
  display: inline-block;
  animation: scroll 34s linear infinite;
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.04em;
}
.marquee-track span { padding: 0 22px; opacity: 0.92; }
.marquee-track .dot { padding: 0; opacity: 0.4; color: var(--eggshell); }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== Story ===== */
.story { padding: 110px 0; background: var(--eggshell-soft); }
.story-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: center;
}
.story-art { display: flex; justify-content: center; }
.arch-mark {
  width: 210px;
  height: 290px;
  fill: none;
  stroke: var(--olive);
  stroke-width: 2;
  stroke-linejoin: round;
  opacity: 0.9;
}
.story-text h2 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 20px; }
.story-text p { margin-bottom: 18px; max-width: 500px; color: var(--walnut); }

/* ===== Collections ===== */
.collections { padding: 116px 0; }
.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.collection-grid > * { min-width: 0; }
.collection-card {
  position: relative;
  border: 1px solid var(--line);
  background: var(--eggshell);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.collection-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -28px rgba(42,33,24,0.4);
  border-color: var(--gold);
}
.collection-card.featured { border-color: var(--gold); }
.card-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--olive);
  color: var(--eggshell);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 2px;
  z-index: 2;
}
.card-media {
  height: 260px;
  overflow: hidden;
}
.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.collection-card:hover .card-img { transform: scale(1.05); }
.card-body { padding: 28px 28px 30px; display: flex; flex-direction: column; flex-grow: 1; }
.collection-card h3 { font-size: 25px; margin-bottom: 12px; }
.collection-card p { font-size: 14.5px; color: var(--walnut); flex-grow: 1; margin-bottom: 20px; }
.card-link {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive);
  align-self: flex-start;
  border-bottom: 1px solid var(--olive);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}
.card-link:hover { color: var(--coffee); border-color: var(--coffee); }

/* ===== Varieties ===== */
.varieties { padding: 116px 0; background: var(--coffee); color: var(--eggshell); }
.varieties .eyebrow { color: var(--eggshell); opacity: 0.7; }
.section-title.light { color: var(--eggshell); margin-bottom: 60px; }
.variety-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.variety {
  padding: 14px 28px;
  border-left: 1px solid rgba(242,233,216,0.16);
}
.variety:first-child { border-left: none; }
.variety h3 { color: var(--eggshell); font-size: 26px; margin-bottom: 10px; }
.variety p { font-size: 14px; color: rgba(242,233,216,0.7); }

/* ===== Gifting ===== */
.gifting { padding: 120px 0; text-align: center; }
.gifting-inner { max-width: 620px; margin: 0 auto; }
.gifting h2 { margin-bottom: 18px; }
.gifting p { color: var(--walnut); margin-bottom: 30px; }

/* ===== Footer ===== */
.site-footer { background: var(--walnut); color: var(--eggshell); padding: 72px 0 26px; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 44px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(242,233,216,0.16);
}
.footer-logo { height: 78px; width: auto; display: block; margin-bottom: 16px; color: var(--eggshell); }
.footer-brand p { font-size: 13px; opacity: 0.72; }
.footer-newsletter p { font-size: 14px; margin-bottom: 16px; opacity: 0.85; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input {
  background: transparent;
  border: 1px solid rgba(242,233,216,0.4);
  color: var(--eggshell);
  padding: 12px 16px;
  font-family: var(--sans);
  font-size: 14px;
  width: 230px;
  border-radius: 2px;
}
.newsletter-form input::placeholder { color: rgba(242,233,216,0.55); }
.newsletter-form input:focus { outline: none; border-color: var(--gold); }
.newsletter-form .btn-solid { background: var(--olive); border-color: var(--olive); color: var(--eggshell); }
.newsletter-form .btn-solid:hover { background: var(--eggshell); border-color: var(--eggshell); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  opacity: 0.62;
  padding-top: 22px;
  letter-spacing: 0.03em;
}
.footer-social a:hover { color: var(--eggshell); opacity: 1; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle { display: block; }
  .site-header.nav-open .nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--eggshell);
    border-bottom: 1px solid var(--line);
    padding: 10px 32px 18px;
    box-shadow: 0 18px 30px -22px rgba(42,33,24,0.35);
  }
  .site-header.nav-open .nav a { padding: 10px 0; font-size: 15px; }
  .story-inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .story-text p { margin-left: auto; margin-right: auto; }
  .variety-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 0; }
  .variety:nth-child(3) { border-left: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 22px; }
  .nav-cta { padding: 8px 14px; font-size: 10px; }
  .site-header.nav-open .nav { padding: 10px 22px 18px; }
  .collection-grid { grid-template-columns: 1fr; }
  .variety-grid { grid-template-columns: 1fr; }
  .variety { border-left: none; border-top: 1px solid rgba(242,233,216,0.16); padding: 22px 0; }
  .variety:first-child { border-top: none; }
  .footer-inner { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}


/* ===== Four blossoms, one tree: honeys in one row, oil as a row beneath, one grid ===== */
.variety.oil {
  grid-column: 1 / -1;
  border-left: none;
  border-top: 1px solid rgba(242,233,216,0.16);
  margin-top: 44px;
  padding-top: 44px;
  text-align: center;
}
.variety.oil p { max-width: 520px; margin-left: auto; margin-right: auto; }

/* ===== Sticky footer: content fills the viewport on any screen height ===== */
main { flex: 1 0 auto; width: 100%; }
.site-footer { flex-shrink: 0; margin-top: auto; }
