/* -----------------------------------------------------------
   GLOBAL RESET & BASE
----------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", Arial, sans-serif;
  background: #f4f7f5;
  color: #222;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* -----------------------------------------------------------
   COLOR SYSTEM
----------------------------------------------------------- */
:root {
  --green: #2e7d32;
  --green-dark: #1b5e20;
  --green-light: #e8f5e9;
  --grey-light: #f4f4f4;
  --grey-mid: #ccc;
  --grey-dark: #555;
  --white: #fff;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* -----------------------------------------------------------
   TYPOGRAPHY
----------------------------------------------------------- */
h1, h2, h3, h4 {
  font-weight: 700;
  color: var(--green);
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; margin-bottom: 10px; }
h3 { font-size: 1.3rem; margin-top: 20px; margin-bottom: 8px; }

p { margin-bottom: 14px; color: #333; }

ul { margin: 10px 0 20px 20px; }

/* -----------------------------------------------------------
   HEADER — PREMIUM REDESIGN
----------------------------------------------------------- */
.site-header-modern {
  background: var(--green-light);
  padding: 20px 0;
  border-bottom: 1px solid var(--grey-mid);
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-circle {
  width: 48px;
  height: 48px;
  background: #c8e6c9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-title h1 {
  font-size: 20px;
  margin: 0;
  color: var(--green);
}

.header-title span {
  font-size: 14px;
  color: var(--grey-dark);
}

.header-nav {
  display: flex;
  gap: 20px;
}

.header-nav a {
  text-decoration: none;
  color: var(--green);
  font-weight: 600;
  padding: 6px 0;
  transition: 0.3s ease;
}

.header-nav a:hover {
  color: var(--green-dark);
}

/* -----------------------------------------------------------
   CARDS
----------------------------------------------------------- */
.card {
  background: var(--white);
  padding: 25px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 25px;
}

/* -----------------------------------------------------------
   BUTTONS
----------------------------------------------------------- */
.btn-primary,
.btn {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: 0.3s ease;
}

.btn-primary:hover,
.btn:hover {
  background: var(--green-dark);
}

/* -----------------------------------------------------------
   FORMS
----------------------------------------------------------- */
form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 500px;
}

label {
  font-weight: 600;
  color: #333;
}

input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid var(--grey-mid);
  font-size: 1rem;
}

textarea { min-height: 120px; }

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* -----------------------------------------------------------
   ALERTS
----------------------------------------------------------- */
.alert {
  padding: 14px;
  border-radius: 6px;
  margin: 15px 0;
  font-weight: 600;
}

.alert.success {
  background: #c8e6c9;
  color: #256029;
}

.alert.error {
  background: #ffcdd2;
  color: #b71c1c;
}

/* -----------------------------------------------------------
   HERO SECTION — PREMIUM
----------------------------------------------------------- */
.hero-medical {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(#e8f5e9, #ffffff);
  padding: 50px;
  border-radius: 16px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}

.hero-content h1 {
  font-size: 2.4rem;
  color: var(--green);
}

.hero-content p {
  font-size: 1.2rem;
  margin: 12px 0 25px;
}

/* -----------------------------------------------------------
   SERVICES GRID — PREMIUM
----------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
}

.service-card {
  background: #f9fdf9;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid #d8e8d8;
  transition: 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* -----------------------------------------------------------
   FOOTER
----------------------------------------------------------- */
.site-footer {
  background: #222;
  color: #ccc;
  padding: 20px 0;
  text-align: center;
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--white);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* -----------------------------------------------------------
   RESPONSIVE
----------------------------------------------------------- */
@media (max-width: 700px) {
  .header-inner {
    flex-direction: column;
    gap: 15px;
  }

  .hero-medical {
    flex-direction: column;
    text-align: center;
    padding: 30px;
  }

  .header-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

.header-nav a {
  position: relative;
  color: #333;
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.3s ease;
}

/* Hover color */
.header-nav a:hover {
  color: #1D3867;
}

/* Animated underline */
.header-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background-color: #1D3867;
  transition: width 0.3s ease;
}

/* Fly‑in effect */
.header-nav a:hover::after {
  width: 100%;
}

.site-footer-modern {
  background:#EBF6EB;
  color: black;
  padding: 50px 0 20px;
  margin-top: 60px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

.footer-col h3 {
  font-size: 18px;
  margin-bottom: 12px;
  font-weight: 600;
  color: black;
}

.footer-col p {
  margin: 6px 0;
  opacity: 0.9;
}

.footer-col a {
  color: black;
  text-decoration: none;
  transition: 0.3s ease;
}

.footer-col a:hover {
  color: #A8C3FF;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 14px;
  opacity: 0.9;
}

.powered-by a {
  color: #A8C3FF;
  font-weight: 600;
}

.powered-by a:hover {
  color: black;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
  animation: floatCircle 6s infinite ease-in-out;
}

.whatsapp-float img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  transition: transform 0.3s ease;
}

/* Hover zoom effect */
.whatsapp-float:hover img {
  transform: scale(1.15);
}

/* Smooth circular floating motion */
@keyframes floatCircle {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(6px, -6px); }
  50%  { transform: translate(0, -10px); }
  75%  { transform: translate(-6px, -6px); }
  100% { transform: translate(0, 0); }
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
  }
  .whatsapp-float img {
    width: 50px;
    height: 50px;
  }
}
