/* ============================================================
   Pasta Fresca Atölye — styles.css
   Cucina Rustica · Editorial Italian Workshop
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  overflow-x: hidden;
  max-width: 100vw;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #F6EFE3;
  --surface: #FBF6EC;
  --surface-2: #EFE3CC;
  --ink: #2A1A12;
  --ink-soft: #6B4A36;
  --ink-mute: #8C6F58;
  --accent: #B23A2A;
  --accent-deep: #8B2A1F;
  --accent-2: #C58A3A;
  --olive: #5C6B3C;
  --olive-deep: #3F4B25;
  --line: rgba(42, 26, 18, 0.12);
  --line-strong: rgba(42, 26, 18, 0.22);
  --shadow-soft: 0 8px 24px -16px rgba(60, 30, 10, 0.18);
  --shadow-card: 0 18px 40px rgba(42, 26, 18, 0.10);
  --shadow-card-hover: 0 24px 56px rgba(42, 26, 18, 0.18);
  --serif: ui-serif, Georgia, "Iowan Old Style", "Palatino Linotype", "Cambria", "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", "Helvetica", Arial, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.16, 0.84, 0.34, 1);
  --header-h: 84px;
  --header-h-scrolled: 64px;
  --radius: 6px;
  --radius-lg: 12px;
  --warm-glow: 0 18px 44px -12px rgba(178, 58, 42, 0.32), 0 6px 18px -6px rgba(197, 138, 58, 0.28);
}

/* ----- Base typography ----- */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0.005em;
  font-feature-settings: "kern" 1, "liga" 1;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.16  0 0 0 0 0.10  0 0 0 0 0.07  0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
  opacity: 0.7;
  mix-blend-mode: multiply;
}

h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 400; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 400; text-wrap: balance; }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); text-wrap: balance; }
h4 { font-size: 1.1rem; letter-spacing: 0; }
p { margin: 0 0 1em; max-width: 65ch; text-wrap: pretty; }
a { color: var(--accent-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 200ms var(--ease); }
a:hover { color: var(--accent); }

em, .it, i { font-style: italic; font-family: var(--serif); color: var(--ink-soft); }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 12px;
  transform: translateY(-2px);
}

.lead {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  color: var(--ink-soft);
  font-weight: 400;
  line-height: 1.5;
  max-width: 56ch;
}

.num, .price-value { font-variant-numeric: tabular-nums lining-nums; }

::selection { background: var(--accent); color: var(--surface); }

/* ----- Layout ----- */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.container-narrow {
  max-width: 880px;
}

main {
  padding-top: var(--header-h);
}

section {
  padding: clamp(64px, 9vw, 120px) 0;
  position: relative;
}

.section-title-wrap {
  max-width: 760px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

/* Wave divider — sfoglia */
.divider-wave {
  display: block;
  width: 100%;
  height: 28px;
  color: var(--line-strong);
}

/* ----- Skip link ----- */
.skip-link {
  position: fixed;
  top: 0; left: 16px;
  z-index: 1100;
  background: var(--ink);
  color: var(--surface);
  padding: 12px 18px;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0 0 6px 6px;
  transform: translateY(-110%);
  transition: transform 220ms var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ----- Header ----- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1070;
  background: rgba(251, 246, 236, 0.92);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background 240ms var(--ease), border-color 240ms var(--ease), box-shadow 240ms var(--ease), height 240ms var(--ease);
  height: var(--header-h);
  will-change: height, background;
}

.site-header.is-scrolled {
  background: rgba(251, 246, 236, 0.985);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(60, 30, 10, 0.08);
  height: var(--header-h-scrolled);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--serif);
  letter-spacing: -0.02em;
  padding: 6px 0;
  min-width: 0;
  margin-right: auto;
}
.brand-mark {
  font-size: 1.7rem;
  font-style: italic;
  color: var(--accent);
  line-height: 1;
}
.brand-text {
  font-size: 1.05rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-text small {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 2px;
}

.nav-mobile-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: var(--ink);
  color: var(--surface);
  border-radius: 999px;
  text-decoration: none;
  transition: background 220ms var(--ease), transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease), color 220ms var(--ease);
  flex-shrink: 0;
  border: 1px solid transparent;
  position: relative;
  z-index: 1060;
}
.nav-mobile-cta:hover,
.nav-mobile-cta:focus-visible {
  background: var(--accent);
  color: var(--surface);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -10px rgba(178, 58, 42, 0.55);
}
.nav-mobile-cta svg { width: 18px; height: 18px; }

