:root {
  --mint: #d4f5ec;
  --teal: #1aab87;
  --teal-dark: #0e8a6b;
  --navy: #0d1f2d;
  --slate: #4a6070;
  --light: #f8fbff;
  --white: #ffffff;
  --border: #e2ecf5;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(13,31,45,0.08);
  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--light);
  color: var(--navy);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4 { color: var(--navy); }
p { color: var(--slate); }

/* ─── BASE LAYOUT & SPACING (MOBILE FIRST) ─── */
section { padding: 4rem 1.25rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }

/* ─── NAV ─── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248,251,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.25rem;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  font-family: var(--font-serif);
  font-size: 1.25rem; color: var(--navy);
  text-decoration: none; 
  display: flex; align-items: center; gap: 0.5rem;
  z-index: 101;
}
.logo-icon {
  width: 28px; height: 28px;
  background: var(--teal); border-radius: 8px;
  display: grid; place-items: center;
  color: white; font-size: 0.9rem;
}

.hamburger { 
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px; 
  width: 36px; height: 36px; z-index: 101;
  -webkit-tap-highlight-color: transparent;
}
.hamburger span { 
  display: block; width: 24px; height: 2px; 
  background: var(--navy); border-radius: 2px; 
  transition: 0.3s ease; margin: 0 auto;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-links { 
  display: flex; list-style: none;
  position: fixed; top: 65px; left: 0; right: 0;
  background: var(--white);
  flex-direction: column;
  padding: 1.5rem 1.25rem 2rem;
  gap: 0.5rem;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  border-bottom: 1px solid var(--border);
  transform: translateY(-150%);
  opacity: 0; visibility: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}
.nav-links.open {
  transform: translateY(0);
  opacity: 1; visibility: visible;
}
.nav-links a {
  display: block;
  font-size: 1.05rem; font-weight: 600;
  color: var(--navy); text-decoration: none;
  padding: 0.8rem 1rem; border-radius: 12px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a:active { 
  color: var(--teal-dark); background: var(--mint); 
}

.btn-nav { display: none; }

/* ─── BUTTONS ─── */
.btn-primary, .btn-ghost {
  display: inline-flex; justify-content: center; align-items: center;
  width: 100%; text-align: center;
  font-family: var(--font-sans); font-size: 1rem; font-weight: 600;
  padding: 1rem 1.5rem; border-radius: 999px;
  text-decoration: none; transition: all 0.2s;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.btn-primary {
  background: var(--teal); color: white; border: none;
  box-shadow: 0 4px 12px rgba(26,171,135,0.25);
}
.btn-primary:active, .btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--navy);
  border: 2px solid var(--border);
}
.btn-ghost:active, .btn-ghost:hover { border-color: var(--teal); color: var(--teal); background: var(--mint); }

/* ─── HERO ─── */
.hero {
  padding: 3rem 1.25rem 4rem;
  display: flex; flex-direction: column; gap: 2rem;
  max-width: 1200px; margin: 0 auto;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--mint); color: var(--teal-dark);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em;
  padding: 0.4rem 1rem; border-radius: 999px;
  margin-bottom: 1.5rem; text-transform: uppercase;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  line-height: 1.1; color: var(--navy);
  margin-bottom: 1rem;
}
.hero h1 em { font-style: italic; color: var(--teal); }
.hero p {
  font-size: 1rem; color: var(--slate);
  margin-bottom: 2rem; line-height: 1.6;
}
.hero-actions { display: flex; flex-direction: column; gap: 0.75rem; }

.hero-img-wrap { 
  height: 320px; 
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
}

