/* ============================================================
   BASE.CSS — shared across every page (tokens, nav, footer,
   buttons, section basics, mascot photo panel, final CTA).
   Page-specific sections live in home.css / about.css.
   ============================================================ */

/* ============ TOKENS ============ */
:root{
  --navy: #0B1B3A;
  --navy-2: #122752;
  --royal: #2B57E8;
  --royal-2: #4A74F5;
  --ink: #101827;
  --muted: #5B6376;
  --sky: #EFF4FE;
  --sky-2: #E3EBFC;
  --line: #DEE6FA;
  --white: #FFFFFF;
  --gold: #F5A524;
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 26px;
  --shadow: 0 20px 45px -22px rgba(11,27,58,0.28);
  --shadow-s: 0 10px 24px -14px rgba(11,27,58,0.22);
  --maxw: 1180px;
}
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1,h2,h3,h4{ font-family:'Manrope', sans-serif; color: var(--navy); margin:0; line-height:1.12; letter-spacing:-0.01em; }
p{ margin:0; }
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; }
.wrap{ max-width: var(--maxw); margin:0 auto; padding: 0 28px; }
.hand{ font-family:'Caveat', cursive; }
:focus-visible{ outline: 2px solid var(--royal); outline-offset: 3px; border-radius: 4px; }

.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size: 13px; font-weight:700; color: var(--royal);
  letter-spacing: 0.02em;
  background: var(--sky-2);
  padding: 6px 14px;
  border-radius: 999px;
}
.eyebrow::before{ content:''; width:6px; height:6px; border-radius:50%; background: var(--royal); }
.eyebrow-plain{ background:transparent; padding:0; }
.eyebrow-plain::before{ display:none; }

