/* --- 1. Global Variables & Reset --- */
:root {
  /* Color Palette - Medical / Natural Theme */
  --primary-color: #2E8B57;
  /* SeaGreen */
  --primary-dark: #1E5E3A;
  --accent-color: #20B2AA;
  /* LightSeaGreen */
  --bg-color: #f9fdfa;
  /* Very light mint/white */
  --text-color: #333333;
  --text-light: #666666;
  --white: #ffffff;
  --error: #d9534f;

  /* Spacing & Sizing for Accessibility */
  --nav-height: 80px;
  --container-padding: 2rem;
  --border-radius: 8px;
  --font-base: 18px;
  /* Large readable text */
}

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

body {
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  font-size: var(--font-base);
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

ul {
  list-style: none;
}

/* --- Utility Classes --- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: bold;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-secondary {
  background-color: var(--accent-color);
  color: var(--white);
}

.btn-outline {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.section-container {
  padding: 4rem var(--container-padding);
  max-width: 1400px;
  margin: 0 auto;
}

.bg-light {
  background-color: #eef7f2;
}

/* --- 2. Sticky Navigation Bar --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--white);
  height: var(--nav-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--container-padding);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-color);
  padding: 5px 10px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
  border-bottom: 3px solid var(--primary-color);
}

.menu-toggle {
  display: none;
  /* Hidden on desktop */
}

/* --- 3. Hero Section (The Strict 25/75 Split) --- */
.hero-section {
  display: flex;
  flex-direction: column;
  /* Ensure it takes up significant screen real estate */
  height: calc(100vh - var(--nav-height));
  min-height: 800px;
  /* Fallback for content density */
}

/* Hero Top (25%) */
.hero-top {
  flex: 1;
  /* Represents roughly 25% relative to flex:3 below */
  background-color: #e8f5e9;
  display: flex;
  padding: 0 var(--container-padding);
  align-items: center;
  border-bottom: 1px solid #c8e6c9;
}

.hero-avatar {
  width: 25%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.avatar-circle {
  width: 120px;
  height: 120px;
  background-color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  border: 4px solid var(--primary-color);
}

.hero-intro {
  width: 75%;
  padding-left: 2rem;
}

.hero-intro h1 {
  font-size: 2.5rem;
  color: var(--primary-dark);
  margin-bottom: 0.2rem;
}

.qualifications {
  font-weight: bold;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.doctor-quote {
  font-style: italic;
  font-size: 1.2rem;
  color: var(--text-light);
  border-left: 4px solid var(--primary-color);
  padding-left: 1rem;
}

/* Hero Bottom (75%) */
.hero-bottom {
  flex: 3;
  /* Represents 75% */
  display: flex;
  padding: 2rem var(--container-padding);
  gap: 2rem;
}

/* Bottom Left (35%) - Rules/Fees */
.appt-info-panel {
  width: 35%;
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.appt-info-panel h2 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.info-card {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: #f1f8f6;
  border-radius: 6px;
  border-left: 5px solid var(--accent-color);
}

.info-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fee-list li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.text-alert {
  color: var(--error);
  font-weight: bold;
}

.cta-wrapper {
  margin-top: auto;
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.cta-wrapper p {
  margin-bottom: 0.5rem;
}

/* Bottom Right (65%) - Calendar */
.appt-calendar-panel {
  width: 65%;
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.status-legend {
  font-size: 0.9rem;
}

.dot.green {
  height: 10px;
  width: 10px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
}

/* Visual Grid for Calendar */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 3 cards per row */
  gap: 1rem;
}

.cal-day-header {
  display: none;
  /* Hidden for this card layout style, can be enabled for table style */
}

.cal-slot {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  transition: 0.2s;
}

.cal-slot:hover {
  border-color: var(--primary-color);
  background-color: #f9fdfa;
}

.cal-slot .date {
  display: block;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.cal-slot .slots {
  display: block;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.cal-slot.full .slots {
  color: var(--error);
}

.btn-book {
  padding: 8px 16px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
}

.btn-book:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.calendar-note {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--text-light);
  text-align: center;
}

/* --- 4. About Section --- */
.split-layout {
  display: flex;
  gap: 4rem;
  align-items: center;
}

.split-left-image,
.split-right-content {
  flex: 1;
}

.img-placeholder {
  width: 100%;
  height: 300px;
  background-color: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.specs-list {
  margin: 1.5rem 0;
}

.specs-list li {
  margin-bottom: 0.5rem;
}

.social-links {
  margin-bottom: 1.5rem;
}

.social-links a {
  font-size: 1.5rem;
  margin-right: 15px;
  color: var(--primary-color);
}

/* --- 5. Testimony --- */
.testimony-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 3rem 0;
}

.testimony-box {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  max-width: 600px;
  text-align: left;
}

.t-header {
  display: flex;
  gap: 15px;
  margin-bottom: 1rem;
}

.t-avatar {
  width: 50px;
  height: 50px;
  background: #eee;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-btn {
  background: none;
  border: 1px solid #ccc;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
}

.center-btn {
  text-align: center;
}

/* --- 6. Contact Section --- */
.contact-split {
  display: flex;
  gap: 2rem;
}

.contact-left-20 {
  width: 20%;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 1.5rem;
  border-radius: var(--border-radius);
}

.contact-right-80 {
  width: 80%;
}

.simple-form .form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.simple-form input,
.simple-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-container input {
  width: auto;
}

/* --- 7. Footer --- */
.site-footer {
  background-color: #222;
  color: #fff;
  padding: 2rem;
  text-align: center;
  margin-top: 2rem;
}

.footer-links {
  margin-top: 1rem;
}

.footer-links a {
  color: #ccc;
  margin: 0 10px;
}

/* --- Responsive Media Queries (Mobile) --- */
@media (max-width: 900px) {
  .nav-links {
    display: none;
    /* Use JS to toggle */
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease forwards;
  }

  .menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
  }

  /* Stack Hero Section */
  .hero-section {
    height: auto;
    min-height: auto;
  }

  .hero-top {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1rem;
  }

  .hero-avatar,
  .hero-intro {
    width: 100%;
    padding: 0;
    margin-bottom: 1rem;
  }

  .hero-bottom {
    flex-direction: column;
    padding: 1rem;
  }

  .appt-info-panel,
  .appt-calendar-panel {
    width: 100%;
  }

  /* Stack Other Sections */
  .split-layout,
  .contact-split {
    flex-direction: column;
  }

  .contact-left-20,
  .contact-right-80 {
    width: 100%;
  }

  .calendar-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (max-width: 600px) {
  .calendar-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    flex-direction: column;
  }
}