/* Hastane Pet Nakil — monochrome editorial design */
:root {
  --ink: #0B0B0B; --paper: #FFFFFF; --mist: #F4F4F2; --line: #E3E3E0;
  --muted: #5C5C5C; --muted-dark: #A6A6A6; --line-dark: rgba(255, 255, 255, .16);
  --accent: #FF4F1A;
  --sans: Satoshi, Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: min(1240px, 100% - 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.6 var(--sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--ink); }

/* paw cursor (mouse/trackpad only) */
@media (pointer: fine) {
  html { cursor: url(cursor.png) 16 16, auto; }
  a, button, summary, label, select, [role="button"] { cursor: url(cursor-hover.png) 16 16, pointer; }
  input, textarea { cursor: text; }
}

/* type */
h1, h2, h3 { margin: 0; font-weight: 400; }
h1, h2 { font-weight: 500; letter-spacing: -.045em; line-height: 1.02; }
h1 { font-size: clamp(2.5rem, 6.4vw, 6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.8rem); }
h1 em, h2 em, .foot-word em { font-style: normal; color: var(--accent); }
h3 { font: 500 1.2rem/1.3 var(--sans); letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.label { font: 500 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 28px; display: flex; gap: 14px; align-items: center; }
.label span { color: var(--accent); font-weight: 700; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 52ch; }
.wrap { width: var(--wrap); margin-inline: auto; }
section { padding: clamp(80px, 11vw, 140px) 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 12px; font: 500 .98rem/1 var(--sans); text-decoration: none; border-radius: 999px; padding: 17px 26px; border: 1px solid var(--ink); transition: background .25s var(--ease), color .25s var(--ease); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--paper); color: var(--ink); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.on-dark .btn { border-color: var(--paper); }
.on-dark .btn-solid { background: var(--paper); color: var(--ink); }
.on-dark .btn-solid:hover { background: transparent; color: var(--paper); }
.on-dark .btn-line { color: var(--paper); }
.on-dark .btn-line:hover { background: var(--paper); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--paper); }

/* header */
header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 600 1.05rem/1 var(--sans); letter-spacing: -.02em; white-space: nowrap; }
.brand img { width: 34px; height: 34px; }
.nav ul { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav ul a { font-size: .9rem; text-decoration: none; color: var(--muted); transition: color .2s; }
.nav ul a:hover { color: var(--ink); }
.nav .btn { padding: 12px 20px; font-size: .9rem; }
@media (max-width: 960px) { .nav ul { display: none; } }

/* hero */
.hero { padding: clamp(56px, 8vw, 110px) 0 0; }
.hero h1 br { display: block; }
@media (max-width: 700px) { .hero h1 br { display: none; } }
.hero-foot { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: end; margin-top: clamp(36px, 5vw, 64px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: clamp(48px, 7vw, 88px) 0 0; padding: 0; border-top: 1px solid var(--line); }
.facts li { padding: 22px 24px 22px 0; font-size: .92rem; color: var(--muted); border-right: 1px solid var(--line); }
.facts li + li { padding-left: 24px; }
.facts li:last-child { border-right: 0; }
.facts strong { display: block; color: var(--ink); font-weight: 500; font-size: 1rem; margin-bottom: 4px; }
@media (max-width: 860px) {
  .hero-foot { grid-template-columns: 1fr; gap: 28px; }
  .hero-cta { justify-content: flex-start; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 0; }
  .facts li + li { padding-left: 0; }
  .facts li:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--line); }
  .facts li:nth-child(even) { padding-left: 16px; }
}

