/* Adia — modern restaurant site (Telegram WebApp aware)
   Palette: violet primary, warm accent, neutral surface. */

:root {
  --bg: #FAFAF7;
  --bg-elev: #FFFFFF;
  --ink: #1F1B2E;
  --ink-muted: #5C5870;
  --ink-light: #9994A7;
  --border: #ECE9F3;
  --primary: #7C3AED;
  --primary-2: #5B21B6;
  --primary-soft: #F3EBFF;
  --accent: #F59E0B;
  --accent-soft: #FFF6E0;
  --pink: #EC4899;
  --pink-soft: #FCE7F3;
  --green: #16A34A;
  --shadow-sm: 0 1px 2px rgba(31, 27, 46, 0.06), 0 1px 4px rgba(31, 27, 46, 0.04);
  --shadow-md: 0 6px 24px rgba(31, 27, 46, 0.08), 0 2px 6px rgba(31, 27, 46, 0.04);
  --shadow-lg: 0 24px 60px rgba(31, 27, 46, 0.12);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --max: 1180px;
}

/* === Telegram WebApp dark theme support === */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15131C;
    --bg-elev: #1F1B2E;
    --ink: #F4F1FB;
    --ink-muted: #B5AEC8;
    --ink-light: #7E7993;
    --border: #2C2740;
    --primary-soft: #2D1A57;
    --accent-soft: #3A2A0F;
    --pink-soft: #3E1A35;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn--primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn--ghost:hover { background: var(--bg-elev); }
.btn--lg { padding: 16px 32px; font-size: 17px; }

/* === HEADER === */
.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.hdr__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--pink) 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}
.brand__name { font-size: 20px; letter-spacing: -0.01em; }
.brand--lg .brand__mark { width: 44px; height: 44px; font-size: 22px; }
.brand--lg .brand__name { font-size: 24px; }
.nav { display: flex; gap: 28px; }
.nav a {
  font-size: 15px;
  color: var(--ink-muted);
  font-weight: 500;
  transition: color 0.15s;
}
.nav a:hover { color: var(--primary); }
.hdr__burger {
  display: none;
  background: transparent;
  border: 0;
  font-size: 22px;
  cursor: pointer;
  color: var(--ink);
}

