/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ===== PERFORMANCE ===== */
/* Skip rendering off-screen sections until near viewport */
.statistics, .services, #doctor, .lookingFor,
.callToAction, .testimonial, .registerCta, footer {
  content-visibility: auto;
  contain-intrinsic-size: 0 400px;
}

/* Avoid layout thrash on animated elements */
.card, .profile, .process, .category, .cardT {
  will-change: transform;
  transform: translateZ(0);
}

/* Skeleton shimmer for images while they load */
img {
  background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

img.loaded {
  background: none;
  animation: none;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

:root {
  --green:       #2e7d5a;
  --green-light: #e8f5ef;
  --green-dark:  #1a5a3f;
  --amber:       #f59c1a;
  --amber-light: #fef3dc;
  --brown:       #5c3d2e;
  --cream:       #fdf8f2;
  --white:       #ffffff;
  --text:        #1e1e1e;
  --text-muted:  #6b7280;
  --border:      #e5e7eb;
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.07);
  --shadow-md:   0 6px 24px rgba(0,0,0,0.10);
  --transition:  0.25s ease;
  --font-body:   'Georgia', 'Times New Roman', serif;
  --font-ui:     'Trebuchet MS', 'Gill Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ui);
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; object-fit: cover; }

h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; line-height: 1.2; }
h2 { font-size: clamp(1.2rem, 2.5vw, 1.7rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

span { color: var(--green); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ===== HEADER ===== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 2.5rem;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.brand-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: -0.3px;
}

nav .nav-links {
  list-style: none;
  display: flex;
  gap: 0.25rem;
}

nav .nav-links li a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

nav .nav-links li a:hover,
nav .nav-links li a#active {
  color: var(--green);
  background: var(--green-light);
}

.auth-buttons {
  display: flex;
  gap: 0.7rem;
  align-items: center;
}

.login-btn {
  text-decoration: none;
  color: var(--green);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.45rem 1.1rem;
  border: 1.5px solid var(--green);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.login-btn:hover {
  background: var(--green);
  color: var(--white);
}

.signup-btn {
  text-decoration: none;
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.45rem 1.1rem;
  background: var(--green);
  border: 1.5px solid var(--green);
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.signup-btn:hover { background: var(--green-dark); border-color: var(--green-dark); }

/* ===== HERO SECTION ===== */
.health-section {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 5rem 2.5rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.health-section .content {
  flex: 1;
  max-width: 520px;
}

.health-section h1 {
  color: var(--green-dark);
  font-size: clamp(1rem, 2vw, 1.1rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.health-section h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.health-section p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.health-section input[type="email"] {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-ui);
  margin-bottom: 1rem;
  outline: none;
  transition: border-color var(--transition);
  background: var(--white);
}

.health-section input[type="email"]:focus { border-color: var(--green); }

.health-section .sign-up,
.health-section .play-video {
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid var(--green);
  transition: all var(--transition);
  margin-right: 0.75rem;
}

.health-section .sign-up {
  background: var(--green);
  color: var(--white);
}

.health-section .sign-up:hover { background: var(--green-dark); border-color: var(--green-dark); }

.health-section .play-video {
  background: transparent;
  color: var(--green);
}

.health-section .play-video:hover { background: var(--green-light); }

.video-container {
  flex: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  max-height: 400px;
}

.video-container video { width: 100%; height: 100%; object-fit: cover; }

.video-spinner {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border-radius: var(--radius-lg);
  z-index: 10;
}

.video-spinner p {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.spinner-ring {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(255,255,255,0.25);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== STATISTICS ===== */
.statistics {
  background: var(--green-dark);
  padding: 1.5rem 2.5rem 4rem;
}

.statistics .banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 2.5rem 3rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  margin-bottom: 0;
}

.statistics .column h3 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 0.3rem;
}

.statistics .column p {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== SERVICES ===== */
.services {
  padding: 5rem 2.5rem 3rem;
  text-align: center;
}

.services h1 { margin-bottom: 2.5rem; }

.services .cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.services .card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.services .card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.services .card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.services .card h4 {
  padding: 0.8rem 1rem 0.3rem;
  font-size: 1rem;
  color: var(--green-dark);
}

.services .card p {
  padding: 0 1rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== ILLNESS / CATEGORY GRID ===== */
.illness {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding: 0 2.5rem;
}

.illness .category {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.illness .category:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.illness .category img {
  width: 100%;
  height: 100px;
  object-fit: cover;
}

.illness .category h4 {
  padding: 0.6rem 0.5rem;
  font-size: 0.8rem;
  color: var(--green-dark);
}

/* ===== LOOKING FOR / PET FACTS ===== */
.lookingFor {
  background: var(--green-dark);
  padding: 4rem 2.5rem;
  text-align: center;
}

.lookingFor h1 {
  color: var(--white);
  margin-bottom: 2.5rem;
}

.lookingFor .categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.lookingFor .category {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.2rem;
  text-align: center;
  transition: background var(--transition);
}

.lookingFor .category:hover { background: rgba(255,255,255,0.14); }

.lookingFor .category img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: rgba(255,255,255,0.1);
  padding: 8px;
}

.lookingFor .category h4 {
  color: var(--amber);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.lookingFor .category p {
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ===== DOCTORS ===== */
#doctor.container {
  padding: 5rem 2.5rem;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

#doctor.container h1 { margin-bottom: 2.5rem; }

.doctors {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.profile {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.profile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.profile img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top;
}

.profile h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-dark);
  padding: 1rem 1rem 0.3rem;
}

.profile p {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0 1rem 1.2rem;
  line-height: 1.6;
}

/* ===== PROCESS ===== */
.procedure {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.process {
  background: var(--amber-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid #f0d9a0;
  text-align: center;
  transition: transform var(--transition);
}

.process:hover { transform: translateY(-4px); }

.process img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.process h2 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brown);
  padding: 0.8rem 0.8rem 0.3rem;
}

.process p {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0 0.8rem 1rem;
}

/* ===== CALL TO ACTION ===== */
.callToAction {
  padding: 5rem 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.bestDoctors,
.onlineCare {
  display: flex;
  align-items: center;
  gap: 3rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.onlineCare { flex-direction: row-reverse; background: var(--green-light); }

.callToAction .start { flex: 1; }
.callToAction .end { flex: 1; }

.callToAction .end img {
  width: 100%;
  height: 280px;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.callToAction h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 1rem;
  color: var(--text);
}

.callToAction p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.btn1 {
  display: inline-block;
  padding: 0.7rem 1.8rem;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  font-family: var(--font-ui);
  letter-spacing: 0.3px;
}

.btn1:hover { background: var(--green-dark); transform: translateY(-2px); }

/* ===== TESTIMONIALS ===== */
.testimonial {
  padding: 5rem 2.5rem;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial h1 { margin-bottom: 2.5rem; }

.testimony {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.cardT {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  text-align: left;
  transition: box-shadow var(--transition);
  position: relative;
}

.cardT::before {
  content: '"';
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 5rem;
  color: var(--green-light);
  font-family: Georgia, serif;
  line-height: 1;
}

.cardT:hover { box-shadow: var(--shadow-md); }

.cardT img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid var(--green-light);
}

.cardT h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 0.5rem;
}

.cardT p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.75;
  font-style: italic;
}

/* ===== REGISTER CTA ===== */
.registerCta {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  text-align: center;
  margin: 2rem auto 4rem;
  max-width: 900px;
}

.registerCta h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.registerCta h1 span { color: var(--amber); }

.registerCta .btn1 {
  background: var(--amber);
  color: var(--brown);
  font-size: 0.9rem;
  letter-spacing: 1.5px;
}

.registerCta .btn1:hover { background: #e08c0e; }

/* ===== FOOTER ===== */
footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.85);
  padding: 4rem 2.5rem 2.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 100%;
}

.logoPart img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.logoPart h6 {
  font-size: 0.82rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  font-weight: 400;
  margin-bottom: 0.4rem;
}

.socials {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.socials i {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background var(--transition);
  color: var(--white);
}

.socials i:hover { background: var(--green); }

.dd h1 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dd p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.6rem;
  cursor: pointer;
  transition: color var(--transition);
}

.dd p:hover { color: var(--amber); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services .cards,
  .doctors,
  .procedure { grid-template-columns: repeat(2, 1fr); }
  .statistics .banner { grid-template-columns: repeat(2, 1fr); }
  .illness { grid-template-columns: repeat(3, 1fr); }
  footer { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  header { flex-wrap: wrap; gap: 0.75rem; padding: 0.75rem 1rem; }
  nav .nav-links { flex-wrap: wrap; gap: 0; }
  .health-section { flex-direction: column; padding: 3rem 1.5rem; }
  .lookingFor .categories,
  .services .cards,
  .doctors,
  .procedure { grid-template-columns: 1fr 1fr; }
  .bestDoctors,
  .onlineCare { flex-direction: column; }
  .illness { grid-template-columns: repeat(2, 1fr); }
  .testimony { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .services .cards,
  .doctors,
  .procedure,
  .lookingFor .categories { grid-template-columns: 1fr; }
  .statistics .banner { grid-template-columns: 1fr 1fr; }
  footer { grid-template-columns: 1fr; }
  .auth-buttons { display: none; }
}




    


    


    

    
   