/* Burger */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink);
  flex-shrink: 0;
  position: relative;
  z-index: 1060;
  transition: background 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease);
}
.nav-toggle:hover { background: var(--surface); border-color: var(--ink); }
.nav-toggle svg {
  position: absolute;
  top: 50%; left: 50%;
  width: 18px; height: 18px;
  transform: translate(-50%, -50%) rotate(0deg);
  transition: opacity 220ms var(--ease), transform 260ms var(--ease);
}
.nav-toggle .icon-close { opacity: 0; transform: translate(-50%, -50%) rotate(-90deg); }
.nav-toggle[aria-expanded="true"] .icon-open { opacity: 0; transform: translate(-50%, -50%) rotate(90deg); }
.nav-toggle[aria-expanded="true"] .icon-close { opacity: 1; transform: translate(-50%, -50%) rotate(0deg); }

/* Primary nav: drawer on mobile, inline on desktop */
.primary-nav {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(380px, 92vw);
  background: var(--surface);
  z-index: 1050;
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(.2,.7,.2,1), visibility 0s linear 320ms;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 18px) 28px 28px;
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 60px rgba(42, 26, 18, 0.18);
  visibility: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.primary-nav.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 320ms cubic-bezier(.2,.7,.2,1), visibility 0s linear;
}
.primary-nav .nav-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.primary-nav .nav-list a {
  display: block;
  padding: 14px 0;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--line);
  transition: color 220ms var(--ease), padding 220ms var(--ease);
  position: relative;
}
.primary-nav .nav-list a:hover,
.primary-nav .nav-list a:focus-visible { color: var(--accent); padding-left: 6px; }
.primary-nav .nav-list a[aria-current="page"],
.primary-nav .nav-list a.is-active { color: var(--accent); }
.primary-nav .nav-list a[aria-current="page"]::before,
.primary-nav .nav-list a.is-active::before {
  content: "·";
  position: absolute;
  left: -10px;
  color: var(--accent);
}
.primary-nav .nav-list .nav-cta {
  margin-top: 22px;
  background: var(--ink);
  color: var(--surface);
  text-align: center;
  border-radius: 999px;
  padding: 16px 22px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: none;
  letter-spacing: 0.04em;
  transition: background 220ms var(--ease), color 220ms var(--ease), transform 220ms var(--ease), box-shadow 220ms var(--ease);
}
.primary-nav .nav-list .nav-cta:hover,
.primary-nav .nav-list .nav-cta:focus-visible {
  background: var(--accent);
  color: var(--surface);
  padding-left: 22px;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -10px rgba(178, 58, 42, 0.55);
}
.primary-nav-meta {
  margin-top: 28px;
  padding-top: 18px;
  font-size: 0.82rem;
  color: var(--ink-mute);
  border-top: 1px solid var(--line);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 12, 8, 0.55);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: opacity 240ms var(--ease), visibility 0s linear 240ms;
}
.drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 240ms var(--ease), visibility 0s linear;
}

body.is-locked {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .drawer-backdrop { display: none; }

  .primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: auto;
    left: auto;
    width: auto;
    height: var(--header-h);
    z-index: 1080;
    transform: none;
    visibility: visible;
    padding: 0 clamp(16px, 4vw, 32px);
    background: transparent;
    box-shadow: none;
    border-left: none;
    flex-direction: row;
    align-items: center;
    gap: 28px;
    overflow: visible;
    transition: height 240ms var(--ease);
  }
  .site-header.is-scrolled + .primary-nav { height: var(--header-h-scrolled); }
  .primary-nav .nav-list {
    flex-direction: row;
    gap: 28px;
    align-items: center;
  }
  .primary-nav .nav-list a {
    padding: 6px 2px;
    font-family: var(--sans);
    font-style: normal;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    border-bottom: none;
    color: var(--ink);
  }
  .primary-nav .nav-list a::after {
    content: "";
    position: absolute;
    left: 0; right: 100%;
    bottom: 0;
    height: 1px;
    background: var(--accent);
    transition: right 240ms var(--ease);
  }
  .primary-nav .nav-list a:hover,
  .primary-nav .nav-list a:focus-visible { padding-left: 2px; color: var(--accent); }
  .primary-nav .nav-list a:hover::after,
  .primary-nav .nav-list a:focus-visible::after { right: 0; }
  .primary-nav .nav-list a.is-active { color: var(--accent); }
  .primary-nav .nav-list a.is-active::after { right: 0; }
  .primary-nav .nav-list a[aria-current="page"]::before,
  .primary-nav .nav-list a.is-active::before { display: none; }
  .primary-nav .nav-list .nav-cta {
    margin-top: 0;
    padding: 10px 18px;
    font-size: 0.92rem;
  }
  .primary-nav .nav-list .nav-cta::after { display: none; }
  .primary-nav .nav-list .nav-cta:hover { padding-left: 18px; }
  .primary-nav-meta { display: none; }
  .nav-mobile-cta {
    width: 38px; height: 38px;
    background: transparent;
    color: var(--ink-soft);
    border: 1px solid var(--line);
  }
  .nav-mobile-cta svg { width: 16px; height: 16px; }
  .nav-mobile-cta:hover,
  .nav-mobile-cta:focus-visible {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: none;
    transform: translateY(-1px);
  }
}

