/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1a6b5c;
  --primary-dark: #134f44;
  --primary-light: #e8f5f2;
  --accent: #2a9d8f;
  --text: #1a1a2e;
  --text-muted: #5a6a7a;
  --bg: #ffffff;
  --bg-light: #f7f9fb;
  --border: #e2e8f0;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: 'Merriweather', Georgia, serif;
  line-height: 1.3;
  color: var(--text);
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

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

/* ===== Layout ===== */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.bg-light { background: var(--bg-light); }
.bg-primary { background: var(--primary); color: white; }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26,107,92,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-1px);
}

.btn-white {
  background: white;
  color: var(--primary);
  border-color: white;
}
.btn-white:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-lg { padding: 13px 28px; font-size: 1rem; }

/* ===== Navbar ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  color: var(--text);
  font-weight: 500;
}
.logo strong { color: var(--primary); font-weight: 700; }
.logo-icon { font-size: 1.4rem; }

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

.nav-links a {
  color: var(--text);
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  font-size: 0.95rem;
}
.nav-links a:hover { background: var(--primary-light); color: var(--primary); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== Hero ===== */
.hero {
  padding: 80px 0 96px;
  background: linear-gradient(135deg, #f0faf8 0%, #e8f5f2 50%, #f7f9fb 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(26,107,92,0.2);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-text h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
  color: var(--text);
}

.hero-text p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 480px;
}

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

.hero-image {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 24px;
  border: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-num {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Inter', sans-serif;
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}

.divider-v {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 18px;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
  box-shadow: var(--shadow);
  width: fit-content;
}
.location-badge svg { color: var(--primary); flex-shrink: 0; }

/* ===== Cards ===== */
.card {
  background: white;
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.card p { color: var(--text-muted); font-size: 0.95rem; }

/* ===== Procedure Cards ===== */
.procedure-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.procedure-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.procedure-img {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.hip-img {
  background: linear-gradient(135deg, #1a6b5c 0%, #2a9d8f 50%, #52b788 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}
.hip-img::after { content: "🦴"; }

.knee-img {
  background: linear-gradient(135deg, #134f44 0%, #1a6b5c 50%, #2a9d8f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}
.knee-img::after { content: "🦵"; }

.procedure-body { padding: 28px; }

.tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 3px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.procedure-body h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.procedure-body p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.check-list {
  list-style: none;
  margin-bottom: 24px;
}

.check-list li {
  padding: 5px 0 5px 24px;
  position: relative;
  color: var(--text-muted);
  font-size: 0.93rem;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ===== Timeline ===== */
.timeline {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: flex;
  gap: 24px;
  padding-bottom: 40px;
  position: relative;
}

.timeline-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 48px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--border));
}

.timeline-marker {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 0 0 4px var(--primary-light);
}

.timeline-content {
  padding-top: 6px;
}

.timeline-content h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.timeline-content p { color: var(--text-muted); font-size: 0.95rem; }

/* ===== FAQ ===== */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  background: white;
}

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.faq-q:hover { background: var(--bg-light); }

.faq-arrow {
  flex-shrink: 0;
  transition: transform 0.3s;
  color: var(--primary);
}
.faq-q.open .faq-arrow { transform: rotate(180deg); }

.faq-a {
  display: none;
  padding: 0 24px 20px;
  color: var(--text-muted);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.faq-a.open { display: block; }

/* ===== Contact ===== */
.bg-primary h2 { color: white; }
.bg-primary p { color: rgba(255,255,255,0.85); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-text h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 16px;
}

.contact-text > p { margin-bottom: 32px; }

.contact-details { display: flex; flex-direction: column; gap: 14px; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
}
.contact-item svg { flex-shrink: 0; color: rgba(255,255,255,0.7); }

.contact-form {
  background: white;
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,107,92,0.12);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-status {
  font-size: 0.9rem;
  text-align: center;
  color: var(--primary);
  min-height: 20px;
}

/* ===== Footer ===== */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer .logo { color: white; margin-bottom: 14px; display: inline-flex; }
.footer .logo strong { color: var(--accent); }

.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 300px; }

.footer-links h4 {
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p { font-size: 0.82rem; margin-bottom: 4px; }

.disclaimer {
  font-size: 0.78rem !important;
  color: rgba(255,255,255,0.4) !important;
}

/* ===== Sub-pages ===== */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 64px 0;
  text-align: center;
}
.page-hero h1 { color: white; font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.85); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  justify-content: center;
  margin-bottom: 20px;
}
.breadcrumb a { color: rgba(255,255,255,0.8); }
.breadcrumb a:hover { color: white; }

.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.6rem; margin: 40px 0 16px; }
.prose h3 { font-size: 1.2rem; margin: 28px 0 12px; }
.prose p { color: var(--text-muted); margin-bottom: 16px; line-height: 1.75; }
.prose ul { color: var(--text-muted); padding-left: 24px; margin-bottom: 16px; }
.prose ul li { margin-bottom: 8px; line-height: 1.7; }
.prose .info-box {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
  margin: 28px 0;
}
.prose .info-box p { margin-bottom: 0; color: var(--primary-dark); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero { padding: 56px 0 64px; }
  .section { padding: 60px 0; }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 4px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .navbar { position: relative; }
  .hero-card { flex-direction: column; gap: 16px; }
  .divider-v { width: 40px; height: 1px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; justify-content: center; }
  .contact-form { padding: 24px; }
  .section { padding: 48px 0; }
}
