*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #1a5fa8;
  --light-blue: #e8f2fc;
  --dark: #0d2137;
  --mid: #4a6480;
  --white: #ffffff;
  --off-white: #f6f9fc;
  --accent: #2ecc8a;
}

html { scroll-behavior: smooth; }
body { font-family: 'Nunito', sans-serif; background: var(--white); color: var(--dark); overflow-x: hidden; }

/* TOP BAR */
.top-bar {
  background: var(--blue);
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  padding: 0.5rem 4rem;
  display: flex; justify-content: space-between; align-items: center;
  letter-spacing: 0.03em;
}

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 4rem;
  background: var(--white);
  box-shadow: 0 2px 20px rgba(26,95,168,0.08);
}

.nav-logo {
  font-family: 'Lora', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--dark);
}
.nav-logo span { color: var(--blue); font-size: 1.6rem; margin-right: 0.2rem; }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: var(--mid); text-decoration: none; font-size: 0.9rem; font-weight: 600; transition: color 0.2s; }
.nav-links a:hover { color: var(--blue); }

.nav-cta {
  background: var(--blue);
  color: #fff;
  padding: 0.65rem 1.5rem;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 4px;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--dark); }

.hamburger { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--dark); }

/* HERO */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 80px);
  background: linear-gradient(135deg, var(--off-white) 0%, var(--light-blue) 100%);
  overflow: hidden;
}

.hero-content {
  padding: 5rem 4rem;
  display: flex; flex-direction: column; justify-content: center;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent);
  color: #fff;
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  width: fit-content;
}

.hero-content h1 {
  font-family: 'Lora', serif;
  font-size: clamp(2.8rem, 4.5vw, 4.5rem);
  line-height: 1.1;
  color: var(--dark);
  margin-bottom: 1.5rem;
}
.hero-content h1 em { color: var(--blue); font-style: italic; }

.hero-content p { color: var(--mid); font-size: 1rem; line-height: 1.8; max-width: 460px; margin-bottom: 2.5rem; }

.hero-btns { display: flex; gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap; }

.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  padding: 0.85rem 2rem;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 4px;
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
  border: none;
  font-family: 'Nunito', sans-serif;
}
.btn-primary:hover { background: var(--dark); transform: translateY(-2px); }

.btn-outline {
  display: inline-block;
  border: 2px solid var(--blue);
  color: var(--blue);
  padding: 0.85rem 2rem;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 4px;
  transition: all 0.2s;
}
.btn-outline:hover { background: var(--blue); color: #fff; }

.hero-trust { display: flex; align-items: center; gap: 2rem; }
.trust-item span { display: block; font-family: 'Lora', serif; font-size: 1.8rem; font-weight: 600; color: var(--blue); }
.trust-item p { font-size: 0.78rem; color: var(--mid); margin-top: 0.2rem; }
.trust-divider { width: 1px; height: 40px; background: rgba(26,95,168,0.2); }

.hero-img { position: relative; display: flex; align-items: flex-end; justify-content: center; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hero-card {
  position: absolute; bottom: 3rem; left: -1.5rem;
  background: #fff;
  padding: 1rem 1.5rem;
  display: flex; align-items: center; gap: 1rem;
  box-shadow: 0 10px 40px rgba(26,95,168,0.15);
  border-radius: 8px;
  border-left: 4px solid var(--accent);
}
.hc-icon { width: 36px; height: 36px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; flex-shrink: 0; }
.hero-card strong { display: block; font-size: 0.88rem; color: var(--dark); }
.hero-card p { font-size: 0.75rem; color: var(--mid); margin: 0; }

/* QUICK ACTIONS */
.quick-actions {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--dark);
}

.qa-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.8rem 2rem;
  text-decoration: none;
  border-right: 1px solid rgba(255,255,255,0.06);
  transition: background 0.2s;
}
.qa-item:last-child { border-right: none; }
.qa-item:hover { background: rgba(255,255,255,0.05); }
.qa-item span { font-size: 1.8rem; flex-shrink: 0; }
.qa-item strong { display: block; color: #fff; font-size: 0.9rem; margin-bottom: 0.2rem; }
.qa-item p { color: rgba(255,255,255,0.45); font-size: 0.78rem; margin: 0; }

/* SPECIALTIES */
.specialties { padding: 7rem 4rem; background: var(--off-white); }
.s-label { font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--blue); margin-bottom: 0.5rem; font-weight: 700; }
.specialties h2, .doctors h2, .appt-left h2 {
  font-family: 'Lora', serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  color: var(--dark);
  margin-bottom: 3rem;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.spec-card {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid rgba(26,95,168,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}
.spec-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(26,95,168,0.1); }
.spec-icon { font-size: 2rem; margin-bottom: 0.8rem; }
.spec-card h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; }
.spec-card p { font-size: 0.82rem; color: var(--mid); line-height: 1.6; }

