/* ===========================================================================
   via35 media — site-polish.css
   Premium cila katmanı. tailwind.css'TEN SONRA yüklenir.
   Saf CSS — Tailwind purge/rebuild gerektirmez. Yapı/işlev değişmez,
   yalnızca görsel kalite (gölge, elevation, buton/badge, focus, scrollbar,
   tipografi mikro-ayarları) yükseltilir.
   =========================================================================== */

:root {
  --v35-ink: #0b1620;
  --v35-accent: #1c648e;
  --v35-accent-bright: #2a9fd6;
  --v35-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --v35-shadow-sm: 0 2px 8px -2px rgba(11, 22, 32, 0.08), 0 4px 16px -4px rgba(11, 22, 32, 0.06);
  --v35-shadow-md: 0 10px 30px -10px rgba(11, 22, 32, 0.18), 0 4px 12px -6px rgba(11, 22, 32, 0.10);
  --v35-shadow-lg: 0 28px 60px -22px rgba(11, 22, 32, 0.30), 0 10px 24px -14px rgba(11, 22, 32, 0.16);
}

/* --- Genel render kalitesi -------------------------------------------------- */
html { -webkit-text-size-adjust: 100%; }
body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Sabit nav'ın altına ankraj kayması olmasın */
html { scroll-padding-top: 110px; }

/* Başlıklarda daha rafine kerning */
.font-headline-xl, .text-headline-xl,
.font-headline-lg, .text-headline-lg,
.font-headline-md, .text-headline-md {
  text-wrap: balance;
}

/* --- Erişilebilir + şık focus halkası -------------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--v35-accent);
  outline-offset: 3px;
  border-radius: 8px;
}

/* --- İnce, marka renkli scrollbar ------------------------------------------ */
@media (pointer: fine) {
  * { scrollbar-width: thin; scrollbar-color: #c3ccd6 transparent; }
  *::-webkit-scrollbar { width: 10px; height: 10px; }
  *::-webkit-scrollbar-track { background: transparent; }
  *::-webkit-scrollbar-thumb {
    background: #cdd5de;
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: content-box;
  }
  *::-webkit-scrollbar-thumb:hover { background: #aab6c2; background-clip: content-box; }
}

/* --- Floating nav: scroll durumunda daha belirgin cam etkisi ---------------- */
nav.fixed {
  transition: box-shadow 0.4s var(--v35-ease), background-color 0.4s var(--v35-ease),
              border-color 0.4s var(--v35-ease);
  will-change: box-shadow;
}
nav.fixed.is-scrolled {
  background-color: rgba(255, 255, 255, 0.82) !important;
  box-shadow: 0 10px 34px -12px rgba(11, 22, 32, 0.22), 0 2px 8px -4px rgba(11, 22, 32, 0.10) !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
}

/* Nav linklerinde zarif alt çizgi animasyonu (Manrope/Newsreader linkler) */
nav.fixed a[href^="#"]:not([aria-label]):not(.btn-primary),
nav.fixed a[href*=".html#"]:not(.btn-primary) {
  position: relative;
}
nav.fixed a[href^="#"]:not([aria-label]):not(.btn-primary)::after,
nav.fixed a[href*=".html#"]:not(.btn-primary)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s var(--v35-ease);
  opacity: 0.7;
}
nav.fixed a[href^="#"]:not([aria-label]):not(.btn-primary):hover::after,
nav.fixed a[href*=".html#"]:not(.btn-primary):hover::after {
  transform: scaleX(1);
}

/* --- Butonlar: daha derin, yumuşak gölge + hover parlaması ------------------ */
.btn-primary {
  transition: transform 0.25s var(--v35-ease), box-shadow 0.3s var(--v35-ease),
              filter 0.3s var(--v35-ease);
}
.btn-primary.bg-primary,
a.btn-primary.bg-primary {
  box-shadow: 0 12px 28px -12px rgba(11, 22, 32, 0.55), 0 4px 10px -6px rgba(11, 22, 32, 0.35);
}
.btn-primary.bg-primary:hover {
  box-shadow: 0 18px 40px -14px rgba(11, 22, 32, 0.62), 0 6px 14px -6px rgba(11, 22, 32, 0.40);
  filter: brightness(1.06);
}
.btn-primary.bg-white:hover { box-shadow: 0 18px 40px -16px rgba(11, 22, 32, 0.35); }

/* --- Badge'ler: ince kenar + hafif derinlik -------------------------------- */
.badge-text {
  border: 1px solid rgba(28, 100, 142, 0.18);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
  backdrop-filter: saturate(1.1);
}

/* ===========================================================================
   KARTLAR — bento hizmet kartları + hotel feature kartları için elevation
   =========================================================================== */

/* Hizmetler bento grid kartları (görsel + overlay) */
#leistungen .grid > div {
  transition: transform 0.45s var(--v35-ease), box-shadow 0.45s var(--v35-ease);
  box-shadow: var(--v35-shadow-sm);
  will-change: transform;
}
#leistungen .grid > div:hover {
  transform: translateY(-7px);
  box-shadow: var(--v35-shadow-lg);
}

