/* ========== CUSTOM PROPERTIES ========== */
:root {
  --emerald-50: #ECFDF5;
  --emerald-100: #D1FAE5;
  --emerald-200: #A7F3D0;
  --emerald-500: #10B981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --emerald-800: #065F46;
  --emerald-900: #064E3B;

  --cream-50: #FAFAF8;
  --cream-100: #F5F1E8;
  --cream-200: #EDE8DA;
  --cream-300: #E5DFD0;

  --text-dark: #1A2E28;
  --text-body: #2D4A3E;
  --text-muted: #5A7D6E;
  --text-light: #8BA89B;

  --white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(6, 78, 59, 0.06), 0 1px 2px rgba(6, 78, 59, 0.04);
  --shadow-md: 0 4px 16px rgba(6, 78, 59, 0.08), 0 2px 4px rgba(6, 78, 59, 0.04);
  --shadow-lg: 0 12px 40px rgba(6, 78, 59, 0.12), 0 4px 12px rgba(6, 78, 59, 0.06);

  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background-color: var(--cream-50);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1.25;
  font-weight: 500;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

.text-gradient {
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-500), #34D399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== SECTION TAG ========== */
.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--emerald-600);
  background: var(--emerald-100);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-emerald {
  background: var(--emerald-600);
  color: var(--white);
  padding: 14px 28px;
  font-size: 1rem;
}
.btn-emerald:hover { background: var(--emerald-700); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-cream {
  background: var(--cream-200);
  color: var(--emerald-800);
  padding: 14px 28px;
  font-size: 1rem;
}
.btn-cream:hover { background: var(--cream-300); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-outline-light {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
  padding: 13px 28px;
  font-size: 1rem;
}
.btn-outline-light:hover { background: rgba(255,255,255,0.25); border-color: var(--white); transform: translateY(-2px); }

.btn-outline-cream {
  background: transparent;
  color: var(--emerald-700);
  border: 2px solid var(--emerald-300);
  padding: 13px 28px;
  font-size: 1rem;
}
.btn-outline-cream:hover { background: var(--emerald-50); border-color: var(--emerald-500); transform: translateY(-2px); }

.btn-sm { padding: 10px 20px; font-size: 0.9rem; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-full { width: 100%; justify-content: center; }

/* ========== HEADER ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(5, 150, 105, 0.08);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-dark);
}
.logo:hover { color: var(--emerald-600); }

.logo-text { max-width: 180px; }

.main-nav { display: flex; align-items: center; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  padding: 8px 16px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-body);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-links a:hover { color: var(--emerald-600); background: var(--emerald-50); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, #047857 0%, #065F46 40%, #064E3B 100%);
  overflow: hidden;
  padding-top: 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.pexels.com/photos/12512673/pexels-photo-12512673.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1600&h=900');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 60px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--emerald-200);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 28px;
  backdrop-filter: blur(4px);
}
.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--emerald-400, #34D399);
  border-radius: 50%;
  display: inline-block;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
  font-weight: 600;
  line-height: 1.15;
}

.hero-desc {
  color: rgba(255,255,255,0.82);
  font-size: 1.12rem;
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 56px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.85);
  font-size: 0.92rem;
  font-weight: 400;
}
.trust-item svg { color: var(--emerald-300); flex-shrink: 0; }

.hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  line-height: 0;
}

/* ========== SERVICES ========== */
.services {
  background: var(--cream-100);
  padding: 96px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition);
  border: 1px solid transparent;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--emerald-100);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--emerald-50);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-card h3 {
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text-dark);
}

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

/* ========== ABOUT ========== */
.about {
  background: var(--cream-50);
  padding: 96px 0;
}

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

.about-image-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 560/680;
}

.about-stat-card {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px 28px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.about-stat-card .stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: var(--emerald-600);
  line-height: 1;
}
.about-stat-card .stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.about-content .section-tag { margin-bottom: 16px; }
.about-content h2 { margin-bottom: 20px; }
.about-content > p { color: var(--text-muted); margin-bottom: 16px; font-size: 1.02rem; }

