/* ======================================== */
/* --- Final, Complete & Corrected CSS --- */
/* ======================================== */

:root {
  --primary: #00ADB3;
  --accent: #09C941;
  --secondary: #ffffff; /* New accent color */
  --text-color: #333; /* Softer text color */
  --text-muted: #666;
  --muted-bg: #f5f7fa;
  --card: #ffffff;
  --glass: rgba(255, 255, 255, 0.65);
  --radius: 14px;
  --maxw: 1100px;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  font-family: 'Open Sans', system-ui, Arial;
  color: var(--text-color);
  background: #fff;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

a {
  color: var(--primary);
  text-decoration: none;
}

/* Header */
header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
  backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid rgba(6, 30, 50, 0.08);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 130px;
  height: 46px;
  border-radius: 8px;
}

nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  font-weight: 600;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--accent);
}

/* Hero */
.hero {
  min-height: 120vh;
  display: grid;
  align-items: center;
  position: relative;
  padding: 80px 130px 60px 50px;
  overflow: hidden;
}

.hero .bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero .hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 173, 179, 0.4));
  z-index: 2;
}

.hero .hero-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 28px;
  align-items: center;
}

.hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  margin: 0 0 12px;
  color: #fff;
  line-height: 1.2;
}

.hero p.lead {
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 24px;
  line-height: 1.6;
}

/* Sections */
section {
  padding: 100px 4%;
}

.section-title {
  max-width: var(--maxw);
  margin: 0 auto 50px;
  text-align: center;
}

.section-title h2 {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.2px;
  font-size: 2.2rem;
  position: relative;
  color: var(--primary) !important;
  display: inline-block;
}

.section-title h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -15px;
  transform: translateX(-50%);
  width: 70px;
  height: 4px;
  background-color: var(--primary);
  border-radius: 3px;
}

.card {
  background: var(--card);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 10px 25px rgba(12, 30, 60, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(12, 30, 60, 0.12);
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  max-width: var(--maxw);
  margin: 0 auto;
}

/* Products Section */
#products {
  background: var(--muted-bg);
}

.products {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto;
}

.product-card {
  flex: 1 1 280px;
  max-width: 300px;
  background: #fff;
  padding: 40px 25px;
  border-radius: 20px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
  transition: all 0.35s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.product-card .icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(0, 173, 179, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--accent);
  margin-bottom: 18px;
  transition: all 0.4s ease;
}

.product-card:hover .icon {
  background: rgba(0, 173, 179, 0.15);
  color: var(--primary);
  transform: scale(1.1) rotate(6deg);
  box-shadow: 0 4px 12px rgba(0, 173, 179, 0.25);
}

.product-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  transition: color 0.3s ease;
  text-align: center;
}

.product-card:hover h4 {
  color: var(--primary);
}

.product-card .muted {
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 85%;
  text-align: center;
}

.product-card:nth-child(odd) .icon {
  background: rgba(9, 201, 65, 0.1);
}

.product-card:nth-child(odd):hover .icon {
  background: rgba(9, 201, 65, 0.15);
  box-shadow: 0 4px 12px rgba(9, 201, 65, 0.25);
}

/* Services Section */
.services-section {
  position: relative;
}

.service-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

.service-card h3 {
  font-size: 18px;
  margin: 10px 0 6px;
}

.service-card .muted {
  font-size: 14px;
}

.services-slider .swiper-button-next,
.services-slider .swiper-button-prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  background: #fff;
  color: var(--primary);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 10;
  transition: all 0.3s ease;
}

.services-slider .swiper-button-prev { left: -10px; }
.services-slider .swiper-button-next { right: -10px; }

.services-slider .swiper-button-next:hover,
.services-slider .swiper-button-prev:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-50%) scale(1.05);
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 16px !important;
  font-weight: 700;
}

.services-slider .swiper-slide {
  height: 350px;
}

/* Locations Section */
#locations {
  color: #fff;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
}

#locations .container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 4%;
}

#locations h2, #locations .muted, #locations h4 {
  color: #fff !important;
}

#locations a {
  color: var(--secondary);
  font-weight: bold;
}