/* Scroll progress bar */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 90ms linear;
  pointer-events: none;
  z-index: 5;
}

@media (prefers-reduced-motion: reduce) {
  .primary-nav { transition: none; }
  .drawer-backdrop { transition: opacity 0s; }
  .site-header { transition: background 0s, border-color 0s, box-shadow 0s; }
  .nav-toggle svg { transition: none; }
  .primary-nav .nav-list a,
  .primary-nav .nav-list a::after { transition: none; }
  .scroll-progress { transition: none; }
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 240ms var(--ease), background 240ms var(--ease), color 240ms var(--ease), box-shadow 240ms var(--ease), border-color 240ms var(--ease);
  will-change: transform;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--ink);
  color: var(--surface);
}
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 80%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: skewX(-20deg);
  animation: shimmer 3.6s var(--ease) infinite;
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(80% 120% at 50% 120%, rgba(197, 138, 58, 0.55), transparent 70%);
  opacity: 0;
  transition: opacity 320ms var(--ease-out-quint);
  z-index: 0;
}
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent);
  color: var(--surface);
  box-shadow:
    0 16px 34px -12px rgba(178, 58, 42, 0.55),
    0 6px 14px -6px rgba(197, 138, 58, 0.42);
  transform: translateY(-1px);
}
.btn-primary:hover::after,
.btn-primary:focus-visible::after { opacity: 1; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--ink);
  background: var(--surface);
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -14px rgba(42, 26, 18, 0.35);
}

