/* =========================================================
   STRENGTH SCHOOL MALTA — Bright & Friendly Theme
   Brand: Oswald (headers), Rubik (body)
   Colors: Core Red #840c1a, Deep Crimson #4a070f
   ========================================================= */

:root {
  --color-primary: #840c1a;
  --color-primary-dark: #4a070f;
  --color-primary-soft: #fcedef;
  --color-primary-glow: rgba(132, 12, 26, 0.08);
  --color-secondary: #6b7280;
  --color-border: #e5e7eb;
  --color-light: #f8f9fa;
  --color-surface: #ffffff;
  --color-dark: #1a1d1a;
  --color-text: #374151;
  --color-accent: #c9c9c9;
  --shadow-soft: 0 8px 32px rgba(0,0,0,0.05);
  --shadow-card: 0 2px 12px rgba(0,0,0,0.04);
  --shadow-hover: 0 12px 36px rgba(132, 12, 26, 0.10);
  --shadow-btn: 0 4px 14px rgba(132, 12, 26, 0.18);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --font-header: 'Oswald', sans-serif;
  --font-body: 'Rubik', sans-serif;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --container: min(1140px, calc(100% - 2.5rem));
}

/* Reset & Base */
html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; margin: 0; }
body {
  font-family: var(--font-body);
  background: #ffffff;
  color: var(--color-text);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-dark); }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem 1.25rem; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-header);
  color: var(--color-dark);
  line-height: 1.15;
  margin: 0 0 0.85rem;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.5rem, 5.5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 600; }

/* Layout */
.container { width: var(--container); margin: 0 auto; }
.narrow { max-width: 760px; }
.align-center { align-items: center; }
.center { text-align: center; }

/* Badges */
.site-badge, .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  /* Increase vertical padding further to accommodate a larger logo */
  padding: 0.7rem 1.2rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/*
 * Logo sizing within the site badge
 *
 * When a logo is placed inside the `.site-badge` container, ensure it scales
 * harmoniously with the surrounding text. A fixed height keeps the logo
 * aligned with text baselines while preserving its aspect ratio and avoiding
 * distortion. The `display: inline-block` property ensures the image
 * participates in the inline flow like text.
 */
.site-badge img {
  /* Increase the logo size within the badge for better visibility */
  height: 2.4rem;
  width: auto;
  display: inline-block;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 2rem;
}
.section-heading.center { display: block; text-align: center; }
.section-heading.center p { max-width: 600px; margin: 0.5rem auto 0; color: var(--color-secondary); }
.text-link { font-weight: 600; display: inline-flex; align-items: center; gap: 0.3rem; }
.text-link:hover { text-decoration: none; }
.text-link::after { content: '\2192'; transition: transform var(--transition); }
.text-link:hover::after { transform: translateX(3px); }
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
  /* Center align call-to-action buttons in hero sections on all screens */
  justify-content: center;
}

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.06); }
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
}
.logo img { height: 46px; width: auto; }
nav { margin-left: auto; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.15rem; }
nav li { position: relative; }
nav a {
  display: block;
  color: var(--color-dark);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  transition: all var(--transition);
}
nav a:hover, nav a:focus-visible {
  text-decoration: none;
  background: var(--color-primary-soft);
  color: var(--color-primary);
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  border: 1.5px solid var(--color-border);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: all var(--transition);
}
.lang-switch:hover, .lang-switch:focus-visible {
  text-decoration: none;
  background: var(--color-primary-soft);
  border-color: var(--color-primary);
}

/* Sub-menus */
.sub-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 220px;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 0.35rem;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.sub-menu a { border-radius: 10px; font-size: 0.92rem; }
.has-submenu:hover > .sub-menu,
.has-submenu:focus-within > .sub-menu,
.sub-menu.show { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu .sub-menu {
  position: static;
  margin-top: 0.25rem;
  margin-left: 0.4rem;
  box-shadow: none;
  border: none;
  padding-left: 0.2rem;
}

.nav-toggle {
  display: none;
  border: 1.5px solid var(--color-border);
  background: #fff;
  color: var(--color-primary);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--transition);
}
.nav-toggle:hover { background: var(--color-primary-soft); border-color: var(--color-primary); }

