/* Tadım Menemen — tek tutarlı tasarım sistemi */
:root {
  /* Palet: sıcak mutfak (terracotta + krem + buğday) */
  --c-primary: #b85c38;
  --c-primary-dark: #8f4528;
  --c-primary-soft: #d47854;
  --c-bg: #fdf9f5;
  --c-bg-alt: #f0e8df;
  --c-surface: #ffffff;
  --c-text: #3d3028;
  --c-text-soft: #5c4f46;
  --c-border: #e4dcd2;
  --c-border-strong: #d4c8bc;

  /* Tutarlı ölçek: 8 taban */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(61, 48, 40, 0.06);
  --shadow-m: 0 8px 24px rgba(61, 48, 40, 0.08);
  --shadow-strong: 0 12px 40px rgba(61, 48, 40, 0.1);

  --font-head: Georgia, "Times New Roman", serif;
  --font-body: "Segoe UI", system-ui, -apple-system, sans-serif;
  --nav-h: 56px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--space-3);
}

/* ——— Toast (push уведомление) ——— */
.toast-container {
  position: fixed;
  top: var(--space-2);
  right: var(--space-2);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: calc(100vw - var(--space-4));
  width: 320px;
  pointer-events: none;
}

.toast {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-strong);
  font-size: 14px;
  line-height: 1.4;
  pointer-events: auto;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.35s var(--ease-out), opacity 0.35s;
}

.toast.toast-visible {
  transform: translateX(0);
  opacity: 1;
}

.toast-ok {
  background: #fff;
  color: #1a5c34;
  border: 1px solid rgba(56, 161, 105, 0.35);
}

.toast-err {
  background: #fff;
  color: var(--c-primary-dark);
  border: 1px solid rgba(184, 92, 56, 0.35);
}

@media (max-width: 400px) {
  .toast-container {
    left: var(--space-2);
    right: var(--space-2);
    width: auto;
  }
}

/* ——— Header (nav снаружи, примыкает к header) ——— */
.nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 249, 245, 0.96);
  border-bottom: 1px solid var(--c-border);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.nav-wrap {
  display: block;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
  padding: var(--space-2) 0;
  flex: 1;
  min-width: 0;
}

.logo {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--c-primary-dark);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s var(--ease-out);
}

.logo:hover {
  color: var(--c-primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: var(--c-surface);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.nav-toggle:hover {
  border-color: var(--c-primary);
  background: var(--c-bg);
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--c-primary-dark);
  border-radius: 1px;
}

.nav-inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  align-items: center;
  justify-content: flex-end;
}

.nav-link {
  color: var(--c-text-soft);
  text-decoration: none;
  font-size: 14px;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  position: relative;
}

.nav-link:hover {
  color: var(--c-primary-dark);
  background: rgba(184, 92, 56, 0.08);
}

.nav-link.active {
  color: var(--c-primary-dark);
  font-weight: 600;
  background: rgba(184, 92, 56, 0.1);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: var(--space-2);
  right: var(--space-2);
  bottom: 6px;
  height: 2px;
  background: var(--c-primary);
  border-radius: 1px;
  animation: nav-underline 0.4s var(--ease-out) forwards;
}

@keyframes nav-underline {
  from { transform: scaleX(0); transform-origin: left; }
  to { transform: scaleX(1); transform-origin: left; }
}

@media (max-width: 768px) {
  .nav-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    display: block;
    background: transparent;
    border-bottom: none;
  }
  .nav-wrap {
    position: relative;
    z-index: 102;
    background: rgba(253, 249, 245, 0.96);
    border-bottom: 1px solid var(--c-border);
    min-height: var(--nav-h);
  }
  body { padding-top: var(--nav-h); }
  .header-inner {
    position: relative;
    height: var(--nav-h);
    min-height: var(--nav-h);
    padding-right: var(--space-4);
    padding-left: var(--space-3);
    max-width: none;
  }
  .nav-toggle { display: flex; }
  /* nav под header: ниже по z-index, отступ сверху чтобы первая ссылка не заходила на логотип */
  .nav-inner {
    position: relative;
    z-index: 101;
    width: 100%;
    box-sizing: border-box;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    padding: var(--space-2) var(--space-3) 0;
    margin: 0;
    background: var(--c-surface);
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
    box-shadow: var(--shadow-m);
    max-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.4s var(--ease-out), opacity 0.25s, visibility 0.25s;
  }
  .nav-inner.nav-open {
    max-height: min(90vh, 520px);
    opacity: 1;
    visibility: visible;
  }
  .nav-inner .nav-link {
    display: block;
    width: 100%;
    min-height: 42px;
    padding: var(--space-1) var(--space-3);
    box-sizing: border-box;
    line-height: 1.4;
    flex-shrink: 0;
  }
}

