/* =========================================================
   St. Basil Hospital - Main Stylesheet
   1. Variables  2. Base  3. Layout  4. Buttons
   5. Header/Nav 6. Hero  6b. Sections/Services  6c. Forms  7. Footer  8. Responsive
   ========================================================= */

/* 1. Variables */
:root {
  --navy: #0B3A5E;
  --navy-dark: #072A45;
  --blue: #0F6FC6;
  --cyan: #12A9E8;
  --red: #E3262E;
  --red-dark: #C41C24;
  --green: #2DA44E;
  --green-light: #E7F6EC;
  --blue-dark: #0A5AA3;
  --blue-light: #E8F3FC;
  --text: #33475B;
  --white: #FFFFFF;
  --shadow: 0 6px 20px rgba(18, 59, 99, 0.10);
  --radius: 14px;
  --radius-pill: 999px;
  --header-h: 76px;
  --font-heading: 'Oswald', sans-serif;
  --font-serif: 'Playfair Display', serif;
  --font-body: 'Nunito Sans', sans-serif;
}

/* 2. Base */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 1rem;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--navy);
  color: var(--white);
  padding: .6rem 1rem;
  border-radius: 8px;
  z-index: 200;
}
.skip-link:focus { top: 1rem; }

/* 3. Layout */
.container {
  width: min(1160px, 100% - 2.5rem);
  margin-inline: auto;
}

/* 4. Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .9rem 1.8rem;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-dark); }

.btn-secondary { background: var(--blue); color: var(--white); }
.btn-secondary:hover { background: var(--blue-dark); }

/* 5. Header / Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(18, 59, 99, 0.08);
}

.navbar {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { display: inline-flex; align-items: center; gap: .65rem; }

.logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--blue);
  color: var(--white);
  font-size: 1.2rem;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
}
.logo-text span { color: var(--blue); }

.nav-menu { display: flex; align-items: center; gap: .4rem; }

.nav-link {
  display: block;
  padding: .55rem 1.05rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  color: var(--navy);
  transition: background-color .2s, color .2s;
}
.nav-link:hover { background: var(--blue-light); }
.nav-link.active { background: var(--navy); color: var(--white); }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 12px;
  background: var(--blue-light);
  color: var(--navy);
  font-size: 1.3rem;
  cursor: pointer;
}

/* 6. Hero */
.hero {
  background: linear-gradient(180deg, var(--blue-light) 0%, var(--white) 100%);
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 3rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.9rem);
  letter-spacing: .01em;
}

.hero p {
  max-width: 34rem;
  font-size: 1.15rem;
  margin: 0 0 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-image img {
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

/* Section headings (reusable) */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }

.section-header { max-width: 40rem; margin: 0 auto 3rem; text-align: center; }
.section-header h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.section-header p:last-child { margin: 0; }

.eyebrow {
  display: inline-block;
  margin: 0 0 .8rem;
  padding: .3rem .9rem;
  border-radius: var(--radius-pill);
  background: var(--blue-light);
  color: var(--blue-dark);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Services grid: 3 columns on desktop, 1 on mobile */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 2rem;
  background: var(--white);
  border: 1px solid #E3EBF3;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: 0 12px 28px rgba(18, 59, 99, 0.14);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 1.25rem;
  border-radius: 16px;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 1.6rem;
}

.service-card h3 { font-size: 1.2rem; }
.service-card p { margin: 0 0 1.25rem; flex-grow: 1; }

.learn-more {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  color: var(--navy);
}
.learn-more i { transition: transform .2s; }
.learn-more:hover { color: var(--blue-dark); }
.learn-more:hover i { transform: translateX(4px); }

/* Page banner (inner pages) */
.page-banner {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  background: linear-gradient(180deg, var(--blue-light) 0%, var(--white) 100%);
  text-align: center;
}
.page-banner h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.page-banner p:last-child { max-width: 34rem; margin: 0 auto; }

/* Forms (reusable for appointment + contact) */
.booking { padding-top: 1rem; }

.booking-layout {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 2rem;
  align-items: start;
}

.form-card, .info-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--white);
  border: 1px solid #E3EBF3;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form-card h2, .info-card h2 { font-size: 1.5rem; }
