/* ============================================
   Vet Anka Veteriner Kliniği — Ana Stil Dosyası
   ============================================ */

:root {
  --bg: #f4faf8;
  --bg-soft: #ffffff;
  --bg-card: #ffffff;
  --teal: #0f7d73;
  --teal-dark: #0b5f57;
  --teal-light: #14a99b;
  --accent: #ff7a59;
  --accent-dark: #f2603f;
  --ink: #16302c;
  --text: #2c3e3b;
  --text-muted: #5f7370;
  --border: #dcece8;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 125, 115, 0.10);
  --shadow-lg: 0 20px 50px rgba(15, 125, 115, 0.16);
  --font-display: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--teal);
  text-decoration: none;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.2px;
}

.brand .logo {
  font-size: 1.6rem;
  line-height: 1;
}

.brand span {
  color: var(--teal);
}

.nav-links {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--teal);
}

.nav-cta {
  background: var(--teal);
  color: #fff !important;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(15, 125, 115, 0.25);
}

.nav-cta:hover {
  background: var(--teal-dark);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  font-size: 1.7rem;
  cursor: pointer;
  line-height: 1;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 5.5rem 0 5rem;
  /* Animasyonlu teal gradient (mobil/video-kapalı için de zemin) */
  background: linear-gradient(125deg, #0b5f57, #14a99b, #0f7d73, #0b5f57);
  background-size: 300% 300%;
  animation: heroGradient 16s ease infinite;
  overflow: hidden;
}

@keyframes heroGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.9;
  pointer-events: none;
}

/* Beyaz metnin okunması için koyu-teal degrade örtü (video net kalır) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg,
    rgba(9, 58, 53, 0.86) 0%,
    rgba(11, 95, 87, 0.62) 45%,
    rgba(11, 95, 87, 0.32) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  max-width: 760px;
  gap: 3rem;
  align-items: center;
}

/* Video hero'da sağdaki foto kartı gizlenir; video artık görsel. */
.hero-visual { display: none; }

/* Hero metinleri beyaz */
.hero h1,
.hero-lead,
.hero-trust strong {
  color: #ffffff;
}
.hero-lead { color: rgba(255, 255, 255, 0.92); }
.hero-trust small { color: rgba(255, 255, 255, 0.78); }
.hero h1 em {
  background: linear-gradient(100deg, #ffd7a8, #ff9f7a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #ff9f7a;
}
.hero-eyebrow {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(4px);
}
.hero-trust {
  border-top-color: rgba(255, 255, 255, 0.22);
}

/* Hero butonları koyu zeminde kontrastlı */
.hero .btn-primary {
  background: #ffffff;
  color: var(--teal-dark);
}
.hero .btn-outline {
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
}
.hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* Mobilde ve hareket-azalt tercihinde arka plan videosunu kapat (performans/erişilebilirlik) */
@media (prefers-reduced-motion: reduce) {
  .hero-bg { display: none; }
  .hero { animation: none; }
}
@media (max-width: 640px) {
  .hero-bg { display: none; }
}

.hero-eyebrow {
  display: inline-block;
  color: var(--teal-dark);
  background: rgba(20, 169, 155, 0.12);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: var(--ink);
  line-height: 1.12;
  margin-bottom: 1.1rem;
  font-weight: 700;
}

.hero h1 em {
  color: var(--teal);
  font-style: normal;
}

.hero-lead {
  max-width: 520px;
  color: var(--text-muted);
  font-size: 1.08rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.97rem;
  font-family: var(--font-body);
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
}

/* Üzerine gelince geçen ışık parıltısı */
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 55%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn:hover::after {
  left: 150%;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 8px 20px rgba(15, 125, 115, 0.28);
}

.btn-primary:hover {
  background: var(--teal-dark);
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.28);
}

.btn-whatsapp:hover {
  background: #1eb457;
}

.btn-outline {
  border: 1.5px solid var(--teal);
  color: var(--teal);
  background: transparent;
}

.btn-outline:hover {
  background: var(--teal);
  color: #fff;
}

.hero-trust {
  display: flex;
  gap: 2rem;
  margin-top: 2.4rem;
  flex-wrap: wrap;
}

.hero-trust div {
  line-height: 1.3;
}

.hero-trust strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--ink);
}

.hero-trust small {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* Hero görsel kartı */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 40%, var(--teal-light), var(--teal-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.18), transparent 45%);
}

.hero-rating-chip {
  position: absolute;
  bottom: 1.1rem;
  left: 1.1rem;
  right: 1.1rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  z-index: 2;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.hero-rating-chip strong {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1.15rem;
}

.hero-rating-chip .stars {
  color: #f5a623;
  font-size: 0.9rem;
}

.hero-rating-chip small {
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* ---------- Sections ---------- */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--bg-soft);
}

.section-head {
  text-align: center;
  margin-bottom: 2.8rem;
}

.section-head .eyebrow {
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.74rem;
  font-weight: 700;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  color: var(--ink);
  margin-top: 0.4rem;
  font-weight: 700;
}