/* ——— Animasyonlar: görünürlük (JS .in-view ekler) ——— */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal-left.in-view {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal-right.in-view {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal-scale.in-view {
  opacity: 1;
  transform: scale(1);
}

.reveal-mask {
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transition: opacity 0.5s var(--ease-out), clip-path 0.8s var(--ease-out);
}

.reveal-mask.in-view {
  opacity: 1;
  clip-path: inset(0 0 0 0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.reveal-stagger.in-view > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-stagger.in-view > *:nth-child(5) { transition-delay: 0.25s; }
.reveal-stagger.in-view > *:nth-child(6) { transition-delay: 0.3s; }
.reveal-stagger.in-view > *:nth-child(7) { transition-delay: 0.35s; }
.reveal-stagger.in-view > *:nth-child(8) { transition-delay: 0.4s; }
.reveal-stagger.in-view > *:nth-child(9) { transition-delay: 0.45s; }
.reveal-stagger.in-view > *:nth-child(10) { transition-delay: 0.5s; }

.reveal-stagger.in-view > * {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale, .reveal-mask, .reveal-stagger,
  .hero-title-word, .tab-panel.active {
    animation: none !important;
    transition: opacity 0.2s ease !important;
  }
  .reveal-mask { clip-path: none; }
  .reveal-stagger > * { transition-delay: 0s !important; }
}

/* Hero başlık: kelime kelime açılma */
.hero-title-wrap {
  display: inline-block;
  overflow: hidden;
}

.hero-title-wrap .hero-title-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em);
  animation: hero-word 0.8s var(--ease-out) forwards;
}

.hero-title-wrap .hero-title-word:nth-child(1) { animation-delay: 0.1s; }
.hero-title-wrap .hero-title-word:nth-child(2) { animation-delay: 0.22s; }
.hero-title-wrap .hero-title-word:nth-child(3) { animation-delay: 0.34s; }

@keyframes hero-word {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ——— Hero ——— */
.hero {
  padding: var(--space-6) 0 var(--space-5);
  text-align: center;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.85rem, 4.2vw, 2.5rem);
  margin: 0 0 var(--space-3);
  color: var(--c-primary-dark);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.hero .lead {
  color: var(--c-text-soft);
  font-size: 1.06rem;
  max-width: 560px;
  margin: 0 auto var(--space-2);
  line-height: 1.7;
}

.hero p {
  max-width: 600px;
  margin: 0 auto var(--space-3);
  color: var(--c-text);
  font-size: 1rem;
}

.hero-tip {
  display: inline-block;
  margin: var(--space-2) auto;
  padding: var(--space-2) var(--space-3);
  background: rgba(184, 92, 56, 0.08);
  border-left: 4px solid var(--c-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.95rem;
  color: var(--c-text);
  text-align: left;
  max-width: 520px;
}

.hero-figure {
  margin: var(--space-4) auto 0;
  max-width: 700px;
}

.hero-figure .hero-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-m);
}

.hero-figure figcaption {
  margin-top: var(--space-2);
  font-size: 14px;
  color: var(--c-text-soft);
  font-style: italic;
}

/* ——— Bölümler ——— */
section {
  padding: var(--space-5) 0;
  border-top: 1px solid var(--c-border);
}

section:nth-child(even) {
  background: var(--c-bg-alt);
}

.section-title {
  font-family: var(--font-head);
  font-size: 1.55rem;
  margin: 0 0 var(--space-3);
  color: var(--c-primary-dark);
  letter-spacing: 0.02em;
}

.section-intro {
  margin-bottom: var(--space-3);
  color: var(--c-text);
  max-width: 680px;
}

section p {
  margin: 0 0 var(--space-2);
  color: var(--c-text);
}

/* Kartlar: tek stil */
.recipe-card,
.contact-info,
.contact-form,
.tab-panel {
  background: var(--c-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-4);
  border: 1px solid var(--c-border);
  transition: box-shadow 0.3s var(--ease-out), border-color 0.3s;
}

.recipe-card:hover,
.contact-info:hover,
.contact-form:hover {
  box-shadow: var(--shadow-m);
  border-color: var(--c-border-strong);
}

.recipe-card h3 {
  font-family: var(--font-head);
  margin: 0 0 var(--space-2);
  font-size: 1.2rem;
  color: var(--c-text);
}

.recipe-card .meta {
  font-size: 14px;
  color: var(--c-text-soft);
  margin-bottom: var(--space-2);
}

.recipe-card ul,
.recipe-card ol {
  margin: 0 0 var(--space-2);
  padding-left: 1.35em;
}

.recipe-tip {
  margin-top: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: var(--c-bg-alt);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--c-text);
}

.recipe-tip strong { color: var(--c-primary-dark); }

/* Görseller */
.content-figure,
.recipe-figure {
  margin: var(--space-3) 0;
}

.content-figure img,
.recipe-figure img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.content-figure figcaption,
.recipe-figure figcaption {
  margin-top: var(--space-2);
  font-size: 14px;
  color: var(--c-text-soft);
  font-style: italic;
}

/* Metin + görsel yan yana */
.block-text-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  align-items: start;
  margin: var(--space-4) 0;
}