.btn-outline-light {
  background: transparent;
  color: var(--surface);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-light:hover {
  background: var(--surface);
  color: var(--ink);
}

@keyframes shimmer {
  0% { left: -120%; }
  60%, 100% { left: 140%; }
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary::before { animation: none; }
}

.btn .arrow {
  width: 14px; height: 14px;
  transition: transform 240ms var(--ease);
}
.btn:hover .arrow { transform: translateX(4px); }

/* Flour particles wrapper */
.btn-flour { position: relative; }
.flour-particle {
  position: absolute;
  width: 4px; height: 4px;
  background: rgba(245, 232, 210, 0.9);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(0.5px);
  z-index: 1;
}

/* ----- Hero ----- */
.hero {
  position: relative;
  padding: clamp(40px, 6vw, 80px) 0 clamp(80px, 10vw, 140px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero-copy { position: relative; z-index: 2; }
.hero h1 {
  font-style: italic;
  font-weight: 400;
  margin-bottom: 0.4em;
}
.hero h1 .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.hero h1 .word > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 720ms var(--ease);
}
.hero h1.is-in .word > span { transform: translateY(0); }
.hero h1 .accent {
  color: var(--accent);
  font-style: italic;
  position: relative;
  background-image: linear-gradient(120deg, var(--accent-2), var(--accent) 60%, var(--accent-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  margin-top: 1.4rem;
  margin-bottom: 2.2rem;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 50ch;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-meta {
  margin-top: clamp(40px, 6vw, 64px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 3vw, 24px);
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.hero-meta-item .num-big {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4.4vw, 2.4rem);
  font-style: italic;
  color: var(--accent);
  line-height: 1;
}
.hero-meta-item .label {
  font-size: clamp(0.62rem, 1.6vw, 0.78rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 8px;
  display: block;
}

/* Hero visual */
.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 80% 20%, rgba(197, 138, 58, 0.55), transparent 60%),
    linear-gradient(135deg, #C58A3A 0%, #B23A2A 55%, #2A1A12 100%);
  box-shadow: var(--shadow-card);
}
.hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hero-visual .frame {
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255,255,255,0.32);
  border-radius: 8px;
  pointer-events: none;
}
.hero-visual .stamp {
  position: absolute;
  bottom: 28px; left: 28px;
  color: rgba(251, 246, 236, 0.92);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  z-index: 2;
}
.hero-visual .stamp small {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(251, 246, 236, 0.7);
  margin-top: 4px;
}

/* Steam */
.steam {
  position: absolute;
  pointer-events: none;
  z-index: 3;
}
.steam-puff {
  position: absolute;
  bottom: 0;
  width: 22px; height: 22px;
  background: radial-gradient(circle, rgba(255,255,255,0.65) 0%, rgba(255,255,255,0) 65%);
  border-radius: 50%;
  opacity: 0;
  animation: steam-rise 4s ease-in-out infinite;
}
.steam-puff:nth-child(1) { left: 10%; animation-delay: 0s; }
.steam-puff:nth-child(2) { left: 30%; animation-delay: 1.4s; }
.steam-puff:nth-child(3) { left: 55%; animation-delay: 0.6s; }
.steam-puff:nth-child(4) { left: 75%; animation-delay: 2.1s; }

@keyframes steam-rise {
  0%   { transform: translateY(0) scale(0.8); opacity: 0; }
  20%  { opacity: 0.55; }
  60%  { opacity: 0.4; }
  100% { transform: translateY(-90px) scale(1.6); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .steam-puff { animation: none; opacity: 0; }
}

/* Hero decor SVG (mattarello) */
.hero-decor {
  position: absolute;
  pointer-events: none;
  opacity: 0.5;
}
.hero-decor.top-right {
  top: 8%; right: -6%;
  width: 280px;
  animation: mattarello-drift 14s ease-in-out infinite;
  transform-origin: 60% 50%;
}
.hero-decor svg { width: 100%; height: auto; }
.hero-decor svg path,
.hero-decor svg line,
.hero-decor svg circle {
  fill: none;
  stroke: var(--accent-2);
  stroke-width: 1.2;
  stroke-linecap: round;
}
@keyframes mattarello-drift {
  0%, 100% { transform: translateY(0) rotate(-2deg); opacity: 0.5; }
  50%      { transform: translateY(-8px) rotate(2deg); opacity: 0.62; }
}
@media (max-width: 720px) {
  .hero-decor.top-right { width: 180px; opacity: 0.35; top: 4%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-decor.top-right { animation: none; }
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

/* ----- Generic reveal ----- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 720ms var(--ease-out-quint), transform 760ms var(--ease-out-quint);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

html.no-js .reveal {
  opacity: 1; transform: none; transition: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero h1 .word > span { transform: none !important; transition: none !important; }
  .gallery-item img { transition: none !important; }
  .menu-card .photo .steam, .steam-puff { animation: none !important; }
}

/* ----- Hizmet (services) ----- */
.svc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 720px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }

.svc-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 420ms var(--ease-out-quint), box-shadow 420ms var(--ease-out-quint), border-color 320ms var(--ease-out-quint);
}
.svc-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 0% 0%, rgba(197, 138, 58, 0.18), transparent 55%);
  opacity: 0;
  transition: opacity 420ms var(--ease-out-quint);
  pointer-events: none;
  z-index: -1;
}
.svc-card:hover,
.svc-card:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--warm-glow);
  border-color: rgba(178, 58, 42, 0.35);
}
.svc-card:hover::before,
.svc-card:focus-within::before { opacity: 1; }
.svc-card:hover .svc-icon { transform: rotate(-4deg) scale(1.08); }
.svc-card .svc-icon { transition: transform 480ms var(--ease-out-quint); }
.svc-card .svc-num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 10px;
  display: block;
}
.svc-card h3 {
  margin-bottom: 0.5em;
  font-family: var(--serif);
  font-style: italic;
}
.svc-card p { color: var(--ink-soft); margin-bottom: 0; }
.svc-card .svc-icon {
  width: 52px; height: 52px;
  margin-bottom: 24px;
  color: var(--accent);
}
.svc-card .svc-icon svg { width: 100%; height: 100%; }

/* ----- Menu cards ----- */
.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 640px) { .menu-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .menu-grid { grid-template-columns: repeat(3, 1fr); } }

.menu-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: transform 460ms var(--ease-out-quint), box-shadow 460ms var(--ease-out-quint), border-color 320ms var(--ease-out-quint);
  display: flex;
  flex-direction: column;
}
.menu-card:hover,
.menu-card:focus-within {
  transform: translateY(-5px);
  box-shadow: var(--warm-glow);
  border-color: rgba(178, 58, 42, 0.28);
}
.menu-card .photo img { transition: transform 760ms var(--ease-out-quint); }
.menu-card:hover .photo img { transform: scale(1.045); }
.menu-card .photo {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 80% 20%, rgba(197, 138, 58, 0.6), transparent 60%),
    linear-gradient(135deg, #C58A3A 0%, #B23A2A 60%, #2A1A12 100%);
}
.menu-card .photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.menu-card .photo .badge {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(42,26,18,0.7);
  color: var(--surface);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.menu-card .photo .steam {
  position: absolute;
  inset: auto 0 6px 0;
  height: 120px;
  opacity: 0;
  transition: opacity 320ms var(--ease);
}
.menu-card:hover .photo .steam { opacity: 1; }
.menu-card .photo .badge { z-index: 2; }

.menu-card .body {
  padding: 22px 22px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.menu-card h3 {
  font-family: var(--serif);
  font-style: italic;
  margin-bottom: 0.3em;
  font-size: 1.45rem;
}
.menu-card .origin {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 10px;
}
.menu-card p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 16px; }
.menu-card .meta {
  margin-top: auto;
  display: flex;
  gap: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-mute);
}
.menu-card .meta strong { color: var(--ink); font-weight: 500; }

