/* ==========================================================================
   ENDERUN GIDA — Brand Design Tokens
   Palette drawn directly from the approved emblem:
   forest green (fig leaf) / bronze (fig) / terracotta (apricot) / espresso (wordmark)
   ========================================================================== */

:root {
  --cream:        #F7F2E7;
  --cream-deep:   #EFE7D6;
  --forest:       #2F4A37;
  --forest-dark:  #1B2C21;
  --sage:         #8FA083;
  --bronze:       #A9762F;
  --bronze-light: #C89A54;
  --terracotta:   #BD5D3A;
  --espresso:     #3B2A1D;
  --olive-black:  #1C1B16;

  --radius-seal: 50%;
  --max-width: 1180px;
}

@font-face { font-display: swap; }

html[lang="ar"] {
  --font-display: 'Markazi Text', serif;
  --font-body: 'Tajawal', sans-serif;
}
html:not([lang="ar"]) {
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Jost', sans-serif;
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--espresso);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  color: var(--forest-dark);
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.01em;
}
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { font-weight: 700; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bronze);
  font-weight: 600;
  margin-bottom: 14px;
}
html[lang="ar"] .eyebrow { letter-spacing: 0.02em; text-transform: none; font-size: 15px; }
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--bronze);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 242, 231, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(59, 42, 29, 0.1);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 52px; width: auto; }
.brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--forest-dark);
  line-height: 1.1;
}
.brand-sub {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bronze);
}

.nav-links {
  display: flex;
  gap: 34px;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--espresso);
  position: relative;
  padding-block: 4px;
}
html[lang="ar"] .nav-links a { font-size: 16px; }
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  inset-inline-start: 0;
  width: 0;
  height: 1.5px;
  background: var(--bronze);
  transition: width 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--bronze); }

.lang-switch {
  display: flex;
  gap: 2px;
  background: var(--cream-deep);
  border-radius: 999px;
  padding: 3px;
}
.lang-switch button {
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--espresso);
  opacity: 0.55;
  transition: all 0.2s ease;
}
.lang-switch button.active {
  background: var(--forest);
  color: var(--cream);
  opacity: 1;
}

.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}
html[lang="ar"] .btn { font-size: 16px; }
.btn-primary {
  background: var(--forest);
  color: var(--cream);
}
.btn-primary:hover { background: var(--forest-dark); }
.btn-outline {
  border-color: var(--forest);
  color: var(--forest);
}
.btn-outline:hover { background: var(--forest); color: var(--cream); }

/* ---------- Provenance Seal — signature motif ---------- */
.seal {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-seal);
  border: 1.5px dashed var(--bronze);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.seal::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px solid var(--bronze);
  opacity: 0.5;
}
.seal span {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--bronze);
  font-size: 11px;
  text-align: center;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, var(--forest-dark) 0%, var(--forest) 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.32;
  mix-blend-mode: luminosity;
}
.hero-bg::after { content: ""; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(169,118,47,0.25), transparent 60%),
              linear-gradient(180deg, rgba(27,44,33,0.55), rgba(27,44,33,0.92));
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding-block: 80px;
}
.hero .eyebrow { color: var(--bronze-light); }
.hero .eyebrow::before { background: var(--bronze-light); }
.hero h1 {
  color: var(--cream);
  font-size: clamp(48px, 8vw, 92px);
  line-height: 1;
  margin-bottom: 22px;
}
.hero-subtitle {
  color: var(--cream-deep);
  font-size: 19px;
  max-width: 480px;
  margin-bottom: 38px;
  opacity: 0.9;
}
html[lang="ar"] .hero-subtitle { font-size: 21px; }

.hero-seal-row {
  position: absolute;
  bottom: 40px;
  inset-inline-end: 5%;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 2;
}
.hero-seal-row .seal { border-color: var(--cream-deep); }
.hero-seal-row .seal::before { border-color: var(--cream-deep); }
.hero-seal-row .seal span { color: var(--cream-deep); }
.hero-seal-row p {
  color: var(--cream-deep);
  font-size: 13px;
  max-width: 190px;
  opacity: 0.75;
}

/* ---------- Section shells ---------- */
section { padding-block: 110px; }
.section-tight { padding-block: 70px; }
.section-head {
  max-width: 620px;
  margin-bottom: 56px;
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p.lead {
  font-size: 18px;
  color: var(--forest);
  opacity: 0.8;
  margin-top: 14px;
}

.bg-forest { background: var(--forest-dark); color: var(--cream-deep); }
.bg-forest h2, .bg-forest h3 { color: var(--cream); }
.bg-forest .eyebrow { color: var(--bronze-light); }
.bg-forest .eyebrow::before { background: var(--bronze-light); }

.bg-deep { background: var(--cream-deep); }

/* ---------- Heritage / About excerpt ---------- */
.heritage-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: center;
}
.heritage-grid > * { min-width: 0; }
.heritage-emblem {
  display: flex;
  justify-content: center;
  min-width: 0;
}
.heritage-emblem-backdrop {
  background: radial-gradient(circle, var(--cream) 0%, var(--cream) 62%, transparent 72%);
  border-radius: 50%;
  padding: 30px;
  display: inline-flex;
  max-width: 100%;
  box-sizing: border-box;
}
.heritage-emblem img {
  max-width: 320px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,0.35));
}
.heritage-grid h2 {
  font-size: clamp(32px, 4vw, 46px);
  margin-bottom: 24px;
}
.heritage-grid p { font-size: 16px; opacity: 0.88; margin-bottom: 20px; }

