/* ═══════════════════════════════════════════════════
   MASSAGE MASTERS SCHOOL — Global Stylesheet
   /assets/css/global.css
   ═══════════════════════════════════════════════════ */

:root {
  --royal: #1340A0;
  --royal-dark: #0d2d7a;
  --royal-deeper: #091e55;
  --gold: #F5C518;
  --gold-light: #FFD84D;
  --white: #ffffff;
  --off-white: #F8F7F4;
  --light-gray: #eef0f5;
  --text-dark: #0f1b3d;
  --text-mid: #3d4f7c;
  --text-light: #6b7fa8;
  --font-head: 'Plus Jakarta Sans', 'Plus Jakarta Fallback', sans-serif;
  --font-body: 'DM Sans', 'DM Sans Fallback', sans-serif;
}

/* Metric-adjusted fallbacks to minimize font-swap layout shift (CLS) */
@font-face {
  font-family: 'Plus Jakarta Fallback';
  src: local('Arial');
  ascent-override: 92%;
  descent-override: 24%;
  line-gap-override: 0%;
  size-adjust: 106%;
}
@font-face {
  font-family: 'DM Sans Fallback';
  src: local('Arial');
  ascent-override: 92%;
  descent-override: 24%;
  line-gap-override: 0%;
  size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
picture { display: contents; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--off-white); color: var(--text-dark); overflow-x: hidden; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--royal-deeper); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ── PROGRESS BAR ── */
#progress-bar {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  z-index: 9999; transition: width 0.1s linear;
}

/* ── ENROLL BANNER ── */
#enroll-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 900;
  background: linear-gradient(90deg, var(--royal-dark), var(--royal));
  border-top: 2px solid var(--gold);
  padding: 14px 5%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.22,1,0.36,1);
  box-shadow: 0 -4px 30px rgba(0,0,0,0.25);
}
#enroll-banner.visible { transform: translateY(0); }
.banner-text { display: flex; align-items: center; gap: 14px; }
.banner-text i { color: var(--gold); font-size: 1.3rem; }
.banner-text strong { font-family: var(--font-head); font-size: 0.97rem; font-weight: 700; color: var(--white); }
.banner-text span { font-size: 0.83rem; color: rgba(255,255,255,0.6); margin-left: 4px; }
.banner-actions { display: flex; align-items: center; gap: 10px; }
.banner-cta {
  background: var(--gold); color: var(--royal-dark);
  padding: 9px 22px; border-radius: 50px;
  font-weight: 700; font-size: 0.85rem;
  text-decoration: none; white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}
.banner-cta:hover { background: var(--gold-light); transform: translateY(-1px); }
.banner-cta--outline {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.banner-cta--outline:hover { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.06); }
.banner-close { background: none; border: none; color: rgba(255,255,255,0.4); cursor: pointer; font-size: 1rem; padding: 4px; transition: color 0.2s; }
.banner-close:hover { color: var(--white); }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 10px 5% 5px; height: 95px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
nav.scrolled {
  background: rgba(9, 30, 85, 0.97);
  backdrop-filter: blur(14px);
  box-shadow: 0 2px 30px rgba(0,0,0,0.3);
}
.nav-left { display: flex; align-items: center; gap: 18px; }
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo-img { height: 80px; width: auto; display: block; }
.nav-logo-icon {
  width: 42px; height: 42px; background: var(--gold); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--royal-dark);
}
.nav-logo-text { line-height: 1.2; }
.nav-logo-text strong { display: block; font-family: var(--font-head); font-size: 1.05rem; font-weight: 800; color: var(--white); }
.nav-logo-text span { font-size: 0.6rem; color: var(--gold); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.lang-toggle { display: flex; align-items: center; background: rgba(255,255,255,0.1); border-radius: 50px; padding: 3px; gap: 2px; border: 1px solid rgba(255,255,255,0.12); }
.lang-btn { background: none; border: none; cursor: pointer; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; color: rgba(255,255,255,0.5); padding: 5px 12px; border-radius: 50px; transition: all 0.2s; font-family: var(--font-body); }
.lang-btn.active { background: var(--gold); color: var(--royal-dark); }
.nav-links { display: flex; align-items: center; gap: 1.8rem; list-style: none; }
.nav-links a { text-decoration: none; color: rgba(255,255,255,0.8); font-size: 0.875rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--gold); }
.nav-links a.active-page { color: var(--gold); }
.nav-cta { background: var(--gold) !important; color: var(--royal-dark) !important; padding: 9px 22px; border-radius: 50px; font-weight: 700 !important; }
.nav-cta:hover { background: var(--gold-light) !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--white); font-size: 1.4rem; }

/* ── SHARED SECTION STYLES ── */
section { padding: 96px 5%; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--royal); margin-bottom: 14px;
}
.section-label::before { content: ''; width: 24px; height: 2px; background: var(--gold); display: block; }
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.025em;
  color: var(--text-dark);
}
.section-title em { color: var(--royal); font-style: normal; }
.section-body { font-size: 1rem; line-height: 1.75; color: var(--text-mid); max-width: 560px; }

/* ── SHARED BUTTONS ── */
.btn-primary {
  background: var(--gold); color: var(--royal-dark);
  padding: 14px 34px; border-radius: 50px;
  font-weight: 700; font-size: 0.95rem;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(245,197,24,0.35);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(245,197,24,0.5); }
.btn-outline {
  background: transparent; color: var(--white);
  padding: 14px 34px; border-radius: 50px;
  font-weight: 500; font-size: 0.95rem;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid rgba(255,255,255,0.25);
  transition: all 0.25s ease;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.65); background: rgba(255,255,255,0.06); }

