/* ==========================================================================
   Design System Variables & Base Resets
   ========================================================================== */
:root {
  --primary: #0f766e;
  --primary-dark: #064635;
  --primary-light: #e6fffa;
  --accent: #009688;
  --bg-light: #f8fafc;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-main);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}
/* ==========================================================================
   Navigation Header Spacing Fix
   ========================================================================== */
.navbar {
  background-color: var(--primary-dark, #064635);
  padding: 16px 40px; /* Gives nice breathing room on left and right edges */
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  box-sizing: border-box;
}

.nav-container {
  width: 100%;
  max-width: 1400px; /* Slightly wider container so the title doesn't feel cramped */
  margin: 0 auto;
  display: flex !important;
  justify-content: space-between !important; /* Pushes brand logo to LEFT and nav links to RIGHT */
  align-items: center !important;
  gap: 30px; /* Adds guaranteed minimum gap between title and links */
}

.brand-logo {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.5px;
  white-space: nowrap; /* Prevents facility name from awkward line-wrapping on wider screens */
  margin-right: auto;  /* Extra push to guarantee left alignment */
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 30px; /* Comfortable spacing between individual menu items (Home, About, etc.) */
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-links a:hover {
  color: #2dd4bf;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  list-style: none;
  padding: 8px 0;
  margin: 10px 0 0 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: var(--text-main);
  font-weight: 500;
}

.dropdown-menu li a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* ==========================================================================
   FORCE TOP HEADER & CARDS BELOW
   ========================================================================== */

/* Force vertical stacking on the section */
.services {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Header takes full 100% width on top */
.services-header {
  width: 100% !important;
  text-align: center !important;
  margin-bottom: 40px !important;
  display: block !important;
}

.services-header h2 {
  font-size: 2.5rem;
  color: #064635;
  margin-bottom: 12px;
  font-weight: 700;
}

.services-header .intro-text {
  font-size: 1.1rem;
  color: #555;
  max-width: 650px;
  margin: 0 auto !important;
  line-height: 1.6;
}

/* Cards layout directly beneath header */
.service-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  width: 100%;
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  padding: 24px;
  width: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.card-img-wrapper {
  position: relative;
  margin-bottom: 20px;
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
}

.card-icon {
  position: absolute;
  bottom: -15px;
  right: 15px;
  background: #0f766e;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.card h3 {
  color: #064635;
  font-size: 1.2rem;
  margin-top: 10px;
  margin-bottom: 10px;
}

.card p {
  font-size: 0.95rem;
  color: #64748b;
  margin: 0;
  line-height: 1.6;
}

/* ==========================================================================
   Pricing Section & Tables
   ========================================================================== */
.pricing-header {
  text-align: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 60px 20px;
  margin-top: 40px;
}

.pricing-header h1 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 700;
}

.pricing-header p {
  margin-top: 8px;
  font-size: 1.1rem;
  opacity: 0.9;
}

.pricing-section {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

.table-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.table-header {
  background-color: var(--white);
  padding: 20px 25px;
  border-bottom: 2px solid var(--primary-light);
}

.table-header h2 {
  margin: 0;
  color: var(--primary-dark);
  font-size: 1.5rem;
  font-weight: 600;
}

.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

th, td {
  padding: 14px 25px;
  text-align: left;
}

th {
  background-color: var(--primary);
  color: var(--white);
  text-transform: uppercase;
  font-size: 0.825rem;
  letter-spacing: 0.8px;
  font-weight: 600;
}

tr:nth-child(even) {
  background-color: #f8fafc;
}

tr:hover {
  background-color: var(--primary-light);
}

td {
  border-bottom: 1px solid #edf2f7;
  color: var(--text-main);
  font-size: 0.95rem;
}

/* Pricing Pill Badges */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
}

.badge.price { background-color: #e0f2fe; color: #0369a1; }
.badge.free { background-color: #dcfce7; color: #15803d; }
.badge.payment { background-color: #fef3c7; color: #b45309; }
.badge.special { background-color: #f3e8ff; color: #6b21a8; }

/* ==========================================================================
   Call to Action (CTA)
   ========================================================================== */
.cta {
  background: linear-gradient(135deg, #e0f2f1 0%, #ffffff 100%);
  border-top: 3px solid var(--accent);
  padding: 80px 20px;
  margin-top: 60px;
}

.cta-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.cta-content { flex: 1 1 400px; }

.cta-content h2 {
  font-size: 2.2rem;
  color: var(--primary-dark);
  margin-bottom: 15px;
}

.cta-content p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.btn-secondary:hover {
  background: var(--accent);
  color: var(--white);
}

.cta-image {
  flex: 1 1 350px;
  text-align: center;
}

.cta-image img {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: #0b3c49;
  color: #e2e8f0;
  padding: 60px 20px 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-column h3 {
  margin-bottom: 20px;
  color: #2dd4bf;
  font-size: 1.2rem;
}

.footer-column p {
  line-height: 1.6;
  font-size: 0.95rem;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li { margin-bottom: 10px; }

.footer-column ul li a {
  color: #e2e8f0;
  text-decoration: none;
  transition: var(--transition);
}

.footer-column ul li a:hover {
  color: #2dd4bf;
  padding-left: 4px;
}

.social-icons { margin-top: 15px; }

.social-icons a {
  color: var(--white);
  margin-right: 15px;
  font-size: 1.25rem;
  transition: var(--transition);
}

.social-icons a:hover { color: #2dd4bf; }

.hours-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 4px;
}

.emergency-box {
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.08);
  padding: 15px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
}

.emergency-box i {
  font-size: 1.5rem;
  color: #f87171;
}

.emergency-box h4 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--white);
}

.emergency-box p {
  margin: 0;
  font-size: 0.8rem;
  opacity: 0.8;
}

.phone-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  background: rgba(45, 212, 191, 0.15);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  width: fit-content;
}

.phone-box i { color: #2dd4bf; }

.phone-box a {
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.1rem;
}

.footer-bottom {
  text-align: center;
  margin-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  font-size: 0.875rem;
  color: #94a3b8;
}

/* ==========================================================================
   Responsive Viewport Logic
   ========================================================================== */
@media (max-width: 850px) {
  .service-cards {
    grid-template-columns: 1fr; /* 1 column layout on mobile screens */
  }

  .card-wide {
    grid-column: span 1;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--primary-dark);
    padding: 20px;
  }

  .nav-links.show {
    display: flex;
  }
}