.section-head p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0.8rem auto 0;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.4rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card .icon {
  transition: transform 0.25s ease;
}

.card:hover .icon {
  transform: scale(1.15) rotate(-5deg);
}

.card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(20, 169, 155, 0.12);
  font-size: 1.9rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1.18rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.card p {
  color: var(--text-muted);
  font-size: 0.93rem;
}

/* ---------- Hizmet listesi ---------- */
.service-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: box-shadow 0.2s;
}

.service-group:hover {
  box-shadow: var(--shadow);
}

.service-group h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.service-group ul {
  list-style: none;
}

.service-group li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.6rem;
  color: var(--text);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}

.service-group li:last-child {
  border-bottom: none;
}

.service-group li::before {
  content: "🐾";
  position: absolute;
  left: 0;
  font-size: 0.8rem;
}

/* ---------- Yorumlar ---------- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}

.review {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.review .stars {
  color: #f5a623;
  font-size: 1rem;
}

.review p {
  color: var(--text);
  font-size: 0.95rem;
  flex-grow: 1;
}

.review .reviewer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.review .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teal-light);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-display);
}

.review .reviewer strong {
  display: block;
  color: var(--ink);
  font-size: 0.92rem;
}

.review .reviewer small {
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* ---------- CTA şeridi ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--teal), var(--teal-dark));
  border-radius: 24px;
  padding: 3rem 2rem;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin-bottom: 0.7rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 500px;
  margin: 0 auto 1.8rem;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--teal-dark);
}

.cta-band .btn-primary:hover {
  background: #f0f0f0;
}

.cta-band .hero-actions {
  justify-content: center;
}

/* ---------- İletişim ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.contact-card h3 {
  font-family: var(--font-display);
  color: var(--ink);
  margin-bottom: 1.2rem;
  font-weight: 600;
}

.contact-line {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
  font-size: 0.96rem;
  align-items: baseline;
}

.contact-line .icon {
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-line a {
  font-weight: 600;
}

.contact-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 440px;
  border: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.8rem 0 2rem;
  background: var(--bg-soft);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.footer-inner .brand {
  margin-bottom: 0.7rem;
}

.footer-col h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

.footer-col p,
.footer-col a {
  color: var(--text-muted);
  font-size: 0.88rem;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-col a:hover {
  color: var(--teal);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  padding-top: 1.4rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ---------- Yüzen WhatsApp butonu ---------- */
.wa-float {
  position: fixed;
  bottom: 1.3rem;
  right: 1.3rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  z-index: 120;
  transition: transform 0.2s;
}

.wa-float:hover {
  transform: scale(1.08);
}

/* ---------- Reveal animasyonu (yönlü + kademeli) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-zoom { transform: scale(0.92); }

.reveal.in {
  opacity: 1;
  transform: none;
}

/* Izgara içindeki kartlar sırayla belirsin (stagger) */
.card-grid .reveal:nth-child(2),
.service-groups .reveal:nth-child(2) { transition-delay: 0.08s; }
.card-grid .reveal:nth-child(3),
.service-groups .reveal:nth-child(3) { transition-delay: 0.16s; }
.card-grid .reveal:nth-child(4),
.service-groups .reveal:nth-child(4) { transition-delay: 0.24s; }
.card-grid .reveal:nth-child(5),
.service-groups .reveal:nth-child(5) { transition-delay: 0.32s; }
.card-grid .reveal:nth-child(6),
.service-groups .reveal:nth-child(6) { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Hero fotoğraf ---------- */
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* ---------- Galeri / Medya ---------- */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.3rem;
}

.media-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.media-item:hover {
  transform: translateY(-4px);
}

.media-item img,
.media-item video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #eef5f3;
}

.media-embed {
  position: relative;
  aspect-ratio: 16 / 9;
}

.media-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.media-cap {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}

.gallery-more {
  text-align: center;
  margin-top: 2.4rem;
}

/* ---------- Mobil dokunmatik carousel (kütüphanesiz, scroll-snap) ---------- */
@media (max-width: 640px) {
  .review-grid,
  #gallery-preview {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding-bottom: 0.9rem;
    scroll-padding-left: 1rem;
  }
  .review-grid > *,
  #gallery-preview > * {
    flex: 0 0 84%;
    scroll-snap-align: center;
  }
  .review-grid::-webkit-scrollbar,
  #gallery-preview::-webkit-scrollbar { height: 6px; }
  .review-grid::-webkit-scrollbar-thumb,
  #gallery-preview::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 999px;
  }
}

/* ---------- Sonsuz kayan şerit (marquee) ---------- */
.marquee {
  overflow: hidden;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.95rem 0;
}
.marquee-track {
  display: flex;
  gap: 2.6rem;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--teal-dark);
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- Lenis smooth scroll (önerilen CSS) ---------- */
html.lenis,
html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .hero-visual {
    max-width: 340px;
    margin: 0 auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1.2rem 0;
    gap: 1rem;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .section {
    padding: 3.2rem 0;
  }

  .hero {
    padding: 3rem 0 3rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
}
