/* VetNova Veteriner Kliniği — ortak stiller */

:root {
  --navy: #0c306a;
  --navy-deep: #08224d;
  --teal: #017196;
  --teal-soft: #d7ebf2;
  --mist: #eef5f8;
  --white: #ffffff;
  --ink: #1f2f4a;
  --muted: #56647d;
  --line: #d6e1ea;
  --sun: #f5b73b;
  --alert: #c8412f;
  --wa: #1fae57;

  --font-display: "Gabarito", "Segoe UI", system-ui, sans-serif;
  --font-body: "Onest", "Segoe UI", system-ui, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-s: 8px;
  --radius-m: 16px;
  --radius-l: 28px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--navy); }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.35rem, 5.2vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 750; }
h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.25; }
p { margin: 0 0 1em; }

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
  border-radius: 4px;
}

.icon { width: 1.25em; height: 1.25em; flex: none; }

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

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  background: var(--navy); color: var(--white);
  padding: 10px 16px; border-radius: var(--radius-s);
  z-index: 100;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 50px;
  padding: 0.7em 1.35em;
  border-radius: 999px;
  border: 2px solid transparent;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--navy); color: var(--white); }
.btn-wa { background: var(--wa); color: var(--white); }
.btn-wa:hover { background: #178a45; color: var(--white); }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--sun); color: var(--navy-deep); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Emergency bar + header ---------- */

.alert-bar {
  background: var(--navy-deep);
  color: #dfe8f5;
  font-size: 0.9rem;
}
.alert-bar .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  text-align: center;
  flex-wrap: wrap;
}
.alert-bar .icon { color: var(--sun); }
.alert-bar a { color: var(--white); font-weight: 600; white-space: nowrap; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}
.brand { display: block; flex: none; }
.brand img { width: 158px; }

.nav { margin-left: auto; }
.nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0; padding: 0;
}
.nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.nav a:hover { background: var(--mist); color: var(--navy); }
.nav a[aria-current="page"] { color: var(--navy); background: var(--teal-soft); font-weight: 600; }

.header-call { min-height: 44px; padding: 0.5em 1.1em; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .i-close { display: none; }
.nav-open .nav-toggle .i-menu { display: none; }
.nav-open .nav-toggle .i-close { display: block; }

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .header-call { display: none; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -18px rgba(12, 48, 106, .35);
    display: none;
  }
  .nav-open .nav { display: block; }
  .nav ul { flex-direction: column; padding: 8px var(--gutter) 20px; gap: 2px; }
  .nav a { padding: 14px 16px; border-radius: 12px; font-size: 1.1rem; }
}

/* ---------- Hero ortak parçaları (3B hero: css/hero-3d.css) ---------- */

.hero-lead {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  color: var(--muted);
  max-width: 44ch;
  margin-bottom: 1.8em;
}

.status-line {
  display: flex; align-items: center; gap: 9px;
  font: 700 1.08rem/1.2 var(--font-display);
  color: var(--navy);
  margin-bottom: 4px;
}
.status-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #9aa7b8;
  flex: none;
}
.is-open .status-dot { background: #22a55a; box-shadow: 0 0 0 4px rgba(34, 165, 90, .18); }
.is-closed .status-dot { background: var(--alert); box-shadow: 0 0 0 4px rgba(200, 65, 47, .15); }

.wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%; height: clamp(40px, 6vw, 80px);
  display: block;
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(64px, 9vw, 112px); }
.section-mist { background: var(--mist); }
.section-navy { background: var(--navy); color: #d9e4f3; }
.section-navy h2, .section-navy h3 { color: var(--white); }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(32px, 4vw, 52px);
}
.section-head h2 { margin: 0; max-width: 20ch; }
.section-head p { margin: 0; max-width: 46ch; color: var(--muted); }

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600;
  text-decoration: none;
}
.text-link .icon { transition: transform .15s; }
.text-link:hover .icon { transform: translateX(3px); }

/* Facilities row: what physically exists in the clinic */
.facilities {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 0; padding: 0;
  list-style: none;
}
.facilities li {
  padding: 8px 24px;
  border-left: 1px solid var(--line);
}
.facilities li:first-child { border-left: 0; padding-left: 0; }
.facilities .icon {
  width: 34px; height: 34px;
  color: var(--teal);
  margin-bottom: 14px;
}
.facilities strong {
  display: block;
  font: 700 1.15rem/1.25 var(--font-display);
  color: var(--navy);
  margin-bottom: 4px;
}
.facilities span { color: var(--muted); font-size: 0.95rem; line-height: 1.5; display: block; }

