/* =============================================================
   Okyanus Petshop — Site Styles
   Tüm değerler tokens.css'ten gelir. Bkz: BRAND_THEME.md
   ============================================================= */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: var(--leading-normal);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: var(--weight-bold); line-height: var(--leading-tight); margin: 0; color: var(--text); }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ---------- Buttons ---------- */
.btn {
  --_pad-y: 14px; --_pad-x: 28px;
  position: relative;
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-body); font-weight: var(--weight-bold); font-size: var(--text-base);
  padding: var(--_pad-y) var(--_pad-x);
  border: 0; border-radius: var(--radius-full);
  cursor: pointer; overflow: visible;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast), box-shadow var(--dur-base);
}
.btn-sm { --_pad-y: 10px; --_pad-x: 20px; font-size: var(--text-sm); }

.btn-action { background: var(--action); color: #fff; box-shadow: var(--shadow-coral); }
.btn-action:hover { background: var(--action-hover); transform: translateY(1px) scale(.99); }
.btn-action:active { transform: translateY(2px) scale(.98); }

.btn-ghost { background: transparent; color: var(--brand-strong); box-shadow: inset 0 0 0 1.5px var(--brand); }
.btn-ghost:hover { background: rgba(27,155,216,.10); }

.btn:focus-visible { outline: none; box-shadow: var(--ring); }

/* imza: butona hover'da baloncuk yükselişi */
.btn .bub {
  position: absolute; bottom: 8px; width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,.85); opacity: 0; pointer-events: none;
}
.btn:hover .bub { animation: rise 1.15s var(--ease-out) infinite; }
.btn .bub:nth-child(2) { left: 32%; }
.btn .bub:nth-child(3) { left: 52%; width: 6px; height: 6px; animation-delay: .25s; }
.btn .bub:nth-child(4) { left: 72%; animation-delay: .5s; }
@keyframes rise {
  0%   { opacity: 0; transform: translateY(0) scale(.6); }
  25%  { opacity: .9; }
  100% { opacity: 0; transform: translateY(-42px) scale(1); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(234,247,253,.82);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: var(--space-5); min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: var(--space-3); }
.brand-mark { width: 52px; height: 52px; object-fit: contain; }
.brand-name {
  font-family: var(--font-display); font-weight: var(--weight-bold);
  font-size: 1.35rem; line-height: 1; color: var(--brand-strong); letter-spacing: -.01em;
}
.brand-name em {
  display: block; font-style: normal; font-weight: var(--weight-medium);
  font-size: .48em; letter-spacing: .28em; color: var(--brand); margin-top: 2px;
}
.nav { margin-left: auto; display: flex; gap: var(--space-6); }
.nav a {
  font-weight: var(--weight-bold); color: var(--text); font-size: var(--text-base);
  padding: 6px 2px; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--action); border-radius: 2px; transition: right var(--dur-base) var(--ease-out);
}
.nav a:hover::after { right: 0; }
.nav-cta { flex-shrink: 0; }
@media (max-width: 720px) {
  .nav { display: none; }
  .brand-mark { width: 44px; height: 44px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--color-sky) 0%, var(--color-wave) 52%, var(--color-sea) 100%);
  color: #fff;
  padding: clamp(3rem, 2rem + 6vw, 6rem) 0 0;
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center;
  gap: var(--space-8); padding-bottom: clamp(4rem, 3rem + 6vw, 7rem);
}
.eyebrow {
  display: inline-block; font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wide); text-transform: uppercase;
  font-size: var(--text-sm); color: rgba(255,255,255,.9); margin-bottom: var(--space-3);
}
.hero-title {
  color: #fff; font-size: var(--text-3xl); letter-spacing: var(--tracking-tight);
  text-shadow: 0 3px 0 rgba(6,38,61,.16);
}
.hero-sub {
  margin: var(--space-4) 0 var(--space-6); font-size: var(--text-lg);
  color: rgba(255,255,255,.95); max-width: 42ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero-actions.center { justify-content: center; }
.hero .btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.15); }

