:root {
  --mint: #6fd6c8;
  --mint-deep: #159a8c;
  --leaf: #69b66a;
  --blue: #2f75b5;
  --ink: #17313b;
  --muted: #65737a;
  --line: #dcebea;
  --soft: #f3fbfa;
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(23, 49, 59, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Poppins", Arial, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

body.menu-open,
body.lightbox-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(220, 235, 234, 0.2);
  backdrop-filter: blur(18px);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(23, 49, 59, 0.08);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1160px, calc(100% - 32px));
  min-height: 82px;
  margin: 0 auto;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 138px;
  height: 62px;
  overflow: hidden;
}

.brand img {
  width: 150px;
  max-width: none;
  height: 150px;
  transform: translate(-6px, -37px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: var(--radius);
  color: var(--ink);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--mint-deep);
  background: rgba(111, 214, 200, 0.14);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  border-radius: 99px;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 92vh;
  min-height: 92svh;
  padding: 132px 0 80px;
  overflow: hidden;
  background: var(--soft);
}

.hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  height: 150px;
  background: linear-gradient(180deg, rgba(243, 251, 250, 0), rgba(243, 251, 250, 0.88));
  pointer-events: none;
}

.hero-image,
.hero-video,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
  opacity: 1;
  transition: opacity 1.2s ease;
}

.hero-video {
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 1.4s ease, transform 1.6s ease;
}

.hero.is-video-ready .hero-video {
  opacity: 1;
  transform: scale(1);
}

.hero.is-video-ready .hero-poster {
  opacity: 0.28;
}

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.82) 43%, rgba(255, 255, 255, 0.38) 100%),
    linear-gradient(180deg, rgba(21, 154, 140, 0.2), rgba(47, 117, 181, 0.16));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-content h1 {
  max-width: 720px;
  margin: 10px 0 20px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 5.2rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-text {
  max-width: 620px;
  margin: 0 0 30px;
  color: #41535b;
  font-size: 1.08rem;
}

.eyebrow {
  margin: 0;
  color: var(--mint-deep);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--white);
  background: var(--mint-deep);
  box-shadow: 0 14px 24px rgba(21, 154, 140, 0.24);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #0f8176;
}

.btn-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(23, 49, 59, 0.12);
}

.clinic-front {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 430px;
  padding: 52px max(16px, calc((100% - 1160px) / 2));
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(23, 49, 59, 0.82), rgba(23, 49, 59, 0.4), rgba(23, 49, 59, 0.08)),
    url("resimler/klinik%C3%B6nresim.jpeg") center / cover no-repeat;
}

.clinic-front::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(243, 251, 250, 0.88), rgba(243, 251, 250, 0));
  pointer-events: none;
}

.clinic-front-content {
  position: relative;
  max-width: 640px;
  color: var(--white);
}

.clinic-front .eyebrow {
  color: #9be6dc;
}