/* journey animation */
.journey { background: var(--mist); }
.journey-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.journey-head > p { color: var(--muted); max-width: 36ch; margin: 0; }
.stage { margin: clamp(32px, 5vw, 64px) 0 0; background: var(--paper); border: 1px solid var(--line); border-radius: 28px; padding: clamp(12px, 3vw, 40px); }
.stage svg { width: 100%; height: auto; overflow: visible; }
.stage text { font: 500 13px var(--sans); letter-spacing: .14em; text-transform: uppercase; fill: var(--muted); }
#van-light { transition: opacity .2s; }
.moving #van-light { animation: blink .7s steps(2, start) infinite; }
@keyframes blink { to { opacity: .15; } }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 28px 0 0; padding: 0; gap: 24px; }
.steps li { --p: 0; opacity: .38; transition: opacity .4s var(--ease); }
.steps li.active, .steps li.done { opacity: 1; }
.steps .bar { display: block; height: 2px; background: var(--line); margin-bottom: 18px; position: relative; overflow: hidden; }
.steps .bar::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(var(--p)); }
.steps .n { font: 500 .78rem/1 var(--sans); letter-spacing: .16em; color: var(--muted); }
.steps h3 { margin: 10px 0 6px; }
.steps p { font-size: .92rem; color: var(--muted); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 28px; } }
/* small screens: the scene scales down a lot, so keep lines crisp and drop the tiny labels */
@media (max-width: 600px) {
  .stage { padding: 10px 6px; border-radius: 20px; }
  .stage text { display: none; }
  .stage [stroke-width="2"], .stage [stroke-width="1.6"], #route { vector-effect: non-scaling-stroke; }
}

/* services */
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head > p { color: var(--muted); margin: 0; max-width: 44ch; justify-self: end; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; gap: 20px; } .section-head > p { justify-self: start; } }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.rows a { display: grid; grid-template-columns: 80px 1fr 1.3fr 40px; gap: 24px; align-items: center; padding: 30px 20px; margin: 0 -20px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .3s var(--ease), color .3s var(--ease); }
.rows .n { font: 500 .8rem/1 var(--sans); letter-spacing: .16em; color: var(--muted); }
.rows h3 { font: 500 clamp(1.4rem, 2.2vw, 1.9rem)/1.15 var(--sans); letter-spacing: -.03em; }
.rows p { margin: 0; color: var(--muted); font-size: .98rem; }
.rows .arrow { font-size: 1.4rem; justify-self: end; transition: transform .3s var(--ease); }
.rows a:hover { background: var(--ink); color: var(--paper); }
.rows a:hover p, .rows a:hover .n { color: var(--muted-dark); }
.rows a:hover .arrow { transform: translateX(6px); color: var(--accent); }
@media (max-width: 760px) {
  .rows a { grid-template-columns: 44px 1fr 24px; row-gap: 8px; padding: 24px 0; margin: 0; }
  .rows p { grid-column: 2 / 3; grid-row: 2; }
  .rows a:hover { background: none; color: inherit; }
}

