@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --primary-color: #1A365D; /* Deep Indigo / Trustworthy Navy */
  --primary-light: #2B6CB0;
  --primary-hover: #153154;
  --secondary-color: #059669; /* Health Green */
  --secondary-hover: #047857;
  --accent-color: #F59E0B; /* Warm Amber */
  --bg-gradient: linear-gradient(135deg, #F0FdfA 0%, #F8FAFC 100%);
  --bg-white: #ffffff;
  --bg-light: #F8FAFC;
  --text-dark: #0F172A;
  --text-muted: #475569;
  --border-color: #E2E8F0;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 15px 30px -5px rgba(0,0,0,0.1), 0 8px 10px -5px rgba(0,0,0,0.04);
  --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.15);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --font-body: 'DM Sans', sans-serif;
  --font-heading: 'Outfit', sans-serif;
}

/* ================= Reset & Base ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--bg-gradient);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* ================= Layout ================= */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 100px 0;
}

.grid { display: grid; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .md\:col-span-2 { grid-column: span 2 / span 2; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ================= Typography ================= */
.text-center { text-align: center; }
.text-left { text-align: left; }

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(5, 150, 105, 0.1);
  color: var(--secondary-color);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  text-transform: uppercase;
  font-family: var(--font-heading);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 700px;
  margin: 0 auto 3rem;
}

/* ================= Buttons ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  gap: 10px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--bg-white);
  box-shadow: 0 10px 20px -10px var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: var(--bg-white);
  transform: translateY(-3px);
  box-shadow: 0 15px 25px -10px var(--primary-color);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--bg-white);
  box-shadow: 0 10px 20px -10px var(--secondary-color);
}

.btn-secondary:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-3px);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--bg-white);
}

/* ================= Header & Dropdown ================= */
.top-bar {
  background-color: var(--primary-color);
  color: rgba(255, 255, 255, 0.9);
  padding: 10px 0;
  font-size: 0.875rem;
}
.top-bar-flex {
  display: flex; 
  justify-content: space-between; 
  align-items: center;
}
.top-bar a { color: white; display: flex; align-items: center; gap: 8px; }
.top-bar a:hover { color: var(--accent-color); }
@media (max-width: 768px) { .top-bar { display: none; } }

header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-bottom: 1px solid rgba(255,255,255,0.3);
}

header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 110px; /* Increased height for logo spacing */
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--secondary-color), #047857);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 24px;
  box-shadow: 0 4px 10px rgba(5,150,105,0.3);
}
.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--primary-color);
  line-height: 1.1;
  letter-spacing: -0.5px;
}
.logo-text span { font-weight: 500; font-size: 0.9rem; color: var(--text-muted); display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links li {
  position: relative;
}

.nav-links > li > a {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1.05rem;
  padding: 10px 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-links > li > a:hover, .nav-links > li > a.active {
  color: var(--secondary-color);
}

/* Dropdown styling */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s ease;
  z-index: 100;
  border: 1px solid var(--border-color);
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 10px 24px;
  color: var(--text-dark);
  font-weight: 500;
  transition: 0.2s;
  border-left: 3px solid transparent;
}

.dropdown-menu li a:hover {
  background: var(--bg-light);
  color: var(--secondary-color);
  border-left-color: var(--secondary-color);
}

.mobile-menu-btn { display: none; font-size: 1.5rem; background: none; border: none; color: var(--primary-color); cursor: pointer; }

@media (max-width: 1024px) {
  .nav-links {
    position: fixed;
    top: 90px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 90px);
    background-color: var(--bg-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 30px;
    transition: 0.4s ease;
    z-index: 999;
    overflow-y: auto;
  }
  .nav-links.active { left: 0; }
  .mobile-menu-btn { display: block; }
  .nav-contact { display: none; }
  
  .has-dropdown .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 20px;
    display: none;
  }
  .has-dropdown.open .dropdown-menu { display: block; }
}

/* ================= Hero Section (Overlapping aesthetic) ================= */
.hero {
  padding: 120px 0 160px;
  position: relative;
  background: url('https://images.unsplash.com/photo-1579684385127-1ef15d508118?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(26,54,93,0.95) 0%, rgba(26,54,93,0.7) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 700px;
}
.hero h1 { color: white; font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 800; margin-bottom: 24px; }
.hero h1 span { color: var(--secondary-color); }
.hero p { font-size: 1.25rem; color: #E2E8F0; margin-bottom: 40px; font-weight: 400; }

/* Features Ribbon */
.features-ribbon {
  margin-top: -80px;
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 768px) {
  .features-ribbon { grid-template-columns: 1fr; margin-top: 40px; }
  .hero { padding: 100px 0 60px; }
}

.ribbon-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255,255,255,0.5);
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: var(--transition);
}
.ribbon-card:hover { transform: translateY(-10px); }
.ribbon-icon {
  width: 50px; height: 50px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: var(--secondary-color);
  flex-shrink: 0;
}
.ribbon-card h4 { font-size: 1.2rem; margin-bottom: 8px; }
.ribbon-card p { font-size: 0.95rem; color: var(--text-muted); }

