/* ==========================================================================
   Datça Otomat — Design System  ·  "Nautical Chart of the Peninsula"
   Signature: bathymetric contour lines + waterline + coordinate labels.
   Palette locked to datca-otomat-tasarim-plani.md (turkuaz / kireçtaşı).
   ========================================================================== */

:root {
  /* --- Core palette (plan) --- */
  --turkuaz-derin: #0E7C86;
  --turkuaz-acik: #5FC9C0;
  --kirectasi: #F7F5EF;
  --zeytin: #2B2B26;
  --bal: #E8A24C;

  /* --- Derived tones --- */
  --turkuaz-abis: #0A3D45;     /* deep water, hero base */
  --turkuaz-gece: #072A30;     /* deepest chart ink */
  --kirectasi-koyu: #EDE9DD;   /* subtle surface shade */
  --kagit: #FFFEFB;            /* card surface, warm near-white */
  --mikro: #6E6E63;            /* muted text */
  --hat: rgba(43, 43, 38, 0.10); /* hairline rules */

  --durum-aktif: #2E9E5B;
  --durum-bakim: var(--bal);
  --durum-bilgi-yok: #9A9A90;
  --durum-ariza: #D64545;

  --font-baslik: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-govde: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  /* Spacing scale */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 72px; --sp-9: 104px;

  --shadow-sm: 0 1px 2px rgba(10, 61, 69, 0.06);
  --shadow-card: 0 6px 22px -12px rgba(10, 61, 69, 0.28);
  --shadow-card-hover: 0 18px 40px -18px rgba(10, 61, 69, 0.42);
  --shadow-lift: 0 26px 60px -24px rgba(10, 61, 69, 0.45);

  --nav-height: 64px;
  --max-width: 1120px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-govde);
  color: var(--zeytin);
  background: var(--kirectasi);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: calc(var(--nav-height) + 12px);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-baslik);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--zeytin);
}
p { margin: 0 0 1em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 22px;
}

/* Eyebrow / coordinate labels — structure that encodes meaning */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-govde);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--turkuaz-derin);
  margin: 0 0 var(--sp-4);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow.on-dark { color: var(--turkuaz-acik); }

/* ---- Skip link (a11y) ---- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--turkuaz-derin);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

:where(a, button, input, select, textarea):focus-visible {
  outline: 2.5px solid var(--turkuaz-derin);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- Header ---- */
.site-header {
  background: color-mix(in srgb, var(--kirectasi) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--hat);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header-featured {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--kagit) 90%, transparent), color-mix(in srgb, var(--kirectasi) 82%, transparent)),
    radial-gradient(circle at 14% 0%, rgba(95, 201, 192, 0.14), transparent 34%);
  -webkit-backdrop-filter: saturate(1.25) blur(14px);
  backdrop-filter: saturate(1.25) blur(14px);
  box-shadow: 0 16px 34px -30px rgba(10, 61, 69, 0.54);
}
@supports (-webkit-touch-callout: none) {
  .site-header,
  .site-header-featured {
    background: #FFFEFB;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transform: translateZ(0);
  }
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}
.site-header-featured .container {
  height: 74px;
  gap: 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-baslik);
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--turkuaz-derin);
}
.site-header-featured .brand {
  min-width: 210px;
  gap: 12px;
}
.brand-mark {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  color: var(--turkuaz-derin);
}
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-mark img { width: 100%; height: 100%; display: block; object-fit: contain; }
.brand-copy {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.brand-name {
  line-height: 1.02;
}
.brand-tagline {
  margin-top: 3px;
  font-family: var(--font-govde);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--mikro);
  white-space: nowrap;
}
/* legacy text fallback mark */
.brand-mark:not(:has(svg)):not(:has(img)) {
  border-radius: 50% 50% 50% 0;
  background: var(--turkuaz-derin);
  color: #fff;
  font-size: 0.95rem;
  transform: rotate(0);
}

.desktop-nav {
  display: none;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.desktop-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--zeytin);
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 6px;
  height: 1px;
  border-radius: 999px;
  background: var(--turkuaz-derin);
  opacity: 0;
  transform: scaleX(0.2);
  transform-origin: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.desktop-nav a:hover::after,
.desktop-nav a[aria-current="page"]::after {
  opacity: 0.7;
  transform: scaleX(1);
}
.desktop-nav a:hover {
  background: rgba(14, 124, 134, 0.08);
  transform: translateY(-1px);
}
.desktop-nav a[aria-current="page"] {
  color: var(--turkuaz-derin);
  background: color-mix(in srgb, var(--turkuaz-acik) 18%, transparent);
}
.header-actions {
  display: none;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.header-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--turkuaz-abis);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.header-status span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--durum-aktif);
  box-shadow: 0 0 0 5px rgba(46, 158, 91, 0.12);
}
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--turkuaz-derin), #0B6A73);
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 14px 24px -16px rgba(14, 124, 134, 0.9);
  transition: transform 0.18s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.header-cta svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px -16px rgba(14, 124, 134, 1);
}
.header-cta:active { transform: translateY(0); }