/* Hotel Solutions feature kartları (açık zemin) */
#hotel-solutions .grid > div {
  transition: transform 0.4s var(--v35-ease), box-shadow 0.4s var(--v35-ease),
              border-color 0.4s var(--v35-ease);
}
#hotel-solutions .grid > div:hover {
  transform: translateY(-6px);
  box-shadow: var(--v35-shadow-md);
  border-color: rgba(28, 100, 142, 0.30);
}

/* Genel yardımcı: elden eklenen .v35-lift kartları */
.v35-lift {
  transition: transform 0.4s var(--v35-ease), box-shadow 0.4s var(--v35-ease);
}
.v35-lift:hover {
  transform: translateY(-6px);
  box-shadow: var(--v35-shadow-md);
}

/* --- Ürün alt sayfaları: özellik listesi satırlarına hafif hover ------------ */
.feature-row, .feature-item {
  transition: transform 0.3s var(--v35-ease), color 0.3s var(--v35-ease);
}
.feature-row:hover, .feature-item:hover { transform: translateX(4px); }

/* --- Form input/textarea: odak ve hover cilası ----------------------------- */
input:not([type="checkbox"]):not([type="radio"]),
textarea,
select {
  transition: border-color 0.25s var(--v35-ease), box-shadow 0.25s var(--v35-ease),
              background-color 0.25s var(--v35-ease);
}
input:not([type="checkbox"]):not([type="radio"]):focus,
textarea:focus,
select:focus {
  box-shadow: 0 0 0 4px rgba(28, 100, 142, 0.12);
}

/* --- Görsel kartlarında ince iç kenar (premium dokunuş) -------------------- */
#leistungen .grid > div::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  pointer-events: none;
  z-index: 5;
}

/* --- Step-form seçenek kutuları: tıklanabilir olduğu net belli olsun ------- */
/* tailwind.css'ten SONRA yüklendiği için base border-color burada kazanır;
   hover (:hover daha yüksek özgüllük) secondary'ye döner; seçili = JS inline mavi. */
.demo-option,
.angebot-option {
  border-color: #cbd3db;
  box-shadow: 0 1px 2px rgba(11, 22, 32, 0.05);
  transition: border-color 0.18s var(--v35-ease), box-shadow 0.25s var(--v35-ease),
              background-color 0.18s var(--v35-ease), transform 0.18s var(--v35-ease);
}
.demo-option:hover,
.angebot-option:hover {
  box-shadow: 0 8px 18px -8px rgba(28, 100, 142, 0.28);
}

/* ===========================================================================
   MOBİL NAV (hamburger) — md altı; floating pill'in altında cam panel
   =========================================================================== */
.v35-mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 999px;
  color: #27272a;
  background: transparent;
  transition: background-color 0.18s var(--v35-ease);
}
.v35-mobile-toggle:hover { background: rgba(0, 0, 0, 0.06); }
.v35-mobile-toggle .material-symbols-outlined { font-size: 26px; }

.v35-mobile-menu {
  position: absolute;
  top: 100%; left: 0; right: 0;
  margin-top: 12px;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.22s var(--v35-ease), transform 0.22s var(--v35-ease);
  z-index: 60;
}
.v35-mobile-menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
.v35-mobile-menu-inner {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  box-shadow: 0 20px 54px -18px rgba(11, 22, 32, 0.34), 0 4px 12px -6px rgba(11, 22, 32, 0.12);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.v35-mobile-link {
  font-family: 'Manrope', sans-serif;
  font-size: 16px; font-weight: 600;
  color: #3f3f46;
  padding: 13px 16px;
  border-radius: 14px;
  text-decoration: none;
  transition: background-color 0.16s var(--v35-ease), color 0.16s var(--v35-ease);
}
.v35-mobile-link:hover, .v35-mobile-link:active {
  background: rgba(28, 100, 142, 0.09);
  color: #18181b;
}
.v35-mobile-cta {
  margin-top: 8px;
  text-align: center;
  background: #000; color: #fff;
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 15px;
  letter-spacing: 0.02em;
  padding: 14px 16px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s var(--v35-ease), filter 0.2s var(--v35-ease);
}
.v35-mobile-cta:hover { filter: brightness(1.08); }
.v35-mobile-cta:active { transform: scale(0.98); }

/* Masaüstünde mobil öğeleri gizle */
@media (min-width: 768px) {
  .v35-mobile-toggle, .v35-mobile-menu { display: none !important; }
}

/* --- reveal.js gizleme durumu için kibar geçiş ----------------------------- */
[data-reveal], [data-reveal-item] { backface-visibility: hidden; }

/* --- Hareket azaltma tercihi: her şey sabit -------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  #leistungen .grid > div:hover,
  #hotel-solutions .grid > div:hover,
  .v35-lift:hover { transform: none; }
}
