@font-face {
  font-family: Cairo;
  src: url('../fonts/Cairo.ttf') format('truetype');
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  color-scheme: light;
  --cream: #f1e9dd;
  --paper: #f8f0e5;
  --brown: #35261e;
  --muted: #75685c;
  --terracotta: #a64f32;
  --terracotta-dark: #8d3d27;
  --gold: #e9b862;
  --olive: #687246;
  --line: #d9c7b3;
  font-family: Cairo, Tahoma, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; overflow-x: clip; background: var(--cream); color: var(--brown); }
body::before { content: ""; position: fixed; z-index: 50; inset: 0; background: rgba(91, 59, 35, .035); pointer-events: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--olive); outline-offset: 4px; }

.shell { width: calc(100% - 2 * clamp(16px, 2.5vw, 38px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 30; inset-block-start: -80px; inset-inline-start: 16px; padding: 12px 18px; background: var(--brown); color: white; }
.skip-link:focus { inset-block-start: 12px; }

.site-header { border-bottom: 1px solid var(--line); background: var(--cream); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 88px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; white-space: nowrap; }
.brand-logo { width: 46px; height: 46px; flex: 0 0 auto; filter: drop-shadow(0 3px 5px rgba(63, 36, 19, .13)); }
.top-nav { display: flex; gap: clamp(18px, 4vw, 44px); color: #57473b; font-size: .94rem; }
.top-nav a:hover, .language-switch:hover { color: var(--terracotta); }
.language-switch { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .91rem; white-space: nowrap; }
.language-switch span { font-size: 1.1rem; }

.hero-frame { width: calc(100% - 2 * clamp(16px, 2.5vw, 38px)); margin: 22px auto 44px; overflow: hidden; border: 1px solid #d5bea5; border-radius: 36px; background: radial-gradient(circle at 12% 16%, #fdf8ef 0, #f8efe2 42%, #eedecb 100%); box-shadow: 0 18px 42px rgba(74, 46, 25, .14); }
.hero-frame .shell { width: calc(100% - clamp(32px, 5vw, 88px)); }
.hero { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); align-items: center; gap: clamp(30px, 5vw, 80px); min-height: 600px; padding-block: 62px 78px; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; color: var(--terracotta); font-size: .81rem; font-weight: 800; letter-spacing: .035em; }
.eyebrow-line { display: inline-block; width: 30px; height: 2px; background: currentColor; }
.hero h1, .section-heading h2, .story-copy h2 { margin: 0; font-weight: 800; line-height: 1.25; letter-spacing: -.035em; }
.hero h1 { max-width: 620px; font-size: clamp(2.65rem, 5.5vw, 5rem); }
.hero-description { max-width: 520px; margin: 24px 0 30px; color: #65574a; font-size: clamp(1rem, 1.5vw, 1.16rem); line-height: 1.9; }
.primary-button { display: inline-flex; align-items: center; gap: 22px; padding: 16px 24px; border-radius: 999px; background: var(--terracotta); color: white; font-size: .95rem; font-weight: 800; box-shadow: 0 10px 22px rgba(119, 52, 32, .17); transition: background .2s, transform .2s; }
.primary-button:hover { background: var(--terracotta-dark); transform: translateY(-2px); }
[dir="ltr"] .primary-button span { transform: rotate(180deg); }
.hero-note { margin: 24px 0 0; color: var(--olive); font-size: .85rem; font-weight: 700; }
.hero-note span { color: var(--gold); margin-inline-end: 5px; }
.hero-visual { position: relative; isolation: isolate; }
.hero-visual img { width: 100%; height: clamp(370px, 38vw, 515px); object-fit: cover; border-radius: 49% 51% 45% 55% / 44% 48% 52% 56%; box-shadow: 0 24px 48px rgba(54, 34, 20, .18), 0 4px 12px rgba(54, 34, 20, .08); }
.hero-stamp { position: absolute; inset-block-end: -24px; inset-inline-start: -20px; display: grid; place-items: center; width: 94px; height: 94px; border: 7px solid #fffaf2; border-radius: 50%; background: var(--olive); color: #fff7e7; font-family: Arial, sans-serif; font-size: 3.15rem; line-height: 1; }

.gallery-section { padding-block: 82px 98px; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-heading { text-align: center; }
.section-heading .eyebrow { justify-content: center; }
.section-heading h2, .story-copy h2 { font-size: clamp(2rem, 3.7vw, 3.35rem); }
.section-heading > p:last-child { max-width: 660px; margin: 18px auto 0; color: var(--muted); line-height: 1.85; font-size: .97rem; }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 35px 0 32px; }
.filter { min-height: 42px; padding: 9px 20px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--brown); cursor: pointer; font-weight: 700; font-size: .88rem; transition: background .2s, color .2s, border-color .2s; }
.filter:hover { border-color: var(--terracotta); }
.filter.is-active { background: var(--brown); color: white; border-color: var(--brown); }
.food-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.food-card { overflow: hidden; border: 1px solid #d5c0aa; border-radius: 18px; background: #fffaf3; box-shadow: 0 8px 22px rgba(70, 42, 22, .10); }
.food-card-button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: start; cursor: pointer; }
.food-card-button:focus-visible { outline-offset: -4px; }
.food-image { overflow: hidden; aspect-ratio: 1.2; background: #dcc5ac; }
.food-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.food-card:hover img { transform: scale(1.055); }
.food-card-copy { padding: 17px 18px 21px; }
.food-type { color: var(--terracotta); font-size: .75rem; font-weight: 800; }
.food-card h3 { margin: 8px 0 0; font-size: 1.02rem; line-height: 1.55; }
.food-price { display: block; margin-top: 8px; color: var(--olive); font-size: .85rem; font-weight: 800; }

.product-dialog { width: min(100% - 36px, 760px); max-width: none; max-height: min(92dvh, 900px); padding: 0; overflow: auto; border: 1px solid #cdb298; border-radius: 26px; background: #fffaf3; color: var(--brown); box-shadow: 0 28px 70px rgba(31, 19, 12, .32); }
.product-dialog::backdrop { background: rgba(39, 24, 17, .68); backdrop-filter: blur(4px); }
.dialog-panel { position: relative; }
.dialog-close { position: absolute; z-index: 1; inset-block-start: 14px; inset-inline-end: 14px; display: grid; place-items: center; width: 43px; height: 43px; border: 1px solid rgba(70, 42, 22, .12); border-radius: 50%; background: #fffaf3; color: var(--brown); box-shadow: 0 3px 10px rgba(0, 0, 0, .12); cursor: pointer; font-size: 1.8rem; line-height: 1; }
.dialog-image { width: 100%; height: clamp(230px, 33vw, 380px); object-fit: cover; background: #ddc6ad; }
.dialog-copy { padding: clamp(22px, 3vw, 34px); }
.dialog-copy h2 { margin: 7px 0 25px; font-size: clamp(1.55rem, 3vw, 2.4rem); line-height: 1.3; }
.dialog-price { margin: -14px 0 22px; color: var(--olive); font-size: 1.1rem; font-weight: 800; }
.dialog-detail-block { padding-block: 17px; border-top: 1px solid var(--line); }
.dialog-detail-block h3 { margin: 0 0 6px; font-size: 1rem; }
.dialog-detail-block p { margin: 0; color: var(--muted); line-height: 1.8; }

.story-section { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); align-items: center; gap: clamp(40px, 8vw, 110px); padding-block: 98px; }
.story-image { overflow: hidden; border-radius: 24px 90px 24px 24px; }
.story-image img { width: 100%; height: 370px; object-fit: cover; }
.story-copy > p:last-child { margin: 22px 0 0; max-width: 470px; color: var(--muted); line-height: 1.95; }
.site-footer { background: var(--brown); color: #f7e9d4; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; padding-block: 28px; font-size: .84rem; }
.footer-inner span:first-child { font-weight: 800; }
.footer-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
.footer-contact a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .hero { min-height: 0; gap: 36px; padding-block: 54px 68px; }
  .hero h1 { font-size: clamp(2.6rem, 5vw, 4rem); }
  .food-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .story-section { gap: 44px; }
}

@media (max-width: 680px) {
  .hero-frame { margin-block: 12px 26px; border-radius: 24px; }
  .hero-frame .shell { width: calc(100% - 28px); }
  .header-inner { min-height: 72px; gap: 12px; }
  .brand { font-size: .98rem; }
  .brand-logo { width: 35px; height: 35px; }
  .top-nav { display: none; }
  .language-switch { font-size: .82rem; }
  .hero { grid-template-columns: 1fr; gap: 36px; padding-block: 34px 52px; }
  .hero h1 { font-size: clamp(2.7rem, 11vw, 4rem); }
  .hero-description { margin-block: 20px 24px; }
  .hero-visual img { height: clamp(300px, 75vw, 450px); }
  .hero-stamp { width: 72px; height: 72px; font-size: 2.4rem; border-width: 5px; inset-block-end: -16px; inset-inline-start: -5px; }
  .gallery-section { padding-block: 64px 76px; }
  .filters { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-block: 4px 8px; margin-block: 28px 24px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: 0 0 auto; }
  .food-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .food-card-copy { padding: 13px 12px 16px; }
  .food-card h3 { font-size: .91rem; }
  .story-section { grid-template-columns: 1fr; gap: 34px; padding-block: 72px; }
  .story-image img { height: 300px; }
  .footer-inner { flex-direction: column; gap: 6px; }
}

@media (max-width: 390px) {
  .food-grid { gap: 9px; }
  .food-card h3 { font-size: .83rem; }
  .food-type { font-size: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
