:root {
  --primary: #005ba2;
  --accent: #00aaff;
  --bg-light: #eaf4fb;
  --text-dark: #222;
  --cream: #ffffff;
  --font-head: 'Segoe UI', sans-serif;
  --font-body: sans-serif;
}

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

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-dark);
}

header {
  display: flex; 
  justify-content: space-between; 
  align-items: center;
  padding: 20px 5%;
  background: var(--cream);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: sticky; top: 0; 
  z-index: 1000;
}

.logo {
  display: flex; 
  align-items: center; 
  gap: 10px;
}
.logo img {
  width: 60px; 
  border-radius: 6px;
}
.name h2 {
  font-family: var(--font-head);
  color: var(--primary); 
  
}
.name a{
  text-decoration: none;
}
.name p {  
    color: var(--text-dark); 
}

.namef h1 {
  font-family: var(--font-head);
  color: var(--bg-light);
}

.namef a { 
  text-align: left;
  text-decoration: none;
}

.namef p {  
  text-align: left;
  color: var(--cream); 
}

.namef {
  margin-bottom: 20px;
}

/* Main footer flex container */
.footer-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1200px;
  margin: auto;
  padding: 30px 20px;
}
.footer-about {
  display: flex;
  flex-direction: column;
}
/* Links column */
.footlink {
  margin-top: 5px;
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.footlink a {
  color: var(--cream);
  text-decoration: none;
  line-height: 1.8;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.footlink a:hover {
  color: var(--bg-light);
}

/* Footer base text */
footer p {
  text-align: center;
  font-size: 0.9rem;
  color: var(--cream);
  margin-top: 15px;
}
.hamburger {
  display: none; 
  font-size: 1.8rem; 
  cursor: pointer;
}

nav {
  display: flex; 
  align-items: center; 
  gap: 20px;
}
nav ul {
  display: flex; 
  list-style: none; 
  gap: 20px;
}
nav ul li a {
  text-decoration: none; 
  color: var(--text-dark); 
  font-weight: 500;
  transition: color 0.3s;
}
nav ul li a:hover { 
    color: var(--primary); 
}

.btn-primary {
  background: var(--primary); 
  color: white;
  padding: 8px 18px; 
  border-radius: 4px; 
  font-weight: 600; 
  text-decoration: none;
}
.btn-primary:hover {
    background: var(--accent); 
}

.btn-secondary {
  padding: 6px 14px; 
  border: 2px solid var(--primary);
  color: var(--primary); 
  background: transparent;
  border-radius: 4px; 
  font-weight: 500; 
  text-decoration: none;
}
.btn-secondary:hover { 
    background: var(--primary); 
    color: white; 
}

.hero {
  text-align: left;
  
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-family: var(--font-head);
  color: var(--cream);
}
.hero-buttons { 
    display: flex; 
    gap: 20px; 
    margin-top: 30px; 
}
.hero-content {
  margin: 25px;
  height: 400px;
  background-image: url('images/hero.jpg'); 
  background-size: cover;
  padding: 50px;
  border-radius: 10px;
}

.about, .specialties, .facilities, .contact {
  padding: 60px 5%;
}
.about { 
  display: flex;
  gap: 40px;
  padding: 60px 5%;
  align-items: center;
    background: var(--cream);
    text-align: start;
}
.about-img {
  flex: 1;
  background: url('images/about.jpg') no-repeat center center/cover;
  height: 300px;
  background-size: cover;
  border-radius: 10px;
}
.about-text {
  flex: 1;
}
#about-align{
  flex-direction: column;
  text-align: center;
}
.specialties, .facilities { 
    background: var(--bg-light); 
    text-align: center;
}
.contact { 
    background: var(--cream); 
    text-align: center; 
}

.about h2, .specialties h2, .facilities h2, .contact h2 {
  font-family: var(--font-head); 
  color: var(--primary); 
  font-size: 2rem; 
  margin-bottom: 20px;
}

.cards {
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
  gap: 20px;
}

.card {
  background: var(--cream); 
  padding: 20px; 
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04); 
  transition: transform 0.3s;
  text-align: center;
}
.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}
.card:hover { 
    transform: translateY(-5px); 
}
.card h3 { 
    color: var(--primary); 
    font-size: 1.1rem; 
    margin-bottom: 5px; 
}
.read-more {
  display: block;
  margin-top: 15px;
  color: var(--accent);
  font-weight: bold;
  text-align: right;
}
.contact p {
  font-size: 1rem; 
  margin: 5px 0; 
  line-height: 1.4;
}
.map-container {
  position: relative;
  width: 600px; /* desktop fixed width */
  height: 450px; /* desktop fixed height */
}
.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
#wrapmap{
  display: flex;
  justify-content: center;
}
#imgheight{
  height: 450px;
}

