/* ============================================================
   LEARNIFY — Global Stylesheet
   Shared across all pages
   ============================================================ */

/* Google Fonts loaded via <head> in each page */

:root {
  --cream: #FDFAF5;
  --warm-white: #FFF8EE;
  --sage: #4A7C59;
  --sage-light: #6BAE82;
  --sage-dark: #2F5C3C;
  --amber: #E8A838;
  --amber-light: #F5C55A;
  --charcoal: #1C1C1E;
  --slate: #4A4A52;
  --muted: #8A8A96;
  --border: #E8E0D4;
  --card-bg: #FFFFFF;
  --red: #E84040;
  --red-light: #FFF0F0;
  --green: #2D9E5F;
  --green-light: #EEF8F2;
  --playpen-blue: #1A4FA0;
  --playpen-blue-light: #2E6FD8;
  --playpen-yellow: #FFD43B;
  --playpen-orange: #FF7A2F;
  --shadow-sm: 0 2px 8px rgba(28,28,30,0.06);
  --shadow-md: 0 8px 32px rgba(28,28,30,0.10);
  --shadow-lg: 0 24px 64px rgba(28,28,30,0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --nav-height: 68px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  overflow-x: hidden;
  /* Prevent double-tap zoom delay on iOS without disabling zoom */
  touch-action: pan-x pan-y;
}

main#main-content { display: block; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--charcoal);
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* Remove tap highlight flash on mobile — use focus-visible for keyboard users instead */
a, button, [role="button"], input, label, select, textarea {
  -webkit-tap-highlight-color: transparent;
}

/* Prevent 300ms tap delay on all interactive elements */
a, button, [role="button"] {
  touch-action: manipulation;
}

/* ─── PHONE HIGHLIGHT BAR ─── */
.phone-bar {
  background: var(--sage-dark);
  text-align: center;
  padding: 0.55rem 5%;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.phone-bar a {
  color: var(--amber-light);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.phone-bar a:hover { color: #fff; }
.phone-pulse {
  display: inline-block;
  width: 10px; height: 10px;
  background: var(--amber-light);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ─── NAVIGATION ─── */
nav#main-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(253,250,245,0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: 0 5%;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: box-shadow 0.3s;
}
nav#main-nav.scrolled { box-shadow: var(--shadow-md); }

.logo {
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.5px;
  text-decoration: none;
  white-space: nowrap;
}
.logo span { color: var(--sage); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
}
.nav-links a,
.nav-links a:visited,
.nav-links a:link,
.nav-links a:active {
  text-decoration: none;
  color: var(--slate);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  transition: all 0.2s;
  white-space: nowrap;

}
.nav-links a:hover,
.nav-links a.active { color: var(--sage); background: rgba(74,124,89,0.08); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ▾'; font-size: 0.7rem; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 0.6rem;
  z-index: 300;
}
.nav-dropdown:hover .dropdown-menu { display: block; animation: fadeDown 0.2s ease; }
.dropdown-menu a,
.dropdown-menu a:visited,
.dropdown-menu a:link,
.dropdown-menu a:active {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  font-size: 0.86rem;
  color: var(--slate);
  text-decoration: none;
  transition: all 0.15s;
}
.dropdown-menu a:hover { background: rgba(74,124,89,0.08); color: var(--sage); }
.dropdown-icon { font-size: 1.1rem; }

@keyframes fadeDown { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }

/* ── MEGA MENU ── */
.has-mega {
  position: static;
  align-self: stretch;   /* fill full nav height — eliminates hover gap */
  display: flex;
  align-items: center;
}
.has-mega > a { display: flex; align-items: center; height: 100%; }
.has-mega > a::after { content: ' ▾'; font-size: 0.7rem; }
.mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 2px solid var(--sage-light);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  z-index: 300;
  animation: fadeDown 0.2s ease;
}
.has-mega:focus-within .mega-menu { display: block; }
.mega-menu.mega-open { display: block; }
.mega-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 5%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 260px;
  gap: 2rem;
  align-items: start;
}
.mega-col-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.7rem;
  padding-bottom: 0.5rem;
  border-bottom: 1.5px solid var(--border);
}
.mega-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--slate);
  font-size: 0.86rem;
  font-weight: 500;
  transition: all 0.15s;
  margin-bottom: 0.1rem;
}
.mega-link:hover { background: rgba(74,124,89,0.08); color: var(--sage); }
.mega-link-icon { font-size: 1.15rem; flex-shrink: 0; }
.mega-link-desc { font-size: 0.72rem; color: var(--muted); line-height: 1.3; display: block; }
.mega-promo {
  background: linear-gradient(135deg, var(--sage-dark), var(--sage));
  border-radius: 16px;
  padding: 1.4rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.mega-promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255,255,255,0.2);
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  width: fit-content;
}
.mega-promo h4 { font-family:'Fraunces',serif; font-size:1.1rem; font-weight:700; line-height:1.25; margin:0; }
.mega-promo p { font-size:0.8rem; opacity:0.85; line-height:1.55; margin:0; }
.mega-promo-cta {
  display: block;
  background: #F5C55A;
  color: #1C1C1E;
  text-align: center;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.83rem;
  text-decoration: none;
  margin-top: 0.4rem;
  transition: opacity 0.15s;
}
.mega-promo-cta:hover { opacity: 0.88; }
.mega-all-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--sage);
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: 0.5rem;
  transition: all 0.15s;
}
.mega-all-link:hover { background: rgba(74,124,89,0.07); border-color: var(--sage); }
@media (max-width: 900px) { .mega-menu { display: none !important; } }