@media (min-width: 760px) {
  .desktop-nav { display: flex; }
  .site-header-featured nav { margin-left: auto; }
  body { padding-bottom: 0; }
}
@media (min-width: 1060px) {
  .site-header-featured .header-actions { display: inline-flex; }
}

/* ---- Bottom thumb-zone nav (mobile) ---- */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: #FFFEFB;
  background: color-mix(in srgb, var(--kagit) 98%, white);
  -webkit-backdrop-filter: saturate(1.15) blur(14px);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(10, 61, 69, 0.16);
  display: flex;
  z-index: 100;
  box-shadow: 0 -10px 30px -16px rgba(10, 61, 69, 0.42);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: var(--mikro);
  font-size: 0.68rem;
  font-weight: 600;
}
.bottom-nav a svg { width: 22px; height: 22px; stroke: currentColor; }
.bottom-nav a[aria-current="page"] { color: var(--turkuaz-derin); }
.bottom-nav a[aria-current="page"] svg {
  filter: drop-shadow(0 3px 6px rgba(14, 124, 134, 0.35));
}
@media (min-width: 760px) {
  .bottom-nav { display: none; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-govde);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.005em;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  min-height: 50px;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:active { transform: translateY(1px) scale(0.995); }
.btn-primary {
  background: linear-gradient(180deg, var(--turkuaz-derin) 0%, #0B6A73 100%);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(14, 124, 134, 0.75);
}
.btn-primary:hover { box-shadow: 0 16px 32px -12px rgba(14, 124, 134, 0.85); transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--turkuaz-derin);
  border-color: color-mix(in srgb, var(--turkuaz-derin) 40%, transparent);
}
.btn-secondary:hover { border-color: var(--turkuaz-derin); background: color-mix(in srgb, var(--turkuaz-acik) 14%, transparent); }
.btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-whatsapp {
  background: #1FA855;
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(31, 168, 85, 0.7);
}
.btn-whatsapp:hover { background: #178a45; transform: translateY(-1px); }
.btn-block { width: 100%; }

/* ==========================================================================
   OTOMAT DURUMU  ·  live status strip, mobile-first
   ========================================================================== */
.machine-status {
  background: var(--kirectasi);
  padding: clamp(22px, 5vw, 34px) 0 clamp(18px, 4vw, 28px);
  border-bottom: 1px solid var(--hat);
}
.machine-status-head {
  margin-bottom: var(--sp-4);
}
.machine-status-head h2 {
  font-family: var(--font-baslik);
  font-weight: 500;
  font-size: clamp(1.2rem, 3.4vw, 1.5rem);
  letter-spacing: -0.01em;
  color: var(--zeytin);
  margin: 6px 0 0;
}
.machine-strip {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 4px 2px 12px;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.machine-strip::-webkit-scrollbar { height: 5px; }
.machine-strip::-webkit-scrollbar-thumb { background: var(--hat); border-radius: 10px; }
.machine-card {
  scroll-snap-align: start;
  flex: 0 0 148px;
  background: var(--kagit);
  border: 1px solid var(--hat);
  border-radius: var(--radius-md);
  padding: 10px 10px 12px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.machine-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--kirectasi-koyu);
  margin-bottom: 8px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.machine-photo:hover,
.machine-photo:focus-visible {
  opacity: 0.85;
}
.machine-photo:focus-visible {
  outline: 2px solid var(--turkuaz-derin);
  outline-offset: 2px;
}
.machine-photo img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; display: block; }
.machine-photo-cue {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--turkuaz-derin);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.machine-photo-cue svg { width: 13px; height: 13px; display: block; }
.machine-name {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--zeytin);
  margin: 0 0 8px;
  min-height: 2.4em;
}
.machine-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.machine-badge-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.machine-badge.is-up {
  background: color-mix(in srgb, var(--durum-aktif) 14%, transparent);
  color: var(--durum-aktif);
}
.machine-badge.is-up .machine-badge-dot {
  background: var(--durum-aktif);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--durum-aktif) 22%, transparent);
}
.machine-badge.is-down {
  background: color-mix(in srgb, var(--durum-ariza) 14%, transparent);
  color: var(--durum-ariza);
}
.machine-badge.is-down .machine-badge-dot {
  background: var(--durum-ariza);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--durum-ariza) 22%, transparent);
}
@media (min-width: 760px) {
  .machine-status-head { margin-bottom: var(--sp-5); }
  .machine-strip {
    overflow: visible;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    padding: 4px 0 4px;
  }
  .machine-card {
    flex: unset;
    padding: 16px 14px 18px;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
  }
  .machine-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
  .machine-name { font-size: 0.88rem; }
  .machine-badge { font-size: 0.72rem; }
}