/* ----- Süreç (process) ----- */
.surec-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 720px) { .surec-wrap { grid-template-columns: repeat(4, 1fr); } }

.surec-step {
  position: relative;
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
}
.surec-step .step-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.6rem;
  color: var(--accent);
  display: block;
  line-height: 1;
}
.surec-step h4 {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  margin: 14px 0 10px;
}
.surec-step p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

.surec-line-wrap {
  display: none;
  margin: 40px 0;
  height: 60px;
}
.surec-line-wrap svg { width: 100%; height: 100%; overflow: visible; }
.surec-line-wrap path {
  fill: none;
  stroke: var(--accent-2);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  transition: stroke-dashoffset 1.4s var(--ease);
}
.surec-line-wrap.is-in path { stroke-dashoffset: 0; }
@media (min-width: 720px) { .surec-line-wrap { display: block; } }

/* ----- Paketler ----- */
.paket-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 800px) { .paket-grid { grid-template-columns: repeat(3, 1fr); } }

.paket-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 460ms var(--ease-out-quint), box-shadow 460ms var(--ease-out-quint), border-color 320ms var(--ease-out-quint);
}
.paket-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 100% 0%, rgba(197, 138, 58, 0.16), transparent 55%);
  opacity: 0;
  transition: opacity 460ms var(--ease-out-quint);
  pointer-events: none;
  z-index: -1;
}
.paket-card:hover,
.paket-card:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--warm-glow);
  border-color: rgba(178, 58, 42, 0.28);
}
.paket-card:hover::before,
.paket-card:focus-within::before { opacity: 1; }
.paket-card.is-featured:hover {
  box-shadow: 0 22px 56px -14px rgba(197, 138, 58, 0.55), 0 8px 22px -8px rgba(178, 58, 42, 0.45);
  border-color: rgba(197, 138, 58, 0.6);
}
.paket-card.is-featured::before {
  background: radial-gradient(120% 80% at 100% 0%, rgba(197, 138, 58, 0.32), transparent 60%);
}
.paket-card.is-featured {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
}
.paket-card.is-featured h3,
.paket-card.is-featured .price-currency,
.paket-card.is-featured .price-suffix { color: var(--surface); }
.paket-card.is-featured .price-value { color: var(--accent-2); }
.paket-card.is-featured .feature-list li { color: rgba(251,246,236,0.82); border-color: rgba(251,246,236,0.14); }
.paket-card.is-featured .feature-list li::before { color: var(--accent-2); }

.paket-card .ribbon {
  position: absolute;
  top: -12px; right: 22px;
  background: var(--accent);
  color: var(--surface);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}

.paket-card .paket-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
  margin-bottom: 6px;
}
.paket-card .paket-tag {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 22px;
}
.paket-card.is-featured .paket-tag { color: rgba(251,246,236,0.6); }

.paket-card .price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}
.price-value {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
}
.price-currency { font-size: 1.1rem; color: var(--ink-soft); font-family: var(--serif); }
.price-suffix {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-left: auto;
}