/* ============ HERO ============ */
main { display: block; }
section { padding: 5rem 0; }
.hero {
  position: relative;
  min-height: min(72vh, 700px);
  display: grid;
  place-items: center;
  text-align: center;
  background-position: center;
  background-size: cover;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,29,26,0.35) 0%, rgba(132, 12, 26, 0.65) 100%);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to top, #fff, transparent);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(860px, calc(100% - 2rem));
  padding: 5rem 0 5.5rem;
  color: white;
}
.hero-content h1, .hero-content h2, .hero-content p {
  color: white;
  text-shadow: 0 2px 16px rgba(0,0,0,0.25);
}
.hero-content .site-badge, .hero-content .eyebrow {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  backdrop-filter: blur(8px);
}

/*
 * Hero logo badge — sits inside the hero as a clean floating shield,
 * never overlapping section boundaries.
 */
.hero-content .site-badge {
  background: rgba(255,255,255,0.13);
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 18px;
  padding: 0.65rem 0.85rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-content .site-badge img {
  height: 3rem;
}
.hero-content p {
  font-size: clamp(1.05rem, 1.6vw, 1.18rem);
  max-width: 660px;
  margin: 0 auto;
  opacity: 0.95;
}
.hero-compact { min-height: 52vh; }

/* ============ BUTTONS ============ */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover {
  text-decoration: none;
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(132, 12, 26, 0.22);
}
.btn-secondary {
  background: #fff;
  color: var(--color-primary);
  border: 1.5px solid rgba(132, 12, 26, 0.15);
}
.btn-secondary:hover, .btn-secondary.light:hover {
  text-decoration: none;
  color: var(--color-primary);
  transform: translateY(-2px);
  background: var(--color-primary-soft);
  border-color: var(--color-primary);
}
.highlight-card .btn-secondary.light {
  background: rgba(255,255,255,0.15);
  color: white;
  border-color: rgba(255,255,255,0.3);
}
.highlight-card .btn-secondary.light:hover {
  background: rgba(255,255,255,0.25);
  color: white;
}

/* ============ CARDS & GRIDS ============ */
.program-grid, .age-grid, .blog-grid, .contact-grid, .language-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}
.program-card, .age-card, .blog-card, .contact-card, .language-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
}
.program-card:hover, .age-card:hover, .blog-card:hover,
.contact-card:hover, .language-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.program-card, .age-card, .blog-card, .contact-card { padding: 2rem; }

/* Program Cards */
.program-card { grid-column: span 4; text-align: center; }
.program-card img { width: 60px; height: 60px; object-fit: contain; margin: 0 auto 1.2rem; }
.program-card p { color: var(--color-text); font-size: 0.95rem; }
.program-card.highlight-card {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  border-color: transparent;
}
.program-card.highlight-card h3, .program-card.highlight-card p { color: #fff; }

/* Age Icon */
.age-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
.highlight-card .age-icon { background: rgba(255,255,255,0.15); color: #fff; }
.icon-b2b {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 60px; height: 60px;
  border-radius: 16px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 auto 1.2rem;
}

/* Age Cards */
.age-card { grid-column: span 3; text-align: center; }
.age-card img { border-radius: 14px; margin-bottom: 1rem; width: 100%; aspect-ratio: 1; object-fit: cover; }

/* Blog Cards */
.blog-card { grid-column: span 4; overflow: hidden; padding: 0; }
.blog-card .date { color: var(--color-secondary); margin-bottom: 0.25rem; font-size: 0.85rem; font-weight: 500; }
.blog-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.5s ease; }
.blog-card:hover img { transform: scale(1.03); }
.blog-card h3, .blog-card p, .blog-card .date { padding: 0 1.5rem; }
.blog-card h3 { padding-top: 0; }
.blog-card p:last-child { padding-bottom: 1.5rem; }
.blog-card .date { padding-top: 1.25rem; }

/* Blog List */
.blog-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem; }
.blog-list > li {
  grid-column: span 4;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  padding: 0;
  transition: all var(--transition);
}
.blog-list > li:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.blog-list > li img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.blog-list > li .date { color: var(--color-secondary); margin-bottom: 0.35rem; font-size: 0.85rem; padding: 1.25rem 1.5rem 0; }
.blog-list > li h3, .blog-list > li p { padding: 0 1.5rem; }
.blog-list > li p:last-child { padding-bottom: 1.5rem; }