/* ── SHARED PHOTO BLOCK ── */
.photo-block {
  width: 100%; border-radius: 20px;
  overflow: hidden; position: relative;
  background: linear-gradient(135deg, var(--royal-deeper) 0%, var(--royal) 100%);
}
.photo-block img { width: 100%; height: auto; object-fit: contain; display: block; }
.photo-block-inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
}
.photo-block::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 25%, rgba(245,197,24,0.12), transparent 55%),
              radial-gradient(circle at 20% 80%, rgba(255,255,255,0.04), transparent 50%);
}
.photo-block-pattern {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
}
.photo-block i { font-size: 3.5rem; color: rgba(255,255,255,0.15); position: relative; z-index: 1; }
.photo-block-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.25); position: relative; z-index: 1; }
.photo-block-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(9,30,85,0.9), transparent);
  padding: 32px 24px 20px;
  display: flex; align-items: flex-end; gap: 10px;
}
.photo-block-caption i { color: var(--gold); font-size: 1rem; }
.photo-block-caption span { font-size: 0.85rem; color: rgba(255,255,255,0.8); font-weight: 500; }

/* ── REVEAL ANIMATION ── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── FOOTER ── */
footer { background: var(--royal-deeper); border-top: 1px solid rgba(255,255,255,0.06); padding: 48px 5% 28px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand p { font-size: 0.84rem; color: rgba(255,255,255,0.4); line-height: 1.7; margin-top: 14px; max-width: 260px; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); font-size: 0.9rem;
  text-decoration: none; transition: all 0.2s;
}
.footer-social a:hover { background: var(--gold); color: var(--royal-dark); border-color: var(--gold); }
.footer-col h5 { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 0.84rem; color: rgba(255,255,255,0.55); text-decoration: none; margin-bottom: 9px; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.75rem; color: rgba(255,255,255,0.28); }
.footer-bottom strong { color: rgba(255,255,255,0.45); }
.footer-seals { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.footer-seal {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px; padding: 5px 12px;
  font-size: 0.68rem; color: rgba(255,255,255,0.4); font-weight: 600; letter-spacing: 0.06em;
}
.footer-seal i { color: var(--gold); }

/* ── BADGE STRIP ── */
.badge-strip {
  background: var(--royal); padding: 15px 5%;
  display: flex; align-items: center; justify-content: center; gap: 36px; flex-wrap: wrap;
}
.badge-item { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.8); font-size: 0.77rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; }
.badge-item i { color: var(--gold); font-size: 0.85rem; }

/* ── CREDENTIALS STRIP ── */
.credentials-strip {
  background: var(--white); padding: 38px 5%;
  display: flex; align-items: center; justify-content: center;
  gap: 48px; flex-wrap: wrap; border-bottom: 1px solid var(--light-gray);
}
.credentials-strip img {
  height: 74px; width: auto; object-fit: contain;
  filter: grayscale(100%); opacity: 0.6;
  transition: filter 0.25s ease, opacity 0.25s ease;
}
.credentials-strip img:hover { filter: grayscale(0); opacity: 1; }
@media (max-width: 600px) {
  .credentials-strip { gap: 26px; padding: 28px 5%; }
  .credentials-strip img { height: 52px; }
}

/* ── HUBSPOT FORM (wrapped in a white .hs-form-card so labels stay readable) ── */
.hs-form-card { background: #fff; border-radius: 14px; padding: 26px 24px; }
.hs-form-card .hbspt-form, .hbspt-form { width: 100%; }
.hbspt-form fieldset { max-width: 100% !important; }
.hbspt-form label { color: #33475b !important; font-size: 0.8rem !important; font-weight: 600 !important; }
.hbspt-form .hs-form-required { color: #d9534f !important; }
.hbspt-form input[type="text"],
.hbspt-form input[type="email"],
.hbspt-form input[type="tel"],
.hbspt-form input[type="number"],
.hbspt-form textarea,
.hbspt-form select {
  background: #fff !important;
  border: 1px solid #cbd6e2 !important;
  border-radius: 10px !important; padding: 12px 15px !important;
  color: #33475b !important; font-family: var(--font-body) !important;
  font-size: 0.9rem !important; width: 100% !important; box-sizing: border-box !important;
}
.hbspt-form input::placeholder, .hbspt-form textarea::placeholder { color: #99a9bd !important; }
.hbspt-form select option { background: #fff; color: #33475b; }
.hbspt-form input:focus, .hbspt-form textarea:focus, .hbspt-form select:focus { border-color: var(--royal) !important; outline: none !important; }
.hbspt-form .hs-button {
  background: var(--gold) !important; color: var(--royal-dark) !important;
  border: none !important; padding: 14px 30px !important; border-radius: 50px !important;
  font-weight: 700 !important; font-family: var(--font-body) !important; cursor: pointer !important;
  margin-top: 8px !important; transition: background 0.2s ease !important;
}
.hbspt-form .hs-button:hover { background: var(--gold-light) !important; }
.hbspt-form .hs-error-msg, .hbspt-form .hs-error-msgs label { color: #d9534f !important; }
.hbspt-form .legal-consent-container, .hbspt-form .hs-richtext p { color: #5b6b7f !important; font-size: 0.78rem !important; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 95px; left: 0; right: 0;
    background: rgba(9,30,85,0.98);
    padding: 20px; gap: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-toggle { display: block; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  #enroll-banner .banner-text span { display: none; }
}
@media (max-width: 600px) {
  section { padding: 60px 5%; }
  .footer-top { grid-template-columns: 1fr; }
  .banner-cta--outline { display: none; }
}
