:root {
  --primary: #005f59;
  --primary-dark: #004743;
  --primary-light: #ccfbf1;
  --whatsapp: #25d366;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Navigation */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 74px;
  position: relative;
}

.brand-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  height: 48px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

.district-badge {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
}

.btn-nav {
  padding: 8px 18px !important;
  min-height: auto !important;
  font-size: 0.9rem !important;
}

/* Hamburger Menu Toggle Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 110;
}

.menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--text-dark);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
  padding: 5rem 0 4.5rem;
}

.hero-content {
  max-width: 860px;
}

.tagline {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.8px;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: 2.85rem;
  line-height: 1.2;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1.25rem;
}

.lead-text {
  font-size: 1.15rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* Hero Actions - 3 Uniform Buttons */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  min-height: 48px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  box-sizing: border-box;
  white-space: nowrap;
  transition: all 0.2s ease-in-out;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff !important;
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 95, 89, 0.25);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.bg-light {
  background-color: var(--bg-light);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 1.75rem;
}

.section-subtitle {
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
}

.section-header h2 {
  font-size: 2rem;
  margin: 0.4rem 0 0.5rem;
}

.section-header p {
  color: var(--text-muted);
}

/* Search Bar */
.search-container {
  max-width: 480px;
  margin: 0 auto 2.5rem;
}

.search-container input {
  width: 100%;
  padding: 12px 18px;
  font-size: 0.95rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  outline: none;
  font-family: inherit;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-container input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 95, 89, 0.15);
}

/* Dynamic CRE Centre Cards */
.centers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.center-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}

.center-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  border-color: var(--primary);
}

.center-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.center-card-header h3 {
  font-size: 1.25rem;
  margin: 0;
  color: var(--text-dark);
}

.center-detail-item {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 5px;
}

.center-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.center-btn {
  flex: 1;
  padding: 9px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  text-align: center;
  display: inline-block;
  transition: opacity 0.2s;
}

.center-btn-reg {
  background: var(--primary);
  color: #ffffff !important;
}

.center-btn-reg:hover {
  background: var(--primary-dark);
}

.center-btn-call {
  background: #f1f5f9;
  color: var(--text-dark) !important;
  border: 1px solid var(--border);
}

.center-btn-call:hover {
  background: #e2e8f0;
}

/* Highlights Section */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.overview-card {
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--white);
}

.overview-card.feature {
  border-left: 4px solid var(--primary);
}

.overview-card .icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.overview-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  color: var(--text-dark);
}

.overview-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Floating WhatsApp Button */
.floating-wa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--whatsapp);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  z-index: 900;
  transition: transform 0.2s;
}

.floating-wa:hover {
  transform: scale(1.1);
}

/* Footer */
.footer {
  background: #09131d;
  color: #cbd5e1;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #1e293b;
}

.footer-info h3 {
  color: #ffffff;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.footer-details p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer-contact h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.footer-contact a {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 500;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.copyright {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: #64748b;
}

/* Responsive Mobile Navigation Drawer */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 74px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    gap: 1.25rem;
    align-items: flex-start;
    transform: translateY(-160%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    width: 100%;
    font-size: 1.05rem;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
  }

  .nav-links .btn-nav {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    margin-top: 0.5rem;
    text-align: center;
    border-bottom: none;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .footer-content {
    flex-direction: column;
  }
}