/* ===========================
   RAMCARE - Main Stylesheet
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Nunito:wght@400;600;700&display=swap');

:root {
  /* Brand colours – blue primary + orange accent (from logo) */
  --primary:        #3b82f6;
  --primary-dark:   #1d4ed8;
  --primary-light:  #dbeafe;
  --accent:         #f97316;   /* logo orange */
  --accent-dark:    #ea6c0a;
  --accent-light:   #fff1e8;
  --navy:           #1e3a5f;
  --dark:           #1a2535;
  --text:           #374151;
  --text-light:     #6b7280;
  --white:          #ffffff;
  --bg-light:       #f0f5ff;
  --footer-bg:      #1e2d45;
  --border:         #e5e7eb;
  --shadow:         0 4px 20px rgba(0,0,0,0.07);
  --shadow-md:      0 8px 30px rgba(0,0,0,0.12);
  --radius:         8px;
  --radius-lg:      14px;
  --radius-xl:      20px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}

img  { max-width: 100%; display: block; }
a    { text-decoration: none; color: inherit; transition: color 0.2s; }
ul   { list-style: none; }

/* ===========================
   UTILITY
   =========================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 80px 0; }
.text-center { text-align: center; }

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  outline: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59,130,246,0.35);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
}
.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249,115,22,0.35);
}

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

/* ===========================
   NAVBAR
   =========================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar-brand img {
  height: 44px;
  width: auto;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius);
  transition: all 0.2s;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 14px; right: 14px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-dropdown { position: relative; }

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown-toggle svg {
  width: 14px; height: 14px;
  transition: transform 0.2s;
}

.nav-dropdown:hover .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 210px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 100;
  overflow: hidden;
}

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

.dropdown-menu a {
  display: block;
  padding: 11px 18px;
  font-size: 0.88rem;
  color: var(--text);
  transition: background 0.2s;
}

.dropdown-menu a:hover {
  background: var(--accent-light);
  color: var(--accent-dark);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #e8f0fe 0%, #fff5ee 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249,115,22,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-bg-image {
  position: absolute;
  right: 0; top: 0;
  width: 55%; height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #e8f0fe 38%, rgba(232,240,254,0.6) 60%, transparent 80%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  padding: 60px 0;
}

.hero-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}

.hero-title {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 32px;
}

.hero-contact-box {
  display: inline-flex;
  flex-direction: column;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-width: 320px;
  box-shadow: 0 8px 32px rgba(30,58,95,0.3);
}

.hero-contact-label {
  padding: 10px 24px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 1px;
  background: rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.hero-contact-number {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--white);
  transition: background 0.2s;
}

.hero-contact-number:hover { background: rgba(249,115,22,0.25); }
.hero-contact-number svg { width: 26px; height: 26px; }

/* ===========================
   ABOUT SECTION
   =========================== */
.about-section { padding: 80px 0; }

.about-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}

.about-image::after {
  content: '';
  position: absolute;
  bottom: -8px; right: -8px;
  width: 60%; height: 60%;
  border: 3px solid var(--accent);
  border-radius: var(--radius-xl);
  z-index: -1;
}

.about-image img {
  width: 100%; height: 380px;
  object-fit: cover;
}

.about-content .section-title { margin-bottom: 20px; }

.about-content p {
  color: var(--text-light);
  margin-bottom: 16px;
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ===========================
   STATS SECTION
   =========================== */
.stats-section {
  background: linear-gradient(135deg, var(--navy) 0%, #253a5e 100%);
  padding: 56px 0;
}

.stats-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-xl);
  padding: 10px 20px;
  backdrop-filter: blur(4px);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stat-item {
  text-align: center;
  padding: 28px 20px;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 20%; height: 60%;
  width: 1px;
  background: rgba(255,255,255,0.15);
}

.stat-number {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* ===========================
   SERVICES / SPECIALITY
   =========================== */
.services-section { padding: 80px 0; background: var(--bg-light); }

.services-header { text-align: center; margin-bottom: 50px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 28px;
}

.services-grid-bottom {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 680px;
  margin: 0 auto 40px;
}

.service-card { text-align: center; }

.service-card img {
  width: 100%; height: 200px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card img:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.service-card p {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.services-cta { text-align: center; }

/* ===========================
   MOUs SECTION
   =========================== */
.mou-section { padding: 70px 0; }

.mou-section .section-title { text-align: center; margin-bottom: 40px; }

.mou-slider { position: relative; overflow: hidden; }

.mou-track { display: flex; transition: transform 0.4s ease; }

.mou-slide {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  min-width: 100%;
}

.mou-slide img {
  width: 100%; height: 280px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.mou-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.2s;
  z-index: 5;
}

.mou-btn:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }
.mou-btn-prev { left: -14px; }
.mou-btn-next { right: -14px; }

.mou-dots {
  display: flex; gap: 8px;
  justify-content: center;
  margin-top: 20px;
}

.mou-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none; cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.mou-dot.active { background: var(--accent); transform: scale(1.3); }

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: var(--footer-bg);
  color: var(--white);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-logo-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 8px 14px;
  display: inline-block;
  margin-bottom: 14px;
}

.footer-logo-wrap img {
  height: 38px; width: auto;
}

.footer-tagline {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  margin-bottom: 20px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 10px;
}

.footer-contact-item svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent);
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--white);
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 28px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.72);
  display: flex; align-items: center; gap: 6px;
  transition: color 0.2s;
}

.footer-col ul li a::before {
  content: '›';
  color: var(--accent);
  font-size: 1rem;
}

.footer-col ul li a:hover { color: var(--white); }

.footer-subscribe p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 16px;
}

.subscribe-form { display: flex; flex-direction: column; gap: 10px; }

.subscribe-input-wrap {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 0 12px;
  gap: 8px;
  transition: border-color 0.2s;
}

.subscribe-input-wrap:focus-within { border-color: var(--accent); }

.subscribe-input-wrap svg {
  width: 16px; height: 16px;
  color: rgba(255,255,255,0.5);
  flex-shrink: 0;
}

.subscribe-input-wrap input {
  flex: 1; border: none; outline: none;
  padding: 12px 0;
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  color: var(--white);
  background: transparent;
}

.subscribe-input-wrap input::placeholder { color: rgba(255,255,255,0.4); }

.subscribe-btn {
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.subscribe-btn:hover { background: var(--accent-dark); transform: translateY(-1px); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
}

.footer-copyright { font-size: 0.82rem; color: rgba(255,255,255,0.55); }

.footer-links { display: flex; gap: 16px; }

.footer-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent); }
.footer-links span { color: rgba(255,255,255,0.25); }

/* ===========================
   WHATSAPP FLOAT
   =========================== */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 999;
  background: #25d366;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  transition: transform 0.2s;
}

.whatsapp-float:hover { transform: scale(1.12); }
.whatsapp-float svg { width: 30px; height: 30px; fill: var(--white); }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 992px) {
  .about-section .container { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .navbar-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 16px;
    box-shadow: var(--shadow-md);
    gap: 4px;
  }
  .navbar-nav.open { display: flex; }
  .hamburger { display: flex; }
  .navbar { position: relative; }
  .hero-title { font-size: 1.8rem; }
  .hero-bg-image { width: 100%; opacity: 0.12; }
  .hero-overlay { background: rgba(232,240,254,0.92); }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item::after { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .services-grid-bottom { grid-template-columns: 1fr; }
  .mou-slide { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; gap: 12px; text-align: center; }
  .section-title { font-size: 1.6rem; }
}
