@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

:root {
  --primary: #0060df;
  --secondary: #00b894;
  --dark: #1a1a1a;
  --light: #f8f9fa;
  --gray: #6c757d;
  --shadow: 0 2px 6px rgba(0,0,0,0.08);
  --radius: 12px;
  --transition: all 0.3s cubic-bezier(.4,0,.2,1);
}

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

html, body {
  margin: 0;
  padding: 0;
  width: 100vw;
  min-height: 100vh;
  font-family: 'Inter', Arial, sans-serif;
  background: var(--light);
  color: var(--dark);
}

/* Grid base for full-page layout */
body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
}

/* Sections */
.section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 2.5rem;
  position: relative;
}
.section-title::after {
  content: '';
  width: 60px;
  height: 3px;
  background: var(--primary);
  display: block;
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

/* Header */
.header {
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 10px 0;
}

.header-flex {
  position: relative; /* make it easier to absolutely position children if needed */
}

/* Mobile styles for hamburger positioning */
@media (max-width: 600px) {
  .nav-toggle {
    display: block;
    position: absolute;
    right: 20px;  /* match container padding */
    top: 50%;
    transform: translateY(-50%);
  }
  
  /* When nav is open, push nav down to avoid overlapping toggle if needed */
  .nav.open {
    margin-top: 48px; /* height of header or toggle + some spacing */
  }
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--primary);
}
.logo img {
  height: 40px;
  margin-right: 10px;
  border-radius: 8px;
  background: #e3f0fd;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: nowrap;
  transition: max-height 0.3s ease-in-out;
  max-height: none; /* default no limit */
}

/* Hide nav on mobile by default */
@media (max-width: 900px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-height: 0;
    overflow: hidden;
  }
  .nav.open {
    max-height: 600px; /* large enough for all menu items */
  }
  .nav a {
    width: 100%;
    padding: 12px 20px;
    box-sizing: border-box;
    border-bottom: 1px solid #eee;
  }
  .nav a.cta-btn {
    border-radius: 0 0 var(--radius) var(--radius);
    margin-top: 8px;
  }
}

/* Nav links */
.nav a {
  color: var(--dark);
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 20px;
  transition: var(--transition);
}
.nav a.cta-btn,
.cta-btn {
  background: var(--primary);
  color: #fff !important;
  border-radius: 20px;
  font-weight: 700;
  transition: background 0.2s;
  padding: 8px 20px;
}
.nav a.cta-btn:hover,
.cta-btn:hover {
  background: #0050b3;
  color: #fff;
}

/* Hamburger Button */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 110; /* On top of nav */
}
.nav-toggle:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Hamburger icon lines */
.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  background-color: var(--primary);
  height: 3px;
  width: 26px;
  border-radius: 3px;
  position: relative;
  transition: all 0.3s ease;
}
.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}
.hamburger::before {
  top: -8px;
}
.hamburger::after {
  top: 8px;
}

/* Animate hamburger icon to X on open */
.nav-toggle.open .hamburger {
  background-color: transparent;
}
.nav-toggle.open .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}
.nav-toggle.open .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #f8fafc 0%, #e3f0fd 100%);
  min-height: 70vh;
  padding: 40px 0 0;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-text {
  max-width: 520px;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 96, 223, 0.12);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.hero-title {
  font-size: 2.7rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.2rem;
  color: var(--dark);
}

.hero-title .highlight {
  color: var(--primary);
  position: relative;
}
.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 1.4rem;
}

.hero-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.8rem;
  color: var(--dark);
  font-weight: 500;
}

.hero-features i {
  color: var(--secondary);
  margin-right: 0.5rem;
}

.hero-cta {
  margin-top: 1.5rem;
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 0.7rem 1.3rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
  z-index: 2;
  position: relative;
}