/* ==========================================================================
   HERO  ·  the sea, with contours and a waterline
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(95, 201, 192, 0.30) 0%, transparent 55%),
    linear-gradient(168deg, #0F8A93 0%, var(--turkuaz-derin) 42%, var(--turkuaz-abis) 100%);
  padding: clamp(124px, 15vw, 152px) 0 clamp(124px, 19vw, 188px);
  overflow: hidden;
}
/* ambient bathymetric contours */
.hero-contours {
  position: absolute;
  inset: -10% -5% auto -5%;
  width: 110%;
  height: 130%;
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
  color: rgba(224, 248, 245, 0.5);
}
.hero-contours svg {
  width: 100%;
  height: 100%;
  display: block;
  animation: contour-drift 15s ease-in-out infinite alternate;
}
/* each line sways at its own pace for a water-like feel */
.hero-contours path {
  transform-box: fill-box;
  will-change: transform;
  animation: contour-sway 5.5s ease-in-out infinite alternate;
}
.hero-contours path:nth-child(1) { animation-duration: 5s;   animation-delay: -0.2s; }
.hero-contours path:nth-child(2) { animation-duration: 6.2s; animation-delay: -1.4s; }
.hero-contours path:nth-child(3) { animation-duration: 4.4s; animation-delay: -0.8s; }
.hero-contours path:nth-child(4) { animation-duration: 6.8s; animation-delay: -2.1s; }
.hero-contours path:nth-child(5) { animation-duration: 5.6s; animation-delay: -0.5s; }
.hero-contours path:nth-child(6) { animation-duration: 7.2s; animation-delay: -1.8s; }

@keyframes contour-drift {
  from { transform: translate3d(-1.2%, 0, 0); }
  to   { transform: translate3d(1.2%, 0, 0); }
}
@keyframes contour-sway {
  from { transform: translateY(-5px); }
  to   { transform: translateY(5px); }
}
.hero-content { position: relative; max-width: 640px; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.35rem, 7vw, 4.15rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin-bottom: 0.5em;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  font-weight: 800;
  color: #EAF7F5;
  position: relative;
  white-space: nowrap;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.06em;
  height: 0.16em;
  background: var(--bal);
  opacity: 0.85;
  border-radius: 2px;
  z-index: -1;
}
.hero p {
  font-size: clamp(1.02rem, 2.6vw, 1.18rem);
  line-height: 1.5;
  color: rgba(255,255,255,0.92);
  max-width: 45ch;
  margin-bottom: 1.8em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Trust strip — chart-style tags with real facts, not big numbers */
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: clamp(28px, 6vw, 44px);
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.22);
}
.hero-fact {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.86rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
}
.hero-fact svg { width: 17px; height: 17px; stroke: var(--turkuaz-acik); flex: none; }
.hero-fact b { font-weight: 700; color: #fff; }

/* Rotating single-line message — mobile only, hidden on desktop */
.hero-rotator { display: none; }

/* ==========================================================================
   MOBILE HERO (<760px)
   - status strip keeps its place on top; content clears it comfortably
   - long lead / CTA buttons / facts strip give way to one rotating message
   - peninsula photo activates once assets/img/hero-datca.webp exists
     (main.js probes the file and adds .has-photo)
   ========================================================================== */
@media (max-width: 759.98px) {
  .hero {
    padding: 158px 0 106px;
  }
  .hero.has-photo {
    background:
      linear-gradient(168deg, rgba(15, 138, 147, 0.78) 0%, rgba(14, 124, 134, 0.82) 42%, rgba(10, 61, 69, 0.92) 100%),
      url("../img/hero-datca.webp") center 35% / cover no-repeat,
      linear-gradient(168deg, #0F8A93 0%, var(--turkuaz-derin) 42%, var(--turkuaz-abis) 100%);
  }
  .hero .eyebrow {
    margin-bottom: var(--sp-3);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
  }
  .hero h1 { font-size: clamp(2rem, 8.4vw, 2.65rem); margin-bottom: 0.4em; }
  .hero-lead,
  .hero-facts { display: none; }
  .hero-actions {
    display: none;
  }
  .hero .hero-rotator {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 4px 0 0;
    min-height: 1.5em;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
    transition: opacity 0.52s ease, transform 0.52s ease;
  }
  .hero .hero-rotator::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--turkuaz-acik);
    box-shadow: 0 0 0 4px rgba(95, 201, 192, 0.22);
    flex: none;
  }
  .hero .hero-rotator.is-fading {
    opacity: 0;
    transform: translateY(3px);
  }
}

