/* -----------------------------------
   SPRYLIFE MEDICAL CENTRE — PROFESSIONAL THEME
   Version: 2.0 (High Contrast & Clarity)
   Font: Poppins / Inter
----------------------------------- */

/* 1. GLOBAL VARIABLES & RESET */
:root {
  /* Brand Colors */
  --color-primary: #1994d1;       /* Sprylife Blue */
  --color-primary-dark: #147aae;  /* Darker Blue for Hover */
  --color-accent: #71b04c;        /* Fresh Green */
  
  /* Text & Backgrounds */
  --text-heading: #0f172a;        /* Nearly Black for Headings (High Contrast) */
  --text-body: #334155;           /* Deep Slate for Body Text (Readable) */
  --bg-light: #F8FAFC;            /* Very Light Cool Grey */
  --white: #ffffff;
  
  /* Spacing & Effects */
  --radius-lg: 12px;              /* Slightly tighter corners for a pro look */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-hover: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-body);
  line-height: 1.6;
  background-color: var(--bg-light);
  -webkit-font-smoothing: antialiased; /* Makes text look sharper */
}

h1, h2, h3 {
  color: var(--text-heading);
  line-height: 1.2;
}

/* 2. HERO SECTION */
.hero {
  position: relative;
  /* Make sure you have the image saved as hero.png */
  background: url('../images/hero.png') center/cover no-repeat;
  color: var(--white);
  padding: 8rem 0 8rem;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* Stronger gradient for better text readability */
  background: linear-gradient(135deg, rgba(25, 148, 209, 0.75) 0%, rgba(15, 23, 42, 0.5) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 800px; 
  animation: fadeUp 1s ease-out forwards;
}

.eyebrow {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
  display: inline-block;
  background: rgba(255,255,255,0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-sub {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  max-width: 650px;
}

/* 3. BUTTONS (Professional Hierarchy) */
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 1rem;
  cursor: pointer;
}

/* Primary: Solid White on Blue Background */
.btn-primary {
  background: var(--white);
  color: var(--color-primary);
  border: 2px solid var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: #f1f5f9;
  border-color: #f1f5f9;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Ghost: Transparent with White Border */
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* 4. CARDS SECTION (Services Preview) */
.section-card {
  padding: 6rem 0;
  background: var(--bg-light);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  opacity: 0; /* Animated by JS */
  transform: translateY(30px);
}

.card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(25, 148, 209, 0.2);
}

.card h3 {
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
  font-weight: 600;
}

.card p {
  color: var(--text-body);
  font-size: 1rem;
  margin: 0;
}

/* 5. ANNOUNCEMENT SECTION */
.section-announce {
  background: var(--color-primary);
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
}

.announce-text {
  max-width: 700px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.announce-text.in-view {
  opacity: 1;
  transform: translateY(0);
}

.announce-text h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.announce-text p {
  font-size: 1.15rem;
  opacity: 0.95;
}

/* 6. ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hide navigation toggle by default (shown on mobile in media.css) */
.nav-toggle {
  display: none;
}