.form-note { margin: 0 0 1.5rem; font-size: .95rem; }
.req { color: #C0392B; }
.optional { font-weight: 400; color: #6B7C8F; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; margin-bottom: 1.5rem; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { display: block; margin-bottom: .4rem; font-weight: 600; color: var(--navy); font-size: .95rem; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .8rem 1rem;
  border: 1.5px solid #CBD7E3;
  border-radius: 12px;
  background: var(--white);
  font: inherit;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(15, 111, 198, 0.18);
}
.form-group select:disabled { background: #F2F5F8; cursor: not-allowed; }

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea { border-color: #C0392B; }
.form-group.has-error input:focus,
.form-group.has-error select:focus,
.form-group.has-error textarea:focus { box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.15); }

.field-hint { margin: .35rem 0 0; font-size: .85rem; color: #6B7C8F; }
.error-text { min-height: 1.2rem; margin: .35rem 0 0; font-size: .875rem; color: #C0392B; }
.field-meta { display: flex; justify-content: space-between; gap: 1rem; }
.char-count { margin: .35rem 0 0; font-size: .85rem; color: #6B7C8F; white-space: nowrap; }

.btn-block { width: 100%; }

/* Success message */
.success-panel { text-align: center; padding: 1rem 0; }
.success-panel[hidden] { display: none; }
.success-icon { font-size: 3.5rem; color: var(--blue); margin-bottom: .5rem; }
.summary { margin: 1.5rem 0; padding: 1.25rem; background: var(--blue-light); border-radius: var(--radius); text-align: left; }
.summary div { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid rgba(18, 59, 99, 0.10); }
.summary div:last-child { border-bottom: 0; }
.summary dt { font-weight: 600; color: var(--navy); }
.summary dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.demo-note { font-size: .9rem; margin-bottom: 1.5rem; }
.demo-note i { color: var(--blue); }

/* Info side card */
.info-list li { display: flex; gap: 1rem; margin-bottom: 1.25rem; }
.info-list li:last-child { margin-bottom: 0; }
.info-list i { flex: 0 0 auto; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--blue-light); color: var(--blue); }

/* 7. Footer */
.site-footer {
  background: var(--navy);
  color: #CFDBE8;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr;
  gap: 2.5rem;
  padding: 3.5rem 0 2.5rem;
}

.logo-light .logo-text { color: var(--white); }
.footer-about { margin: 1rem 0 0; max-width: 20rem; }

.footer-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-links li, .footer-contact li { margin-bottom: .6rem; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.footer-contact i { color: var(--blue); width: 1.4rem; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.2rem 0;
  font-size: .9rem;
}
.footer-bottom p { margin: 0; }

/* 8. Responsive */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .split, .contact-layout { grid-template-columns: 1fr; }
  .split-image { order: -1; }
  .hero-badge.b1 { left: .75rem; }
  .hero-badge.b2 { right: .75rem; }
  .cta { flex-direction: column; text-align: center; }
  .booking-layout { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-image img { max-width: 360px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .nav-toggle { display: grid; place-items: center; }

  .nav-menu {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: .25rem;
    padding: 1rem 1.25rem 1.5rem;
    background: var(--white);
    box-shadow: 0 12px 20px rgba(18, 59, 99, 0.10);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .nav-menu.open { opacity: 1; visibility: visible; transform: none; }
  .nav-cta { margin-top: .5rem; }
  .nav-cta .btn { width: 100%; }
  .nav-link { padding: .85rem 1rem; border-radius: 12px; }
}

@media (max-width: 640px) {
  .features-grid, .features-grid.three { grid-template-columns: 1fr; }
  .hero-badge { padding: .55rem .8rem; font-size: .8rem; }
  .form-grid { grid-template-columns: 1fr; }
  .summary div { flex-direction: column; gap: .1rem; }
  .summary dd { text-align: left; }
  .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .hero-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* =========================================================
   9. Polish: typography, motion, new components
   ========================================================= */
:root { --ease: cubic-bezier(.22, .61, .36, 1); --tint: #F4F8FB; }

body { -webkit-font-smoothing: antialiased; line-height: 1.7; }
h1, h2, h3 { text-wrap: balance; letter-spacing: .01em; }
p { text-wrap: pretty; }
h3 { font-size: 1.2rem; }

/* Header: translucent, gains a shadow once the page scrolls */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(18, 59, 99, 0.06);
  transition: box-shadow .3s var(--ease);
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(18, 59, 99, 0.10); }
.nav-cta .btn { padding: .6rem 1.35rem; font-size: .95rem; margin-left: .5rem; }

/* Buttons: smoother hover and press feedback */
.btn { transition: background-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease), color .25s var(--ease); }
.btn:hover { box-shadow: 0 10px 22px rgba(18, 59, 99, 0.18); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn i { transition: transform .25s var(--ease); }
.btn:hover i { transform: scale(1.12); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--blue-light); }

/* Cards: consistent smooth hover */
.service-card, .feature, .doctor-card, .form-card, .info-card {
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.service-card:hover .service-icon { background: var(--blue); color: var(--white); }
.service-icon { transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease); }
.service-card:hover .service-icon { transform: scale(1.06) rotate(-4deg); }
.service-card:target { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(15, 111, 198, 0.18); }

/* Eyebrow inside the hero */
.hero .eyebrow { margin: 0 0 1.1rem; font-size: .85rem; }
.hero p { line-height: 1.75; }

/* Hero visual: decorative blob, floating badges */
.hero { position: relative; overflow: hidden; padding-bottom: clamp(4rem, 8vw, 6.5rem); }
.hero::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -180px;
  background: radial-gradient(circle, rgba(15, 111, 198, 0.18), transparent 68%); pointer-events: none;
}
.hero-image { position: relative; }
.hero-image img { box-shadow: 0 24px 50px rgba(18, 59, 99, 0.18); }
.hero-badge {
  position: absolute; display: flex; align-items: center; gap: .7rem; padding: .75rem 1.05rem;
  background: var(--white); border-radius: 16px; box-shadow: 0 10px 28px rgba(18, 59, 99, 0.16);
  font-size: .88rem; line-height: 1.3; text-align: left; color: var(--text);
  animation: float 5s ease-in-out infinite;
}
.hero-badge strong { color: var(--navy); }
.hero-badge i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--blue-light); color: var(--blue); }
.hero-badge.b1 { left: -1.5rem; bottom: 2.5rem; }
.hero-badge.b2 { right: -1rem; top: 2rem; animation-delay: -2.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Highlights strip */
.stats { margin-top: -3rem; position: relative; z-index: 2; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); padding: 1.75rem 1rem;
  background: var(--white); border: 1px solid #E3EBF3; border-radius: 20px; box-shadow: var(--shadow);
}
.stat { text-align: center; padding: .5rem 1rem; }
.stat + .stat { border-left: 1px solid #E3EBF3; }
.stat strong { display: block; font-family: var(--font-heading); font-size: clamp(1.6rem, 3.5vw, 2.2rem); color: var(--navy); line-height: 1.2; }
.stat span { color: var(--text); font-size: .95rem; }
.stats-note { margin: .75rem 0 0; text-align: center; font-size: .8rem; color: #7C8EA1; }

/* Section variants */
.section-tint { background: var(--tint); }
.section-header { margin-bottom: 3rem; }
.section-header h2 { margin-bottom: .75rem; }

/* Feature cards */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.features-grid.three { grid-template-columns: repeat(3, 1fr); }
.feature { padding: 1.75rem; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid #E3EBF3; }
.feature:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(18, 59, 99, 0.14); }
.feature p { margin: 0; }
.feature-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 1.1rem; border-radius: 16px; background: var(--navy); color: var(--white); font-size: 1.3rem; }

/* Call-to-action banner */
.cta-section { padding-top: 1rem; }
.cta {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: clamp(2rem, 5vw, 3.25rem); border-radius: 24px; color: #DCE8F4;
  background: linear-gradient(135deg, var(--navy) 0%, #1D5C8E 100%); box-shadow: 0 18px 40px rgba(18, 59, 99, 0.22);
}
.cta h2 { color: var(--white); margin-bottom: .5rem; font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
.cta p { margin: 0; max-width: 34rem; }
.cta .btn { flex-shrink: 0; }

/* About: split layout + check list */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split-image img { width: 100%; border-radius: 24px; box-shadow: 0 20px 44px rgba(18, 59, 99, 0.16); }
.check-list { margin: 0 0 1.25rem; }
.check-list li { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .5rem; font-size: .98rem; }
.check-list i { color: var(--blue); margin-top: .3rem; flex: 0 0 auto; }

/* Doctors */
.doctors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 1.5rem; }
.doctor-card { display: flex; flex-direction: column; align-items: center; padding: 1.75rem 1.25rem; text-align: center; background: var(--white); border: 1px solid #E3EBF3; border-radius: var(--radius); box-shadow: var(--shadow); }
.doctor-card:hover { transform: translateY(-5px); border-color: var(--blue); box-shadow: 0 14px 30px rgba(18, 59, 99, 0.14); }
.doctor-card img { width: 120px; height: 120px; margin-bottom: 1rem; border-radius: 50%; border: 4px solid var(--blue-light); transition: transform .3s var(--ease); }
.doctor-card:hover img { transform: scale(1.05); }
.doctor-card h3 { margin-bottom: .2rem; font-size: 1.05rem; }
.doctor-role { margin: 0 0 .7rem; font-size: .92rem; }
.tag { display: inline-block; margin-bottom: 1rem; padding: .2rem .75rem; border-radius: var(--radius-pill); background: var(--blue-light); color: var(--blue-dark); font-size: .78rem; font-weight: 700; }
.doctor-card .learn-more { margin-top: auto; font-size: .92rem; }

/* Contact page */
.contact-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2rem; align-items: start; }
.form-alert { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 1.25rem; padding: 1rem 1.2rem; border-radius: 12px; font-size: .95rem; }
.form-alert[hidden] { display: none; }
.form-alert i { margin-top: .2rem; font-size: 1.1rem; }
.form-alert.success { background: var(--green-light); color: #1B6B35; }
.form-alert.error { background: #FDECEA; color: #A5281B; }

/* Scroll reveal (only when JavaScript is available) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.visible { opacity: 1; transform: none; }
/* Cards keep their own hover transition once revealed */
.js .service-card.reveal.visible, .js .feature.reveal.visible, .js .doctor-card.reveal.visible { transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease), opacity .7s var(--ease); transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  .hero-badge { animation: none; }
}

/* =========================================================
   10. St. Basil brand: logo, top bar, promo, flyer content
   ========================================================= */
.btn-primary { background: var(--blue); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-secondary { background: var(--red); }
.btn-secondary:hover { background: var(--red-dark); }
.btn-outline-light { background: transparent; border-color: rgba(255, 255, 255, .65); color: var(--white); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .14); }

/* Top bar */
.topbar { background: var(--navy); color: #D6E6F5; font-size: .875rem; }
.topbar-inner { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; }
.topbar a { font-weight: 700; color: var(--white); }
.topbar a:hover { text-decoration: underline; }
.topbar i { color: var(--cyan); margin-right: .4rem; }

/* Logo from the flyer + wordmark */
.logo img { height: 48px; width: auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text .logo-name { font-family: var(--font-heading); font-weight: 700; font-size: 1.45rem; letter-spacing: .02em; color: var(--blue); text-transform: uppercase; }
.logo-text .logo-name span { color: var(--navy); }
.logo-text .logo-tag { font-family: var(--font-serif); font-style: italic; font-weight: 600; font-size: .85rem; color: var(--navy); }
.logo-light img { background: var(--white); border-radius: 10px; padding: 4px 6px; }
.logo-light .logo-text .logo-name { color: var(--white); }
.logo-light .logo-text .logo-name span { color: #7CC4F5; }
.logo-light .logo-text .logo-tag { color: #CFE3F5; }

/* Hero */
.hero h1 { font-size: clamp(2.8rem, 6.5vw, 4.6rem); line-height: 1.05; text-transform: uppercase; margin-bottom: .6rem; }
.hero .tagline { font-family: var(--font-serif); font-style: italic; font-weight: 700; font-size: 1.6rem; color: var(--blue); margin: 0 0 1rem; max-width: none; }
.hero-image img { width: 100%; max-width: 440px; height: auto; background: var(--white); }
.hero-badge i.red { background: #FDECEA; color: var(--red); }

/* Promo banner: free deworming (green, as on the flyer) */
.promo { display: flex; align-items: center; gap: 1.5rem; padding: 1.5rem 2rem; border-radius: 20px; color: var(--white); background: linear-gradient(135deg, #1F8A3F, var(--green)); box-shadow: 0 14px 30px rgba(45, 164, 78, .28); }
.promo-icon { display: grid; place-items: center; flex: 0 0 auto; width: 70px; height: 70px; border-radius: 50%; background: rgba(255, 255, 255, .2); font-size: 2rem; }
.promo h2 { margin: 0 0 .2rem; font-size: clamp(1.4rem, 3vw, 2rem); color: var(--white); text-transform: uppercase; }
.promo p { margin: 0; }
.promo-section { padding: 0 0 clamp(2rem, 5vw, 3.5rem); }

/* CTA buttons + brand card + team icons */
.cta-actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.brand-card { display: flex; flex-direction: column; align-items: center; gap: .75rem; padding: 2.5rem 1.5rem; text-align: center; background: var(--white); border: 1px solid #E3EBF3; border-radius: 24px; box-shadow: 0 20px 44px rgba(11, 58, 94, .14); }
.brand-card img { width: min(240px, 70%); height: auto; }
.brand-card .brand-name { font-family: var(--font-heading); font-weight: 700; font-size: 2rem; line-height: 1; color: var(--blue); text-transform: uppercase; }
.brand-card .brand-name span { color: var(--navy); }
.brand-card .brand-tag { font-family: var(--font-serif); font-style: italic; font-weight: 700; font-size: 1.4rem; color: var(--navy); margin: 0; }
.brand-card .brand-dawn { margin: 0; padding: .25rem 1rem; border-radius: var(--radius-pill); background: var(--blue-light); color: var(--blue-dark); font-family: var(--font-heading); font-weight: 700; letter-spacing: .12em; }
.team-icon { display: grid; place-items: center; width: 84px; height: 84px; margin-bottom: 1rem; border-radius: 50%; background: var(--blue-light); color: var(--blue); font-size: 2rem; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--blue-light); transition: transform .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease); }
.doctor-card:hover .team-icon { background: var(--blue); color: var(--white); transform: scale(1.06); }
.success-panel .btn { margin: .25rem; }
.form-warning { display: flex; gap: .7rem; margin: 0 0 1.25rem; padding: .85rem 1rem; border-radius: 12px; background: #FFF6E5; color: #7A5300; font-size: .92rem; }
.form-warning i { margin-top: .25rem; }

@media (max-width: 900px) {
  .cta-actions { justify-content: center; }
  .promo { flex-direction: column; text-align: center; }
}
@media (max-width: 520px) {
  .topbar-inner > span { display: none; }
  .topbar-inner { justify-content: center; }
  .logo img { height: 40px; }
  .logo-text .logo-name { font-size: 1.2rem; }
  .logo-text .logo-tag { font-size: .75rem; }
  .cta-actions .btn { width: 100%; }
}

/* WhatsApp */
.btn-whatsapp { background: #128C4A; color: var(--white); }
.btn-whatsapp:hover { background: #0E7339; }
.wa-float {
  position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 90;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: var(--white); font-size: 2rem;
  box-shadow: 0 8px 22px rgba(18, 140, 74, .45); transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 12px 28px rgba(18, 140, 74, .55); }
.form-warning.wa { background: var(--green-light); color: #1B6B35; }
.form-alert a { text-decoration: underline; }

/* Laboratory tests section */
.lab-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: start; }
.lab-panel h3 { font-size: 1.15rem; margin-bottom: 1rem; }
.lab-list { margin: 0; }
.lab-list li { margin-bottom: .4rem; font-size: .95rem; }

/* Surgery procedures section */
.procedures-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.75rem; align-items: start; }
.procedure-panel { padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--white); border: 1px solid #E3EBF3; border-radius: var(--radius); box-shadow: var(--shadow); }
.procedure-panel h3 { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; font-size: 1.3rem; }
.panel-icon { display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; background: var(--blue-light); color: var(--blue); font-size: 1.15rem; }
.procedure-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: .55rem 1.75rem; margin: 0; }
.procedure-list li { margin: 0; }
.panel-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }

/* Map + "Find us" */
.find-us-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.find-us-grid .info-list { margin: 1.25rem 0; }
.map-embed { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid #E3EBF3; border-radius: 20px; box-shadow: 0 14px 34px rgba(11, 58, 94, .14); background: var(--blue-light); }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-section { padding-top: 0; }
.panel-actions.center { justify-content: center; margin-top: 1.5rem; }
.footer-contact a:hover { color: var(--white); text-decoration: underline; }
.info-list a { color: var(--blue); font-weight: 600; }
.info-list a:hover { text-decoration: underline; }

/* Visitor counter (footer) */
.footer-bottom .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; }
.visitor-counter { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .95rem; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .1); color: #D6E6F5; font-size: .9rem; }
.visitor-counter[hidden] { display: none; }
.visitor-counter i { color: var(--cyan); }
.visitor-counter strong { color: var(--white); font-family: var(--font-heading); font-size: 1.05rem; letter-spacing: .02em; }

/* =========================================================
   11. Responsive overrides (keep this block LAST so it wins
   over the base rules defined earlier in the file)
   ========================================================= */
@media (min-width: 901px) {
  .cta > div:first-child { flex: 1 1 auto; min-width: 0; }
  .cta-actions { flex-wrap: nowrap; flex-shrink: 0; }
  .cta-actions .btn { padding: .85rem 1.4rem; }
}

@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid.three { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid #E3EBF3; padding-top: 1rem; margin-top: .5rem; }
}

@media (max-width: 900px) {
  .split, .contact-layout, .booking-layout { grid-template-columns: 1fr; }
  .split-image { order: -1; }
  .features-grid.three { grid-template-columns: 1fr; }
  .hero-badge.b1 { left: .75rem; bottom: 1rem; }
  .hero-badge.b2 { right: .75rem; top: 1rem; }
  .cta { flex-direction: column; text-align: center; }
}

@media (max-width: 640px) {
  .features-grid, .features-grid.three { grid-template-columns: 1fr; }
  .hero-badge { padding: .5rem .75rem; font-size: .78rem; }
  .hero-badge i { width: 32px; height: 32px; }
  .stat strong { font-size: 1.5rem; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .nav-cta .btn { margin-left: 0; }   /* line the menu button up with the links */
}
@media (max-width: 520px) {
  .hero-image img { max-width: 320px; }
  .hero { padding-top: 2rem; }
}

@media (max-width: 900px) {
  .procedures-grid { grid-template-columns: 1fr; }
  .lab-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .lab-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .procedure-list { grid-template-columns: 1fr; }
  .panel-actions .btn { width: 100%; }
}

@media (max-width: 900px) {
  .find-us-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .map-embed { aspect-ratio: auto; height: 300px; }
  .panel-actions .btn { width: 100%; }
}

/* Footer polish: readable icons on navy, keep the counter clear of the floating WhatsApp button */
.footer-contact i { color: var(--cyan); }
.footer-bottom .container { padding-right: 4.5rem; }