/* ================= Cards ================= */
.service-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; width: 100%; height: 4px;
  background: var(--secondary-color);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-xl); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 70px; height: 70px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--bg-light), #E2E8F0);
  color: var(--primary-color);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; margin-bottom: 24px;
}

.service-card:hover .service-icon { background: var(--secondary-color); color: white; }
.service-card h3 { font-size: 1.4rem; margin-bottom: 15px; }
.service-card p { color: var(--text-muted); margin-bottom: 24px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--primary-color); font-size: 1.05rem;
}
.link-arrow i { transition: 0.3s; }
.link-arrow:hover { color: var(--secondary-color); }
.link-arrow:hover i { transform: translateX(5px); }

/* ================= Custom About Images ================= */
.image-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; position: relative; }
.img-main { border-radius: var(--radius-lg); width: 100%; box-shadow: var(--shadow-lg); }
.img-sub { border-radius: var(--radius-lg); width: 80%; box-shadow: var(--shadow-lg); margin-top: -50px; margin-left: 20%; border: 8px solid white; position: relative; z-index: 2; }
.experience-badge { position: absolute; bottom: 30px; left: -30px; background: var(--secondary-color); color: white; padding: 25px; border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); z-index: 3; }
.experience-badge h2 { color: white; font-size: 2.5rem; }

.check-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; font-weight: 500; font-size: 1.05rem; }
.check-list li i { color: var(--secondary-color); font-size: 20px; margin-top: 4px; }

/* ================= Inner Page Headers ================= */
.page-header {
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  background: var(--primary-color);
}
.page-header::before {
  content: ''; position: absolute; top:0; left:0; right:0; bottom:0;
  background: url('https://images.unsplash.com/photo-1551076805-e1869033e561?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
  opacity: 0.15;
}
.page-header h1 { color: white; font-size: 3.5rem; margin-bottom: 16px; position: relative; z-index: 2; }
.breadcrumb { display: flex; justify-content: center; gap: 12px; font-weight: 500; position: relative; z-index: 2; color: #cbd5e1; }
.breadcrumb a { color: var(--secondary-color); }

/* ================= Floating & Footer ================= */
footer { background-color: var(--primary-color); color: #cbd5e1; padding: 100px 0 30px; position: relative; overflow: hidden; }
footer::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px;
  background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}

.footer-grid { display: grid; grid-template-columns: 2.5fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 60px; }
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-links h4, .footer-contact h4 {
  color: white; font-size: 1.3rem; margin-bottom: 24px; position: relative;
}
.footer-links ul li { margin-bottom: 12px; }
.footer-links ul li a { color: #cbd5e1; }
.footer-links ul li a:hover { color: white; transform: translateX(5px); display: inline-block; padding-left: 5px;}
.footer-contact li { display: flex; gap: 15px; margin-bottom: 20px; align-items: flex-start; }
.footer-contact i { color: var(--secondary-color); font-size: 22px; }

.floating-btn {
  position: fixed; bottom: 30px; z-index: 9999; width: 65px; height: 65px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: white; box-shadow: var(--shadow-xl);
  transition: var(--transition); animation: pulse 2s infinite;
}
.whatsapp-btn { background-color: #25D366; left: 30px; } /* Moved to left */
.call-btn { background-color: var(--primary-color); right: 30px; animation-delay: 1s; } /* Moved to right */
.whatsapp-btn:hover, .call-btn:hover { transform: scale(1.1) translateY(-5px); }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
  70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Ensure images cover their containers for better responsiveness */
.hero, .page-header {
  background-size: cover !important;
  background-position: center !important;
}

img {
  object-fit: cover;
}

/* Sidebar and forms */
.content-wrapper { background: white; padding: 50px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.sidebar-menu { background: white; padding: 40px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.sidebar-menu ul li a {
  display: flex; justify-content: space-between; padding: 16px 20px;
  background: var(--bg-light); border-radius: var(--radius-sm); margin-bottom: 8px;
  font-weight: 600; color: var(--primary-color);
}
.sidebar-menu ul li a:hover, .sidebar-menu ul li a.active { background: var(--secondary-color); color: white; }

.form-control { width: 100%; padding: 16px 20px; background: var(--bg-light); border: 1px solid var(--border-color); border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 1rem; transition: var(--transition); }
.form-control:focus { outline: none; border-color: var(--secondary-color); background: white; box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1); }