.clinic-front h2 {
  margin: 8px 0 14px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 3rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.clinic-front p {
  margin: 0;
}

.clinic-front p:not(.eyebrow) {
  max-width: 560px;
  opacity: 0.88;
}

.section {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-heading h2,
.about h2,
.contact h2 {
  margin: 8px 0 14px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 3rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.about-copy p,
.contact-info p {
  color: var(--muted);
}

.services {
  position: relative;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 278px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(23, 49, 59, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(21, 154, 140, 0.34);
  box-shadow: var(--shadow);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  border-radius: var(--radius);
  color: var(--mint-deep);
  background: linear-gradient(135deg, rgba(111, 214, 200, 0.28), rgba(105, 182, 106, 0.16));
}

.service-icon svg {
  width: 27px;
  height: 27px;
  fill: currentColor;
}

.service-card h3 {
  margin: 0 0 10px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1.18rem;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.gallery-section {
  width: 100%;
  padding-right: max(16px, calc((100% - 1160px) / 2));
  padding-left: max(16px, calc((100% - 1160px) / 2));
  background: var(--soft);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 220px;
  gap: 16px;
}

.gallery-item {
  position: relative;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: #dcebea;
  cursor: zoom-in;
}

.gallery-item::after {
  content: "Büyüt";
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 7px 10px;
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.gallery-item:hover::after,
.gallery-item:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.05);
}

.gallery-large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-wide {
  grid-column: span 2;
}

.animal-scope {
  width: 100%;
  padding: 58px max(16px, calc((100% - 1160px) / 2));
  background:
    linear-gradient(135deg, rgba(111, 214, 200, 0.18), rgba(47, 117, 181, 0.1)),
    var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.animal-scope-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 32px;
  align-items: center;
}

.animal-scope h2 {
  margin: 8px 0 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 2.45rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.scope-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.scope-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(21, 154, 140, 0.22);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: 46px;
}

.about-copy p {
  max-width: 720px;
}

.about-panel {
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(111, 214, 200, 0.16), rgba(255, 255, 255, 0.94)),
    var(--white);
}

.about-panel div {
  padding: 18px 0;
  border-bottom: 1px solid rgba(23, 49, 59, 0.1);
}

.about-panel div:last-child {
  border-bottom: 0;
}

.about-panel strong,
.about-panel span {
  display: block;
}

.about-panel strong {
  margin-bottom: 6px;
  font-family: "Montserrat", Arial, sans-serif;
}

.about-panel span {
  color: var(--muted);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 34px;
  align-items: stretch;
  padding-top: 32px;
}

.contact-info {
  padding: 34px;
  border-radius: var(--radius);
  color: var(--white);
  background: linear-gradient(135deg, #159a8c, #2f75b5);
}

.contact-info .eyebrow,
.contact-info p,
.contact-info a {
  color: var(--white);
}

.contact-info p {
  opacity: 0.9;
}

.contact-list {
  display: grid;
  gap: 13px;
  margin: 28px 0;
}

.contact-list a,
.contact-list p {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 48px;
  margin: 0;
}

.contact-list span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
}

.contact-list span svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.contact-list strong {
  font-size: 0.98rem;
  overflow-wrap: anywhere;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-links a {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease, transform 0.2s ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.social-links svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.map-wrap {
  min-height: 440px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 440px;
  border: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 42px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer div {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  display: inline-flex;
  width: 132px;
  height: 56px;
  overflow: hidden;
}

.footer-logo img {
  width: 144px;
  max-width: none;
  height: 144px;
  transform: translate(-6px, -36px);
}

.site-footer p {
  margin: 0;
  font-size: 0.92rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 25, 30, 0.82);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  width: min(920px, 100%);
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

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

  .nav-links {
    position: fixed;
    top: 82px;
    right: 16px;
    left: 16px;
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-links.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links a {
    justify-content: center;
    min-height: 48px;
  }

  .hero {
    min-height: 86vh;
    min-height: 86svh;
  }

  .hero-content h1 {
    font-size: 3.8rem;
  }

  .section-heading h2,
  .about h2,
  .contact h2,
  .clinic-front h2 {
    font-size: 2.45rem;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.86) 58%, rgba(255, 255, 255, 0.54) 100%),
      linear-gradient(180deg, rgba(21, 154, 140, 0.2), rgba(47, 117, 181, 0.12));
  }

  .clinic-front {
    min-height: 390px;
    background:
      linear-gradient(180deg, rgba(23, 49, 59, 0.72), rgba(23, 49, 59, 0.36)),
      url("resimler/klinik%C3%B6nresim.jpeg") center / cover no-repeat;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 210px;
  }

  .gallery-large,
  .gallery-wide {
    grid-column: span 1;
    grid-row: span 1;
  }

  .about,
  .contact,
  .animal-scope-inner {
    grid-template-columns: 1fr;
  }

  .scope-tags {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .navbar {
    width: min(100% - 24px, 1160px);
    min-height: 74px;
  }

  .brand {
    width: 120px;
    height: 54px;
  }

  .brand img {
    width: 132px;
    height: 132px;
    transform: translate(-5px, -33px);
  }

  .nav-links {
    top: 74px;
    right: 12px;
    left: 12px;
  }

  .hero {
    min-height: 92vh;
    min-height: 92svh;
    padding: 106px 0 50px;
    align-items: end;
  }

  .hero::after {
    height: 96px;
  }

  .hero-video,
  .hero-image {
    object-position: center top;
  }

  .hero-content h1 {
    font-size: 2.25rem;
    line-height: 1.1;
  }

  .hero-text {
    font-size: 0.98rem;
    margin-bottom: 22px;
  }

  .section-heading h2,
  .about h2,
  .contact h2,
  .clinic-front h2 {
    font-size: 1.86rem;
  }

  .hero-content,
  .section,
  .site-footer {
    width: min(100% - 24px, 1160px);
  }

  .hero-actions,
  .btn {
    width: 100%;
  }

  .section {
    padding: 58px 0;
  }

  .clinic-front {
    min-height: 360px;
    padding: 44px 12px;
  }

  .animal-scope {
    padding: 48px 12px;
  }

  .animal-scope h2 {
    font-size: 1.86rem;
  }

  .scope-tags span {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.86rem;
  }

  .section-heading {
    margin-bottom: 26px;
  }

  .service-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
    padding: 24px;
  }

  .gallery-grid {
    grid-auto-rows: 230px;
  }

  .gallery-section {
    padding-right: 12px;
    padding-left: 12px;
  }

  .about-panel,
  .contact-info {
    padding: 24px;
  }

  .contact-list a,
  .contact-list p {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .map-wrap,
  .map-wrap iframe {
    min-height: 310px;
  }

  .site-footer,
  .site-footer div {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 390px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-text {
    font-size: 0.94rem;
  }

  .section-heading h2,
  .about h2,
  .contact h2,
  .clinic-front h2,
  .animal-scope h2 {
    font-size: 1.68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-video {
    display: none;
  }

  .hero.is-video-ready .hero-poster {
    opacity: 1;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