/* Contact & Language */
.contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.contact-card { text-align: left; }
.language-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.language-card { display: block; padding: 2.5rem; color: inherit; }
.language-card:hover { text-decoration: none; }
.language-card .btn-primary { margin-top: 1rem; }

/* ============ TWO-COLUMN & HIGHLIGHT ============ */
.two-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; }
.section-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  width: var(--container);
  margin: 0 auto;
}
.highlight-section { padding: 0 0 5rem; }
.highlight-section .container, .highlight-section .two-column {
  background: var(--color-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--color-border);
}
.highlight-section img, .split-image img, .blog-hero-image {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.split-image img {
  aspect-ratio: 1;
  object-fit: cover;
}
.split-content ul { margin-top: 0.5rem; }
.split-content p { margin-bottom: 1.1rem; }

/* ============ CHECKLIST ============ */
.checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.checklist li { position: relative; padding-left: 2rem; margin-bottom: 1rem; font-size: 1.02rem; }
.checklist li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.35rem;
  width: 20px; height: 20px;
  border-radius: 6px;
  background: var(--color-primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23840c1a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") no-repeat center;
}
.checklist-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 2rem; }

/* Resource List */
.resource-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.resource-list a {
  display: inline-flex;
  padding: 1rem 1.25rem;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  font-weight: 600;
  transition: all var(--transition);
}
.resource-list a:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-hover); }

/* ============ BLOG / ARTICLE ============ */
.article-shell { padding-top: 2.5rem; padding-bottom: 2rem; }
.blog-content { max-width: 780px; margin: 0 auto; font-size: 1.05rem; line-height: 1.8; }
.blog-content ul li, .blog-content ol li { margin-bottom: 0.65rem; }
.blog-content h2 { margin-top: 2rem; }
.blog-content img { border-radius: var(--radius); margin: 1.5rem 0; }

/* ============ CTA ============ */
.cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.cta > h2,
.cta > p,
.cta > a,
.cta > .button-row {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.cta::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.cta::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -10%;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
}
.cta h2, .cta p { color: #fff; position: relative; z-index: 1; }
.cta .btn-primary {
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 4px 18px rgba(0,0,0,0.12);
  position: relative;
  z-index: 1;
}
.cta .btn-primary:hover { background: var(--color-primary-soft); color: var(--color-primary-dark); }

/* Alternating section backgrounds */
section:nth-child(even):not(.hero):not(.cta):not(.highlight-section) {
  background: var(--color-light);
}

/* ============ TRUST STRIP ============ */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 1.5rem 0;
  text-align: center;
}
.trust-stat { text-align: center; }
.trust-stat .number {
  display: block;
  font-family: var(--font-header);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.1;
}
.trust-stat .label { font-size: 0.88rem; color: var(--color-secondary); margin-top: 0.25rem; display: block; }

/* ============ FOOTER ============ */
.site-footer {
  margin-top: 0;
  padding-top: 3.5rem;
  background: var(--color-light);
  border-top: 1px solid var(--color-border);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; align-items: start; }