.hero-logo { position: relative; display: grid; place-items: center; }
.hero-logo img { width: min(360px, 78%); height: auto; filter: drop-shadow(0 20px 34px rgba(6,38,61,.34)); }
.logo-glow {
  position: absolute; width: 74%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.55), rgba(255,255,255,0) 65%);
  animation: pulse-glow 5s var(--ease-in-out) infinite;
}
@keyframes pulse-glow { 0%,100% { transform: scale(.95); opacity: .7; } 50% { transform: scale(1.06); opacity: 1; } }

/* imza: su üstü salınımı */
.bob { animation: bob var(--bob-duration) var(--ease-buoyant) infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(calc(-1 * var(--bob-amplitude))); }
}

/* imza: yüzey ışıltısı (caustics) */
.hero-caustic {
  position: absolute; inset: -30% -15% auto; height: 150%; z-index: 1; pointer-events: none;
  background:
    radial-gradient(50% 34% at 26% 18%, rgba(255,255,255,.42), transparent 60%),
    radial-gradient(44% 28% at 74% 8%,  rgba(255,255,255,.30), transparent 60%),
    radial-gradient(40% 26% at 52% 30%, rgba(255,255,255,.22), transparent 60%);
  mix-blend-mode: screen; opacity: .8;
  animation: caustic 11s var(--ease-in-out) infinite alternate;
}
@keyframes caustic { to { transform: translate(4%, 3%) scale(1.08); } }

/* ambient baloncuklar (JS ile doldurulur) */
.hero-bubbles { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hero-bubbles .bubble {
  position: absolute; bottom: -40px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.9), rgba(255,255,255,.15) 60%, transparent 72%);
  box-shadow: inset 0 0 6px rgba(255,255,255,.5);
  animation: float-up linear infinite;
}
@keyframes float-up {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  12%  { opacity: .8; }
  85%  { opacity: .6; }
  100% { transform: translateY(-120vh) translateX(var(--drift, 20px)); opacity: 0; }
}

/* imza: mouse ile etkileşen büyük baloncuk */
.hero-follow {
  position: absolute; z-index: 1; left: 0; top: 0; width: 180px; height: 180px;
  margin: -90px 0 0 -90px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 34% 30%, rgba(255,255,255,.55), rgba(255,255,255,.12) 55%, transparent 70%);
  box-shadow: inset 0 0 24px rgba(255,255,255,.4), 0 0 40px rgba(143,214,242,.35);
  opacity: 0; transition: opacity var(--dur-slow) var(--ease-out);
  will-change: transform;
}
.hero-follow.on { opacity: .9; }

