/* ============================================================
   style.css — Abacus Institute | Global Shared Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@600;700;800&display=swap');

/* ─── Design Tokens ─────────────────────────────────────────── */
:root {

  /* ══ CORE MAROON PALETTE ══════════════════════════════════ */
  --maroon:        #5C1F3A;   /* primary brand colour          */
  --maroon-dark:   #3B1A1A;   /* darker variant                */
  --maroon-deeper: #2A0A12;   /* deepest — footer / nav overlay*/
  --maroon-light:  #7A3050;   /* lighter — hover / gradient    */

  /* ══ AMBER PALETTE ════════════════════════════════════════ */
  --amber:         #F5A623;   /* primary highlight / CTA       */
  --amber-light:   #F7BE5C;   /* lighter amber — hover / glow  */
  --amber-pale:    #FFF3DC;   /* very pale — badge backgrounds */
  --saffron:       #E07C00;   /* deeper amber — hero title span*/

  /* ══ BACKGROUNDS & NEUTRALS ═══════════════════════════════ */
  --cream:         #F5EFD6;   /* page background               */
  --cream-dark:    #EDE0BC;   /* borders / dividers            */
  --white:         #ffffff;
  --mid-gray:      #9B8E8E;

  /* ══ TEXT COLORS ══════════════════════════════════════════ */
  --text-dark:     #2C1010;   /* headings                      */
  --text-body:     #4A2828;   /* body paragraphs               */
  --text-muted:    #7A6060;   /* captions / meta               */

  /* ══ EXTENDED ACCENT PALETTE ══════════════════════════════ */
  /* Terracotta — secondary CTAs, program card 2              */
  --terracotta:        #C94F2C;
  --terracotta-dark:   #9A3820;
  /* Dusty Rose — program card 3, alternate badges            */
  --dusty-rose:        #C45C78;
  --dusty-rose-dark:   #9A3A54;
  /* Warm Purple — program card 4, why-icon 4                 */
  --warm-purple:       #6B3FA0;
  --warm-purple-light: #9B65C8;
  /* Warm Teal — program card 5+, why-icon 6                  */
  --teal-warm:         #2A7C6E;
  --teal-warm-light:   #44A896;

  /* ══ TYPOGRAPHY ═══════════════════════════════════════════ */
  --font-body: 'Outfit', sans-serif;
  --font-head: 'Playfair Display', serif;

  /* ══ SHADOWS (maroon-based) ════════════════════════════════ */
  --shadow-sm:    0 2px 12px rgba(92, 31, 58, 0.08);
  --shadow-md:    0 8px 32px rgba(92, 31, 58, 0.13);
  --shadow-lg:    0 20px 60px rgba(92, 31, 58, 0.18);
  --shadow-amber: 0 8px 30px rgba(245, 166, 35, 0.28);

  /* ══ BORDER RADIUS ════════════════════════════════════════ */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  /* ══ LAYOUT ════════════════════════════════════════════════ */
  --nav-h: 120px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* ══ BACKWARD-COMPATIBILITY ALIASES ════════════════════════
     Lets all existing var(--navy) / var(--gold) references
     automatically resolve to new maroon/amber values.
     These aliases will be removed step-by-step in Steps 2–4.
  ══════════════════════════════════════════════════════════ */
  --navy:        var(--maroon);
  --navy-dark:   var(--maroon-dark);
  --navy-deeper: var(--maroon-deeper);
  --navy-light:  var(--maroon-light);
  --gold:        var(--amber);
  --gold-light:  var(--amber-light);
  --gold-pale:   var(--amber-pale);
  --shadow-gold: var(--shadow-amber);
  --off-white:   var(--cream);
  --light-gray:  var(--cream-dark);
  --green:       var(--amber);
  --green-dark:  var(--terracotta-dark);
}

/* ─── Reset ─────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: var(--font-body);
}

/* ─── Utilities ──────────────────────────────────────────────── */
.container {
  width: 92%;
  max-width: 1180px;
  margin-inline: auto;
}

.section-pad {
  padding: 90px 0;
}

.section-pad-sm {
  padding: 60px 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Caveat', cursive;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--navy);
  border: none;
  padding: 0.38rem 1.1rem 0.38rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1.1rem;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.22);
}

.tag::before {
  content: '●';
  font-size: 0.42rem;
  line-height: 1;
  color: var(--gold);
}

/* Text highlight — like a yellow marker stroke */
.text-hl {
  background: linear-gradient(180deg, transparent 52%, rgba(212, 175, 55, 0.28) 52%);
  padding: 0 3px;
  border-radius: 2px;
}