.block-text-image .block-text {
  margin: 0;
}

.block-text-image .block-text p {
  margin: 0 0 var(--space-2);
}

.block-text-image .block-figure {
  margin: 0;
}

.block-text-image .block-figure img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.block-text-image .block-figure figcaption {
  margin-top: var(--space-1);
  font-size: 14px;
  color: var(--c-text-soft);
  font-style: italic;
}

@media (max-width: 640px) {
  .block-text-image {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
  .block-text-image .block-figure { order: -1; }
}

/* Tablolar */
.table-wrap {
  overflow-x: auto;
  margin: var(--space-3) 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--c-border);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--c-surface);
}

th, td {
  padding: var(--space-2) var(--space-3);
  text-align: left;
  border-bottom: 1px solid var(--c-border);
}

th {
  background: var(--c-primary);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}

tr:last-child td { border-bottom: none; }
tr:nth-child(even) { background: rgba(240, 232, 223, 0.5); }

.comparison-table th:first-child,
.comparison-table td:first-child {
  font-weight: 600;
  color: var(--c-primary-dark);
}

/* Tabs */
.tabs { margin: var(--space-3) 0; }

.tab-head {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 2px solid var(--c-border);
}

.tab-head button {
  padding: var(--space-2) var(--space-3);
  border: none;
  background: transparent;
  color: var(--c-text-soft);
  font-size: 1rem;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}

.tab-head button:hover { color: var(--c-text); }

.tab-head button.active {
  color: var(--c-primary-dark);
  font-weight: 600;
  border-bottom-color: var(--c-primary);
}

.tab-panel {
  display: none;
  padding: var(--space-4);
  margin-top: 0;
}

.tab-panel.active {
  display: block;
  animation: tab-in 0.35s var(--ease-out);
}

@keyframes tab-in {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: translateX(0); }
}

.tab-panel h4 {
  margin: 0 0 var(--space-2);
  font-size: 1.15rem;
  color: var(--c-text);
}

/* Listeler */
.content-list {
  margin: var(--space-2) 0;
  padding-left: 1.4em;
}

.content-list li { margin-bottom: var(--space-2); }

/* İletişim alanı */
.form-message {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-3);
}
.form-message-ok { background: rgba(56, 161, 105, 0.12); color: #1a5c34; border: 1px solid rgba(56, 161, 105, 0.3); }
.form-message-err { background: rgba(184, 92, 56, 0.12); color: var(--c-primary-dark); border: 1px solid rgba(184, 92, 56, 0.3); }

.contact-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  align-items: start;
  margin-top: var(--space-4);
}

.contact-info h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  margin: 0 0 var(--space-2);
  color: var(--c-primary-dark);
}