.feature-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}
.feature-list li {
  padding: 12px 0 12px 28px;
  position: relative;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.feature-list li:first-child { border-top: none; }
.feature-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

.paket-card .btn { margin-top: 28px; width: 100%; }

.paket-disclaimer {
  margin-top: 28px;
  padding: 18px 22px;
  background: var(--surface-2);
  border-left: 3px solid var(--accent-2);
  border-radius: 4px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* ----- Atölye gallery ----- */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 180px; } }

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 80% at 30% 30%, rgba(197, 138, 58, 0.55), transparent 60%),
    linear-gradient(135deg, #C58A3A 0%, #B23A2A 60%, #2A1A12 100%);
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 760ms var(--ease-out-quint), filter 480ms var(--ease);
  transform-origin: center 60%;
}
.gallery-item:hover img,
.gallery-item:focus-within img { transform: scale(1.06) rotate(-0.6deg); filter: saturate(1.08) brightness(1.03); }
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(42, 26, 18, 0.45) 100%);
  opacity: 0;
  transition: opacity 360ms var(--ease);
  pointer-events: none;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item .label {
  position: absolute;
  bottom: 14px; left: 14px;
  color: var(--surface);
  font-family: var(--serif);
  font-style: italic;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

@media (min-width: 1024px) {
  .gallery-grid { grid-auto-flow: dense; }
  .gallery-item { aspect-ratio: auto; }
  .gallery-item:nth-child(1) { grid-column: span 3; grid-row: span 2; }
  .gallery-item:nth-child(2) { grid-column: span 3; grid-row: span 1; }
  .gallery-item:nth-child(3) { grid-column: span 2; grid-row: span 1; }
  .gallery-item:nth-child(4) { grid-column: span 1; grid-row: span 1; }
  .gallery-item:nth-child(5) { grid-column: span 4; grid-row: span 1; }
  .gallery-item:nth-child(6) { grid-column: span 2; grid-row: span 1; }
}

/* ----- SSS / Accordion ----- */
.sss-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 900px) { .sss-wrap { grid-template-columns: 1fr 1fr; gap: 14px 28px; } }

.sss-item {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
  background: transparent;
}
.sss-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 40px 18px 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ink);
  position: relative;
  outline: none;
  transition: color 220ms var(--ease);
}
.sss-item summary::-webkit-details-marker { display: none; }
.sss-item summary::after {
  content: "";
  position: absolute;
  right: 4px; top: 50%;
  width: 14px; height: 14px;
  margin-top: -7px;
  background-image:
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor);
  background-size: 14px 1.5px, 1.5px 14px;
  background-position: center, center;
  background-repeat: no-repeat;
  transition: transform 320ms var(--ease);
  color: var(--accent);
}
.sss-item[open] summary::after {
  transform: rotate(90deg);
  background-size: 14px 1.5px, 0 0;
}
.sss-item summary:hover { color: var(--accent); }
.sss-item summary:hover::after { transform: scale(1.08); }
.sss-item[open] summary:hover::after { transform: rotate(90deg) scale(1.08); }
.sss-item:hover { border-bottom-color: var(--line-strong); }

.sss-item .answer {
  padding: 0 40px 22px 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* JS controls open/close height for reliable cross-browser animation. */

/* ----- CTA section ----- */
.cta-band {
  background: var(--ink);
  color: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(48px, 7vw, 88px) clamp(28px, 5vw, 64px);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(197, 138, 58, 0.3), transparent 60%),
    radial-gradient(60% 80% at 0% 100%, rgba(178, 58, 42, 0.28), transparent 60%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { color: var(--surface); font-style: italic; max-width: 18ch; }
.cta-band p { color: rgba(251,246,236,0.78); }
.cta-band .btn { margin-top: 28px; }
.cta-band .btn-primary {
  background: var(--surface);
  color: var(--ink);
}
.cta-band .btn-primary:hover { background: var(--accent-2); color: var(--ink); }

/* ----- Footer ----- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 64px 0 28px;
  margin-top: clamp(40px, 6vw, 80px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { color: var(--ink-soft); font-size: 0.95rem; max-width: 38ch; }

.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 200ms var(--ease);
}
.footer-col a {
  position: relative;
  display: inline-block;
}
.footer-col a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--accent);
  transition: right 320ms var(--ease);
}
.footer-col a:hover { color: var(--accent); }
.footer-col a:hover::after { right: 0; }

.footer-bottom {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--ink-mute);
}

/* ----- Forms ----- */
.form-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 14px 16px;
  transition: border-color 220ms var(--ease), background 220ms var(--ease), box-shadow 220ms var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(178,58,42,0.12);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--accent); background: rgba(178,58,42,0.04); }
.field .hint, .field .error {
  font-size: 0.82rem;
  color: var(--ink-mute);
  min-height: 1em;
}
.field .error { color: var(--accent); }

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.checkbox input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--accent); flex-shrink: 0; }
.checkbox label { font-size: 0.9rem; letter-spacing: 0; text-transform: none; color: var(--ink-soft); cursor: pointer; }

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important; height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
}

.form-msg {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 0.95rem;
}
.form-msg.success { background: rgba(92, 107, 60, 0.12); color: var(--olive-deep); border: 1px solid rgba(92, 107, 60, 0.32); }
.form-msg.error { background: rgba(178,58,42,0.08); color: var(--accent-deep); border: 1px solid rgba(178,58,42,0.32); }