.footer-wordmark { max-width: 260px; margin-bottom: 1rem; }
.footer-grid h4 { margin-bottom: 0.8rem; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li + li { margin-top: 0.5rem; }
.footer-grid a { color: var(--color-text); font-weight: 400; }
.footer-grid a:hover { color: var(--color-primary); }
.footer-bottom {
  padding: 1.5rem 0 2rem;
  text-align: center;
  color: var(--color-secondary);
  font-size: 0.88rem;
  border-top: 1px solid var(--color-border);
  margin-top: 2.5rem;
}

/* ============ SCROLL ANIMATIONS ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.fade-in { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  nav a { padding: 0.5rem 0.65rem; font-size: 0.92rem; }
}
@media (max-width: 920px) {
  .program-card, .blog-card, .blog-list > li { grid-column: span 6; }
  .age-card { grid-column: span 6; }
  .footer-grid, .two-column, .section-split, .contact-grid, .language-grid, .checklist-grid {
    grid-template-columns: 1fr 1fr;
  }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  nav {
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 1rem; left: 1rem;
    display: none;
  }
  nav.open { display: block; }
  nav ul {
    display: flex; flex-direction: column; align-items: stretch;
    background: rgba(255,255,255,0.99);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.5rem;
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  }
  .sub-menu {
    position: static; display: none; opacity: 1; visibility: visible; transform: none;
    min-width: 0; padding: 0.3rem 0 0 0.75rem;
    background: transparent; border: none; box-shadow: none;
  }
  .sub-menu.show, .has-submenu:hover > .sub-menu, .has-submenu:focus-within > .sub-menu { display: block; }
  .nav-container { min-height: 72px; }
}
@media (max-width: 640px) {
  section { padding: 3rem 0; }
  .hero { min-height: 55vh; }
  .hero-content { padding: 2.5rem 1.25rem 3.5rem; width: 100%; }
  .hero-content h1 { font-size: 2rem; text-shadow: 0 2px 12px rgba(0,0,0,0.3); }
  .hero-content p { font-size: 1rem; text-shadow: 0 1px 8px rgba(0,0,0,0.2); }
  .button-row {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
  }
  .button-row .btn-primary,
  .button-row .btn-secondary {
    width: auto;
    min-width: 220px;
    max-width: 100%;
    text-align: center;
    padding: 0.75rem 2rem;
  }
  .program-grid, .age-grid, .blog-grid, .blog-list, .footer-grid, .two-column, .section-split, .contact-grid, .language-grid, .checklist-grid {
    grid-template-columns: 1fr;
  }
  .program-card, .age-card, .blog-card, .blog-list > li { grid-column: 1 / -1; }
  .footer-grid { display: grid; }
  .section-heading { display: block; text-align: center; }
  .site-footer { padding-top: 2.5rem; }
  .logo img { height: 38px; }

  /* Side padding */
  .container { width: calc(100% - 2rem); }
  .blog-content { padding-left: 0.5rem; padding-right: 0.5rem; }

  /* CTA */
  .cta { padding: 3rem 1.25rem; }
  .cta .button-row { flex-direction: column; align-items: center; }

  /* Hero badge */
  .hero-content .site-badge { padding: 0.5rem 0.7rem; margin-bottom: 1rem; }
  .hero-content .site-badge img { height: 2.4rem; }

  /* Two-column */
  .two-column { gap: 2rem; }
  .highlight-section .container,
  .highlight-section .two-column { padding: 1.5rem; }

  /* Checklist */
  .checklist-grid { grid-template-columns: 1fr; }

  /* Trust strip — 2×2 grid, centred */
  .trust-strip {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1rem;
    padding: 1rem 0;
  }
  .trust-stat .number { font-size: 1.8rem; }
  .trust-stat .label { font-size: 0.8rem; }

  /* Footer */
  .footer-grid { gap: 1.5rem; }
  .footer-about { text-align: center; }
  .footer-wordmark { margin: 0 auto 1rem; }
}