/* Mobile sub-menu items (course categories) */
.mobile-menu a.mob-sub {
  padding-left: 1.8rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--slate);
  background: rgba(74,124,89,0.04);
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--sage-dark);
  border: 1.5px solid var(--sage-light);
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-phone:hover { background: var(--sage); color: #fff; border-color: var(--sage); }

.nav-actions { display: flex; align-items: center; gap: 0.7rem; flex-shrink: 0; flex-wrap: nowrap; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  /* Minimum 44×44px touch target (Google/Apple guideline) */
  padding: 0.75rem;
  margin: -0.75rem;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: all 0.3s;
  display: block;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 150;
  background: var(--cream);
  padding: calc(var(--nav-height) + 20px) 5% 2rem;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
  /* Smooth momentum scroll on iOS */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}
.mobile-menu.open { display: flex; }
.mobile-menu a,
.mobile-menu a:visited,
.mobile-menu a:link,
.mobile-menu a:active {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--sage); }
.mobile-menu .mobile-phone {
  background: var(--sage);
  color: #fff;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 0.5rem;
  border: none;
}
.mobile-menu .mobile-btn-row {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.8rem;
}
.mobile-menu .mobile-btn-row a {
  flex: 1;
  text-align: center;
  padding: 0.85rem 0.5rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  border-bottom: none;
  color: #fff;
}
.mobile-menu .mobile-btn-student {
  background: var(--sage);
}
.mobile-menu .mobile-btn-client {
  background: #1C3A5E;
}

/* ─── BUTTONS ─── */
.btn-primary {
  padding: 0.55rem 1.3rem;
  border: none;
  border-radius: 50px;
  background: var(--sage);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--sage-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(74,124,89,0.3); }

.btn-ghost {
  padding: 0.5rem 1.2rem;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  background: transparent;
  color: var(--slate);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}
.btn-ghost:hover { border-color: var(--sage); color: var(--sage); }

.btn-large { padding: 0.9rem 2.2rem; font-size: 1rem; border-radius: 50px; }

.btn-amber {
  padding: 0.55rem 1.3rem;
  border: none;
  border-radius: 50px;
  background: var(--amber);
  color: var(--charcoal);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.btn-amber:hover { background: var(--amber-light); transform: translateY(-1px); }

.btn-white {
  padding: 0.9rem 2.4rem;
  background: #fff;
  color: var(--sage-dark);
  border: none;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,0.2); }

/* ─── FOOTER ─── */
footer#main-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.6);
  padding: 60px 5% 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
/* Panel 1 – About Company */
.footer-brand .logo { color: #fff; display: block; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.88rem; line-height: 1.65; margin-bottom: 1.2rem; }
.footer-about-details { display: flex; flex-direction: column; gap: 0.65rem; margin-bottom: 0.4rem; }
.footer-about-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.83rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.55);
}
.footer-about-icon { font-size: 1rem; flex-shrink: 0; margin-top: 0.05rem; }
/* Panel 2 & 3 – Quick Links / Course Categories */
.footer-col h4 { color: #fff; font-size: 0.88rem; font-weight: 700; margin-bottom: 1.2rem; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; display: flex; align-items: center; gap: 0.4rem; }
.footer-col a:hover { color: var(--sage-light); }
/* Panel 4 – Contact Us */
.footer-contact-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.footer-contact-list li a {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-contact-list li:last-child a { border-bottom: none; }
.footer-contact-list li a:hover { color: var(--sage-light); }
.footer-contact-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 0.1rem; }
.footer-contact-list strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.15rem;
}
.footer-contact-list span > span,
.footer-contact-list a > span:last-child { font-size: 0.83rem; color: rgba(255,255,255,0.55); }
/* Social icons */
.social-icons { display: flex; gap: 0.6rem; margin-top: 1.2rem; }
.social-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
  text-decoration: none;
  color: rgba(255,255,255,0.6);
}
.social-icon:hover { background: var(--sage); border-color: var(--sage); color: #fff; transform: translateY(-2px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.8rem;
}
.footer-bottom a { color: var(--sage-light); text-decoration: none; }

/* ─── SECTION SHARED ─── */
.section-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sage);
  margin-bottom: 0.7rem;
}
.section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--charcoal);
  line-height: 1.2;
  margin-bottom: 0.9rem;
}
.section-sub {
  font-size: 1rem;
  color: var(--slate);
  font-weight: 300;
  line-height: 1.65;
  max-width: 100%;
}