@media (max-width: 1000px) {
  .facilities { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .facilities li:nth-child(4) { border-left: 0; padding-left: 0; }
}
@media (max-width: 620px) {
  .facilities { grid-template-columns: 1fr 1fr; }
  .facilities li { padding: 0 0 0 16px; }
  .facilities li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .facilities li:nth-child(4) { border-left: 1px solid var(--line); padding-left: 16px; }
}

/* Service directory: list rows, not cards */
.directory {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(32px, 5vw, 72px);
  margin: 0; padding: 0;
  list-style: none;
  border-top: 2px solid var(--navy);
}
.directory a {
  display: grid;
  grid-template-columns: 48px 1fr 24px;
  gap: 18px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.directory .d-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--teal-soft);
  color: var(--teal);
  display: grid; place-items: center;
}
.directory .d-icon .icon { width: 26px; height: 26px; }
.directory h3 { margin: 2px 0 4px; font-size: 1.2rem; }
.directory p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.directory .go { color: var(--teal); margin-top: 6px; transition: transform .15s; }
.directory a:hover h3 { color: var(--teal); }
.directory a:hover .go { transform: translateX(4px); }

@media (max-width: 760px) {
  .directory { grid-template-columns: 1fr; }
}

/* Shop teaser on navy */
.shop-teaser .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.shop-teaser p { max-width: 42ch; }
.shelf {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 0; padding: 0; list-style: none;
}
.shelf li {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-m);
  padding: 20px;
}
.shelf .icon { width: 30px; height: 30px; color: var(--sun); margin-bottom: 12px; }
.shelf strong { display: block; color: var(--white); font: 700 1.1rem/1.25 var(--font-display); }
.shelf span { font-size: 0.92rem; color: #b9c8de; }

@media (max-width: 860px) {
  .shop-teaser .wrap { grid-template-columns: 1fr; }
}

/* Doctor block */
.doctor {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.doctor-badge {
  width: clamp(140px, 18vw, 200px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: grid; place-items: center;
  text-align: center;
  position: relative;
}
.doctor-badge .icon { width: 44%; height: 44%; color: var(--white); }
.doctor-badge .star {
  position: absolute;
  right: 6%; top: 6%;
  width: 22%; height: 22%;
  color: var(--sun);
  fill: var(--sun);
}
.doctor h2 { margin-bottom: 0.3em; }
.doctor .title { font-weight: 600; color: var(--teal); margin-bottom: 1em; }
.doctor p { max-width: 60ch; }

@media (max-width: 640px) {
  .doctor { grid-template-columns: 1fr; }
}

/* Instagram band */
.insta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-l);
  background: var(--teal);
  color: #e3f3f8;
}
.insta h2 { color: var(--white); font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0 0 6px; }
.insta p { margin: 0; max-width: 48ch; }
.insta .btn-light .icon { color: #c13584; }

/* Visit block (address + map) */
.visit {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: stretch;
}
.info-list { list-style: none; margin: 0 0 28px; padding: 0; }
.info-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.info-list li:first-child { border-top: 1px solid var(--line); }
.info-list .icon { width: 24px; height: 24px; color: var(--teal); margin-top: 2px; }
.info-list strong { display: block; color: var(--navy); font-family: var(--font-display); font-size: 1.1rem; }
.info-list span, .info-list address { color: var(--muted); font-style: normal; }
.info-list a { font-weight: 600; }

.map {
  min-height: 380px;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--teal-soft);
  border: 1px solid var(--line);
}
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

@media (max-width: 860px) {
  .visit { grid-template-columns: 1fr; }
}

/* ---------- Inner page header ---------- */

.page-hero {
  position: relative;
  background: var(--mist);
  overflow: hidden;
}
.page-hero .wrap {
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: clamp(80px, 9vw, 120px);
}
.page-hero h1 { max-width: 18ch; }
.page-hero p { max-width: 56ch; font-size: 1.15rem; color: var(--muted); margin: 0; }
.page-hero .paw-trail {
  position: absolute;
  right: var(--gutter);
  bottom: 22%;
  width: clamp(120px, 20vw, 240px);
  color: var(--teal);
  opacity: .22;
}
@media (max-width: 700px) { .page-hero .paw-trail { display: none; } }

/* ---------- Services page ---------- */

.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0; padding: 0; list-style: none;
}
.jump a {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  background: var(--white);
}
.jump a:hover { border-color: var(--teal); color: var(--teal); }

.svc-group + .svc-group { margin-top: clamp(56px, 7vw, 88px); }
.svc-group > h2 {
  display: flex; align-items: baseline; gap: 14px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--navy);
  margin-bottom: 0;
}
.svc-group > h2 small {
  font: 500 1rem/1 var(--font-body);
  color: var(--muted);
  letter-spacing: 0;
}

.svc {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(16px, 3vw, 40px);
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 100px;
}
.svc .d-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--teal-soft);
  color: var(--teal);
  display: grid; place-items: center;
}
.svc .d-icon .icon { width: 30px; height: 30px; }
.svc h3 { font-size: 1.45rem; margin: 6px 0 0; }
.svc p { margin: 0 0 0.8em; }
.svc ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.svc ul li { margin-bottom: 4px; }
.svc ul li::marker { color: var(--teal); }