.contact-info p { margin: 0 0 var(--space-2); font-size: 15px; }
.contact-info a { color: var(--c-primary); text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }
.contact-note { margin-top: var(--space-2) !important; font-size: 14px !important; color: var(--c-text-soft) !important; }

.contact-form label {
  display: block;
  margin-bottom: var(--space-1);
  font-weight: 500;
  font-size: 14px;
  color: var(--c-text);
}

.contact-form .required { color: var(--c-primary); }

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-size: 16px;
  margin-bottom: var(--space-2);
  font-family: inherit;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--c-primary);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.checkbox-label {
  display: flex !important;
  align-items: flex-start;
  gap: var(--space-2);
  margin-bottom: var(--space-3) !important;
  cursor: pointer;
  font-weight: 400 !important;
}

.checkbox-label input { width: auto; margin-top: 4px; flex-shrink: 0; }
.checkbox-label a { color: var(--c-primary); text-decoration: none; }
.checkbox-label a:hover { text-decoration: underline; }

.contact-form button {
  background: var(--c-primary);
  color: #fff;
  border: none;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.contact-form button:hover {
  background: var(--c-primary-dark);
  transform: translateY(-1px);
}

@media (max-width: 700px) {
  .contact-block { grid-template-columns: 1fr; }
}

/* SSS */
.faq-item {
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--c-border);
}

.faq-list { margin-top: var(--space-3); }
.faq-item:last-child { border-bottom: none; }

.faq-item h4 {
  margin: 0 0 var(--space-1);
  font-size: 1.05rem;
  color: var(--c-text);
  font-weight: 600;
}

.faq-item p {
  margin: 0;
  color: var(--c-text-soft);
  font-size: 15px;
  line-height: 1.6;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #2d2825;
  color: #ebe6e2;
  padding: var(--space-3);
  z-index: 1000;
  display: none;
  box-shadow: 0 -4px 24px rgba(0,0,0,.2);
}

.cookie-banner.show { display: block; }

.cookie-banner .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  justify-content: space-between;
}

.cookie-banner p {
  margin: 0;
  font-size: 14px;
  flex: 1;
  min-width: 260px;
  line-height: 1.5;
}

.cookie-banner a { color: var(--c-primary-soft); text-decoration: underline; }

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  flex-shrink: 0;
}

.cookie-banner .btn {
  background: var(--c-primary);
  color: #fff;
  border: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
}

.cookie-banner .btn:hover { background: var(--c-primary-dark); }

.cookie-banner .btn-decline {
  background: transparent;
  color: #e8e8e8;
  border: 1px solid rgba(255,255,255,0.3);
}

.cookie-banner .btn-decline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

/* Footer */
footer {
  padding: var(--space-5) 0;
  text-align: center;
  color: var(--c-text-soft);
  font-size: 14px;
  border-top: 1px solid var(--c-border);
  background: var(--c-surface);
}

.footer-brand {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--c-primary-dark);
  margin: 0 0 var(--space-2);
}

.footer-legal {
  margin: var(--space-2) 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  justify-content: center;
}

.footer-legal a {
  color: var(--c-primary-dark);
  text-decoration: none;
}

.footer-legal a:hover { text-decoration: underline; }
footer p { margin: 0 0 var(--space-1); }
.footer-copy {
  margin-top: var(--space-2);
  font-size: 13px;
  color: var(--c-text-soft);
}
footer a { color: var(--c-primary-dark); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* Legal sayfalar */
.legal-page { padding: var(--space-5) 0 var(--space-6); }

.legal-page h1 {
  font-family: var(--font-head);
  font-size: 1.85rem;
  color: var(--c-primary-dark);
  margin: 0 0 var(--space-2);
}

.legal-update {
  font-size: 14px;
  color: var(--c-text-soft);
  margin-bottom: var(--space-4) !important;
}

.legal-page h2 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  margin: var(--space-4) 0 var(--space-2);
  color: var(--c-text);
}

.legal-page p { margin: 0 0 var(--space-2); line-height: 1.65; }
.legal-page a { color: var(--c-primary); text-decoration: none; }
.legal-page a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 640px) {
  .hero { padding: var(--space-5) 0 var(--space-4); }
  .hero-figure .hero-img { height: 260px; }
  section { padding: var(--space-4) 0; }
  .container { padding: 0 var(--space-2); }
}