/* ─── PAGE HERO COMMON ─── */
.page-hero {
  background: linear-gradient(135deg, var(--sage-dark) 0%, var(--sage) 100%);
  padding: 70px 5% 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -40%; right: -5%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(232,168,56,0.12) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.2rem;
}
.page-hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.page-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  font-weight: 300;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ─── CARDS ─── */
.card {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s;
}
.card:hover { box-shadow: var(--shadow-md); }

/* ─── FORMS ─── */
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--charcoal);
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(74,124,89,0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ─── REVEAL ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left { opacity: 0; transform: translateX(-28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right { opacity: 0; transform: translateX(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* On mobile / reduced-motion: skip animation, show everything immediately */
@media (max-width: 768px) {
  .reveal, .reveal-left, .reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ─── COUPON ─── */
.coupon-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--amber), var(--amber-light));
  color: var(--charcoal);
  font-weight: 800;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  font-size: 0.88rem;
  border: 2px dashed rgba(255,255,255,0.5);
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: transform 0.2s;
}
.coupon-badge:hover { transform: scale(1.04); }

/* ─── AUTH MODAL ─── */
.modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--cream);
  border-radius: 20px;
  padding: 2.5rem;
  width: 100%; max-width: 440px;
  position: relative;
  animation: scaleIn 0.25s ease;
  margin: 1rem;
}
.modal-close {
  position: absolute; top: 1.2rem; right: 1.2rem;
  width: 32px; height: 32px;
  border: none; background: var(--border);
  border-radius: 50%;
  cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.modal-close:hover { background: var(--sage); color: #fff; }
.modal-tabs {
  display: flex; gap: 0;
  margin-bottom: 1.5rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.modal-tab {
  flex: 1; padding: 0.6rem;
  border: none; background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem; font-weight: 500;
  cursor: pointer; color: var(--muted);
  transition: all 0.2s;
}
.modal-tab.active { background: var(--sage); color: #fff; }

/* ─── KEYFRAMES ─── */
@keyframes fadeUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes scaleIn { from { transform:scale(0.92); opacity:0; } to { transform:scale(1); opacity:1; } }
@keyframes floatY { 0%,100%{transform:translateY(0);}50%{transform:translateY(-10px);} }

/* ─── BREADCRUMB ─── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--sage); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--sage-dark); }
.breadcrumb span { color: var(--border); }

/* ─── RESPONSIVE BREAKPOINTS ─── */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links a { font-size: 0.82rem; padding: 0.4rem 0.6rem; }
}
@media (max-width: 900px) {
  .nav-links, .nav-phone { display: none; }
  .nav-actions { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .phone-bar { font-size: 0.78rem; gap: 0.8rem; }
}

/* ─── WHATSAPP FLOATING BUTTON ─── */
.wa-float {
  position: fixed;
  bottom: 1.8rem;
  right: 1.8rem;
  z-index: 9990;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  padding: 0.75rem 1.25rem 0.75rem 0.9rem;
  border-radius: 50px;
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.45);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  transition: transform 0.25s, box-shadow 0.25s, background 0.2s;
  animation: waPulse 3s ease-in-out infinite;
}
.wa-float:hover {
  background: #1ebe5d;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 36px rgba(37, 211, 102, 0.55);
  animation: none;
}
.wa-float:active { transform: scale(0.97); }
.wa-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.wa-label {
  white-space: nowrap;
}
@keyframes waPulse {
  0%, 100% { box-shadow: 0 6px 28px rgba(37, 211, 102, 0.45); }
  50%       { box-shadow: 0 6px 40px rgba(37, 211, 102, 0.65); }
}
@media (max-width: 480px) {
  .wa-float { bottom: 1.2rem; right: 1rem; padding: 0.7rem; border-radius: 50%; }
  .wa-label { display: none; }
  .wa-icon  { width: 26px; height: 26px; }
}

/* ─── PERFORMANCE: image lazy load placeholder ─── */
img[loading="lazy"] {
  background: linear-gradient(135deg, #e8f4ec, #d4eadc);
}

/* ─── ACCESSIBILITY: focus ring ─── */
:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─── PERFORMANCE: content-visibility ─── */
/* Defers rendering of off-screen sections — measurable LCP/TTI gain on long pages */
.section, section {
  content-visibility: auto;
  /* Provide an estimated height so layout doesn't shift when section is painted */
  contain-intrinsic-size: 0 500px;
}
/* Hero and above-fold sections must always render immediately */
/* Also exempt sections that iOS Safari fails to render with content-visibility:auto */
.hero, .c-hero, .page-hero, #main-nav, .phone-bar,
.cat-section, .why-section {
  content-visibility: visible;
  contain-intrinsic-size: none;
}

/* ─── ACCESSIBILITY: reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .wa-float { animation: none; }
}

/* ─── PRINT: hide decorative elements ─── */
@media print {
  .phone-bar, #main-nav, .wa-float, #main-footer { display: none !important; }
  body { background: #fff; color: #000; }
}