/* Hero image as right background */
.hero-image-wrap {
  width: 100%;
  min-height: 320px;
  border-radius: 20px;
  background-image: url('assets/PLACEHOLDER_HERO_IMAGE.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 20px 40px rgba(0,96,223,0.15);
}

/* Decorative shapes */
.hero-bg-shapes {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
  animation: float 6s ease-in-out infinite;
}
.shape-1 {
  width: 260px; height: 260px;
  top: 10%; right: 10%;
  background: var(--primary);
  animation-delay: 0s;
}
.shape-2 {
  width: 140px; height: 140px;
  bottom: 20%; left: 8%;
  background: var(--secondary);
  animation-delay: 2s;
}
.shape-3 {
  width: 90px; height: 90px;
  top: 60%; right: 60%;
  background: var(--primary);
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px);}
  50% { transform: translateY(-20px);}
}

/* About Section */
.about-flex {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.about-img {
  width: 100%;
  max-width: 350px;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0, 96, 223, 0.10);
  background: #fff;
}
.about ul {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0 0;
}
.about li {
  margin-bottom: 0.7rem;
  color: var(--primary);
  font-weight: 600;
}
.about li i {
  color: var(--secondary);
  margin-right: 0.5rem;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto 0 auto;
  padding: 0 20px;
}
.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 32px rgba(0, 96, 223, 0.13);
}
.service-icon {
  font-size: 2.2rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}
.service-card h3 {
  margin: 0.7rem 0 0.5rem 0;
  color: var(--primary);
}

/* Doctor Section */
.doctor-flex {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.doctor-img {
  width: 100%;
  max-width: 280px;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0, 96, 223, 0.10);
  background: #fff;
}
.doctor ul {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0 0;
}
.doctor li {
  margin-bottom: 0.7rem;
  color: var(--primary);
  font-weight: 600;
}
.doctor li i {
  color: var(--secondary);
  margin-right: 0.5rem;
}

/* Conditions Section */
.conditions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  max-width: 1200px;
  margin: 2rem auto 0 auto;
  padding: 0 20px;
  justify-items: center;
}
.condition-card {
  background: #e3f0fd;
  color: var(--primary);
  border-radius: 1rem;
  padding: 1rem 1.5rem;
  font-weight: 600;
  text-align: center;
  min-width: 150px;
  box-shadow: 0 1px 6px rgba(0, 96, 223, 0.07);
  transition: var(--transition);
  width: 100%;
  max-width: 250px;
}
.condition-card:hover {
  background: var(--secondary);
  color: #fff;
}

/* Contact Section */
.contact-card {
  background: #e3f0fd;
  border-radius: 1.2rem;
  box-shadow: 0 2px 12px rgba(0, 96, 223, 0.08);
  padding: 2rem 1.5rem;
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}
.contact-cta {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 1.2rem 0;
}
.contact-note {
  color: #555;
  font-size: 1rem;
}

/* Footer */
.footer {
  background: var(--primary);
  color: #fff;
  padding: 2rem 20px 1rem;
  margin-top: 2rem;
}
.footer-flex {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.footer h3,
.footer h4 {
  color: #fff;
  margin-bottom: 0.7rem;
}
.footer a {
  color: #fff;
  text-decoration: underline;
}
.footer-bottom {
  text-align: center;
  margin-top: 1rem;
  color: #e3f0fd;
  font-size: 0.95rem;
}

img, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Design */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-image-wrap {
    margin: 2rem auto 0 auto;
    min-height: 200px;
  }
  .about-flex {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 0 15px;
  }
  .services-grid {
    grid-template-columns: 1fr 1fr;
    padding: 0 15px;
  }
  .doctor-flex {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 0 15px;
  }
  .footer-flex {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 0 15px;
  }
  .condition-card {
    max-width: 100%;
  }
}
@media (max-width: 600px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .conditions-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 1.8rem;
  }
  .hero-image-wrap {
    min-height: 140px;
  }
  /* Show hamburger */
  .nav-toggle {
    display: block;
  }
}
@media (max-width: 400px) {
  html,
  body {
    font-size: 0.95rem;
  }
  .hero-image-wrap {
    min-height: 100px;
  }
}