/* Waterline divider — two-tone signature */
.waterline {
  position: relative;
  display: block;
  width: 100%;
  line-height: 0;
  margin-top: -1px;
  overflow: hidden;
}
.waterline svg { width: 100%; height: clamp(38px, 6vw, 64px); display: block; }
.waterline .crest,
.waterline .fill {
  transform-box: fill-box;
  transform-origin: center;
  will-change: transform;
}
.waterline .crest {
  fill: rgba(95, 201, 192, 0.55);
  animation: waterline-drift 3.8s ease-in-out infinite alternate;
}
.waterline .fill  {
  fill: var(--kirectasi);
  animation: waterline-drift 5s ease-in-out infinite alternate-reverse;
}
@keyframes waterline-drift {
  from { transform: translate3d(-24px, -1px, 0) scaleX(1.04); }
  to { transform: translate3d(24px, 1px, 0) scaleX(1.04); }
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section { padding: clamp(48px, 9vw, 88px) 0; }
.section.tight { padding-top: 0; }
.section-head { max-width: 640px; margin-bottom: clamp(28px, 5vw, 44px); }
.section-title { font-size: clamp(1.7rem, 4.4vw, 2.4rem); margin-bottom: 0.35em; }
.section-lead { color: var(--mikro); font-size: 1.06rem; margin-bottom: 0; }
.inner-page-section {
  padding-top: clamp(34px, 7vw, 66px);
}
.inner-hero {
  position: relative;
  display: grid;
  gap: clamp(20px, 4vw, 36px);
  align-items: end;
  margin-bottom: clamp(28px, 5vw, 46px);
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid color-mix(in srgb, var(--turkuaz-derin) 13%, transparent);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(90% 75% at 100% 0%, rgba(95, 201, 192, 0.16), transparent 58%),
    linear-gradient(180deg, var(--kagit), color-mix(in srgb, var(--kirectasi) 82%, var(--kagit)));
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.inner-hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -34px auto;
  width: min(440px, 62vw);
  height: 150px;
  border-top: 1px solid rgba(14, 124, 134, 0.12);
  border-radius: 50%;
  transform: rotate(-7deg);
  pointer-events: none;
}
.inner-hero .section-title {
  max-width: 16ch;
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  text-wrap: balance;
}
.inner-hero .section-lead {
  max-width: 62ch;
  line-height: 1.62;
}
.inner-hero-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--turkuaz-abis) 92%, var(--turkuaz-derin));
  color: #D8E6E4;
  box-shadow: 0 18px 36px -24px rgba(10, 61, 69, 0.72);
}
.inner-hero-panel span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  font-size: 0.88rem;
}
.inner-hero-panel span:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.inner-hero-panel b {
  color: #fff;
  font-size: 1.12rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 820px) {
  .inner-hero {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.38fr);
  }
}

/* ---- Where carousel ---- */
.where-section {
  padding-top: clamp(34px, 7vw, 70px);
  padding-bottom: clamp(48px, 8vw, 82px);
}
.where-head {
  margin-bottom: 22px;
}
.where-carousel {
  position: relative;
}
.where-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.where-track::-webkit-scrollbar { display: none; }
.where-slide {
  scroll-snap-align: start;
  min-width: 0;
}
.where-slide a {
  display: block;
  color: inherit;
  text-decoration: none;
}
.where-photo {
  position: relative;
  min-height: 370px;
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--turkuaz-abis);
  box-shadow: var(--shadow-card);
  isolation: isolate;
}
.where-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(7, 42, 48, 0) 38%, rgba(7, 42, 48, 0.82) 100%),
    radial-gradient(70% 55% at 82% 72%, rgba(95, 201, 192, 0.16), transparent 60%);
  pointer-events: none;
}
.where-photo.has-target::before {
  content: "";
  position: absolute;
  left: var(--pin-x, 50%);
  top: var(--pin-y, 50%);
  z-index: 2;
  width: 64px;
  height: 64px;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow:
    0 0 0 5px rgba(14, 124, 134, 0.58),
    0 12px 28px -12px rgba(7, 42, 48, 0.78);
  transform: translate(-50%, -50%) scale(1);
  animation: target-ring-pulse 1.8s ease-out infinite;
  pointer-events: none;
}
.where-photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
}
.where-photo figcaption {
  position: absolute;
  left: 18px;
  right: 108px;
  bottom: 18px;
  z-index: 2;
  color: #fff;
}
.where-kicker {
  display: block;
  margin-bottom: 7px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--turkuaz-acik);
}
.where-photo h3 {
  color: #fff;
  font-family: var(--font-baslik);
  font-size: clamp(1.32rem, 6vw, 1.7rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
.where-machine {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  width: 78px;
  height: 92px;
  display: grid;
  place-items: end center;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--kagit) 88%, transparent);
  border: 1px solid rgba(255, 255, 255, 0.54);
  box-shadow: 0 16px 30px -16px rgba(7, 42, 48, 0.75);
  backdrop-filter: blur(8px);
}
.where-machine img {
  width: 66px;
  height: 82px;
  object-fit: contain;
  object-position: bottom;
}
.where-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.where-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: color-mix(in srgb, var(--turkuaz-derin) 24%, transparent);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}
.where-dot[aria-current="true"] {
  width: 24px;
  background: var(--turkuaz-derin);
}

@media (min-width: 760px) {
  .where-track {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
  }
  .where-photo {
    min-height: 340px;
  }
  .where-dots {
    display: none;
  }
}

/* ---- Service cards ---- */
.service-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 640px) {
  .service-cards { grid-template-columns: repeat(3, 1fr); }
}
.service-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--kagit);
  border: 1px solid var(--hat);
  border-radius: var(--radius-lg);
  padding: 28px 24px 26px;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