/* ─── HOURS ─── */
.hours-wrapper { padding: 0 1.25rem; margin-bottom: 3rem; max-width: 1200px; margin-left: auto; margin-right: auto; }
.hours-section {
  background: var(--navy);
  padding: 1.5rem;
  border-radius: var(--radius);
  color: white;
}
.hours-inner {
  display: flex; flex-direction: column; gap: 1.5rem;
}
.hours-block h3 { 
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; 
  color: rgba(255,255,255,0.6); margin-bottom: 0.75rem; 
}
.hours-row { display: flex; flex-direction: column; gap: 1rem; }
.hours-item { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 0.75rem;}
.hours-item:last-child { border-bottom: none; padding-bottom: 0; }
.hours-item .day { font-size: 0.9rem; color: rgba(255,255,255,0.8); }
.hours-item .time { font-size: 0.9rem; font-weight: 600; color: white; }

.status-wrapper { display: flex; align-items: center; justify-content: space-between; }
.status-badge {
  background: rgba(26,171,135,0.2); border: 1px solid rgba(26,171,135,0.4);
  color: #5eebb0; padding: 0.4rem 1rem; border-radius: 999px;
  font-size: 0.85rem; font-weight: 600; display: inline-flex; align-items: center; gap: 0.5rem;
}
.status-badge::before { content: ''; width: 8px; height: 8px; background: #5eebb0; border-radius: 50%; box-shadow: 0 0 8px rgba(94,235,176,0.8); }

/* ─── SECTION COMMONS ─── */
.section-tag {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--teal); background: var(--mint);
  padding: 0.35rem 1rem; border-radius: 999px; margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  line-height: 1.2; margin-bottom: 1rem;
}
.section-sub { font-size: 1rem; line-height: 1.6; }
.section-header { margin-bottom: 2.5rem; }

/* ─── SERVICES ─── */
#services { background: var(--white); }
.services-grid {
  display: flex; flex-direction: column; gap: 1rem;
}
.service-card {
  background: var(--light); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.service-card:active { border-color: var(--teal); background: var(--white); }
.service-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--mint); display: grid; place-items: center;
  font-size: 1.4rem; margin-bottom: 1rem;
}
.service-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.service-card p { font-size: 0.95rem; }
.service-card .explore-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.9rem; font-weight: 600; color: var(--teal);
  text-decoration: none; margin-top: 1rem; padding: 0.5rem 0;
}

/* ─── DOCTORS ─── */
#doctors { background: var(--light); }
.doctors-grid { display: flex; flex-direction: column; gap: 1.5rem; }
.doctor-card {
  background: white; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.doctor-img { height: 280px; }
.doctor-img img { width: 100%; height: 100%; object-fit: cover; }
.doctor-info { padding: 1.5rem; }
.doctor-info h3 { font-size: 1.2rem; font-weight: 700; }
.doctor-info .specialty {
  font-size: 0.85rem; font-weight: 700; color: var(--teal);
  display: block; margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em;
}
.doctor-info p { font-size: 0.95rem; margin-bottom: 1.5rem; }
.doctor-footer { display: flex; justify-content: space-between; align-items: center; }
.doctor-footer .btn-primary { width: auto; padding: 0.7rem 1.5rem; font-size: 0.9rem; }
.star-rating { color: #f59e0b; font-size: 0.9rem; }

/* ─── PRICING ─── */
#pricing { background: var(--white); }
.pricing-grid { display: flex; flex-direction: column; gap: 1.5rem; }
.pricing-card {
  border: 2px solid var(--border); border-radius: var(--radius);
  padding: 2.5rem 1.5rem 2rem; position: relative;
  background: var(--light);
}
.pricing-card.featured { background: var(--navy); border-color: var(--navy); color: white; }
.featured-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: white;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.35rem 1rem; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 4px 10px rgba(26,171,135,0.3);
}
.plan-name { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); margin-bottom: 0.5rem; }
.pricing-card.featured .plan-name { color: rgba(255,255,255,0.7); }
.plan-price { font-family: var(--font-serif); font-size: 3rem; color: var(--navy); line-height: 1; margin-bottom: 0.5rem; }
.pricing-card.featured .plan-price { color: white; }
.plan-price sup { font-size: 1.4rem; vertical-align: super; }
.plan-price sub { font-size: 0.9rem; color: var(--slate); font-family: var(--font-sans); }
.pricing-card.featured .plan-price sub { color: rgba(255,255,255,0.5); }
.plan-desc { font-size: 0.95rem; color: var(--slate); margin-bottom: 1.5rem; }
.pricing-card.featured .plan-desc { color: rgba(255,255,255,0.8); }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; }
.feature-list li { font-size: 0.95rem; display: flex; align-items: flex-start; gap: 0.75rem; color: var(--navy); }
.pricing-card.featured .feature-list li { color: white; }
.feature-list li::before { content: '✓'; font-weight: 700; color: var(--teal); margin-top: 2px; }
.pricing-card.featured .feature-list li::before { color: #5eebb0; }

/* ─── TESTIMONIALS ─── */
#testimonials { background: var(--light); overflow: hidden; }
.testimonials-grid { 
  display: flex; overflow-x: auto; gap: 1rem; padding-bottom: 1rem;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; 
}
.testimonials-grid::-webkit-scrollbar { display: none; } 
.testimonial-card {
  min-width: 85vw; scroll-snap-align: center;
  background: white; border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow);
}
.testimonial-card p { font-size: 1rem; line-height: 1.6; margin-bottom: 1.5rem; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.author-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--mint); display: grid; place-items: center;
  font-weight: 700; color: var(--teal-dark); font-size: 1rem;
}
.author-info strong { display: block; font-size: 1rem; font-weight: 700; }
.author-info span { font-size: 0.85rem; color: var(--teal); font-weight: 600; }

