/* ============================================
   EVANSDALE HEALTH CENTRE — Main Stylesheet
   ============================================ */

/* --- CSS Variables --- */
:root {
  --navy:       #0D2044;
  --navy-mid:   #0F2D5E;
  --teal:       #2BBFBF;
  --teal-dark:  #1FA8A8;
  --white:      #FFFFFF;
  --off-white:  #F5F7FA;
  --gray-100:   #F0F2F5;
  --gray-200:   #E2E6EC;
  --gray-400:   #9AA5B4;
  --gray-600:   #5A6474;
  --gray-800:   #2D3748;
  --text:       #1A2B47;
  --text-light: #5A6474;
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --shadow-sm:  0 2px 8px rgba(13,32,68,0.08);
  --shadow-md:  0 4px 20px rgba(13,32,68,0.12);
  --shadow-lg:  0 8px 40px rgba(13,32,68,0.16);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --transition: 0.25s ease;
  --container:  1160px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; }
h1 { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; font-family: var(--font-body); }
p  { color: var(--text-light); line-height: 1.7; }

/* --- Container --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Eyebrow --- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(43,191,191,0.12);
  border: 1px solid rgba(43,191,191,0.25);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.eyebrow::before { content: '✦'; font-size: 0.6rem; }

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  height: 68px;
  display: flex;
  align-items: center;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 48px; width: auto; object-fit: contain; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray-800);
  transition: color var(--transition);
  position: relative;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--navy); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 4px; }
.nav-dropdown > a::after {
  content: '';
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform var(--transition);
}
.nav-dropdown:hover > a::after { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 230px;
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--gray-600);
  transition: background var(--transition), color var(--transition);
}
.dropdown-menu a:hover { background: var(--gray-100); color: var(--navy); }

.btn-book {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 100px;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn-book:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn-book svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
  background: var(--navy);
  padding: 56px 0 0;
  overflow: hidden;
  position: relative;
}
.page-hero::after {
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  border: 60px solid rgba(255,255,255,0.04);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
}
.hero-content { padding-bottom: 48px; }
.hero-content h1 { color: var(--white); margin-bottom: 16px; }
.hero-content p { color: rgba(255,255,255,0.72); max-width: 440px; margin-bottom: 20px; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,0.7); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,0.4); }
.hero-image { position: relative; align-self: end; }
.hero-image img {
  width: 100%;
  max-width: 520px;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin-left: auto;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 100px;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-mid); transform: translateY(-1px); }
.btn-teal { background: var(--teal); color: var(--white); border-color: var(--teal); }
.btn-teal:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.btn-sm { padding: 8px 16px; font-size: 0.8rem; }

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { max-width: 540px; margin: 0 auto; }
.bg-light { background: var(--off-white); }
.bg-gray { background: var(--gray-100); }

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* Service card */
.service-card .card-image { position: relative; height: 200px; overflow: hidden; }
.service-card .card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.service-card:hover .card-image img { transform: scale(1.04); }
.card-badge {
  position: absolute;
  top: 12px; left: 12px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--teal);
  padding: 4px 10px;
  border-radius: 100px;
}
.card-badge.specialist { background: var(--navy); }
.card-badge.procedures { background: #6C63FF; }
.service-card .card-body { padding: 20px; }
.service-card .card-icon { width: 36px; height: 36px; color: var(--teal); margin-bottom: 12px; }
.service-card h3 { font-size: 1rem; margin-bottom: 8px; color: var(--text); }
.service-card p { font-size: 0.84rem; margin-bottom: 14px; }
.card-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}
.card-link:hover { gap: 8px; }

/* Doctor card */
.doctor-card { text-align: center; padding: 20px 16px; position: relative; }
.doctor-card .doctor-photo {
  width: 130px;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin: 0 auto 14px;
  background: var(--gray-100);
}
.doctor-card h3 { font-size: 0.92rem; margin-bottom: 4px; color: var(--text); }
.doctor-card .specialty { font-size: 0.78rem; color: var(--teal); font-weight: 600; margin-bottom: 14px; }
.badge-accepting {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--white);
  background: var(--teal);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 8px;
  white-space: nowrap;
}

/* ============================================
   CTA BAND
   ============================================ */
.cta-band {
  position: relative;
  background: var(--navy);
  padding: 72px 0;
  text-align: center;
  overflow: hidden;
}
.cta-band::before { display: none; }
.cta-band .eyebrow { margin-bottom: 16px; }
.cta-band h2 { color: var(--white); margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.68); max-width: 480px; margin: 0 auto 28px; }
.cta-band .btn-group { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #080F1E;
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand img {
  height: 52px;
  width: auto;
  object-fit: contain;
  margin-bottom: 14px;
  border-radius: 6px;
  background: var(--white);
  padding: 4px 8px;
}
.footer-brand p { font-size: 0.84rem; line-height: 1.6; color: rgba(255,255,255,0.55); max-width: 240px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
  font-size: 0.9rem;
}
.footer-social a:hover { border-color: var(--teal); color: var(--teal); }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { font-size: 0.84rem; color: rgba(255,255,255,0.55); transition: color var(--transition); }
.footer-col ul a:hover { color: var(--teal); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.6);
}
.footer-contact-item svg { width: 16px; height: 16px; color: var(--teal); flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: var(--teal); }

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }

/* ============================================
   RESPONSIVE — TABLET (max 1024px)
   ============================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-inner { gap: 24px; }
}

/* ============================================
   RESPONSIVE — MOBILE (max 768px)
   ============================================ */
@media (max-width: 768px) {

  /* Nav */
  .nav-links, .btn-book { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px; left: 0; right: 0; bottom: 0;
    background: var(--white);
    padding: 28px 24px;
    gap: 20px;
    align-items: flex-start;
    z-index: 999;
    overflow-y: auto;
  }
  .nav-links.open .btn-book {
    display: inline-flex;
    width: 100%;
    justify-content: center;
  }
  .nav-links.open .nav-dropdown > a::after { display: none; }
  .dropdown-menu {
    position: static;
    transform: none !important;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--teal);
    padding: 8px 0 8px 16px;
    opacity: 1;
    pointer-events: auto;
    min-width: unset;
    background: transparent;
  }
  .dropdown-menu a { color: var(--gray-600); padding: 6px 0; }

  /* Hero */
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .hero-content { padding-bottom: 40px; }

  /* Sections */
  .section { padding: 48px 0; }
  .cta-band { padding: 48px 0; }
  .section-header { margin-bottom: 32px; }

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

  /* Buttons */
  .btn-group { flex-direction: column; align-items: center; }
  .btn-group .btn { width: 100%; max-width: 280px; }
}

/* ============================================
   RESPONSIVE — SMALL MOBILE (max 480px)
   ============================================ */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.4rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-content { padding-bottom: 32px; }
}