/* DOCTORS */
.doctors { padding: 7rem 4rem; }
.doctors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.doc-card { background: var(--off-white); border-radius: 8px; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; }
.doc-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(26,95,168,0.1); }
.doc-img { height: 240px; background-size: cover; background-position: top center; }
.doc-info { padding: 1.5rem; }
.doc-info h3 { font-family: 'Lora', serif; font-size: 1.05rem; color: var(--dark); margin-bottom: 0.3rem; }
.doc-spec { font-size: 0.75rem; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.7rem; }
.doc-info p { font-size: 0.8rem; color: var(--mid); line-height: 1.6; margin-bottom: 1rem; }
.doc-btn {
  display: block; text-align: center; background: var(--blue); color: #fff;
  padding: 0.6rem; text-decoration: none; font-size: 0.8rem; font-weight: 700;
  border-radius: 4px; transition: background 0.2s;
}
.doc-btn:hover { background: var(--dark); }

/* APPOINTMENT */
.appointment {
  display: grid; grid-template-columns: 1fr 1.3fr;
  background: var(--dark);
}

.appt-left { padding: 6rem 4rem; display: flex; flex-direction: column; justify-content: center; }
.appt-left .s-label.light { color: var(--accent); }
.appt-left h2 { color: #fff; }
.appt-left > p { color: rgba(255,255,255,0.55); font-size: 0.95rem; line-height: 1.8; margin-bottom: 2rem; }
.appt-features div { color: rgba(255,255,255,0.5); font-size: 0.88rem; padding: 0.4rem 0; }
.appt-features div { color: var(--accent); }

.appt-right { padding: 6rem 4rem; background: var(--off-white); display: flex; align-items: center; }

.appt-form { width: 100%; }
.appt-form h3 { font-family: 'Lora', serif; font-size: 1.8rem; color: var(--dark); margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.appt-form input, .appt-form select, .appt-form textarea {
  width: 100%; padding: 0.85rem 1rem;
  border: 1px solid rgba(26,95,168,0.2);
  background: #fff;
  font-family: 'Nunito', sans-serif; font-size: 0.88rem; color: var(--dark);
  margin-bottom: 1rem; outline: none; border-radius: 4px;
  transition: border-color 0.2s;
}
.appt-form input:focus, .appt-form select:focus, .appt-form textarea:focus { border-color: var(--blue); }
.appt-form .btn-primary { width: 100%; border-radius: 4px; }
#appt-msg { color: var(--accent); font-size: 0.85rem; margin-top: 0.5rem; font-weight: 700; }

/* FOOTER */
.footer { background: #070f18; padding: 4rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.f-logo { font-family: 'Lora', serif; font-size: 1.5rem; color: #fff; margin-bottom: 2rem; }
.f-logo span { color: var(--accent); margin-right: 0.3rem; font-size: 1.7rem; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-bottom: 2rem; }
.footer-cols h4 { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.7rem; }
.footer-cols p { color: rgba(255,255,255,0.4); font-size: 0.85rem; line-height: 1.7; }
.f-credit { color: rgba(255,255,255,0.2); font-size: 0.78rem; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 1.5rem; }
.f-credit a { color: var(--accent); text-decoration: none; }

@media (max-width: 900px) {
  .top-bar { display: none; }
  .nav { padding: 1rem 1.5rem; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: block; }
  .hero { grid-template-columns: 1fr; }
  .hero-content { padding: 3rem 1.5rem; }
  .hero-img { height: 300px; }
  .quick-actions { grid-template-columns: 1fr 1fr; }
  .specialties, .doctors { padding: 4rem 1.5rem; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .doctors-grid { grid-template-columns: 1fr 1fr; }
  .appointment { grid-template-columns: 1fr; }
  .appt-left, .appt-right { padding: 4rem 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer { padding: 3rem 1.5rem; }
  .footer-cols { grid-template-columns: 1fr; }
}