/* water rises on hover */
.service-card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--turkuaz-derin), var(--turkuaz-acik));
  transform-origin: bottom;
  transform: scaleY(1);
  transition: height 0.3s ease;
  z-index: -1;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: color-mix(in srgb, var(--turkuaz-acik) 55%, transparent);
}
.service-card:hover::before { height: 100%; opacity: 0.06; }
.service-card .icon-badge {
  width: 54px; height: 54px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--turkuaz-acik) 20%, var(--kirectasi));
  border: 1px solid color-mix(in srgb, var(--turkuaz-derin) 22%, transparent);
  margin-bottom: 18px;
  transition: background 0.25s ease, transform 0.25s ease;
}
.service-card:hover .icon-badge { transform: translateY(-1px) rotate(-3deg); }
.service-card .icon {
  width: 28px; height: 28px;
  color: var(--turkuaz-derin);
}
.service-card h3 { font-size: 1.22rem; margin-bottom: 8px; letter-spacing: -0.01em; }
.service-card p { font-size: 0.94rem; color: var(--mikro); margin-bottom: 14px; }
.service-card .card-cue {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--turkuaz-derin);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.service-card .card-cue svg { width: 15px; height: 15px; transition: transform 0.25s ease; }
.service-card:hover .card-cue svg { transform: translateX(4px); }

/* ==========================================================================
   HİZMETLER — detail blocks as chart plates
   ========================================================================== */
.service-jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 clamp(18px, 4vw, 34px);
}
.service-jump-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--turkuaz-acik) 14%, var(--kagit));
  border: 1px solid color-mix(in srgb, var(--turkuaz-derin) 16%, transparent);
  color: var(--turkuaz-abis);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform 0.18s ease, background 0.2s ease, border-color 0.2s ease;
}
.service-jump-nav a:hover {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--turkuaz-acik) 22%, var(--kagit));
  border-color: color-mix(in srgb, var(--turkuaz-derin) 28%, transparent);
}
.detail-block {
  display: grid;
  gap: clamp(20px, 4vw, 44px);
  align-items: center;
  padding: clamp(32px, 6vw, 56px) 0;
  border-bottom: 1px solid var(--hat);
}
.detail-block:last-child { border-bottom: none; }
@media (min-width: 760px) {
  .detail-block { grid-template-columns: 1.05fr 1fr; }
  .detail-block.reverse .detail-media { order: 2; }
}
.detail-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--hat);
}
.detail-media img {
  width: 100%;
  height: clamp(220px, 40vw, 320px);
  object-fit: cover;
  display: block;
}
.detail-media .plate-tag {
  position: absolute;
  left: 14px; bottom: 14px;
  background: color-mix(in srgb, var(--turkuaz-abis) 78%, transparent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.detail-text h2 { font-size: clamp(1.5rem, 3.6vw, 2rem); }
.detail-text > p { color: var(--mikro); font-size: 1.02rem; }
.fact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 2px;
}
.fact-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: var(--kirectasi-koyu);
  color: var(--turkuaz-abis);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.detail-list { list-style: none; padding: 0; margin: 1.2em 0 0; display: grid; gap: 12px; }
.detail-list li {
  position: relative;
  padding-left: 30px;
  font-size: 0.98rem;
}
.detail-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 20px; height: 20px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(0);
  background: color-mix(in srgb, var(--turkuaz-acik) 26%, var(--kirectasi));
  border: 1.5px solid var(--turkuaz-derin);
}
.detail-list li::after {
  content: "";
  position: absolute;
  left: 6px; top: 8px;
  width: 5px; height: 9px;
  border: solid var(--turkuaz-derin);
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}

.analysis-reports {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--hat);
}
.analysis-reports-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mikro);
  margin: 0 0 10px;
}
.analysis-reports-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.analysis-report-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--turkuaz-derin);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.analysis-report-link:hover,
.analysis-report-link:focus-visible {
  border-bottom-color: var(--turkuaz-derin);
}
.analysis-report-link svg { flex-shrink: 0; opacity: 0.8; }

.cta-band {
  text-align: center;
  padding: clamp(40px, 7vw, 72px) 0;
}
.cta-band h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); margin-bottom: 0.6em; }
.cta-band p { color: var(--mikro); max-width: 44ch; margin: 0 auto 1.6em; }

/* ==========================================================================
   LOKASYONLAR — chart entries
   ========================================================================== */
