:root {
  color-scheme: light;
  --ink: #172e29;
  --muted: #50625c;
  --paper: #fbfaf7;
  --green: #245849;
  --line: #dce4de;
  --tint: #edf3ee;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 system-ui, sans-serif; }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible, select:focus-visible { outline: 3px solid #995537; outline-offset: 4px; }
section[id] { scroll-margin-top: 24px; }
.shell { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: 12px; transform: translateY(-150%); padding: .5rem; background: white; z-index: 2; }
.skip:focus { transform: none; }
.top, .footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 18px; }
.top { border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 750; line-height: 1.2; }
.brand img { object-fit: contain; }
.brand small, .portrait small { display: block; font-weight: 500; color: var(--muted); }
nav, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
nav a { text-decoration: none; font-weight: 650; font-size: .9rem; }
nav a:hover { text-decoration: underline; }
.nav-urgent { color: #873e32; }
.hero { display: grid; grid-template-columns: 1fr 1.08fr; align-items: center; gap: clamp(26px, 5vw, 68px); padding-block: clamp(30px, 5vw, 68px) 28px; }
.eyebrow { margin: 0 0 10px; font-size: .75rem; font-weight: 800; letter-spacing: .13em; color: var(--green); }
h1, h2 { margin: 0; line-height: 1.1; letter-spacing: -.045em; }
h1 { font: 500 clamp(2.45rem, 5vw, 4.65rem)/1.03 Georgia, serif; letter-spacing: -.055em; }
h1 em { color: var(--green); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.45rem); }
h3 { font-size: 1.12rem; line-height: 1.3; }
.hero-copy > p:not(.eyebrow) { max-width: 42ch; color: var(--muted); margin: 18px 0 23px; }
.clinic-hero { margin: 0; }
.clinic-hero img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: center 35%; border-radius: 18px; }
.button { display: inline-block; padding: .65rem 1rem; border: 1px solid var(--green); border-radius: 9px; background: var(--green); color: white; text-decoration: none; font-weight: 700; }
.button:hover { background: #193e34; }
.button.secondary { background: transparent; color: var(--green); }
.button.secondary:hover { background: var(--tint); }
.text-link { font-weight: 650; }
.quick-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 36px; background: var(--tint); border: 1px solid var(--line); border-radius: 12px; }
.quick-info div { padding: 12px 18px; }
.quick-info div + div { border-left: 1px solid var(--line); }
.quick-info small { display: block; color: var(--muted); }
.quick-info a { font-weight: 700; }
.section, .visit { border-top: 1px solid var(--line); padding-block: clamp(26px, 4vw, 45px); }
.service-grid, .team-grid, .photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.service-grid article { padding: 15px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.service-intro { max-width: 62ch; margin: 10px 0 0; color: var(--muted); }
.service-grid h3 { margin: 0 0 8px; }
.service-grid article p { margin: 0; color: var(--muted); }
.service-grid ul { margin: 0; padding-left: 1.15rem; color: var(--muted); }
.service-grid li + li { margin-top: 4px; }
.service-contact { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 16px; padding: 14px 16px; background: var(--tint); border-radius: 12px; }
.service-contact p { margin: 0; }
.portrait { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.portrait img, .photo-grid img { width: 100%; display: block; object-fit: cover; }
.portrait img { aspect-ratio: 4 / 4.2; object-position: center 28%; }
.portrait figcaption { padding: 10px 14px; font-weight: 750; }
.photo-grid img { aspect-ratio: 4 / 3; border-radius: 12px; }
.visit { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; }
.visit ol { margin: 0; padding-left: 1.35rem; }
.visit li + li { margin-top: 8px; }
.visit li span { display: block; color: var(--muted); }
.contact { padding: clamp(18px, 4vw, 30px); background: var(--tint); border-radius: 14px; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.contact p:last-child { margin-bottom: 0; }
.emergency { margin-top: 28px; }
.emergency .eyebrow { color: #873e32; }
.footer { border-top: 1px solid var(--line); padding-bottom: 68px; font-size: .86rem; color: var(--muted); }
.floating-whatsapp { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 7px; background: var(--green); color: white; padding: 10px 14px; border-radius: 999px; font-weight: 750; text-decoration: none; box-shadow: 0 3px 14px #1c362433; }
.policy { max-width: 720px; padding-block: 48px; }
.policy h1 { margin: 26px 0; }
.policy h2 { font-size: 1.55rem; margin-top: 25px; }
@media (max-width: 700px) {
  .shell { width: calc(100% - 32px); }
  .top { flex-direction: column; align-items: flex-start; gap: 12px; padding-block: 12px; }
  nav { gap: 8px 16px; }
  .hero, .visit { grid-template-columns: 1fr; }
  .hero { gap: 18px; }
  .quick-info div { padding: 9px 7px; font-size: .82rem; overflow-wrap: anywhere; }
  .quick-info small { font-size: .7rem; }
  .service-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .photo-grid { gap: 7px; }
  .portrait figcaption { padding: 8px; font-size: .9rem; }
  .contact { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.procedure-photos { margin-top: 26px; }
.procedure-photos > h3 { margin: 0 0 12px; }
.procedure-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.procedure-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.procedure-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 38%;
}
.procedure-grid figure:nth-child(2) img { object-position: center top; }
.procedure-grid figcaption { padding: 9px 12px; font-weight: 650; }
.portrait-onur img { object-position: center 23%; }
.photo-grid .gallery-dog-visit { object-position: center 29%; }

@media (max-width: 700px) {
  .procedure-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .procedure-grid figcaption { padding: 7px 9px; font-size: .86rem; }
}
@media (max-width: 380px) {
  .procedure-grid { grid-template-columns: 1fr; }
}

.service-photo-link {
  display: inline-block;
  margin-top: 9px;
  color: var(--green);
  font-size: .88rem;
  font-weight: 650;
}
.procedure-grid .dental-photo { object-position: center 54%; }
#agiz-muayenesi { scroll-margin-top: 24px; }
.operation-gallery {
  margin-top: 16px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.operation-gallery summary { cursor: pointer; font-weight: 750; }
.operation-gallery p { margin: 8px 0 12px; color: var(--muted); }
.operation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.operation-grid figure { margin: 0; }
.operation-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
}
.operation-grid figcaption { margin-top: 5px; font-size: .9rem; color: var(--muted); }
#klinik .photo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 700px) {
  #klinik .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 500px) {
  .operation-grid { grid-template-columns: 1fr; }
}

/* Site-wide photo treatment. Keep the source photography available at its original tone. */
.clinic-hero img, .portrait img, .procedure-grid img, .operation-grid img, .photo-grid img {
  filter: brightness(var(--photo-light, 1.03)) contrast(.96) saturate(var(--photo-color, .91));
}
.clinic-hero, .portrait-onur { --photo-light: 1.07; }
.procedure-grid .dental-photo { --photo-light: 1.04; --photo-color: .86; }
.procedure-grid figure:last-child { --photo-light: 1.13; --photo-color: .90; }
.operation-grid { --photo-light: 1.02; --photo-color: .85; }
.operation-grid figure:last-child { --photo-light: 1.08; }
.photo-grid img[src$="dscf4818.jpg"] { --photo-light: .98; }
.photo-grid img[src$="dscf4830.jpg"] { --photo-light: 1.09; }

.emergency-call {
  display: inline-grid;
  gap: 1px;
  background: #873e32;
  border-color: #873e32;
}
.emergency-call:hover { background: #713228; }
.emergency-call span { font-size: .88rem; font-weight: 550; }

.guide-heading { margin: 24px 0 12px; font-size: 1.25rem; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.guide-card { background: white; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.guide-photo { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 44%; }
.breed-grid .guide-photo { aspect-ratio: 3 / 2; object-position: center 40%; }
.breed-notes { display: grid; gap: 8px; margin: 12px 0 0; padding-left: 1.2rem; }
.breed-notes li { padding-left: 3px; }
.breed-notes strong { color: var(--green); margin-right: 4px; }
.guide-image-note { margin: 8px 0 0; color: var(--muted); font-size: .83rem; }
.guide-photo.dental-photo { object-position: center 54%; }
.guide-body { padding: 15px 18px 18px; }
.guide-body h4 { margin: 0; font-size: 1.2rem; }
.guide-body p { margin: 8px 0; }
.guide-body .guide-category, .guide-source { color: var(--muted); font-size: .86rem; }
.guide-body summary { cursor: pointer; color: var(--green); font-weight: 700; }
.guide-source { display: inline-block; margin-top: 10px; }
.emergency > div { max-width: 68ch; }
@media (max-width: 620px) {
  .guide-grid { grid-template-columns: 1fr; }
}

.procedure-grid .observation-photo { object-position: center 71%; }
.operation-grid .dental-detail { object-position: center 53%; }
.operation-grid img[src$="yogun-bakim-unitesi.jpg"] { object-position: center 62%; }
@media (min-width: 701px) {
  #klinik .photo-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.site-announcement { padding: 12px 16px; background: var(--tint); border-radius: 10px; }
.article-text { white-space: pre-line; }
.admin-panel { padding-block: 30px; }
.admin-panel h1 { font-size: clamp(2rem, 5vw, 3.3rem); }
.admin-fields { display: grid; gap: 10px; }
.admin-fields label { display: grid; gap: 4px; font-weight: 650; }
.admin-fields input, .admin-fields textarea { width: 100%; padding: 9px; font: inherit; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); }
.admin-fields textarea { min-height: 100px; }
.admin-panel details { margin-block: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.admin-panel summary { cursor: pointer; font-weight: 750; }
.admin-item { margin-block: 12px; padding: 12px; background: var(--tint); border-radius: 8px; }
.admin-actions { margin-top: 18px; }
.admin-actions button:disabled { opacity: .55; cursor: default; }
.admin-photo-preview { width: min(100%, 210px); max-height: 130px; object-fit: cover; border-radius: 8px; }