.svc-highlight { background: var(--navy); color: #d9e4f3; border-radius: var(--radius-l); padding: 32px clamp(20px, 3vw, 40px); border: 0; margin-top: 24px; }
.svc-highlight h3 { color: var(--white); }
.svc-highlight .d-icon { background: rgba(255,255,255,.1); color: var(--sun); }
.svc-highlight ul { color: #b9c8de; }
.svc-highlight ul li::marker { color: var(--sun); }

@media (max-width: 760px) {
  .svc { grid-template-columns: 56px 1fr; }
  .svc > div:last-child { grid-column: 1 / -1; }
}

/* ---------- Shop page ---------- */

.aisles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 0; padding: 0; list-style: none;
}
.aisle {
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(24px, 3vw, 36px);
  background: var(--white);
}
.aisle:first-child {
  grid-row: span 2;
  background: var(--navy);
  border-color: var(--navy);
  color: #d9e4f3;
}
.aisle:first-child h2 { color: var(--white); }
.aisle:first-child .icon { color: var(--sun); }
.aisle:first-child li::marker { color: var(--sun); }
.aisle .icon { width: 40px; height: 40px; color: var(--teal); margin-bottom: 18px; }
.aisle h2 { font-size: 1.6rem; margin-bottom: 0.4em; }
.aisle ul { margin: 16px 0 0; padding-left: 1.1em; list-style: disc; }
.aisle li { margin-bottom: 6px; }
.aisle li::marker { color: var(--teal); }

@media (max-width: 760px) {
  .aisles { grid-template-columns: 1fr; }
  .aisle:first-child { grid-row: auto; }
}

.note {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 20px 22px;
  border-radius: var(--radius-m);
  background: var(--teal-soft);
  color: var(--navy);
}
.note .icon { width: 26px; height: 26px; color: var(--teal); margin-top: 1px; }
.note p { margin: 0; }

/* ---------- About page ---------- */

.prose { max-width: 66ch; }
.prose p { font-size: 1.1rem; }

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
  margin: 0; padding: 0; list-style: none;
}
.values li { border-top: 2px solid var(--navy); padding-top: 18px; }
.values h3 { margin-bottom: 8px; }
.values p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; } }

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.form-card {
  background: var(--mist);
  border-radius: var(--radius-l);
  padding: clamp(24px, 3.5vw, 40px);
}
.form-card h2 { font-size: 1.7rem; }
.form-card > p { color: var(--muted); }
.field { margin-bottom: 18px; }
.field label, .field legend {
  display: block;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  font-size: 0.97rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 50px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(1, 113, 150, .2);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
.form-hint { font-size: 0.88rem; color: var(--muted); margin: 12px 0 0; }

.emergency {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px 24px;
  border-radius: var(--radius-m);
  border: 2px solid var(--alert);
  margin-top: 28px;
}
.emergency .icon { width: 28px; height: 28px; color: var(--alert); }
.emergency strong { display: block; color: var(--navy); font-family: var(--font-display); font-size: 1.15rem; }
.emergency p { margin: 4px 0 0; color: var(--muted); }
.emergency a { font-weight: 700; color: var(--alert); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: #aebfd8;
  padding-top: clamp(56px, 7vw, 80px);
  font-size: 0.97rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-grid h2 {
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: 0;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: #d9e4f3; text-decoration: none; }
.footer-grid a:hover { color: var(--sun); text-decoration: underline; }
.footer-grid address { font-style: normal; }
.footer-brand img { width: 170px; margin-bottom: 16px; }
.footer-brand p { max-width: 32ch; }
.footer-bottom {
  margin-top: 48px;
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 0.88rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Floating WhatsApp ---------- */

.wa-float {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 60;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--wa);
  color: var(--white);
  display: grid; place-items: center;
  box-shadow: 0 14px 30px -10px rgba(10, 60, 30, .6);
  transition: transform .15s;
}
.wa-float:hover { transform: scale(1.06); color: var(--white); }
.wa-float .icon { width: 32px; height: 32px; }

/* ---------- 404 ---------- */
.lost { text-align: center; padding-block: clamp(80px, 12vw, 160px); }
.lost .icon { width: 72px; height: 72px; color: var(--teal); margin: 0 auto 20px; }
.lost p { color: var(--muted); max-width: 44ch; margin-inline: auto; }
.lost .btn-row { justify-content: center; margin-top: 28px; }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Sayfa geçişleri (View Transitions, destekleyen tarayıcılarda) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  ::view-transition-old(root) { animation: vt-out .18s ease-in both; }
  ::view-transition-new(root) { animation: vt-in .28s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes vt-out { to { opacity: 0; } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
}

@media (max-width: 420px) {
  .alert-bar { font-size: 0.84rem; }
  .hide-s { display: none; }
}

/* ---------- Geliştirici notu ---------- */
.credit .socifly {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #0e8bb4, #3fca90);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}
.credit .socifly:hover {
  text-decoration: underline;
  text-decoration-color: #3fca90;
  text-underline-offset: 3px;
}
@media (max-width: 520px) {
  .footer-bottom { padding-bottom: 96px; }
}