/* ─── ABOUT ─── */
#about { background: var(--white); }
.about-grid { display: flex; flex-direction: column; gap: 2.5rem; }
.about-img-wrap img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.about-stat {
  background: var(--light); border-radius: 12px; padding: 1.25rem 0.5rem;
  border: 1px solid var(--border); text-align: center;
}
.about-stat strong { display: block; font-family: var(--font-serif); font-size: 2rem; color: var(--teal); margin-bottom: 0.25rem;}
.about-stat span { font-size: 0.85rem; font-weight: 600; color: var(--slate); }

.about-content h2 { margin-bottom: 1rem; }
.about-content p { margin-bottom: 1.5rem; }

.about-features { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
.about-feature { display: flex; gap: 1rem; align-items: flex-start; }
.about-feature .feat-icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--mint);
  display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0;
}
.about-feature h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.about-feature p { font-size: 0.95rem; margin-bottom: 0; }

/* ─── CONTACT ─── */
#contact { background: var(--light); }
.contact-grid { display: flex; flex-direction: column; gap: 3rem; }
.contact-info h2 { font-family: var(--font-serif); font-size: 2.2rem; margin-bottom: 1rem; }
.contact-info p { font-size: 1rem; margin-bottom: 2rem; }
.contact-details { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-item { display: flex; align-items: center; gap: 1rem; }
.contact-item .ci-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--mint);
  display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0;
}
.contact-item span { font-size: 0.9rem; color: var(--slate); }
.contact-item strong { display: block; font-size: 1rem; font-weight: 600; color: var(--navy); }