.btn{
  display:inline-flex; align-items:center; gap:8px;
  font-weight:700; font-size:15px;
  padding: 13px 24px; border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn svg{ width:16px; height:16px; transition: transform .18s ease; }
.btn:hover svg{ transform: translateX(3px); }
.btn-primary{ background: var(--royal); color:#fff; box-shadow: 0 14px 26px -12px rgba(43,87,232,0.55); }
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 18px 30px -12px rgba(43,87,232,0.6); }
.btn-outline{ background: transparent; color: var(--navy); border-color: var(--line); }
.btn-outline:hover{ background: var(--sky); }
.btn-white{ background:#fff; color: var(--navy); }
.btn-white:hover{ transform: translateY(-2px); }
.btn-ghost-dark{ background: rgba(255,255,255,0.08); color:#fff; border-color: rgba(255,255,255,0.25); }
.btn-ghost-dark:hover{ background: rgba(255,255,255,0.16); }

/* ============ NAVBAR ============ */
header.site-nav{
  position: sticky; top:0; z-index: 100;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
header.site-nav.scrolled{ border-color: var(--line); box-shadow: 0 8px 24px -18px rgba(11,27,58,0.35); }
.nav-inner{ max-width: var(--maxw); margin:0 auto; padding: 16px 28px; display:flex; align-items:center; justify-content:space-between; gap:20px; }
.brand{ display:flex; align-items:center; gap:10px; font-family:'Manrope'; font-weight:800; font-size:19px; color: var(--navy); }
.brand img{ width:34px; height:34px; border-radius:9px; }
.brand small{ display:block; font-family:'Inter'; font-weight:600; font-size:9px; letter-spacing:0.14em; color: var(--muted); }
nav.primary-links{ display:flex; align-items:center; gap:6px; }
nav.primary-links a{
  padding: 9px 15px; font-size: 14.5px; font-weight:600; color: var(--ink); border-radius: 999px;
  transition: background .18s ease, color .18s ease;
}
nav.primary-links a:hover{ background: var(--sky); }
nav.primary-links a.active{ color: var(--royal); background: var(--sky-2); }
.nav-right{ display:flex; align-items:center; gap:10px; }
.nav-cta{ display:inline-flex; }
.burger{ display:none; width:42px; height:42px; border-radius: 10px; border:1px solid var(--line); background:#fff; align-items:center; justify-content:center; }
.burger span, .burger span::before, .burger span::after{ content:''; display:block; width:18px; height:2px; background: var(--navy); position:relative; transition: transform .2s ease, opacity .2s ease; }
.burger span::before{ position:absolute; top:-6px; }
.burger span::after{ position:absolute; top:6px; }
.burger.open span{ background: transparent; }
.burger.open span::before{ transform: rotate(45deg); top:0; }
.burger.open span::after{ transform: rotate(-45deg); top:0; }

.mobile-drawer{
  display:none; position:fixed; inset:0; z-index: 99; background: rgba(11,27,58,0.42);
  opacity:0; pointer-events:none; transition: opacity .2s ease;
}
.mobile-drawer.open{ opacity:1; pointer-events:auto; }
.mobile-drawer .panel{
  position:absolute; top:0; right:0; height:100%; width: min(320px, 84vw);
  background:#fff; padding: 90px 26px 26px; display:flex; flex-direction:column; gap:6px;
  transform: translateX(100%); transition: transform .28s ease;
  box-shadow: -20px 0 50px -20px rgba(11,27,58,0.4);
}
.mobile-drawer.open .panel{ transform: translateX(0); }
.mobile-drawer a{ padding: 14px 10px; font-size:17px; font-weight:700; border-bottom:1px solid var(--line); }
.mobile-drawer .btn{ margin-top: 18px; justify-content:center; }

/* ============ SECTION BASICS ============ */
.section-head{ max-width: 640px; }
.section-head.center{ margin:0 auto; text-align:center; }
.section-head h2{ font-size: clamp(26px, 3.4vw, 38px); font-weight:800; margin-top:10px; }
.section-head p{ margin-top:14px; font-size:16px; color: var(--muted); line-height:1.6; }
section{ padding: 84px 0; }
section.tight{ padding: 60px 0; }
.bg-sky{ background: var(--sky); }

/* ============ SERVICE ICON BADGES (used by home + services pages) ============ */
.service-icon-badge{
  width:44px; height:44px; border-radius:13px; display:flex; align-items:center; justify-content:center;
  margin-bottom:2px; box-shadow: 0 8px 16px -8px rgba(11,27,58,0.35);
}
.service-icon-badge svg{ width:22px; height:22px; color:#fff; }
.svc-1 .service-icon-badge, .service-icon-badge.svc-1, .price-card-icon.svc-1{ background: linear-gradient(155deg,#5A86FF,#2B57E8); }
.svc-2 .service-icon-badge, .service-icon-badge.svc-2, .price-card-icon.svc-2{ background: linear-gradient(155deg,#A78BE0,#7C5CC7); }
.svc-3 .service-icon-badge, .service-icon-badge.svc-3, .price-card-icon.svc-3{ background: linear-gradient(155deg,#F17FA8,#E8467F); }
.svc-4 .service-icon-badge, .service-icon-badge.svc-4, .price-card-icon.svc-4{ background: linear-gradient(155deg,#FFB25C,#F5911F); }
.svc-5 .service-icon-badge, .service-icon-badge.svc-5, .price-card-icon.svc-5{ background: linear-gradient(155deg,#4FD387,#22A85E); }
.svc-6 .service-icon-badge, .service-icon-badge.svc-6, .price-card-icon.svc-6{ background: linear-gradient(155deg, var(--navy-2), var(--navy)); }
.svc-7 .service-icon-badge, .service-icon-badge.svc-7, .price-card-icon.svc-7{ background: linear-gradient(155deg,#8F7CF0,#6C5CE7); }

/* ============ HERO ACTIONS (used by home hero + about hero) ============ */
.hero-actions{ display:flex; gap:14px; margin-top:28px; flex-wrap:wrap; }

/* ============ MASCOT PHOTO PANEL (used by home hero + about hero) ============ */
.hero-art{ position:relative; }
.mascot-stage{
  position:relative; overflow:hidden; height: 400px;
  display:flex; align-items:flex-end; justify-content:center;
  box-shadow: var(--shadow); border-radius: var(--radius-l);
  min-width:0;
  background-image: url('../assets/hero_bg.jpg');
  background-size: cover; background-position: center 30%;
}
.mascot-stage::after{ content:''; position:absolute; inset:0; background:
  linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.12) 30%, rgba(11,27,58,0.15) 100%); }
.mascot-stage img{
  width: auto; height: 92%; max-width: 100%; max-height: 360px;
  object-fit: contain; position:relative; z-index:1; min-width:0;
  filter: drop-shadow(0 18px 20px rgba(11,27,58,0.35));
}
.note-tag{
  position:absolute; top:16px; left:16px; color: var(--navy); font-size: 19px; line-height:1.25; z-index:2; max-width:170px;
  text-shadow: 0 1px 3px rgba(255,255,255,.9), 0 2px 14px rgba(255,255,255,.85), 0 0 24px rgba(255,255,255,.6);
}
.note-tag-br{
  position:absolute; bottom:16px; right:16px; color: var(--navy); font-size: 15px; line-height:1.3; z-index:2; text-align:right;
  text-shadow: 0 1px 3px rgba(255,255,255,.9), 0 2px 14px rgba(255,255,255,.85), 0 0 24px rgba(255,255,255,.6);
}

/* ============ FINAL CTA (used on home + about) ============ */
.final-cta{
  background-image: linear-gradient(120deg, rgba(11,27,58,0.55), rgba(11,27,58,0.25)), url('../assets/cta_bg.jpg');
  background-size: cover; background-position: center; position:relative; overflow:hidden;
  padding: 34px 0;
}
.final-cta::after{
  content:''; position:absolute; inset:0; opacity:0.25; pointer-events:none;
  background-image: radial-gradient(circle, rgba(255,255,255,0.16) 1px, transparent 1px);
  background-size: 20px 20px;
  -webkit-mask-image: radial-gradient(circle at 20% 30%, rgba(0,0,0,0.6), transparent 65%);
  mask-image: radial-gradient(circle at 20% 30%, rgba(0,0,0,0.6), transparent 65%);
}
.final-cta-inner{ display:flex; align-items:center; justify-content:space-between; gap:26px; flex-wrap:wrap; position:relative; z-index:1; }
.final-cta h2{ color:#fff; font-size: clamp(24px,3.2vw,34px); font-weight:800; max-width:520px; }
.final-cta p{ color: rgba(255,255,255,0.7); margin-top:10px; font-size:15px; max-width:460px; }

/* ============ FOOTER ============ */
footer{ background: var(--navy); padding: 54px 0 26px; }
.footer-top{ display:flex; justify-content:space-between; gap:40px; flex-wrap:wrap; padding-bottom:34px; border-bottom:1px solid rgba(255,255,255,0.1); }
.footer-brand .brand{ color:#fff; }
.footer-brand small{ color: rgba(255,255,255,0.55); }
.footer-brand p{ margin-top:14px; color: rgba(255,255,255,0.55); font-size:13.5px; max-width:260px; line-height:1.6; }
.footer-links{ display:flex; gap:60px; flex-wrap:wrap; }
.footer-col b{ display:block; color:#fff; font-size:13px; letter-spacing:0.04em; margin-bottom:14px; }
.footer-col a{ display:block; color: rgba(255,255,255,0.62); font-size:14px; margin-bottom:10px; transition: color .15s ease; }
.footer-col a:hover{ color:#fff; }
.footer-social{ display:flex; gap:10px; }
.footer-social a{ width:36px; height:36px; border-radius:50%; border:1px solid rgba(255,255,255,0.2); display:flex; align-items:center; justify-content:center; color:#fff; }
.footer-social a:hover{ background: rgba(255,255,255,0.1); }
.footer-social svg{ width:16px; height:16px; }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; padding-top:22px; }
.footer-bottom span{ color: rgba(255,255,255,0.45); font-size:12.5px; }

/* ============ SCROLL REVEAL ============ */
.reveal{ opacity:0; transform: translateY(18px); transition: opacity .65s cubic-bezier(.16,1,.3,1), transform .65s cubic-bezier(.16,1,.3,1); }
.reveal.in{ opacity:1; transform: translateY(0); }

/* ============ RESPONSIVE (shared) ============ */
@media (max-width: 980px){
  nav.primary-links{ display:none; }
  .nav-cta{ display:none; }
  .burger{ display:flex; }
  .mobile-drawer{ display:block; }
  .hero-art{ order:-1; }
}
@media (max-width: 640px){
  section{ padding: 56px 0; }
  .final-cta-inner{ flex-direction:column; align-items:flex-start; }
  .final-cta .btn{ width:100%; justify-content:center; }
  .mascot-stage{ height: 320px; padding-bottom:26px; }
  .hero-actions{ flex-direction:column; }
  .hero-actions .btn{ width:100%; justify-content:center; }
  .footer-links{ gap:32px; }
  .footer-bottom{ flex-direction:column; align-items:flex-start; }
}
@media (max-width: 420px){
  .wrap{ padding: 0 18px; }
  .nav-inner{ padding: 14px 18px; }
  .mascot-stage{ height: 260px; }
  .note-tag{ font-size:15px; max-width:130px; top:12px; left:12px; }
  .note-tag-br{ font-size:12.5px; bottom:12px; right:12px; }
  .btn{ padding: 12px 18px; font-size:14px; }
}