.gallery { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 20px; }
    .gallery img { width: 200px; height: 150px; object-fit: cover; border-radius: 5px; }

    /* Transparent Bottom Popup */
    .popup {
      position: fixed;
      bottom: -100%;
      left: 50%;
      transform: translateX(-50%);
      background: rgba(255, 255, 255, 0.1); /* semi-transparent */
      backdrop-filter: blur(100px);
      border-radius: 12px;
      padding: 20px 25px;
      box-shadow: 0 8px 20px rgba(0,0,0,0.8);
      text-align: center;
      width: 90%;
      max-width: 400px;
      transition: bottom 0.5s;
      z-index: 1000;
    }
    .popup.show { bottom: 20px; }
    .popup p { margin: 0 0 15px 0; font-size: 16px; color: #333; }
    .popup button {
      margin: 0 10px 3px;
      padding: 10px 20px;
      border: none;
      background-color: var(--primary);
      color: var(--bg-light);
      cursor: pointer;
      border-radius: 5px;
      font-size: 14px;
      transition: background 0.3s;
    }
    .popup button:hover { background-color: var(--accent); }

    /* Scroll Pop Animation */
.pop {
  opacity: 0;
  transform: translateY(50px) scale(0.95);
  transition: all 0.6s ease-out;
}

.pop.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

footer {
  background: var(--primary); color: white;
  text-align: center; padding: 20px; font-size: 0.9rem;
}

/* Mobile */
@media (max-width: 1024px) {
  .name h2 { font-size: 1rem; }
  .name p { font-size: 0.8rem; }
  header { flex-direction: column; align-items: flex-start; }
  .hamburger {
    display: block;
    align-items: center;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001; /* So it's above the nav */
    position: absolute;
    right: 1rem;
  }
  .hero-content{
    margin: 0;
  }
  nav {
    position: fixed; top: 0; 
    right: -100%;
    height: 100vh; 
    background: var(--cream);
    flex-direction: column; 
    padding: 8px; 
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
    transition: right 0.3s;
  }
  nav.show { 
    right: 0; 
}
  nav ul { 
    flex-direction: column; 
    gap: 15px; 
    margin-top: 60px; 
}
nav ul li {
    width: 100%;
    border-bottom: 1px solid #444;
  }

  nav ul li a {
    font-size: 20px;
    display: block;
    width: 100%;
    padding: 10px;
    text-align: center;
    color: var(--dark);
  }

  .btn-primary {
    margin-top: 20px; 
}

  .hero h1 { 
    font-size: 2rem; 
}
  .hero-buttons { 
    flex-direction: column; 
    align-items: flex-start; 
}
.hero-content{
  height: auto;
}
.about{
  flex-direction: column-reverse;
  gap: 10px;
}
.about-img {
    width: 100%;
    height: 300px;
    background-image: url('/images/about.jpg');
    background-size: cover;
    border-radius: 8px;
    display: block; /* Ensure it’s visible */
    flex: none;     /* Avoid layout conflicts */
  }
  .specialties, .facilities { 
    padding: 40px 5%; 
}
#imgheight{
  height: 450px;
}
.map-container {
    width: 100%;         /* Full width on mobile */
    height: 300px;       /* Adjust height for mobile */
  }
}