/* === HERO === */
.hero {
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
.hero__eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  border-radius: 99px;
  margin-bottom: 22px;
}
.hero__title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 22px;
}
.hero__title span {
  background: linear-gradient(135deg, var(--pink) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__lede {
  font-size: 18px;
  color: var(--ink-muted);
  max-width: 540px;
  margin-bottom: 32px;
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero__chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  padding: 8px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  box-shadow: var(--shadow-sm);
}

/* === HERO VISUAL === */
.hero__visual {
  position: relative;
  height: 480px;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.55;
}
.orb--1 { width: 320px; height: 320px; background: var(--pink); top: 20px; right: 60px; }
.orb--2 { width: 240px; height: 240px; background: var(--primary); bottom: 40px; left: 0; }
.orb--3 { width: 180px; height: 180px; background: var(--accent); top: 200px; right: -20px; }

.card-stack { position: relative; height: 100%; }
.cake-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 170px;
  height: 200px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 56px;
  box-shadow: var(--shadow-lg);
  transform-origin: center;
}
.cake-card span {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.cake-card--1 { top: 60px; left: 30%; transform: rotate(-6deg); }
.cake-card--2 { top: 30px; right: 18%; transform: rotate(8deg); }
.cake-card--3 { bottom: 40px; left: 18%; transform: rotate(4deg); z-index: 2; }

/* === STATS === */
.stats {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 0;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat__num {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat__lbl { font-size: 14px; color: var(--ink-muted); margin-top: 4px; }

/* === SECTION HEAD === */
.sec__head { text-align: center; margin-bottom: 48px; }
.sec__head h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.sec__head p { color: var(--ink-muted); font-size: 17px; }

/* === MENYU === */
.menyu { padding: 80px 0; }
.cat__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.cat {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}
.cat::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, var(--primary-soft) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.2s;
}
.cat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cat:hover::before { opacity: 1; }
.cat__icon {
  font-size: 36px;
  margin-bottom: 14px;
  display: inline-flex;
  width: 60px;
  height: 60px;
  background: var(--primary-soft);
  border-radius: 16px;
  align-items: center;
  justify-content: center;
}
.cat h3 { font-size: 22px; margin-bottom: 8px; font-weight: 700; }
.cat p { color: var(--ink-muted); font-size: 15px; margin-bottom: 14px; position: relative; z-index: 1; }
.cat__price {
  display: inline-block;
  padding: 6px 14px;
  background: var(--accent-soft);
  color: #92400E;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}
@media (prefers-color-scheme: dark) {
  .cat__price { color: #FBBF24; }
}
.menyu__cta { text-align: center; margin-top: 48px; }

/* === FILIALLAR === */
.filiallar { padding: 80px 0; background: var(--bg-elev); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.filial__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.filial {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.filial:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.filial__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.filial__name { font-size: 19px; font-weight: 700; }
.filial__badge {
  font-size: 12px;
  padding: 4px 10px;
  background: var(--green);
  color: #fff;
  border-radius: 99px;
  font-weight: 600;
}
.filial__addr { color: var(--ink-muted); font-size: 14px; margin-bottom: 10px; }
.filial__meta { display: flex; gap: 14px; font-size: 13px; color: var(--ink-light); }

/* === HIKOYA === */
.hikoya { padding: 80px 0; }
.hikoya__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hikoya__txt h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}
.hikoya__txt p { color: var(--ink-muted); margin-bottom: 16px; font-size: 16px; }
.hikoya__list { list-style: none; margin-top: 18px; }
.hikoya__list li { padding: 8px 0; font-size: 15px; }
.hikoya__visual { display: flex; justify-content: center; align-items: center; }
.circle-img {
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-soft) 0%, var(--pink-soft) 100%);
  display: grid;
  place-items: center;
  font-size: 160px;
  box-shadow: var(--shadow-lg);
}

/* === ALOQA === */
.aloqa { padding: 80px 0; background: var(--bg-elev); border-top: 1px solid var(--border); }
.aloqa__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.aloqa h2 { font-size: clamp(28px, 3.5vw, 40px); font-weight: 800; margin-bottom: 14px; letter-spacing: -0.02em; }
.aloqa__lede { color: var(--ink-muted); margin-bottom: 24px; font-size: 16px; }
.contact-cards { display: grid; gap: 12px; }
.ccard {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.15s, box-shadow 0.15s;
}
.ccard:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); }
.ccard__icon { font-size: 24px; }
.ccard small { color: var(--ink-muted); }

/* === FORM === */
.form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.form h3 { font-size: 22px; margin-bottom: 20px; font-weight: 700; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-muted); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  background: var(--bg-elev);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
}
.field input:focus, .field textarea:focus { border-color: var(--primary); }
.form__hint { margin-top: 12px; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 14px; }
.form__hint.ok { background: #DCFCE7; color: #166534; }
.form__hint.err { background: #FEE2E2; color: #991B1B; }
@media (prefers-color-scheme: dark) {
  .form__hint.ok { background: #14532D; color: #BBF7D0; }
  .form__hint.err { background: #7F1D1D; color: #FECACA; }
}

/* === FOOTER === */
.ftr {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  color: var(--ink-muted);
  font-size: 14px;
}
.ftr__grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
.ftr h4 { color: var(--ink); font-size: 14px; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.05em; }
.ftr a { display: block; padding: 4px 0; transition: color 0.15s; }
.ftr a:hover { color: var(--primary); }

/* === RESPONSIVE === */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { height: 360px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .cat__grid { grid-template-columns: repeat(2, 1fr); }
  .hikoya__grid { grid-template-columns: 1fr; gap: 40px; }
  .aloqa__grid { grid-template-columns: 1fr; gap: 40px; }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 60px 0 80px; }
  .menyu, .filiallar, .hikoya, .aloqa { padding: 60px 0; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-elev);
    padding: 18px 24px;
    gap: 14px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .hdr__burger { display: block; }
  .cat__grid { grid-template-columns: 1fr; }
  .circle-img { width: 240px; height: 240px; font-size: 110px; }
  .form { padding: 22px; }
  .ftr__grid { grid-template-columns: 1fr; }
}

/* === TELEGRAM WEBAPP === */
body.tg {
  background: var(--tg-theme-bg-color, var(--bg));
  color: var(--tg-theme-text-color, var(--ink));
}
body.tg .hdr { background: var(--tg-theme-bg-color, var(--bg)); }