/* ---------- Waterline (imza ana) ---------- */
.waterline { position: absolute; left: 0; right: 0; bottom: -1px; height: 60px; z-index: 3; overflow: hidden; }
.waterline .w { position: absolute; left: 0; bottom: 0; width: 200%; height: 100%; }
.waterline .w1 { fill: var(--color-sea); opacity: .5; animation: drift var(--wave-speed) linear infinite; }
.waterline .w2 { fill: var(--color-foam); animation: drift calc(var(--wave-speed) * .64) linear infinite reverse; }
@keyframes drift { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 2.5rem + 5vw, 7rem) 0; }
.section-head { max-width: 46ch; margin-bottom: var(--space-8); }
.section-head.light { color: #fff; }
.section-head.light h2 { color: #fff; }
.kicker {
  display: inline-block; font-weight: var(--weight-bold); font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--brand);
  margin-bottom: var(--space-2);
}
.section-head.light .kicker { color: var(--color-sand); }
.section-head h2 { font-size: var(--text-2xl); }
.section-head p { margin: var(--space-3) 0 0; color: var(--text-muted); font-size: var(--text-lg); }
.section-head.light p { color: rgba(255,255,255,.9); }

/* ---------- Grid & Cards ---------- */
.grid { display: grid; gap: var(--space-5); }
.cards { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-6); box-shadow: var(--shadow-md);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-icon {
  display: inline-grid; place-items: center; width: 54px; height: 54px;
  border-radius: var(--radius-md); background: var(--color-foam); color: var(--brand);
  margin-bottom: var(--space-4);
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { font-size: var(--text-lg); color: var(--brand-strong); margin-bottom: var(--space-2); }
.card p { margin: 0; color: var(--text-muted); font-size: var(--text-base); }
.card:nth-child(3n+2) .card-icon { background: var(--color-sand); color: var(--color-coral-deep); }

/* ---------- Band (Neden Biz) ---------- */
.band {
  position: relative; color: #fff;
  background: linear-gradient(155deg, var(--color-sea) 0%, var(--color-deep) 100%);
}
.band-waterline { position: absolute; left: 0; right: 0; top: -1px; height: 60px; line-height: 0; }
.band-waterline svg { width: 100%; height: 100%; fill: var(--bg); }
.band-waterline.bottom { top: auto; bottom: -1px; }
.reasons { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 780px) { .reasons { grid-template-columns: 1fr; } }
.reason { padding: var(--space-4) 0; }
.reason-no {
  font-family: var(--font-display); font-weight: var(--weight-bold); font-size: 2.4rem;
  color: var(--color-seafoam); line-height: 1; display: block; margin-bottom: var(--space-3);
}
.reason h3 { color: #fff; font-size: var(--text-lg); margin-bottom: var(--space-2); }
.reason p { margin: 0; color: rgba(255,255,255,.82); }

/* ---------- Closing ---------- */
.closing { text-align: center; background: var(--bg); }
.closing-inner { max-width: 40ch; margin-inline: auto; }
.closing h2 { font-size: var(--text-2xl); }
.closing > .container > p, .closing p { color: var(--text-muted); font-size: var(--text-lg); }
.closing .hero-actions { margin-top: var(--space-6); }
.soon-note { margin-top: var(--space-6); font-size: var(--text-sm); color: var(--text-muted); opacity: .8; }
[data-placeholder] { cursor: default; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--color-deep); color: #fff; padding-top: 60px; }
.footer-waterline { position: absolute; left: 0; right: 0; top: 0; height: 60px; overflow: hidden; }
.footer-waterline .w { position: absolute; left: 0; top: 0; width: 200%; height: 100%; }
.footer-waterline .w1 { fill: var(--color-sea); opacity: .5; animation: drift var(--wave-speed) linear infinite; }
.footer-waterline .w2 { fill: var(--color-deep); animation: drift calc(var(--wave-speed) * .7) linear infinite reverse; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: var(--space-4); padding-block: var(--space-8) var(--space-6);
}
.site-footer .brand-name { color: #fff; }
.site-footer .brand-name em { color: var(--color-sky); }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-3); }
.footer-note { margin: 0; color: rgba(255,255,255,.7); }
.footer-social {
  display: inline-flex; align-items: center; gap: var(--space-2);
  color: #fff; font-weight: var(--weight-bold); font-size: var(--text-sm);
  padding: 8px 14px; border-radius: var(--radius-full);
  background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
  transition: background var(--dur-fast), transform var(--dur-fast) var(--ease-out);
}
.footer-social svg { width: 18px; height: 18px; }
.footer-social:hover { background: rgba(255,255,255,.16); transform: translateY(-1px); }

.footer-base { border-top: 1px solid rgba(255,255,255,.1); padding-block: var(--space-4) var(--space-6); }
.footer-base-inner {
  display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  font-size: var(--text-sm); color: rgba(255,255,255,.55);
}
.credit {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.62); font-size: var(--text-xs); font-weight: var(--weight-bold);
  letter-spacing: .02em; transition: color var(--dur-fast);
}
.credit img { height: 30px; width: auto; object-fit: contain; opacity: .9; transition: opacity var(--dur-fast); }
.credit:hover { color: #fff; }
.credit:hover img { opacity: 1; }
@media (max-width: 620px) {
  .footer-right { align-items: flex-start; }
}

/* ---------- Reveal (imza: gelgit açılışı) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-buoyant); }
.reveal.in { opacity: 1; transform: none; }
.cards .reveal.in, .reasons .reveal.in { transition-delay: var(--stagger, 0ms); }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 2; }
  .hero-logo { order: 1; }
  .hero-sub { margin-inline: auto; }
  .hero-actions { justify-content: center; }
}

/* ---------- WhatsApp (tanınırlık: kendi yeşili) ---------- */
.wa-ico { width: 1.2em; height: 1.2em; flex-shrink: 0; }
.btn-lg { --_pad-y: 16px; --_pad-x: 30px; font-size: var(--text-md); }

.btn-whatsapp { background: var(--color-whatsapp); color: #fff; box-shadow: 0 10px 24px rgba(37,211,102,.32); }
.btn-whatsapp:hover { background: var(--color-whatsapp-deep); transform: translateY(1px) scale(.99); }
.btn-whatsapp:active { transform: translateY(2px) scale(.98); }

.btn-whatsapp-ghost { background: transparent; color: var(--color-whatsapp-deep); box-shadow: inset 0 0 0 1.5px var(--color-whatsapp); }
.btn-whatsapp-ghost:hover { background: rgba(37,211,102,.10); }

/* ---------- Şubeler ---------- */
.branches { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .branches { grid-template-columns: 1fr; } }

.branch {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-md);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base);
}
.branch:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.branch-map { position: relative; aspect-ratio: 16 / 10; background: var(--color-foam); }
.branch-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; filter: saturate(1.05); }
.branch-body { padding: var(--space-5) var(--space-6) var(--space-6); }
.branch-tag {
  display: inline-block; font-family: var(--font-display); font-weight: var(--weight-medium);
  font-size: var(--text-sm); letter-spacing: var(--tracking-wide); text-transform: uppercase;
  color: #fff; background: var(--brand); padding: 3px 12px; border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
}
.branch-body h3 { font-size: var(--text-lg); color: var(--brand-strong); margin-bottom: var(--space-2); }
.branch-adr { margin: 0 0 var(--space-5); color: var(--text-muted); font-size: var(--text-base); }
.branch-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ---------- Ekranı takip eden WhatsApp butonu ---------- */
.wa-float {
  position: fixed; right: clamp(14px, 3vw, 28px); bottom: clamp(14px, 3vw, 28px);
  z-index: var(--z-overlay);
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 13px 20px 13px 15px; border-radius: var(--radius-full);
  background: var(--color-whatsapp); color: #fff;
  font-family: var(--font-body); font-weight: var(--weight-bold); font-size: var(--text-base);
  box-shadow: 0 12px 28px rgba(37,211,102,.42), 0 2px 6px rgba(6,38,61,.2);
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast);
}
.wa-float:hover { background: var(--color-whatsapp-deep); transform: translateY(-2px) scale(1.02); }
.wa-float:active { transform: translateY(0) scale(.99); }
.wa-float .wa-ico { width: 26px; height: 26px; }
.wa-float:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(37,211,102,.4), 0 12px 28px rgba(37,211,102,.42); }

/* nabız gibi atan halka */
.wa-float-ring {
  position: absolute; left: 8px; top: 50%; width: 40px; height: 40px; margin-top: -20px;
  border-radius: 50%; background: var(--color-whatsapp); z-index: -1;
  animation: wa-pulse 2.4s var(--ease-out) infinite;
}
@keyframes wa-pulse {
  0%   { transform: scale(.7); opacity: .6; }
  70%  { transform: scale(1.9); opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}
@media (max-width: 560px) {
  .wa-float-label { display: none; }
  .wa-float { padding: 15px; }
  .wa-float-ring { left: 50%; margin-left: -20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-follow { display: none; }
  .wa-float-ring { animation: none; }
}