.about-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 28px 0 32px;
}
.about-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.98rem;
  color: var(--text-body);
  font-weight: 400;
}
.about-list li svg { flex-shrink: 0; }

/* ========== PATIENT INFO ========== */
.patient-info {
  background: var(--cream-100);
  padding: 96px 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
  border: 1px solid transparent;
}
.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--emerald-100);
}

.info-icon {
  width: 52px;
  height: 52px;
  background: var(--emerald-50);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.info-card h3 {
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.info-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}
.info-card a { color: var(--emerald-600); font-weight: 500; }
.info-card a:hover { text-decoration: underline; }
.info-sub { font-size: 0.85rem; margin-top: 6px; }

/* ========== CTA BANNER ========== */
.cta-banner {
  background: linear-gradient(135deg, var(--emerald-700) 0%, var(--emerald-600) 60%, var(--emerald-500) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}

.cta-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-text h2 {
  color: var(--white);
  margin-bottom: 16px;
}
.cta-text p {
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
  max-width: 480px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

/* ========== CONTACT ========== */
.contact {
  background: var(--cream-50);
  padding: 96px 0;
}

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

.contact-info .section-tag { margin-bottom: 16px; }
.contact-info h2 { margin-bottom: 16px; }
.contact-info > p { color: var(--text-muted); margin-bottom: 32px; font-size: 1.02rem; }

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-item svg { flex-shrink: 0; margin-top: 2px; }
.contact-item strong { display: block; font-weight: 600; color: var(--text-dark); margin-bottom: 2px; }
.contact-item span, .contact-item a { color: var(--text-muted); font-size: 0.95rem; }
.contact-item a { color: var(--emerald-600); font-weight: 500; }
.contact-item a:hover { text-decoration: underline; }

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* Form */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--cream-200);
}
.contact-form-wrap h3 {
  font-family: var(--font-heading);
  margin-bottom: 24px;
  color: var(--text-dark);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.form-group label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dark);
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 16px;
  border: 1.5px solid var(--cream-300);
  border-radius: var(--radius-sm);
  background: var(--cream-50);
  color: var(--text-dark);
  transition: all var(--transition);
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--emerald-500);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-light); }

.form-notice {
  font-size: 0.82rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 12px;
}

.form-success {
  text-align: center;
  padding: 40px 20px;
}
.form-success svg { margin: 0 auto 16px; }
.form-success h3 { color: var(--emerald-700); margin-bottom: 8px; }
.form-success p { color: var(--text-muted); margin-bottom: 24px; }

/* ========== FOOTER ========== */
.footer {
  background: var(--emerald-900);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-logo {
  color: var(--white);
  margin-bottom: 16px;
}
.footer-logo:hover { color: var(--emerald-300); }

.footer-brand p { font-size: 0.92rem; line-height: 1.7; }

.footer-links h4,
.footer-contact h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--emerald-300); }

.footer-contact p {
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
  line-height: 1.6;
}
.footer-contact a { color: var(--emerald-300); }
.footer-contact a:hover { text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.85rem; }
.footer-bottom .disclaimer { font-size: 0.8rem; color: rgba(255,255,255,0.4); max-width: 480px; text-align: right; }

/* ========== SCROLL REVEAL (progressive enhancement) ========== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* No-reduce-motion: content always visible */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-text p { margin: 0 auto; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--cream-50);
    flex-direction: column;
    align-items: flex-start;
    padding: 96px 32px 32px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
    transition: right var(--transition);
    z-index: 999;
  }
  .nav-links.open { right: 0; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 16px; width: 100%; }
  .nav-links .btn { text-align: center; justify-content: center; margin-top: 8px; }

  .hero { min-height: 85vh; }
  .hero-content { padding: 40px 0; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-trust { flex-direction: column; gap: 16px; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image-wrap { max-width: 480px; margin: 0 auto; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-form-wrap { padding: 28px; }
  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .footer-bottom .disclaimer { text-align: center; }

  .cta-actions { flex-direction: column; width: 100%; }
  .cta-actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
}

/* Mobile overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.nav-overlay.active { opacity: 1; pointer-events: all; }