/* ---------- About teaser band (Home page — short, links to About) ---------- */
.about-teaser { padding-block: 56px; }
.about-teaser-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.about-teaser-mark {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.92;
}
.about-teaser-inner > div { flex: 1; min-width: 260px; }
.about-teaser-line {
  font-family: var(--font-display);
  font-size: 20px;
  font-style: italic;
  color: var(--cream);
  opacity: 0.92;
  margin: 0;
}
html[lang="ar"] .about-teaser-line { font-style: normal; font-size: 21px; }
.about-teaser-cta {
  border-color: var(--cream-deep);
  color: var(--cream);
  white-space: nowrap;
  flex-shrink: 0;
}
.about-teaser-cta:hover { background: var(--cream); color: var(--forest-dark); }

.heritage-quote {
  border-inline-start: 3px solid var(--bronze);
  padding-inline-start: 22px;
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  color: var(--cream);
  margin-top: 30px;
}
html[lang="ar"] .heritage-quote { font-style: normal; }

/* ---------- About page blocks ---------- */
.about-block { max-width: 780px; margin-inline: auto; }
.about-block p { font-size: 17px; margin-bottom: 22px; opacity: 0.9; }
.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 50px;
}
.vm-card {
  background: var(--cream);
  border: 1px solid rgba(59,42,29,0.12);
  padding: 34px;
  border-radius: 4px;
}
.vm-card h3 {
  font-size: 20px;
  color: var(--bronze);
  margin-bottom: 12px;
}
.about-tagline {
  text-align: center;
  font-family: var(--font-display);
  font-size: 24px;
  font-style: italic;
  color: var(--forest);
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(59,42,29,0.15);
}
html[lang="ar"] .about-tagline { font-style: normal; }

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}
.product-card {
  background: var(--cream);
  border: 1px solid rgba(59,42,29,0.1);
  overflow: hidden;
  border-radius: 4px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(27,44,33,0.15);
}
.product-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}
.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-photo img { transform: scale(1.06); }
.product-region-tag {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  background: rgba(27,44,33,0.85);
  color: var(--cream);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 999px;
  text-transform: uppercase;
}
html[lang="ar"] .product-region-tag { text-transform: none; font-size: 13px; }
.product-info { padding: 20px 22px 24px; }
.product-info h3 {
  font-size: 21px;
  margin-bottom: 6px;
}
.product-info .soon {
  font-size: 12px;
  color: var(--sage);
  font-style: italic;
}

.products-cta { text-align: center; margin-top: 60px; }

/* ---------- Full catalog (dynamic) ---------- */
.catalog-category { margin-bottom: 64px; }
.catalog-category:last-child { margin-bottom: 0; }
.catalog-cat-title {
  font-size: 26px;
  color: var(--bronze);
  margin-bottom: 26px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(59,42,29,0.15);
}
.product-card-full {
  background: var(--cream);
  border: 1px solid rgba(59,42,29,0.1);
  overflow: hidden;
  border-radius: 4px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.product-card-full:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(27,44,33,0.15);
}
.product-card-full .product-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.product-card-full .product-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card-full:hover .product-photo img { transform: scale(1.06); }
.product-card-full .product-info { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.product-card-full .product-info h3 { font-size: 21px; margin-bottom: 8px; }
.product-card-full .pkg-line {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--sage);
  font-weight: 600;
  margin: 0 0 12px;
  text-transform: uppercase;
}
html[lang="ar"] .product-card-full .pkg-line { text-transform: none; font-size: 14px; }
.product-card-full .desc-line {
  font-size: 14px;
  opacity: 0.82;
  margin: 0;
  line-height: 1.65;
}
.product-card-full { cursor: pointer; }
.product-card-full .product-photo { position: relative; }
.product-zoom-hint {
  position: absolute;
  bottom: 10px;
  inset-inline-end: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(27,44,33,0.85);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.25s ease;
}
.product-card-full:hover .product-zoom-hint { opacity: 1; transform: translateY(0); }