/* vet */
.vet { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
/* business card stage: same artwork as the printed card (kartvizit/) */
.cards { margin: 0; aspect-ratio: 1 / 1; background: var(--mist); border-radius: 28px; position: relative; overflow: hidden; }
.cards img { position: absolute; left: 12%; width: 76%; height: auto; border-radius: 10px; box-shadow: 0 34px 60px -24px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .08); transition: transform .7s var(--ease); }
.cards .c-front { top: 9%; transform: translate(-5%, 0) rotate(-7deg); }
.cards .c-back { top: 38%; transform: translate(5%, 0) rotate(3deg); }
.cards:hover .c-front { transform: translate(-8%, -4%) rotate(-9deg); }
.cards:hover .c-back { transform: translate(8%, 4%) rotate(5deg); }
.cards figcaption { position: absolute; left: 24px; right: 24px; bottom: 20px; display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); }
.vet h2 { margin-bottom: 24px; }
.points { list-style: none; margin: 36px 0 0; padding: 0; border-top: 1px solid var(--line); }
.points li { display: grid; grid-template-columns: 40px 1fr; padding: 20px 0; border-bottom: 1px solid var(--line); }
.points .n { font: 500 .78rem/1.9 var(--sans); letter-spacing: .16em; color: var(--muted); }
.points strong { display: block; font-weight: 500; }
.points span { color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .vet { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .cards figcaption span:last-child { display: none; } }

/* dark band (Cerrahpaşa) */
.dark { background: var(--ink); color: var(--paper); }
.dark .label, .dark p, .dark .lead { color: var(--muted-dark); }
.dark .label span { color: var(--accent); }
.band { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: end; }
.band h2 { margin-bottom: 28px; }
.addr { border-top: 1px solid var(--line-dark); }
.addr div { padding: 18px 0; border-bottom: 1px solid var(--line-dark); display: grid; grid-template-columns: 110px 1fr; gap: 16px; font-size: .95rem; }
.addr dt { color: var(--muted-dark); }
.addr dd { margin: 0; }
.addr a { text-underline-offset: 4px; }
.band-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
@media (max-width: 860px) { .band { grid-template-columns: 1fr; } }

/* booking */
.book { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.book h2 { margin-bottom: 28px; }
.howto { list-style: none; counter-reset: h; margin: 36px 0; padding: 0; border-top: 1px solid var(--line); }
.howto li { counter-increment: h; display: grid; grid-template-columns: 40px 1fr; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: .98rem; }
.howto li::before { content: "0" counter(h); font: 500 .78rem/1.9 var(--sans); letter-spacing: .16em; color: var(--muted); }
.contact-line { font-size: .95rem; color: var(--muted); }
.contact-line a { color: var(--ink); text-underline-offset: 4px; }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.full { grid-column: 1 / -1; }
label { display: grid; gap: 8px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
input, select, textarea { font: 400 1.05rem/1.4 var(--sans); color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid #BDBDBA; border-radius: 0; padding: 10px 0; width: 100%; letter-spacing: 0; text-transform: none; transition: border-color .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1px 0 0 var(--ink); }
textarea { resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
legend { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; padding: 0; }
.pill { position: relative; display: inline-block; letter-spacing: 0; text-transform: none; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; padding: 0; }
.pill span { display: inline-block; padding: 11px 18px; border: 1px solid #BDBDBA; border-radius: 999px; font-size: .95rem; color: var(--ink); transition: background .2s, color .2s, border-color .2s; }
.pill input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pill input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
form .btn { justify-content: center; padding: 20px; font-size: 1rem; }
@media (max-width: 860px) { .book { grid-template-columns: 1fr; } }
@media (max-width: 520px) { form { grid-template-columns: 1fr; } }

/* faq */
.faq { border-top: 1px solid var(--ink); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; display: flex; justify-content: space-between; gap: 24px; padding: 26px 0; font: 500 clamp(1.1rem, 1.7vw, 1.4rem)/1.3 var(--sans); letter-spacing: -.02em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 400 1.6rem/1 var(--sans); color: var(--accent); transition: transform .3s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); max-width: 70ch; margin: -8px 0 26px; }

/* info table (Cerrahpaşa page) */
.info { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); }
.info th, .info td { text-align: left; padding: 20px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.info th { width: 30%; font: 500 .78rem/1.9 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-right: 24px; }
.info a { text-underline-offset: 4px; }
.prose { max-width: 820px; }
.prose h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin: 0 0 24px; }
.prose ul { padding: 0; list-style: none; border-top: 1px solid var(--line); }
.prose li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.note { font-size: .88rem; color: var(--muted); margin-top: 20px; }
@media (max-width: 560px) { .info th, .info td { display: block; width: 100%; } .info th { border-bottom: 0; padding-bottom: 0; } }

/* footer */
footer { background: var(--ink); color: var(--paper); padding: clamp(72px, 9vw, 120px) 0 40px; }
.foot-word { font: 700 clamp(2.8rem, 9.6vw, 9.2rem)/.95 var(--sans); letter-spacing: -.055em; margin: 0 0 clamp(48px, 7vw, 88px); }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 32px 0; border-top: 1px solid var(--line-dark); }
.foot-cols h4 { margin: 0 0 14px; font: 500 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted-dark); }
.foot-cols a { display: block; text-decoration: none; padding: 4px 0; }
.foot-cols a:hover { text-decoration: underline; text-underline-offset: 4px; }
.disclaimer { font-size: .82rem; color: var(--muted-dark); border-top: 1px solid var(--line-dark); padding-top: 24px; margin: 0; }
@media (max-width: 760px) { .foot-cols { grid-template-columns: 1fr; } }

/* floating WhatsApp (kept above Netlify's corner badge) */
.wa-float { position: fixed; right: 20px; bottom: 84px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: var(--accent); border: 1px solid rgba(0, 0, 0, .12); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); transition: transform .25s var(--ease); }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 26px; height: 26px; }

/* scroll reveal (only when JS runs) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

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