/* ---------- Root & Colors ---------- */
:root{
  --bg: #f7f9fb;
  --card: #ffffff;
  --muted: #6b7280;
  --accent: #0f766e; /* teal-ish accent for health */
  --accent-2: #06b6d4;
  --text: #0f172a;
  --glass: rgba(255,255,255,0.75);
  --shadow: 0 10px 30px rgba(15,23,42,0.06);
  --radius: 14px;
  --container: 1100px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* ---------- Global ---------- */
body {
  font-family: 'Inter', sans-serif;
  background: url('background.jpg') no-repeat center center fixed;
  background-size: cover;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 0;
}

* {
  box-sizing: border-box;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ---------- Header ---------- */
.header {
  background: rgba(0, 168, 204, 0.95); /* keep color */
  color: #fff;
  padding: 1rem 2rem;
  position: fixed;       /* fixed for top */
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  backdrop-filter: blur(6px);
  transition: transform 0.3s ease; /* use transform instead of top */
  will-change: transform;          /* smoother on mobile */
}

.header.hide {
  transform: translateY(-110%); /* hide above viewport smoothly */
}

/* Add top spacing to hero and first section to prevent overlap */
.hero, 
.section:first-of-type {
  padding-top: calc(4rem + 80px); /* 80px ≈ header height */
}

/* Ensure hero text is visible under header */
.hero-text h1, 
.hero-text p {
  position: relative;
  z-index: 1;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--accent);
}

.btn {
  padding: 0.6rem 1.3rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background: var(--accent-2);
}

/* ---------- Hero ---------- */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 4rem 1rem;
  color: #fff;
}

.hero-text h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-text p {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.hero-img {
  border-radius: var(--radius);
  max-width: 100%;
  height: auto;
  box-shadow: var(--shadow);
}

/* ---------- Sections ---------- */
.section {
  padding: 3rem 1rem;
  position: relative;
  z-index: 1;
}

.section-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.section-lead {
  text-align: center;
  font-size: 1.15rem;
  margin-bottom: 2rem;
}

/* ---------- Cards ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.8rem;
}

.card, .info-card, .contact-info {
  background: rgba(255,255,255,0.9);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover, .info-card:hover, .contact-info:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.card h3, .info-card h3 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.card p, .info-card p {
  font-size: 0.95rem;
  color: var(--text);
}

/* ---------- Contact Form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--muted);
  margin-bottom: 1rem;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
}

.contact-form button {
  width: 100%;
}

/* ---------- Map ---------- */
.contact-info iframe {
  width: 100%;
  height: 250px;
  border-radius: var(--radius);
  margin-top: 1rem;
}

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 2rem 1rem;
  background: rgba(28,28,43,0.95);
  color: #fff;
  margin-top: 2rem;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s;
}

.footer a:hover {
  color: var(--accent-2);
}

/* ---------- Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}

.slide-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.zoom-in {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s ease;
}

.visible {
  opacity: 1 !important;
  transform: none !important;
}

/* ---------- Responsive Additions ---------- */
@media (max-width: 480px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }
  .hero-text h1 {
    font-size: 1.8rem;
  }
  .hero-text p {
    font-size: 1rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 2.2rem;
  }
  .hero-text p {
    font-size: 1.1rem;
  }
  .cards-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Scroll-hide Header Fix for All Devices ---------- */
.header {
  transition: top 0.3s ease; /* keep original behavior */
}

.header.hide {
  top: -100px; /* slides out of view when scrolling down */
}

/* Ensure page content doesn't jump when header hides */
body {
  padding-top: 80px; /* adjust to match your header height */
}