.product-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28, 27, 22, 0.72);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.product-modal-overlay.open { display: flex; }
.product-modal-box {
  background: var(--cream);
  max-width: 780px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 6px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  box-shadow: 0 30px 70px rgba(0,0,0,0.4);
}
.product-modal-photo { min-height: 260px; }
.product-modal-photo img { width: 100%; height: 100%; object-fit: cover; }
.product-modal-info { padding: 36px 34px; }
.product-modal-info h3 { font-size: 28px; margin-bottom: 12px; }
.product-modal-info .pkg-line {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--bronze);
  font-weight: 600;
  margin-bottom: 14px;
}
html[lang="ar"] .product-modal-info .pkg-line { letter-spacing: 0; font-size: 15px; }
.product-modal-info .desc-line { font-size: 15px; opacity: 0.85; margin-bottom: 16px; }
.modal-note {
  font-size: 12px;
  font-style: italic;
  opacity: 0.6;
  border-top: 1px solid rgba(59,42,29,0.15);
  padding-top: 14px;
  margin: 0;
}
html[lang="ar"] .modal-note { font-style: normal; }
.product-modal-close {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.85);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
@media (max-width: 700px) {
  .product-modal-box { grid-template-columns: 1fr; }
  .product-modal-photo { min-height: 200px; }
}

.flavor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.flavor-tags span {
  background: var(--cream-deep);
  border: 1px solid rgba(59,42,29,0.12);
  color: var(--espresso);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
}
html[lang="ar"] .flavor-tags span { font-size: 13px; }

/* ---------- Contact CTA band ---------- */
/* ---------- Export section (image + text side-by-side, no overlay — fully responsive) ---------- */
.export-flow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.export-flow > * { min-width: 0; }
.export-flow-text .eyebrow { color: var(--bronze-light); }
.export-flow-text .eyebrow::before { background: var(--bronze-light); }
.export-flow-text h2 { color: var(--cream); font-size: clamp(28px, 4vw, 42px); margin-bottom: 16px; }
.export-flow-text p:not(.eyebrow) { color: var(--cream-deep); opacity: 0.85; font-size: 16px; }
.export-flow-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.export-flow-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 860px) {
  .export-flow { grid-template-columns: 1fr; gap: 28px; }
  .export-flow-image { order: -1; }
}

.cta-band {
  background: var(--bronze);
  color: var(--forest-dark);
  text-align: center;
  padding-block: 70px;
}
.cta-band h2 { color: var(--forest-dark); font-size: clamp(28px, 4vw, 40px); }
.cta-band p { margin-block: 16px 30px; opacity: 0.85; }
.cta-band .btn-primary { background: var(--forest-dark); }
.cta-band .btn-primary:hover { background: var(--olive-black); }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 30px;
}
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 16px;
}
.contact-info-item .seal { width: 50px; height: 50px; }
.contact-info-item .seal span { font-size: 9px; }
.contact-info-item div strong {
  display: block;
  font-size: 13px;
  color: var(--bronze);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
html[lang="ar"] .contact-info-item div strong { text-transform: none; font-size: 14px; }
.contact-info-item div span.value { font-size: 17px; font-weight: 500; }

.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--forest);
}
.form-field input, .form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid rgba(59,42,29,0.25);
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--cream);
  color: var(--espresso);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus {
  outline: 2px solid var(--bronze);
  outline-offset: 1px;
}

/* ---------- Blog placeholder ---------- */
.blog-placeholder {
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
  padding-block: 60px;
}
.blog-placeholder .seal { margin-inline: auto; margin-bottom: 26px; width: 84px; height: 84px; }
.blog-placeholder .seal span { font-size: 13px; }

/* ---------- Blog posts ---------- */
.blog-post {
  background: var(--cream);
  border: 1px solid rgba(59,42,29,0.12);
  border-radius: 4px;
  padding: 4px 24px;
}
.blog-post summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-block: 20px;
  cursor: pointer;
  list-style: none;
}
.blog-post summary::-webkit-details-marker { display: none; }
.blog-emoji { font-size: 24px; }
.blog-post-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  color: var(--forest-dark);
}
.blog-post-body {
  padding-bottom: 24px;
  border-top: 1px solid rgba(59,42,29,0.08);
  padding-top: 18px;
}
.blog-post-body p {
  font-size: 15px;
  opacity: 0.85;
  margin: 0 0 14px;
}
.blog-post-body p:last-child { margin-bottom: 0; }
.blog-post[open] summary .blog-post-title { color: var(--bronze); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--olive-black);
  color: var(--cream-deep);
  padding-block: 60px 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(247,242,231,0.12);
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { height: 46px; }
.footer-brand-name { font-family: var(--font-display); font-size: 19px; color: var(--cream); }
.site-footer p { opacity: 0.65; font-size: 14px; max-width: 320px; }
.footer-col h4 {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bronze-light);
  margin-bottom: 16px;
}
html[lang="ar"] .footer-col h4 { text-transform: none; font-size: 15px; }
.footer-col a, .footer-col span {
  display: block;
  font-size: 14px;
  opacity: 0.75;
  margin-bottom: 10px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 26px;
  font-size: 13px;
  opacity: 0.55;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .heritage-grid, .contact-grid, .vm-grid, .footer-grid { grid-template-columns: 1fr; }
  .heritage-emblem { order: -1; }
  .nav-links { display: none; }
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--forest-dark);
  }
  section { padding-block: 70px; }
  .hero { min-height: 80vh; }
  .hero-seal-row { display: none; }
}

@media (max-width: 900px) {
  .nav-wrap.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-top: 1px solid rgba(59,42,29,0.1);
  }
}