.locations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.loc-card {
  padding: 20px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(5px);
}

.map-container {
    width: 100%;
    line-height: 0;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 20px;
  max-width: var(--maxw);
  margin: 0 auto;
}

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

input, textarea, select {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(6, 30, 50, 0.15);
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
}

input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--primary);
  border-color: transparent;
}

textarea {
  min-height: 120px;
}

/* General UI Elements */
.btn {
  padding: 14px 22px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 173, 179, 0.3);
}

.btn-primary:hover {
  background-color: #008f95;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 173, 179, 0.4);
}

.btn-ghost {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.25);
  color: #fff;
}

.btn-ghost:hover {
  background-color: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.4);
}

.cta {
  display: flex;
  gap: 12px;
}

.muted { color: var(--text-muted); }

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

footer {
  background: #062032;
  color: #d6eef5;
  padding: 28px 20px;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer a {
  color: #d6eef5;
  text-decoration: underline;
}

/* =========================================== */
/* --- MOBILE & RESPONSIVE STYLES --- */
/* =========================================== */

/* --- Mobile Hamburger Menu --- */
.nav-toggle {
  display: none;
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 1001;
  padding: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.hamburger {
  display: block;
  position: relative;
  width: 24px;
  height: 2px;
  background: var(--text-color);
  transition: all 0.25s ease-in-out;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text-color);
  transition: all 0.25s ease-in-out;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* Menu "OPEN" State Styles */
body.nav-open {
  overflow: hidden;
}
body.nav-open .nav-links {
  transform: translateX(0);
}
body.nav-open .hamburger { background: transparent; }
body.nav-open .hamburger::before { transform: rotate(45deg) translate(5px, 5px); }
body.nav-open .hamburger::after { transform: rotate(-45deg) translate(7px, -6px); }

#locations {
    padding-bottom: 100px;
}

.loc-email {
    font-size: 14px;
}
.tel {
    font-size: 14px !important;
}

/* --- Styles for Mobile Screens (max-width: 900px) --- */
@media (max-width: 900px) {
  .muted2{
    display: flex !important;
    justify-content: center !important;
  }

  #locations {
    color: #fff;
    text-align: center;
    padding-left: 4%;
    padding-right: 4%;
    padding-bottom: 80px;
}
  .hero .hero-grid {
    
    display: block !important;
  
}
#locations h4{
  text-align: center;
}
.muted{
  text-align: center;
}
  /* General Layout */
  .mission-grid, .contact-grid {
    grid-template-columns: 1fr;
  }

  /* Mobile Typography */
  h1, .hero h1 { font-size: 2.1rem; }
  h2, .section-title h2 { font-size: 1.8rem; }
  h3 { font-size: 1.2rem; text-align: center; }
  h4 { font-size: 1rem; text-align: center; }
  p, .muted { font-size: 0.95rem; line-height: 1.6; }
  .hero p.lead { font-size: 1rem; }
  .btn { font-size: 0.9rem; }

  /* Mobile Hamburger Menu */
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
  }
  .nav-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }
  .nav-links a {
    font-size: 1.5rem;
    color: var(--text-color);
    font-weight: bold;
  }

  /* Mobile Hero Section */
  .hero {
    min-height: 90vh;
    padding: 80px 25px 40px;
    text-align: center;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .cta {
    justify-content: center;
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }
  .cta .btn {
    width: 100%;
    max-width: 300px;
  }
  .hero .card {
    text-align: left;
  }
}

/* --- Styles for Desktop Screens (min-width: 901px) --- */
@media (min-width: 901px) {
  /* Desktop Hero Section Alignment */
  .hero-grid > div:first-child {
    text-align: left;
  }
  .cta {
    flex-direction: row;
    justify-content: flex-start;
  }
}

/* --- Fix for Location Card Alignment --- */

.loc-card {
  display: flex;
  flex-direction: column;
  height: 100%; /* Make the card fill the entire grid space */
}

.loc-card a[target="_blank"] {
  margin-top: auto; /* This pushes the link to the bottom */
  margin-bottom: 10px; /* Adds a little space at the bottom */
}