:root {
  color-scheme: light;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  --bg: #ffe6c7;
  --dark: #1a140e;
  --accent: #ff8a1f;
  --accent-dark: #d96a0b;
  --card: #fffdf9;
  --muted: #6f5b48;
  --border: #f2d7bc;
  --gold: #ffcf8a;
  --shadow: 0 18px 36px rgba(26, 16, 8, 0.12);
  --header-offset: 120px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: radial-gradient(circle at top, #fff2de 0%, var(--bg) 45%, #ffdcb8 100%);
  color: var(--dark);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  background: rgba(255, 253, 249, 0.9);
  border-bottom: 1px solid rgba(242, 215, 188, 0.9);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  transition: opacity 0.2s ease;
}
.contact-grid,
#menu-section,
#campaign-section {
  transition: opacity 0.2s ease;
}

body.preload .site-header,
body.preload .contact-hero,
body.preload .contact-grid,
body.preload #menu-section,
body.preload #campaign-section {
  opacity: 0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}

.logo {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ff9d3f, var(--accent));
  color: #fff;
  font-size: 24px;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(255, 138, 31, 0.35);
}

.logo.logo-image {
  background: #fff;
  padding: 4px;
}

.logo.logo-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand h1 {
  font-size: 22px;
}

.brand p {
  color: var(--muted);
  font-size: 14px;
}

.site-nav {
  display: flex;
  gap: 16px;
  align-items: center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-dropdown {
  position: relative;
}

.menu-trigger {
  border: none;
  background: #ffe8cf;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  color: var(--dark);
}

.menu-list {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  background: #fffaf4;
  border: 1px solid var(--border);
  border-radius: 14px;
  min-width: 220px;
  box-shadow: var(--shadow);
  padding: 8px;
  display: none;
  z-index: 20;
}

.menu-list.open {
  display: grid;
  gap: 6px;
}

.menu-item-link {
  border: none;
  background: transparent;
  padding: 8px 10px;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  font-weight: 600;
  color: var(--dark);
}

.menu-item-link:hover {
  background: #ffe8cf;
}

.site-nav a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover {
  background: #ffe3c3;
  color: #9b4d07;
}

.lang-dropdown {
  position: relative;
}

.lang-trigger {
  border: none;
  background: #ffe8cf;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-trigger img {
  width: 20px;
  height: 14px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fffaf4;
  border: 1px solid var(--border);
  border-radius: 14px;
  min-width: 200px;
  box-shadow: var(--shadow);
  padding: 8px;
  display: none;
  z-index: 20;
}

.lang-menu.open {
  display: grid;
  gap: 6px;
}

.lang-option {
  border: none;
  background: transparent;
  padding: 8px 10px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 600;
  color: var(--dark);
}

.lang-option img {
  width: 20px;
  height: 14px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.lang-option.active,
.lang-option:hover {
  background: #ffe8cf;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 36px 0;
  animation: fadeUp 0.6s ease both;
}

.campaign-section {
  margin: 24px 0 12px;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #fff;
}

.campaign-track {
  display: flex;
  transition: transform 0.6s ease;
}

.campaign-slide {
  min-width: 100%;
  position: relative;
  aspect-ratio: 16 / 9;
}

.campaign-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.campaign-caption {
  position: absolute;
  left: 20px;
  bottom: 18px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 8px 12px;
  border-radius: 12px;
  font-weight: 600;
}

.campaign-dots {
  position: absolute;
  right: 16px;
  bottom: 12px;
  display: flex;
  gap: 6px;
}

.campaign-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.campaign-dot.active {
  background: var(--accent);
}

.hero h2 {
  font-size: 32px;
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}

.hero p {
  color: var(--muted);
}

.hero-card {
  background: linear-gradient(135deg, #2a1b10, #5b3112);
  color: #fff;
  padding: 22px;
  border-radius: 18px;
  min-width: 220px;
  box-shadow: 0 18px 36px rgba(32, 18, 8, 0.4);
  border: 1px solid rgba(255, 207, 138, 0.35);
  animation: fadeUp 0.8s ease both;
}

.hero-card span {
  display: block;
  margin-top: 8px;
  color: #f0c5c1;
}

.menu-section {
  display: grid;
  gap: 32px;
  margin-bottom: 60px;
}

.menu-category {
  display: grid;
  gap: 18px;
}

.menu-category h3 {
  font-size: 24px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
@media (max-width: 600px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

.menu-category {
  scroll-margin-top: var(--header-offset);
}


.menu-card {
  background: var(--card);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  display: grid;
  gap: 10px;
  box-shadow: 0 12px 24px rgba(24, 14, 6, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: fadeUp 0.6s ease both;
  align-items: stretch;
}

.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 36px rgba(24, 14, 6, 0.12);
}

.menu-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: #f0ece6;
}

.brand {
  cursor: pointer;
}

.menu-card h4 {
  font-size: 18px;
  background: #ffcc8a;
  color: #000;
  padding: 6px 8px;
  border-radius: 10px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.menu-card p {
  color: var(--muted);
  font-size: 14px;
  min-height: 40px;
  text-align: center;
}

.menu-card .price-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}
.menu-card .price {
  font-weight: 700;
  color: var(--accent-dark);
  letter-spacing: 0.3px;
  font-size: 16px;
  text-align: center;
}
.menu-card .weight-options {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-dark);
  letter-spacing: 0.3px;
  margin-bottom: 2px;
  text-align: center;
}

.menu-loading {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #fff7ee;
  padding: 12px 0;
}

.site-footer p {
  color: var(--muted);
}

.contact-hero {
  margin: 32px 0 20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  display: grid;
  gap: 12px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.7s ease both;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 14px;
  width: 6px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), #ffb163);
}

.contact-card h3 {
  font-size: 18px;
  padding-left: 12px;
}

.contact-card p,
.contact-card a {
  color: var(--muted);
  text-decoration: none;
}

.social-list {
  display: grid;
  gap: 10px;
}

.social-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--dark);
  background: #fff4e6;
  border: 1px solid #f4d2b1;
  padding: 10px 12px;
  border-radius: 12px;
}

