:root {
  --primary: #0f766e;
  --secondary: #0f172a;
  --accent: #38bdf8;
  --bg: #f7fbfb;
  --text: #172033;
  --light: #ffffff;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.1);
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  --hero-image: url("../images/clinic-hero.png");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--secondary);
  font-size: 1rem;
  font-weight: 800;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.nav-links {
  display: none;
  position: absolute;
  top: 72px;
  left: 16px;
  right: 16px;
  padding: 16px;
  background: var(--light);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.nav-links.is-open {
  display: grid;
  gap: 8px;
}

.nav-links a {
  padding: 10px 8px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  gap: 5px;
  background: var(--secondary);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--light);
}

.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  align-items: end;
  padding: 120px 0 48px;
  overflow: hidden;
  background: var(--secondary);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.34) 58%, rgba(15, 23, 42, 0.08)),
    linear-gradient(0deg, rgba(15, 23, 42, 0.5), rgba(15, 23, 42, 0));
}

.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow,
.final-cta .eyebrow {
  color: var(--accent);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.6rem, 12vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  color: var(--secondary);
  font-size: clamp(2rem, 7vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  color: var(--secondary);
  font-size: 1.08rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 580px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 3vw, 1.3rem);
}

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

.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn img,
.ui-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.btn-secondary img {
  filter: brightness(0) invert(1);
}

.btn:hover,
.slider-btn:hover,
.floating-whatsapp:hover,
.back-to-top:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--light);
  background: var(--primary);
  box-shadow: 0 16px 36px rgba(15, 118, 110, 0.28);
}

.btn-secondary {
  color: var(--light);
  border: 1px solid rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.12);
}

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

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading h2 + p {
  margin-top: 12px;
}

.service-grid,
.doctor-grid,
.about-grid,
.contact-grid {
  display: grid;
  gap: 16px;
}

.service-card,
.doctor-card,
.about-block,
.contact-grid > * {
  background: var(--light);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

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

.service-card span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, white);
  border-radius: 8px;
  font-size: 1.25rem;
  font-weight: 900;
}

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

.split-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-block {
  padding: 24px;
}

.doctor-card {
  padding: 18px;
  text-align: center;
}

.doctor-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  margin-bottom: 18px;
  border-radius: 8px;
  background: #e9f5f4;
}

.benefits {
  background: var(--secondary);
  color: var(--light);
}

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

.benefits h2 {
  color: var(--light);
}

.benefit-list {
  display: grid;
  gap: 12px;
}

.benefit-item {
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
}

.testimonial-slider {
  min-height: 280px;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 10px;
}

.testimonial {
  min-height: 250px;
  display: grid;
  align-content: center;
  padding: 28px;
  background: var(--light);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.testimonial p {
  margin: 0 0 18px;
  color: var(--secondary);
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  line-height: 1.35;
}

.testimonial h3 {
  color: var(--primary);
}

.slider-btn {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--light);
  background: var(--secondary);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.8rem;
  transition: transform 0.2s ease;
}

.slider-btn img {
  width: 22px;
  height: 22px;
}

.accordion {
  display: grid;
  gap: 10px;
}

.accordion-item {
  background: var(--light);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.accordion-item button {
  width: 100%;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--secondary);
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-weight: 900;
}

.accordion-item button::after {
  content: "+";
  width: 28px;
  height: 28px;
  display: grid;
  flex: 0 0 28px;
  place-items: center;
  color: var(--light);
  background: var(--primary);
  border-radius: 8px;
  font-weight: 900;
}

.accordion-item.is-open button::after {
  content: "-";
}

.accordion-item p {
  max-height: 0;
  margin: 0;
  padding: 0 20px;
  color: var(--muted);
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease;
}

.accordion-item.is-open p {
  max-height: 160px;
  padding: 0 20px 20px;
}

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

.map-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.map-wrap iframe {
  width: 100%;
  height: 420px;
  display: block;
  border: 0;
}

.contact-grid > * {
  min-height: 130px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 22px;
}

.contact-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 6px;
}

.contact-grid strong {
  color: var(--secondary);
  font-size: 0.86rem;
  text-transform: uppercase;
}

.contact-grid span {
  color: var(--muted);
}

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

.social-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  color: var(--secondary);
  background: var(--light);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.final-cta {
  padding: 84px 16px;
  color: var(--light);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.94), rgba(15, 23, 42, 0.96)),
    var(--hero-image) center/cover;
  text-align: center;
}

.final-cta h2 {
  color: var(--light);
  margin-bottom: 24px;
}

.floating-whatsapp,
.back-to-top {
  position: fixed;
  z-index: 60;
  right: 18px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 0;
  color: var(--light);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.floating-whatsapp {
  bottom: 22px;
  background: #22c55e;
}

.floating-whatsapp img {
  width: 26px;
  height: 26px;
}

.back-to-top img {
  width: 22px;
  height: 22px;
}

.back-to-top {
  bottom: 86px;
  background: var(--secondary);
  opacity: 0;
  pointer-events: none;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 680px) {
  .service-grid,
  .doctor-grid,
  .about-grid,
  .contact-grid,
  .benefit-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    align-items: center;
  }
}

@media (min-width: 960px) {
  .menu-toggle {
    display: none;
  }

  .nav-links {
    position: static;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

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

  .doctor-grid,
  .benefit-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .about-grid {
    grid-template-columns: 1.1fr 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