.locations-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 22px;
  padding: 13px 16px;
  background: color-mix(in srgb, var(--turkuaz-acik) 12%, var(--kagit));
  border: 1px solid color-mix(in srgb, var(--turkuaz-derin) 16%, transparent);
  border-radius: var(--radius-md);
}
.locations-toolbar svg { width: 20px; height: 20px; stroke: var(--turkuaz-derin); flex: none; }
.geoloc-status { font-size: 0.9rem; color: var(--zeytin); margin: 0; }
.location-filters {
  display: flex;
  gap: 8px;
  margin: 0 0 18px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.location-filters::-webkit-scrollbar { display: none; }
.location-filter {
  flex: 0 0 auto;
  min-height: 38px;
  border: 1px solid var(--hat);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  background: var(--kagit);
  color: var(--mikro);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.18s ease;
}
.location-filter:hover {
  color: var(--turkuaz-abis);
  border-color: color-mix(in srgb, var(--turkuaz-derin) 24%, transparent);
  transform: translateY(-1px);
}
.location-filter.is-active {
  color: #fff;
  background: var(--turkuaz-derin);
  border-color: var(--turkuaz-derin);
}

.location-list {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.location-card {
  position: relative;
  background: var(--kagit);
  border: 1px solid var(--hat);
  border-left: 4px solid var(--turkuaz-acik);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.location-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.location-card.is-nearest {
  border-left-color: var(--turkuaz-derin);
  box-shadow: var(--shadow-card-hover);
}
.location-card.status-bakimda { border-left-color: var(--bal); }
.location-card.status-bilgi-yok { border-left-color: var(--durum-bilgi-yok); }

.location-card-main { display: flex; align-items: flex-start; gap: 14px; flex: 1 1 240px; }
.status-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent);
}
.status-dot.aktif { background: var(--durum-aktif); color: var(--durum-aktif); }
.status-dot.bakimda { background: var(--durum-bakim); color: var(--durum-bakim); }
.status-dot.bilgi-yok { background: var(--durum-bilgi-yok); color: var(--durum-bilgi-yok); }

.nearest-flag {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--turkuaz-derin);
  background: color-mix(in srgb, var(--turkuaz-acik) 22%, transparent);
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 5px;
}
.location-name { font-family: var(--font-baslik); font-weight: 500; font-size: 1.16rem; margin-bottom: 2px; letter-spacing: -0.01em; }
.location-address { font-size: 0.9rem; color: var(--mikro); }
.location-meta {
  font-size: 0.8rem;
  color: var(--mikro);
  margin-top: 8px;
  display: flex;
  gap: 8px 14px;
  flex-wrap: wrap;
  align-items: center;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}
.service-pill {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  color: var(--turkuaz-abis);
}
.location-distance {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--turkuaz-derin);
  background: color-mix(in srgb, var(--turkuaz-acik) 16%, transparent);
  padding: 2px 9px;
  border-radius: 999px;
}
.location-actions { flex-shrink: 0; }
.location-card .btn { padding: 11px 20px; min-height: 44px; font-size: 0.92rem; }

.location-skeleton,
.location-empty { color: var(--mikro); }

/* ==========================================================================
   İLETİŞİM
   ========================================================================== */
.contact-grid { display: grid; gap: clamp(20px, 4vw, 36px); }
@media (min-width: 820px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; align-items: start; } }

.contact-aside .whatsapp-card {
  background: linear-gradient(165deg, #147a3c 0%, #1FA855 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-card);
}
.whatsapp-card h2 { color: #fff; font-size: 1.35rem; margin-bottom: 0.4em; }
.whatsapp-card p { color: rgba(255,255,255,0.9); font-size: 0.95rem; margin-bottom: 1.3em; }
.whatsapp-card .btn-whatsapp { background: #fff; color: #147a3c; box-shadow: none; }
.whatsapp-card .btn-whatsapp:hover { background: #f0fff5; }
.support-note {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.18);
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.78);
}

.form-card {
  background: var(--kagit);
  border: 1px solid var(--hat);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-card);
}
.form-card-head {
  margin-bottom: 20px;
}
.form-card-head .eyebrow {
  margin-bottom: 10px;
}
.form-card-head h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin: 0;
}
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 7px; font-size: 0.9rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--hat);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  color: var(--zeytin);
  background: var(--kirectasi);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  background: var(--kagit);
  border-color: var(--turkuaz-derin);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--turkuaz-acik) 35%, transparent);
}
.form-success {
  display: none;
  background: #E7F5EC;
  border: 1px solid var(--durum-aktif);
  color: #1e6b3f;
  padding: 16px;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
}
.form-success.visible { display: block; }
.form-error {
  display: none;
  background: color-mix(in srgb, var(--durum-ariza) 10%, var(--kagit));
  border: 1px solid color-mix(in srgb, var(--durum-ariza) 48%, transparent);
  color: #8F2626;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  font-weight: 700;
}
.form-error.visible { display: block; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  position: relative;
  background: var(--turkuaz-gece);
  color: #D8E6E4;
  padding: clamp(40px, 7vw, 60px) 0 32px;
  margin-top: clamp(40px, 8vw, 80px);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(110% 60% at 85% -10%, rgba(95, 201, 192, 0.16) 0, transparent 60%);
  pointer-events: none;
}
.footer-inner { position: relative; display: grid; gap: 24px; }
@media (min-width: 680px) { .footer-inner { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-baslik); font-size: 1.2rem; color: #fff; margin-bottom: 10px; }
.footer-brand .brand-mark { color: var(--turkuaz-acik); }
.footer-tagline { color: #9FB9B6; font-size: 0.92rem; max-width: 40ch; margin: 0 0 16px; }
.site-footer a { color: #EAF6F4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-phone {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 1.1rem; color: #fff; margin-bottom: 6px;
}
.footer-phone svg { width: 18px; height: 18px; stroke: var(--turkuaz-acik); }
.footer-col-title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--turkuaz-acik); margin-bottom: 12px; }
.footer-links {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a { font-size: 0.95rem; }
.footer-copy { position: relative; font-size: 0.8rem; color: #7C9996; margin: 26px 0 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); }

/* ==========================================================================
   WhatsApp FAB — floating, above the bottom nav
   ========================================================================== */
.wa-fab {
  position: fixed;
  right: 16px;
  bottom: calc(var(--nav-height) + 16px + env(safe-area-inset-bottom));
  z-index: 95;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25D366;
  color: #fff;
  box-shadow: 0 12px 28px -8px rgba(18, 140, 70, 0.6), 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}
.wa-fab::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: wa-pulse 2.6s ease-out infinite;
}
.wa-fab svg { width: 32px; height: 32px; display: block; }
.wa-fab:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 18px 34px -8px rgba(18, 140, 70, 0.72), 0 2px 6px rgba(0, 0, 0, 0.15); }
.wa-fab:active { transform: scale(0.97); }
@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
@media (min-width: 760px) {
  .wa-fab { right: 24px; bottom: 24px; width: 62px; height: 62px; }
  .wa-fab svg { width: 34px; height: 34px; }
}

