/* =========================================================
   Raretag Institute — Global Styles, Top Bar, Mega Menu, Footer & Floating Widgets
   ========================================================= */
:root {
  --navy: #090f1d;
  --navy-light: #131c31;
  --blue: #0284c7;
  --blue-dark: #0369a1;
  --red: #dc2626;
  --orange: #ea580c;
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #475569;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(9, 15, 29, 0.08);
  --shadow-md: 0 16px 36px -8px rgba(9, 15, 29, 0.16);
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
strong { color: var(--navy); font-weight: 700; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-dark);
  background: rgba(2, 132, 199, 0.1);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.section-header { max-width: 720px; margin-bottom: 36px; }
.section-header h2 { font-size: clamp(1.65rem, 2.8vw, 2.25rem); margin-bottom: 10px; }
.section-header p { color: var(--muted); font-size: 1rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.94rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-accent { background: var(--orange); color: #fff; }
.btn-accent:hover { background: #c2410c; transform: translateY(-1px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-light); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--navy); }
.btn-outline:hover { border-color: var(--navy); background: #f1f5f9; }

/* Reusable Social Icon Row */
.social-icons-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.2s ease;
}
.social-icon-btn:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  transform: translateY(-1px);
}
.social-icon-btn.light {
  background: #f1f5f9;
  color: var(--navy);
  border-color: var(--border);
  width: 36px;
  height: 36px;
}
.social-icon-btn.light:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* Top Bar */
.top-bar {
  background: var(--navy);
  color: #cbd5e1;
  font-size: 0.84rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.top-contacts { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.top-contacts a { display: inline-flex; align-items: center; gap: 6px; transition: color 0.2s; }
.top-contacts a:hover { color: #fff; }

/* Main Header & Enhanced Mega Menu */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  position: relative;
}
.nav-menu { display: flex; align-items: center; gap: 22px; }
.nav-item { position: relative; }
.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--navy);
  padding: 26px 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--blue); }

/* Mega Menu Dropdown */
.has-mega { position: static; }
.mega-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--surface);
  border-top: 3px solid var(--blue);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 26px 24px 22px;
  z-index: 999;
}
.has-mega:hover .mega-menu,
.has-mega.open .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mega-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}
.mega-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.mega-col {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}
.mega-col-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.mega-col-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(2, 132, 199, 0.12);
  color: var(--blue-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mega-col h4 {
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy);
}
.mega-col ul li { margin-bottom: 4px; }
.mega-col ul a {
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s, padding-left 0.15s;
}
.mega-col ul a:hover {
  background: rgba(2, 132, 199, 0.1);
  color: var(--blue-dark);
  font-weight: 600;
  padding-left: 11px;
}
.mega-footer-bar {
  margin-top: 16px;
  background: linear-gradient(135deg, var(--navy) 0%, #172554 100%);
  color: #fff;
  border-radius: 10px;
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mega-footer-bar span { font-size: 0.9rem; color: #e2e8f0; }
.mega-footer-bar strong { color: #38bdf8; }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--navy);
}

/* Page Banner & Breadcrumbs */
.page-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #172554 100%);
  color: #ffffff;
  padding: 52px 0;
}
.page-banner h1 { color: #ffffff; font-size: clamp(1.85rem, 3.2vw, 2.55rem); margin-bottom: 12px; }
.page-banner p { color: #f1f5f9; max-width: 720px; font-size: 1.04rem; }
.page-banner strong { color: #38bdf8; }
.page-banner a { color: #e2e8f0; }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: #e2e8f0;
  margin-bottom: 14px;
}
.breadcrumb a { color: #93c5fd; }
.breadcrumb a:hover { color: #ffffff; text-decoration: underline; }

/* Cards & Badges */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.badge {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: #f1f5f9;
  color: var(--navy);
}
.badge-blue { background: rgba(2, 132, 199, 0.12); color: var(--blue-dark); }
.badge-green { background: #ecfdf5; color: #065f46; }

/* Forms */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.86rem; font-weight: 600; color: var(--navy); margin-bottom: 5px; }
.form-control {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.93rem;
  color: var(--text);
  background: #fff;
}
.form-control:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15); }
.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.form-msg { margin-top: 10px; padding: 10px 14px; border-radius: 8px; font-size: 0.88rem; display: none; }
.form-msg.success { display: block; background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.form-msg.error { display: block; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* FAQ Accordion */
.faq-section { background: var(--surface); border-top: 1px solid var(--border); padding: 64px 0; }
.faq-grid { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 16px 20px;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-a { display: none; padding: 0 20px 16px; color: var(--muted); font-size: 0.93rem; }
.faq-item.open .faq-a { display: block; }

/* Footer */
.site-footer {
  background: linear-gradient(180deg, #0b132b 0%, #050914 100%);
  color: #cbd5e1;
  padding: 64px 0 28px;
  border-top: 4px solid var(--blue);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr 0.9fr 1.3fr;
  gap: 32px;
  padding-bottom: 42px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-title {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(56, 189, 248, 0.35);
  display: inline-block;
}
.footer-links li { margin-bottom: 10px; font-size: 0.9rem; line-height: 1.5; }
.footer-links a { transition: color 0.2s, padding-left 0.2s; }
.footer-links a:hover { color: #38bdf8; padding-left: 3px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 9px; }
.footer-contact-item svg { flex-shrink: 0; margin-top: 3px; color: #38bdf8; }
.footer-form {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 22px;
}
.footer-form .form-control { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.18); color: #fff; }
.footer-form .form-control option { background: #0f172a; color: #ffffff; }
.footer-form .form-control::placeholder { color: #94a3b8; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-top: 24px;
  font-size: 0.85rem;
  color: #94a3b8;
}
.legal-links { display: flex; flex-wrap: wrap; gap: 16px; }
.legal-links a:hover { color: #fff; }


/* High-contrast visibility & alignment inside dark footer */
.site-footer p { color: #e2e8f0 !important; line-height: 1.6; }
.site-footer strong { color: #38bdf8; font-weight: 700; }
.site-footer .footer-links { display: grid; gap: 10px; }
.site-footer .footer-links li { margin-bottom: 0; color: #f1f5f9; }
.site-footer .footer-links a { color: #f1f5f9; }
.site-footer .footer-links a { display: inline-flex; align-items: center; gap: 8px; }
.site-footer .footer-links a svg { color: #38bdf8; flex-shrink: 0; transition: transform 0.2s; }
.site-footer .footer-links a:hover { color: #38bdf8; }
.site-footer .footer-links a:hover svg { transform: translateX(3px); }
.site-footer .footer-contact-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  text-align: left;
}
.site-footer .footer-contact-item svg {
  margin-top: 4px;
  color: #38bdf8;
}
.site-footer .footer-contact-item span {
  color: #f1f5f9;
  line-height: 1.55;
}

/* Floating Side Sliding Enquiry Form */
.side-drawer {
  position: fixed;
  right: -340px;
  top: 50%;
  transform: translateY(-50%);
  width: 340px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px 0 0 12px;
  box-shadow: var(--shadow-md);
  z-index: 1200;
  transition: right 0.3s ease;
  padding: 22px;
}
.side-drawer.open { right: 0; }
.side-drawer-tab {
  position: absolute;
  left: -42px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center;
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 9px 18px;
  border-radius: 8px 8px 0 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
}

/* WhatsApp & Back-to-Top Floating Buttons */
.whatsapp-float {
  position: fixed;
  left: 20px;
  bottom: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 1100;
  transition: transform 0.2s;
}
.whatsapp-float:hover { transform: scale(1.08); }

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.28);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 800;
  box-shadow: var(--shadow-md);
  z-index: 1100;
  transition: background 0.2s, transform 0.2s;
}
.back-to-top:hover { background: var(--orange); transform: translateY(-2px); }
.back-to-top.visible { display: flex; }

/* Modal */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(9, 15, 29, 0.65);
  z-index: 1500;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal-box {
  background: var(--surface);
  border-radius: var(--radius);
  max-width: 460px;
  width: 100%;
  padding: 28px;
  position: relative;
  box-shadow: var(--shadow-md);
}
.modal-close {
  position: absolute;
  right: 16px;
  top: 14px;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--muted);
}

@media (max-width: 1024px) {
  .mega-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px;
    gap: 8px;
    max-height: 75vh;
    overflow-y: auto;
  }
  .nav-menu.open { display: flex; }
  .nav-link { padding: 8px 0; }
  .mega-menu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: none;
    padding: 10px 0;
  }
  .has-mega.open .mega-menu { display: block; }
  .mega-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