/* ----- Cookie banner ----- */
.cookie-banner {
  position: fixed;
  bottom: 16px; left: 16px; right: 16px;
  max-width: 520px;
  margin: 0 auto;
  background: rgba(251, 246, 236, 0.96);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(42,26,18,0.22);
  padding: 22px;
  z-index: 1100;
  transform: translateY(140%);
  transition: transform 280ms var(--ease-out-quint), opacity 320ms var(--ease-out-quint);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner h3 {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  margin: 0 0 8px;
}
.cookie-banner p { font-size: 0.88rem; color: var(--ink-soft); margin: 0 0 16px; }
.cookie-banner .actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
@media (min-width: 480px) {
  .cookie-banner .actions { grid-template-columns: 1fr 1fr 1fr; }
}
@media (min-width: 720px) {
  .cookie-banner { left: 24px; right: auto; max-width: 380px; padding: 20px 22px; }
}
.cookie-banner button {
  font-family: var(--sans);
  font-size: 0.85rem;
  padding: 14px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  transition: background 220ms var(--ease), border-color 220ms var(--ease), transform 220ms var(--ease), box-shadow 220ms var(--ease);
  font-weight: 500;
  min-height: 44px;
}
.cookie-banner button:hover,
.cookie-banner button:focus-visible { border-color: var(--ink); transform: translateY(-1px); box-shadow: 0 8px 18px -10px rgba(42, 26, 18, 0.32); }
.cookie-banner button:active { transform: translateY(0); }
.cookie-banner button.is-primary { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.cookie-banner button.is-primary:hover,
.cookie-banner button.is-primary:focus-visible { background: var(--accent); border-color: var(--accent); box-shadow: 0 14px 30px -12px rgba(178, 58, 42, 0.55); }
.cookie-banner button[data-consent="reject"] { color: var(--ink-soft); }
.cookie-banner button[data-consent="reject"]:hover,
.cookie-banner button[data-consent="reject"]:focus-visible { color: var(--ink); border-color: var(--ink-soft); }

/* Cookie modal */
.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(42, 26, 18, 0.55);
  backdrop-filter: blur(4px);
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cookie-modal.is-open { display: flex; }
.cookie-modal-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  padding: 32px;
  max-height: 90vh;
  overflow-y: auto;
}
.cookie-modal-card h3 { font-family: var(--serif); font-style: italic; margin: 0 0 8px; }
.cookie-modal-card p { font-size: 0.92rem; color: var(--ink-soft); }

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.toggle-row:first-of-type { border-top: 1px solid var(--line); margin-top: 16px; }
.toggle-row .meta { flex: 1; padding-right: 16px; }
.toggle-row .meta strong { display: block; font-family: var(--serif); font-style: italic; font-size: 1.05rem; }
.toggle-row .meta span { font-size: 0.85rem; color: var(--ink-mute); }

.toggle {
  position: relative;
  width: 44px; height: 24px;
  background: var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: background 220ms var(--ease);
  flex-shrink: 0;
}
.toggle::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  background: var(--surface);
  border-radius: 50%;
  transition: transform 240ms var(--ease);
  box-shadow: 0 2px 4px rgba(0,0,0,0.18);
}
.toggle.is-on { background: var(--accent); }
.toggle.is-on::after { transform: translateX(20px); }
.toggle.is-disabled { opacity: 0.6; cursor: not-allowed; }

.cookie-modal-actions {
  margin-top: 28px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ----- Tech / legal pages ----- */
.page-hero {
  padding: clamp(60px, 8vw, 110px) 0 clamp(28px, 4vw, 56px);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--ink-mute);
  margin-bottom: 18px;
  list-style: none;
  padding: 0;
}
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb li + li::before { content: "/"; padding-right: 8px; color: var(--ink-mute); }

.legal-content {
  padding: clamp(40px, 6vw, 72px) 0 clamp(60px, 8vw, 100px);
}
.legal-content h2 {
  margin-top: 2.4em;
  border-top: 1px solid var(--line);
  padding-top: 1.4em;
}
.legal-content h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.legal-content h3 { margin-top: 1.6em; font-family: var(--serif); font-style: italic; }
.legal-content ul, .legal-content ol { padding-left: 22px; color: var(--ink-soft); margin-bottom: 1em; }
.legal-content li { margin-bottom: 6px; max-width: 65ch; }
.legal-content .table-scroll {
  margin: 24px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.legal-content .table-scroll table {
  margin: 0;
  border: none;
  border-radius: 0;
  min-width: 480px;
}
.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.legal-content th, .legal-content td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.legal-content tr:last-child th,
.legal-content tr:last-child td { border-bottom: none; }
.legal-content th { background: var(--surface-2); font-weight: 500; color: var(--ink); }
.legal-content p { line-height: 1.7; color: var(--ink-soft); }
.legal-content li { line-height: 1.7; }
@media (max-width: 540px) {
  .legal-content table { font-size: 0.86rem; }
  .legal-content th, .legal-content td { padding: 10px 9px; }
}

.toc {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  padding: 18px 22px;
  margin-bottom: 36px;
}
.toc strong { display: block; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 18px; color: var(--ink-soft); }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--accent); }

