:root {
  --bg: #f4f8fb;
  --surface: #ffffff;
  --text: #1f2a37;
  --muted: #566475;
  --primary: #0d9488;
  --primary-dark: #0b766d;
  --border: #dbe5ee;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family:
    "Manrope",
    system-ui,
    -apple-system,
    sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f7fbff 0%, #eff5fa 100%);
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 72px 0;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 30;
  background: transparent;
  border-bottom: 0;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 15;
  background: rgba(15, 23, 42, 0.36);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

body.menu-open .menu-overlay {
  opacity: 1;
  pointer-events: auto;
}

.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  position: relative;
  padding: 12px 18px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.header-top {
  width: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand img {
  width: 180px;
  height: auto;
}

.main-nav {
  margin-left: clamp(18px, 3vw, 52px);
  margin-right: auto;
}

.nav-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
}

.nav-links a {
  color: #2a3644;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.5rem 0.65rem;
  border-radius: 9px;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.nav-links a:hover {
  background: #eef5fb;
  color: var(--primary);
}

.nav-links a.active {
  background: #e3f4f2;
  color: var(--primary-dark);
}

.burger-btn {
  display: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  width: 44px;
  height: 40px;
  padding: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.burger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #334155;
  border-radius: 999px;
  transition:
    transform 0.25s ease,
    opacity 0.2s ease;
}

.burger-btn.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger-btn.is-active span:nth-child(2) {
  opacity: 0;
}

.burger-btn.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.hero-grid,
.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-image-wrap,
.bio-image-wrap {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-image-wrap {
  aspect-ratio: 4 / 5;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.eyebrow {
  margin: 0;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  font-size: 0.8rem;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.2;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h2 {
  margin: 10px 0 14px;
  font-size: clamp(1.55rem, 3.2vw, 2.25rem);
}

.lead {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.8rem 1.25rem;
  font-weight: 700;
  transition: 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  color: #1f2a37;
  border: 1px solid var(--border);
  background: #fff;
}

.btn-secondary:hover {
  border-color: #c7d6e5;
  background: #f8fbfe;
}

.appointments {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  margin-bottom: 24px;
}

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

.card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
  border: 1px solid #d6e3ef;
  border-radius: 16px;
  padding: 20px 18px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #14b8a6 0%, #38bdf8 100%);
}

.card:hover {
  transform: translateY(-3px);
  border-color: #c4d8ea;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
}

.card h3 {
  margin: 0;
  font-size: 1.12rem;
}

.card p {
  margin: 0;
  min-height: 56px;
}

.location-link {
  color: #2f3c4b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.card h3 .location-link {
  display: inline-block;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #0f2f43;
  line-height: 1.15;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.card p .location-link {
  display: inline;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #4b5f72;
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: #c9d9e8;
  text-underline-offset: 3px;
  transition:
    color 0.2s ease,
    text-decoration-color 0.2s ease;
}

.card p .location-link::before {
  content: none;
}

.location-link:hover {
  color: var(--primary-dark);
}

.card p .location-link:hover {
  color: #2f475c;
  text-decoration-color: #8fb3d1;
}

.phone-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #b9d5e6;
  background: #edf7ff;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--primary-dark);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.phone-link:hover {
  background: #dff1ff;
  border-color: #9ec4db;
  transform: translateY(-1px);
}

.knee-hero {
  padding-top: 36px;
}

.knee-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.knee-copy {
  background: linear-gradient(145deg, #ffffff 0%, #f5fbff 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.knee-image-wrap {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.knee-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

.knee-protesi {
  padding-top: 10px;
}

.knee-content-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.knee-content-card h2 {
  margin-bottom: 6px;
}

.knee-content-card h3 {
  margin: 0 0 16px;
  font-size: 1.1rem;
  color: #334155;
}

.knee-content-card p {
  margin: 0 0 14px;
  color: #425466;
}

.knee-content-card p:last-child {
  margin-bottom: 0;
}

.knee-pillars {
  padding-top: 20px;
}

.knee-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.knee-pillar-card {
  height: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #d6e3ef;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.knee-pillar-card h3 {
  margin: 0 0 8px;
  color: #0f2f43;
}

.knee-pillar-card p {
  margin: 0;
  color: #4b5f72;
}

.knee-pillar-card p + p {
  margin-top: 10px;
}

.knee-pillar-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: #425466;
}

.knee-pillar-card li + li {
  margin-top: 8px;
}

.knee-pillar-card strong {
  color: #0f2f43;
}

.bio-text p {
  color: var(--muted);
}

.bio-text ul {
  margin: 16px 0 0;
  padding-left: 20px;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 0 32px;
  color: #66778a;
  font-size: 0.95rem;
}

@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .knee-pillars-grid {
    grid-template-columns: 1fr;
  }

  .knee-pillar-card {
    min-height: 0;
  }
}

@media (max-width: 1120px) {
  .header-inner {
    min-height: 74px;
    padding: 10px 14px;
    border-radius: 14px;
  }

  .header-top {
    width: 100%;
  }

  .main-nav {
    margin-left: 0;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: min(340px, 92vw);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px) scale(0.98);
    transform-origin: top right;
    transition:
      opacity 0.2s ease,
      transform 0.24s ease;
  }

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

  .nav-links {
    flex-direction: column;
    gap: 6px;
  }

  .nav-links li {
    opacity: 0;
    transform: translateY(-4px);
    transition:
      opacity 0.2s ease,
      transform 0.2s ease;
  }

  .main-nav.is-open .nav-links li {
    opacity: 1;
    transform: translateY(0);
  }

  .main-nav.is-open .nav-links li:nth-child(1) {
    transition-delay: 0.02s;
  }

  .main-nav.is-open .nav-links li:nth-child(2) {
    transition-delay: 0.04s;
  }

  .main-nav.is-open .nav-links li:nth-child(3) {
    transition-delay: 0.06s;
  }

  .main-nav.is-open .nav-links li:nth-child(4) {
    transition-delay: 0.08s;
  }

  .main-nav.is-open .nav-links li:nth-child(5) {
    transition-delay: 0.1s;
  }

  .main-nav.is-open .nav-links li:nth-child(6) {
    transition-delay: 0.12s;
  }

  .main-nav.is-open .nav-links li:nth-child(7) {
    transition-delay: 0.14s;
  }

  .nav-links a {
    display: block;
    padding: 10px 8px;
    border-radius: 8px;
  }

  .nav-links a:hover {
    background: #f1f6fb;
  }

  .burger-btn {
    display: inline-flex;
  }

  .hero-grid,
  .bio-grid,
  .knee-grid {
    grid-template-columns: 1fr;
  }

  .hero-image-wrap {
    max-height: 520px;
  }
}

@media (max-width: 620px) {
  .section {
    padding: 52px 0;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    gap: 10px 14px;
  }

  .nav-links a {
    font-size: 0.88rem;
  }
}