/* ---- Utilities ---- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---- Motion preferences ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ==========================================================================
   SECONDARY STATUS HEADER (WIDE CARDS)
   ========================================================================== */
.secondary-status-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 0;
  z-index: 10;
}
.secondary-status-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.secondary-status-title span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.secondary-status-title span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--durum-aktif);
  box-shadow: 0 0 0 0 rgba(46, 158, 91, 0.5);
  animation: live-dot-pulse 1.8s ease-out infinite;
}
.status-jump-cue {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: none;
  white-space: nowrap;
  padding: 4px 8px 4px 0;
}
.status-jump-cue svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: cue-arrow-bounce 1.2s ease-in-out infinite;
}
html.ios-webkit .status-jump-cue svg {
  animation: none;
  transform: none;
}
.secondary-status-header .status-strip-viewport {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.secondary-status-header .status-strip-track {
  display: contents;
}
.secondary-status-header .secondary-status-title {
  overflow: visible;
  padding-bottom: 8px;
}
.secondary-status-header .status-strip-viewport::-webkit-scrollbar {
  height: 4px;
}
.secondary-status-header .status-strip-viewport::-webkit-scrollbar-thumb {
  background: var(--hat);
  border-radius: 4px;
}
@keyframes live-dot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 158, 91, 0.48); }
  72% { box-shadow: 0 0 0 8px rgba(46, 158, 91, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 158, 91, 0); }
}
@keyframes status-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(-1 * var(--status-marquee-distance, 860px)), 0, 0); }
}
@keyframes cue-arrow-bounce {
  0%, 100% { transform: translateY(-1px); }
  50% { transform: translateY(3px); }
}
@keyframes target-ring-pulse {
  0% {
    box-shadow:
      0 0 0 4px rgba(14, 124, 134, 0.56),
      0 0 0 4px rgba(255, 255, 255, 0.32),
      0 12px 28px -12px rgba(7, 42, 48, 0.78);
  }
  72% {
    box-shadow:
      0 0 0 4px rgba(14, 124, 134, 0.50),
      0 0 0 18px rgba(255, 255, 255, 0),
      0 12px 28px -12px rgba(7, 42, 48, 0.78);
  }
  100% {
    box-shadow:
      0 0 0 4px rgba(14, 124, 134, 0.56),
      0 0 0 4px rgba(255, 255, 255, 0),
      0 12px 28px -12px rgba(7, 42, 48, 0.78);
  }
}
.machine-card-wide {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--kagit);
  border: 1px solid var(--hat);
  border-radius: var(--radius-md);
  padding: 8px 10px 8px 8px;
  flex: 1 0 180px;
  max-width: 210px;
  min-width: 0;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--zeytin);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.machine-card-wide:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}