.section-title {
  font-family: 'Fredoka One', var(--font-head);
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-title span {
  color: var(--gold);
}

.section-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.75;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy-dark);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(245, 166, 35, 0.4);
}

.btn-outline {
  border-color: var(--white);
  color: var(--white);
  background: transparent;
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  transform: translateY(-2px);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-navy:hover {
  background: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ─── NAVBAR ─────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

#navbar.transparent {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(42, 10, 18, 0.96); /* --maroon-deeper */
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 30px rgba(92, 31, 58, 0.35);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 4%;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.nav-logo img {
  height: 100px;
  width: auto;
  filter: brightness(1.05);
}


/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-links a {
  padding: 0.5rem 0.95rem;
  color: var(--text-dark);
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: left var(--transition), right var(--transition);
}

.nav-links a:hover {
  color: var(--navy);
}

.nav-links a:hover::after {
  left: 12%;
  right: 12%;
}

.nav-links a.active {
  color: var(--navy);
  font-weight: 700;
}

.nav-links a.active::after {
  left: 12%;
  right: 12%;
  background: var(--navy);
}

/* Once scrolled (solid maroon nav), links turn white */
#navbar.scrolled .nav-links a {
  color: rgba(255, 255, 255, 0.88);
}

#navbar.scrolled .nav-links a:hover {
  color: var(--white);
}

#navbar.scrolled .nav-links a.active {
  color: var(--gold);
}

#navbar.scrolled .nav-links a::after {
  background: var(--gold);
}

#navbar.scrolled .nav-links a.active::after {
  background: var(--gold);
}

.nav-cta {
  margin-left: 1rem;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav */
@media (max-width: 900px) {

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  #navbar.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(42, 10, 18, 0.98); /* --maroon-deeper */
    backdrop-filter: blur(20px);
    padding: 1.5rem 2rem 2.5rem;
    gap: 0.3rem;
    align-items: flex-start;
    border-top: 1px solid rgba(245, 166, 35, 0.15); /* amber tint */
  }

  #navbar.menu-open .nav-links a {
    font-size: 1rem;
    padding: 0.7rem 1rem;
    width: 100%;
  }

  #navbar.menu-open .nav-cta {
    display: flex;
    position: fixed;
    top: calc(var(--nav-h) + 220px);
    left: 2rem;
    right: 2rem;
    margin: 0;
    justify-content: center;
  }
}

/* ─── FOOTER ─────────────────────────────────────────────────── */
#footer {
  background: var(--maroon-deeper);
  color: rgba(255, 240, 210, 0.75); /* warm cream tint on dark maroon */
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 3rem;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Brand column */
.footer-brand .nav-logo {
  margin-bottom: 1.2rem;
}

.footer-brand .nav-logo img {
  height: 100px;
  width: auto;
  filter: brightness(1.1);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.55);
  max-width: 280px;
  margin-bottom: 1.4rem;
}

.footer-socials {
  display: flex;
  gap: 0.7rem;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: all var(--transition);
}

.footer-socials a:hover {
  border-color: var(--amber);
  color: var(--amber);
  background: rgba(245, 166, 35, 0.12);
  transform: translateY(-2px);
}

/* Link columns */
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--white);
}

/* Contact column */
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-contact-item i {
  color: var(--gold);
  margin-top: 3px;
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* Bottom bar */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.3);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom a {
  color: var(--gold);
}

.footer-bottom a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: 1/-1;
  }
}

@media (max-width: 540px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ─── FLOATING CONTACT BUTTONS ───────────────────────────────── */
.float-btns {
  position: fixed;
  bottom: 28px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.float-btn:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}

/* Tooltip label */
.float-btn::before {
  content: attr(data-tip);
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  background: rgba(42, 10, 18, 0.88); /* maroon-deeper tooltip */
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.float-btn:hover::before {
  opacity: 1;
}

.float-btn--whatsapp {
  background: #25d366;
  color: #fff;
}

.float-btn--instagram {
  background: #ff6600;
  color: #fff;
}

.float-btn--facebook {
  background: #1877f2;
  color: #fff;
}

.float-btn--call {
  background: var(--maroon);
  color: #fff;
}

.float-btn--chat {
  background: linear-gradient(135deg, #F5A623, #E07C00);
  color: #2C1010;
}

.float-btn--chat:hover {
  background: linear-gradient(135deg, #5C1F3A, #7A3050) !important;
  color: #fff !important;
}

.float-btn--chat.chat-open {
  background: linear-gradient(135deg, #5C1F3A, #7A3050);
  color: #fff;
}

@media (max-width: 480px) {
  .float-btns {
    bottom: 20px;
    right: 16px;
  }

  .float-btn {
    width: 46px;
    height: 46px;
    font-size: 1.2rem;
  }
}