/* ----- İletişim ----- */
.iletisim-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 24px;
}
@media (min-width: 900px) { .iletisim-grid { grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; } }

.contact-info {
  font-size: 0.98rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  box-shadow: var(--shadow-soft);
}
.contact-info dl { display: grid; grid-template-columns: 1fr; gap: 22px; margin: 0; }
.contact-info dt {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 4px;
}
.contact-info dd { margin: 0; color: var(--ink); font-family: var(--serif); font-size: 1.15rem; line-height: 1.4; font-style: italic; }
.contact-info a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.contact-info a:hover { color: var(--accent); border-color: var(--accent); }

.contact-note {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-note strong {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
}
.contact-note span {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Sitemap page */
.sitemap-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 32px;
}
@media (min-width: 720px) { .sitemap-grid { grid-template-columns: 1fr 1fr; } }
.sitemap-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease);
}
.sitemap-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.sitemap-item h3 { margin: 0 0 6px; font-family: var(--serif); font-style: italic; font-size: 1.15rem; }
.sitemap-item h3 a { color: var(--ink); text-decoration: none; }
.sitemap-item h3 a:hover { color: var(--accent); }
.sitemap-item p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

/* 404 */
.notfound {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 20px;
}
.notfound .big {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(6rem, 18vw, 14rem);
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.04em;
}
.notfound p { margin-inline: auto; color: var(--ink-soft); }

/* ----- Hakkimizda story ----- */
.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-top: 24px;
}
@media (min-width: 900px) { .story-grid { grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: start; } }

.story-image {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 70% 20%, rgba(197, 138, 58, 0.55), transparent 60%),
    linear-gradient(135deg, #C58A3A 0%, #B23A2A 60%, #2A1A12 100%);
}
.story-image .frame {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255,255,255,0.32);
  border-radius: 6px;
  pointer-events: none;
}
.story-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.principles {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 20px;
}
.principles li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.principles li .num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
  font-size: 1.4rem;
  line-height: 1;
}
.principles li strong {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  margin-bottom: 4px;
}
.principles li p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* Decorative wave between sections */
.wave-sep {
  width: 100%;
  height: 24px;
  display: block;
  color: var(--line-strong);
  margin: 0 0 16px;
}
.wave-sep svg { width: 100%; height: 100%; overflow: visible; }
.wave-sep path { fill: none; stroke: currentColor; stroke-width: 1.2; }

/* ----- Focus ring ----- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
  box-shadow: 0 0 0 4px rgba(178, 58, 42, 0.18);
}
.btn:focus-visible,
.nav-cta:focus-visible,
.nav-mobile-cta:focus-visible,
.cookie-banner button:focus-visible {
  outline-offset: 3px;
}

/* ----- Utility ----- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.muted { color: var(--ink-mute); }
.section-bg { background: var(--surface); }

/* ----- Header padding adjust on small screens ----- */
@media (max-width: 1023px) {
  .brand-text small { display: none; }
  .brand-text { font-size: 0.95rem; }
}
@media (max-width: 420px) {
  .brand-text { font-size: 0.88rem; }
  .brand-mark { font-size: 1.45rem; }
  .header-inner { gap: 12px; }
}

/* Hide on smallest */
@media (max-width: 360px) {
  :root { --header-h: 64px; --header-h-scrolled: 56px; }
}

/* Scroll padding so anchors don't disappear under header */
:root { scroll-padding-top: calc(var(--header-h) + 12px); }
html { scroll-padding-top: calc(var(--header-h) + 12px); }

/* table-scroll v2: horizontal overflow + parent shrink fix */
.table-scroll {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 18px 0;
  border: 1px solid var(--line, rgba(0,0,0,0.12));
  border-radius: 6px;
}
.table-scroll > table { margin: 0 !important; min-width: 480px; width: 100%; }
/* Allow grid/flex ancestors to shrink below their min-content (table) so the
   wrapper can actually scroll instead of pushing the column wider than the
   container. */
:where(*:has(> .table-scroll), *:has(> * > .table-scroll), *:has(> * > * > .table-scroll)) {
  min-width: 0;
}