/* ============ EXTRA POLISH ============ */

/* Smooth link underline effect */
a:not(.btn-primary):not(.btn-secondary):not(.lang-switch):not(.logo):not(.program-card):not(.language-card):not(.wa-fab):not(.fb-fab) {
  text-decoration: none;
  background-image: linear-gradient(var(--color-primary-soft), var(--color-primary-soft));
  background-size: 0% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.3s ease, color 0.3s ease;
}
a:not(.btn-primary):not(.btn-secondary):not(.lang-switch):not(.logo):not(.program-card):not(.language-card):not(.wa-fab):not(.fb-fab):hover {
  background-size: 100% 2px;
  text-decoration: none;
}

/* Hero text entrance animation */
.hero-content {
  animation: heroFadeUp 0.8s ease both;
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-content .site-badge { animation: heroFadeUp 0.8s ease 0.1s both; }
.hero-content h1 { animation: heroFadeUp 0.8s ease 0.2s both; }
.hero-content p { animation: heroFadeUp 0.8s ease 0.35s both; }
.hero-content .button-row { animation: heroFadeUp 0.8s ease 0.5s both; }

/* Subtle card border glow on hover */
.program-card:hover,
.age-card:hover,
.blog-card:hover {
  border-color: rgba(132, 12, 26, 0.12);
}

/* Focus visible states for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Smooth image loading */
img {
  transition: opacity 0.3s ease;
}

/* Print styles */
@media print {
  .site-header, .nav-toggle, .cta, .site-footer { display: none; }
  .hero { min-height: auto; background: none !important; }
  .hero::before, .hero::after { display: none; }
  .hero-content { color: #000; padding: 1rem 0; }
  .hero-content h1, .hero-content p { color: #000; }
  section { padding: 1.5rem 0; }
  .btn-primary, .btn-secondary { border: 1px solid #333; background: transparent; color: #333; }
}


/* ============ WHATSAPP FLOATING BUBBLE ============ */
.wa-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 900;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none !important;
}
.wa-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.45);
  text-decoration: none !important;
  background-image: none !important;
  background-size: auto !important;
}
.wa-fab svg { width: 32px; height: 32px; fill: #fff; }
.wa-fab-label {
  position: absolute;
  right: calc(100% + 0.75rem);
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  color: #333;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.wa-fab:hover .wa-fab-label { opacity: 1; }

/* wa-fab mobile sizing handled in .fab-stack query below */

/* WhatsApp contact card styling */
.contact-card .wa-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #25D366;
  font-weight: 600;
}
.contact-card .wa-link:hover { color: #128C7E; }
.contact-card .wa-link svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }

/* Extended contact grid for 5 cards */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ============ FACEBOOK FLOATING BUBBLE ============ */
.fab-stack {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 900;
  display: flex;
  flex-direction: column-reverse;
  gap: 0.75rem;
  align-items: center;
}
.wa-fab, .fb-fab {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none !important;
}
.wa-fab {
  position: static;
}
.fb-fab {
  background: #0084FF;
  box-shadow: 0 4px 20px rgba(0,132,255,0.35);
}
.fb-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(0,132,255,0.45);
  text-decoration: none !important;
  background-image: none !important;
  background-size: auto !important;
  color: #fff;
}
.fb-fab svg { width: 30px; height: 30px; fill: #fff; }
.fb-fab-label {
  position: absolute;
  right: calc(100% + 0.75rem);
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  color: #333;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.fb-fab:hover .fb-fab-label { opacity: 1; }

@media (max-width: 640px) {
  .fab-stack { bottom: 0.85rem; right: 0.85rem; gap: 0.5rem; }
  .wa-fab, .fb-fab { width: 48px; height: 48px; }
  .wa-fab svg { width: 26px; height: 26px; }
  .fb-fab svg { width: 24px; height: 24px; }
  .fb-fab-label, .wa-fab-label { display: none; }
}