.machine-card-wide:focus-visible {
  outline: 2px solid var(--turkuaz-derin);
  outline-offset: 2px;
}
.machine-card-wide .wide-photo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--kirectasi);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.machine-card-wide .wide-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
}
.machine-card-wide .wide-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  overflow: hidden;
}
.machine-card-wide .machine-name {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--zeytin);
  height: 2.5em; /* 2 lines exactly */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 759.98px) {
  .container { padding: 0 18px; }

  .site-header .container { height: 58px; }
  .brand { font-size: 1.08rem; }
  .brand-mark { width: 42px; height: 42px; }
  .site-header-featured .brand {
    min-width: 0;
  }
  .brand-tagline {
    max-width: 22ch;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .inner-hero {
    padding: 22px 18px;
    border-radius: var(--radius-md);
  }
  .inner-hero .section-title {
    max-width: 13ch;
  }
  .inner-hero-panel {
    padding: 14px;
  }
  .inner-hero-panel span {
    font-size: 0.82rem;
  }

  .bottom-nav {
    height: calc(var(--nav-height) + env(safe-area-inset-bottom));
    padding: 5px 6px env(safe-area-inset-bottom);
  }
  .bottom-nav a {
    min-width: 0;
    border-radius: var(--radius-sm);
    font-size: 0.66rem;
    line-height: 1;
  }
  .bottom-nav a[aria-current="page"] {
    background: rgba(95, 201, 192, 0.18);
    background: color-mix(in srgb, var(--turkuaz-acik) 18%, var(--kagit));
  }

  .secondary-status-header {
    padding: 10px 0 9px;
    background: linear-gradient(180deg, rgba(7, 42, 48, 0.36), rgba(7, 42, 48, 0.06));
  }
  .secondary-status-title {
    padding-bottom: 7px;
    font-size: 0.66rem;
  }
  .secondary-status-header .secondary-status-title {
    padding-right: 10px;
    padding-bottom: 7px;
  }
  .secondary-status-header .status-strip-viewport {
    display: block;
    padding-left: 18px;
    padding-right: 18px;
    scroll-padding-left: 18px;
    scroll-padding-right: 18px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  html.ios-webkit .secondary-status-header .status-strip-viewport {
    scroll-snap-type: none;
  }
  .secondary-status-header .status-strip-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
    width: max-content;
    min-width: 100%;
    overflow: visible;
  }
  html.status-marquee-ok .secondary-status-header .status-strip-track {
    --status-marquee-distance: 860px;
    animation: status-marquee 28s linear infinite;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
  }
  html.status-marquee-ok .secondary-status-header .status-strip-track:hover,
  html.status-marquee-ok .secondary-status-header .status-strip-track:focus-within,
  html.status-marquee-ok .secondary-status-header .status-strip-track.is-paused {
    animation-play-state: paused;
  }
  .secondary-status-header .status-strip-viewport::-webkit-scrollbar { display: none; }
  .machine-card-wide {
    flex: 0 0 162px;
    max-width: 178px;
    padding: 7px 9px 7px 7px;
    border-radius: var(--radius-sm);
    scroll-snap-align: start;
  }
  .machine-card-wide .wide-photo {
    width: 40px;
    height: 40px;
  }
  .machine-card-wide .machine-name {
    font-size: 0.72rem;
  }
  .machine-card-wide .machine-badge {
    padding: 3px 7px;
    font-size: 0.62rem;
  }

  .section { padding: 38px 0 54px; }
  .section.tight { padding-top: 0; }
  .section-head { margin-bottom: 24px; }
  .section-title {
    font-size: clamp(1.8rem, 8vw, 2.2rem);
    text-wrap: balance;
  }
  .section-lead {
    font-size: 0.98rem;
    line-height: 1.55;
  }
  .eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    margin-bottom: 12px;
  }
  .eyebrow::before { width: 18px; }

  .service-cards {
    gap: 12px;
  }
  .service-card {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 2px 14px;
    align-items: start;
    padding: 18px 16px;
    border-radius: var(--radius-md);
  }
  .service-card .icon-badge {
    grid-row: 1 / 4;
    width: 46px;
    height: 46px;
    margin: 0;
    border-radius: var(--radius-sm);
  }
  .service-card .icon {
    width: 24px;
    height: 24px;
  }
  .service-card h3 {
    font-size: 1.06rem;
    margin: 0;
  }
  .service-card p {
    font-size: 0.87rem;
    line-height: 1.45;
    margin: 0 0 4px;
  }

  .detail-block {
    padding: 28px 0;
    gap: 18px;
  }
  .detail-media {
    border-radius: var(--radius-md);
  }
  .detail-media img {
    height: 210px;
  }
  .detail-text h2 {
    font-size: 1.5rem;
  }
  .fact-chips {
    gap: 7px;
    margin-top: 14px;
  }
  .fact-chips span {
    font-size: 0.7rem;
  }

  .locations-toolbar {
    align-items: flex-start;
    padding: 12px 14px;
    margin-bottom: 14px;
  }
  .location-filters {
    margin-bottom: 14px;
  }
  .location-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border-radius: var(--radius-md);
  }
  .location-card-main {
    width: 100%;
    flex-basis: auto;
  }
  .location-name {
    font-size: 1.08rem;
    line-height: 1.18;
  }
  .location-address {
    font-size: 0.86rem;
    line-height: 1.45;
  }
  .location-actions,
  .location-actions .btn {
    width: 100%;
  }

  .contact-grid {
    gap: 14px;
  }
  .contact-aside .whatsapp-card,
  .form-card {
    padding: 20px 18px;
    border-radius: var(--radius-md);
  }
  .whatsapp-card h2 {
    font-size: 1.22rem;
  }
  .form-card-head {
    margin-bottom: 16px;
  }
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
  }

  .wa-fab {
    width: 52px;
    height: 52px;
    right: 14px;
    bottom: calc(var(--nav-height) + 14px + env(safe-area-inset-bottom));
  }
  .wa-fab svg {
    width: 29px;
    height: 29px;
  }
}