.social-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffd9b0, #ffbb73);
  font-weight: 700;
  color: #8a4a0f;
}

.social-icon {
  width: 18px;
  height: 18px;
}

.map-button {
  border: none;
  background: var(--accent);
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(255, 138, 31, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.map-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(255, 138, 31, 0.4);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 30;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  width: min(90vw, 760px);
  display: grid;
  gap: 12px;
}

.modal iframe {
  width: 100%;
  height: 420px;
  border: none;
  border-radius: 12px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-close {
  border: none;
  background: #f2efe9;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  font-weight: 700;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .brand {
    width: 100%;
    justify-content: center;
  }

  .brand > div {
    text-align: center;
  }

  .header-actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .lang-dropdown {
    align-self: center;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding-top: 16px;
    padding-bottom: 12px;
  }

  .container {
    padding: 0 16px;
  }

  .logo {
    width: 62px;
    height: 62px;
    font-size: 28px;
  }

  .brand h1 {
    font-size: 26px;
  }

  .brand p {
    font-size: 13px;
  }

  .hero h2 {
    font-size: 26px;
  }

  .hero-card {
    width: 100%;
  }

  .campaign-slide img {
    height: 100%;
  }

  .menu-card img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .modal iframe {
    height: 300px;
  }
}

body[dir="rtl"] {
  direction: rtl;
}

body[dir="rtl"] .lang-menu {
  right: auto;
  left: 0;
}

.theme-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 5;
}

.theme-item {
  position: absolute;
  top: -40px;
  font-size: 20px;
  animation: fall linear infinite;
  opacity: 0.9;
}