.contact-form {
  background: white; border-radius: var(--radius); padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
}
.contact-form h3 { font-family: var(--font-serif); font-size: 1.8rem; margin-bottom: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.25rem; }
.form-group label { font-size: 0.9rem; font-weight: 600; color: var(--navy); }
.form-group input, .form-group select, .form-group textarea {
  font-family: var(--font-sans); font-size: 1rem; color: var(--navy);
  border: 1.5px solid var(--border); border-radius: 12px;
  padding: 0.9rem 1rem; background: var(--light);
  outline: none; width: 100%; transition: border-color 0.2s;
  -webkit-appearance: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { 
  border-color: var(--teal); background: white; 
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* ─── FOOTER ─── */
footer { background: var(--navy); color: rgba(255,255,255,0.7); padding: 4rem 1.25rem 2rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 3rem; }
.footer-brand .logo { color: white; margin-bottom: 1rem; display: inline-flex; font-size: 1.4rem; }
.footer-brand p { font-size: 0.95rem; line-height: 1.6; }

.footer-cols { display: flex; flex-direction: column; gap: 2.5rem; }
.footer-col h4 { color: white; font-size: 1rem; font-weight: 700; margin-bottom: 1.25rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col ul a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.95rem; transition: color 0.2s; padding: 0.2rem 0; display: inline-block; }
.footer-col ul a:active { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem;
  text-align: center; font-size: 0.85rem;
}
.footer-socials { display: flex; justify-content: center; gap: 1rem; }
.social-btn {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255,255,255,0.1); display: grid; place-items: center;
  color: white; text-decoration: none; font-size: 1.1rem; transition: background 0.2s;
}
.social-btn:active { background: var(--teal); }

/* ─── TABLET / DESKTOP UP (Responsive Enhancements) ─── */
@media (min-width: 768px) {
  section { padding: 5rem 2rem; }
  
  .nav-inner { justify-content: flex-start; gap: 2rem; }
  .logo { margin-right: auto; }
  .hamburger { display: none; }
  .nav-links {
    position: static; flex-direction: row; background: transparent; padding: 0;
    box-shadow: none; border: none; transform: none; opacity: 1; visibility: visible; z-index: auto;
    gap: 0.5rem;
  }
  .nav-links a { font-size: 0.9rem; padding: 0.5rem 1rem; border-radius: 8px; }
  .nav-links a:hover { color: var(--teal); background: var(--mint); }
  .btn-nav { display: inline-block; width: auto; padding: 0.6rem 1.5rem; font-size: 0.9rem; margin-left: auto; border-radius: 999px; }
  .btn-nav {
    background: var(--navy); color: white; border: none; cursor: pointer;
    font-family: var(--font-sans); font-weight: 600; text-decoration: none; transition: background 0.2s; white-space: nowrap;
  }
  .btn-nav:hover { background: var(--teal); }
  
  .hero { flex-direction: row; align-items: center; padding: 6rem 2rem; }
  .hero > div { flex: 1; }
  .hero-img-wrap { height: 460px; }
  .hero-actions { flex-direction: row; }
  .btn-primary, .btn-ghost { width: auto; padding: 0.8rem 1.9rem; }
  
  .hours-wrapper { padding: 0 2rem; margin-bottom: 5rem; }
  .hours-inner { flex-direction: row; justify-content: space-between; align-items: center; }
  .hours-row { flex-direction: row; gap: 2.5rem; }
  .hours-item { border: none; padding: 0; gap: 1rem; }
  .hours-item .day { font-size: 0.85rem; }
  .hours-divider { width: 1px; background: rgba(255,255,255,0.12); align-self: stretch; display: block; }
  
  .section-header { text-align: center; margin-bottom: 3.5rem; }
  .section-sub { margin: 0 auto; max-width: 600px; }
  .section-header-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 3.5rem; }
  .section-header-row .section-sub { margin: 0; text-align: left; }
  
  .services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
  .service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #a8e8d4; }
  
  .doctors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
  .doctor-card:hover { transform: translateY(-4px); }
  
  .pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .pricing-card:hover { border-color: var(--teal); }
  
  .testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; padding: 0; }
  .testimonial-card { min-width: 0; }
  
  .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
  .contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: start; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  
  .footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; }
  .footer-cols { display: contents; }
  .footer-col ul a:hover { color: #a8e8d4; }
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
  .social-btn:hover { background: var(--teal); }
}

.hours-divider { display: none; }
@media (min-width: 768px) { .hours-divider { display: block; } }

@media (max-width: 767px) {
  .section-header-row { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2.5rem; }
}
