/* Patiler Veteriner — Site ek stilleri · v1.0
 * Tailwind CDN'in karşılamadığı küçük parçalar: açılış animasyonları, pencereler,
 * görüntüleyici, mobil menü, form yükleniyor göstergesi. */

html { -webkit-tap-highlight-color: transparent; }
body { overflow-x: hidden; }
::selection { background: #D5EFEA; color: #0A2522; }
:focus-visible { outline: 3px solid #46A898; outline-offset: 2px; }

/* Kaydırınca beliren öğeler (JS kapalıysa hep görünür) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Yüzen hero kartları */
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.float-slow { animation: floatY 6s ease-in-out infinite; }

/* Hemen Ara butonu halka efekti */
.fab-call::before { content: ""; position: absolute; inset: 0; border-radius: 9999px; background: #F45B3C; z-index: -1; animation: ring 2.4s ease-out infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: .55; } 80%,100% { transform: scale(1.65); opacity: 0; } }

/* Başlık gölgesi (kaydırınca) */
#site-header.is-scrolled { box-shadow: 0 6px 24px -14px rgba(16,32,30,.35); }

/* Mobil menü */
#mobile-menu.is-open { display: block; }
#mobile-menu .mobile-panel { transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.7,.2,1); }
#mobile-menu.is-visible .mobile-panel { transform: none; }
body.no-scroll { overflow: hidden; }

/* Hizmet detay pencereleri */
.site-dialog { max-height: calc(100dvh - 2rem); overflow: auto; border: 0; margin: auto; }
.site-dialog::backdrop { background: rgba(10,37,34,.6); backdrop-filter: blur(4px); }
.site-dialog[open] { animation: dialogIn .25s cubic-bezier(.2,.7,.2,1); }
@keyframes dialogIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

/* Galeri sekmeleri */
.gallery-tab { background: #fff; color: rgba(16,32,30,.7); box-shadow: inset 0 0 0 1px rgba(18,59,55,.1); transition: .2s; }
.gallery-tab:hover { background: #EEF8F6; }
.gallery-tab.is-active { background: #195A51; color: #fff; box-shadow: none; }
[data-gallery] figure.is-hidden { display: none; }

/* Tam ekran görüntüleyici */
.lightbox { position: fixed; inset: 0; z-index: 70; display: none; align-items: center; justify-content: center; background: rgba(6,20,18,.94); padding: 3.5rem 1rem; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1100px, 100%); max-height: 100%; border-radius: 1rem; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-cap { position: absolute; left: 0; right: 0; bottom: calc(1rem + env(safe-area-inset-bottom)); text-align: center; color: #fff; font-weight: 600; padding: 0 4rem; }
.lightbox-btn { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 9999px; background: rgba(255,255,255,.12); color: #fff; transition: background .2s; }
.lightbox-btn:hover { background: rgba(255,255,255,.25); }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* Form */
.spinner { width: 18px; height: 18px; border-radius: 9999px; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.is-invalid { border-color: #F45B3C !important; box-shadow: 0 0 0 3px rgba(244,91,60,.15) !important; }
input[type="date"] { min-height: 50px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  #site-header, footer, .fab, #mobile-menu { display: none !important; }
}