.theme-item img {
  width: 28px;
  height: 18px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.theme-snow .theme-item {
  color: #fff;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.7);
}

.theme-valentines .theme-item {
  color: #ff5c8a;
}

.theme-halloween .theme-item {
  color: #ffb347;
}

.theme-newyear .theme-item {
  color: #ffd36a;
}

.theme-turkiye .theme-item {
  color: #e11932;
}

.theme-ramadan .theme-item {
  color: #f7d26a;
}

.theme-april23 .theme-item,
.theme-may19 .theme-item,
.theme-aug30 .theme-item,
.theme-oct29 .theme-item {
  color: #ffffff;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.7);
}

@keyframes fall {
  to {
    transform: translateY(120vh) rotate(360deg);
  }
}

body[data-theme="valentines"] {
  --accent: #ff5c8a;
  --accent-dark: #d83b6a;
}

body[data-theme="halloween"] {
  --accent: #ff8c1a;
  --accent-dark: #cf5d00;
  --bg: #2b1a0f;
  --card: #2f2217;
  --dark: #f7e9d7;
  --muted: #cbb6a0;
  color: var(--dark);
}

body[data-theme="halloween"] .site-header,
body[data-theme="halloween"] .menu-card,
body[data-theme="halloween"] .contact-card,
body[data-theme="halloween"] .campaign-section {
  background: #3a2a1c;
  color: var(--dark);
}

body[data-theme="halloween"] .site-nav a,
body[data-theme="halloween"] .menu-trigger,
body[data-theme="halloween"] .lang-trigger {
  color: var(--dark);
}

body[data-theme="halloween"] .menu-trigger,
body[data-theme="halloween"] .lang-trigger {
  background: #4a3422;
}

body[data-theme="snow"] {
  --accent: #6ecbff;
  --accent-dark: #3a99cc;
}

body[data-theme="newyear"] {
  --accent: #ffd36a;
  --accent-dark: #e4a93d;
}

body[data-theme="turkiye"] {
  --accent: #e11932;
  --accent-dark: #b10f25;
}

body[data-theme="ramadan"] {
  --accent: #f7d26a;
  --accent-dark: #c9972b;
  --bg: #0f1a2b;
  --card: #1c2a42;
  --dark: #f8f1e4;
  --muted: #c9b99d;
  color: var(--dark);
}

body[data-theme="ramadan"] .site-header,
body[data-theme="ramadan"] .menu-card,
body[data-theme="ramadan"] .contact-card,
body[data-theme="ramadan"] .campaign-section {
  background: #1f2f4b;
  color: var(--dark);
}

body[data-theme="ramadan"] .site-nav a,
body[data-theme="ramadan"] .menu-trigger,
body[data-theme="ramadan"] .lang-trigger {
  color: var(--dark);
}

body[data-theme="ramadan"] .menu-trigger,
body[data-theme="ramadan"] .lang-trigger {
  background: #2a3b5c;
}

body[data-theme="april23"] {
  --accent: #2fb7ff;
  --accent-dark: #1a7fb8;
  --bg: #e8f6ff;
  --card: #ffffff;
  --dark: #10223b;
  --muted: #3b5a7a;
}

body[data-theme="may19"] {
  --accent: #1fbf6f;
  --accent-dark: #0f8a4e;
  --bg: #eefaf3;
  --card: #ffffff;
  --dark: #0f2b1e;
  --muted: #2d5a44;
}

body[data-theme="aug30"] {
  --accent: #f2b43c;
  --accent-dark: #c48214;
  --bg: #fff4df;
  --card: #fffdf9;
  --dark: #2b1b07;
  --muted: #5c4528;
}

body[data-theme="oct29"] {
  --accent: #e11932;
  --accent-dark: #b10f25;
  --bg: #fff0f0;
  --card: #ffffff;
  --dark: #2a0b0f;
  --muted: #6a2a33;
}

/* Categories accordion */
.categories-accordion {
  margin: 0 0 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: fadeUp 0.5s ease both;
}

.categories-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border: none;
  background: transparent;
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  cursor: pointer;
}

.categories-toggle .cat-arrow {
  transition: transform 0.3s ease;
  font-size: 14px;
  color: var(--muted);
}

.categories-accordion.open .cat-arrow {
  transform: rotate(180deg);
}

.categories-body {
  display: none;
  padding: 0 14px 14px;
}

.categories-accordion.open .categories-body {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cat-chip {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: #ffe8cf;
  color: var(--dark);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
  cursor: pointer;
  border: none;
}

.cat-chip:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

/* Scroll to top button */
.scroll-top-btn {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 25;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(255,138,31,0.4);
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.scroll-top-btn.visible {
  display: flex;
}

.scroll-top-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255,138,31,0.5);
}

/* Mobile header shrink */
@media (max-width: 600px) {
  .site-header {
    transition: padding 0.3s ease;
  }

  .site-header.shrunk .brand {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    transition: max-height 0.3s ease, opacity 0.2s ease, margin 0.3s ease;
  }

  .site-header .brand {
    max-height: 100px;
    opacity: 1;
    transition: max-height 0.3s ease, opacity 0.2s ease;
  }

  .site-header.shrunk {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .hero-card {
    display: none !important;
  }

  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .menu-card .price-row,
  .menu-card .price,
  .menu-card .weight-options {
    text-align: center;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    font-size: 13px !important;
    word-break: break-word;
    white-space: normal;
  }

  .menu-card h4 {
    font-size: 14px;
    padding: 4px 6px;
  }

  .menu-card p {
    font-size: 12px;
    min-height: 30px;
  }
}
