/* =========================================================
   GoStudy — Design System
   Motif: boarding pass / passport stamp (study-abroad journey)
   ========================================================= */

:root{
  /* ---- Palette ---- */
  --navy-deep:   #0b1e3d;   /* primary background (night sky / passport cover) */
  --navy-ink:    #071427;   /* darker background layer */
  --navy-panel:  #12294f;   /* card / panel surface on dark */
  --gold:        #d4a94c;   /* foil gold — accent, stamps, dividers */
  --gold-soft:   #e8c97a;
  --cream:       #f6f1e7;   /* paper / light section background */
  --cream-dim:   #ece3cf;
  --ink:         #1c1c1c;   /* body text on light */
  --teal:        #2fa79b;   /* secondary accent — used sparingly */
  --coral:       #e4572e;   /* urgency accent — CTAs, badges */
  --line:        rgba(212,169,76,.35);

  /* ---- Type ---- */
  --font-display: 'Cairo', sans-serif;
  --font-body: 'Tajawal', sans-serif;

  /* ---- Scale / rhythm ---- */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --container: 1180px;
  --nav-h: 76px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-body);
  background:var(--cream);
  color:var(--ink);
  direction:rtl;
  text-align:right;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family:var(--font-display); margin:0; line-height:1.15; }
p{ margin:0; }
button{ font-family:inherit; cursor:pointer; border:none; }
input,select,textarea{ font-family:inherit; }

.container{ max-width:var(--container); margin:0 auto; padding:0 24px; }
.section{ padding:100px 0; position:relative; }
.section-tight{ padding:64px 0; }

/* ---- Eyebrow / labels (route-code style, echoes flight codes) ---- */
.eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--font-display);
  font-size:13px; font-weight:700; letter-spacing:.12em;
  color:var(--gold);
  text-transform:uppercase;
  margin-bottom:18px;
}
.eyebrow::before{
  content:''; width:28px; height:2px; background:var(--gold);
}
.eyebrow--dark{ color:var(--navy-deep); }
.eyebrow--dark::before{ background:var(--navy-deep); }

.section-head{ max-width:640px; margin-bottom:56px; }
.section-head h2{ font-size:clamp(28px,4vw,44px); color:var(--navy-deep); }
.section-head p{ margin-top:16px; font-size:17px; line-height:1.8; color:#4a4a4a; }
.section-head.on-dark h2{ color:var(--cream); }
.section-head.on-dark p{ color:#c9d2e2; }
.section-head.center{ margin-inline:auto; text-align:center; }

/* ---- Buttons ---- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:16px 30px;
  border-radius:999px;
  font-family:var(--font-display);
  font-weight:700; font-size:15px;
  transition:transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, background .3s, color .3s;
  white-space:nowrap;
}
.btn-gold{
  background:linear-gradient(135deg,var(--gold-soft),var(--gold));
  color:var(--navy-ink);
  box-shadow:0 8px 24px rgba(212,169,76,.35);
}
.btn-gold:hover{ transform:translateY(-3px); box-shadow:0 14px 32px rgba(212,169,76,.5); }
.btn-outline{
  background:transparent; color:var(--cream);
  border:1.5px solid rgba(246,241,231,.4);
}
.btn-outline:hover{ border-color:var(--gold); color:var(--gold); transform:translateY(-3px); }
.btn-coral{
  background:var(--coral); color:#fff;
  box-shadow:0 8px 24px rgba(228,87,46,.35);
}
.btn-coral:hover{ transform:translateY(-3px); box-shadow:0 14px 32px rgba(228,87,46,.5); }
.btn-block{ width:100%; }
.btn[disabled]{ opacity:.6; pointer-events:none; }

/* ---- Navbar ---- */
.navbar{
  position:fixed; inset-inline:0; top:0; z-index:1000;
  height:var(--nav-h);
  display:flex; align-items:center;
  background:rgba(7,20,39,.55);
  backdrop-filter:blur(14px) saturate(140%);
  -webkit-backdrop-filter:blur(14px) saturate(140%);
  border-bottom:1px solid rgba(212,169,76,.18);
  transition:background .3s, box-shadow .3s;
}
.navbar.scrolled{ background:rgba(7,20,39,.92); box-shadow:0 8px 30px rgba(0,0,0,.25); }
.navbar .container{ display:flex; align-items:center; justify-content:space-between; }
.brand{ display:flex; align-items:center; gap:10px; font-family:var(--font-display); font-weight:800; font-size:21px; color:var(--cream); }
.brand .dot{ color:var(--gold); }
.nav-links{ display:flex; align-items:center; gap:34px; }
.nav-links a{
  color:#d9dfec; font-size:15px; font-weight:600; position:relative; padding:6px 0;
  transition:color .25s;
}
.nav-links a::after{
  content:''; position:absolute; right:0; bottom:0; width:0; height:2px; background:var(--gold);
  transition:width .3s;
}
.nav-links a:hover{ color:#fff; }
.nav-links a:hover::after, .nav-links a.active::after{ width:100%; }
.nav-links a.active{ color:var(--gold); }
.nav-cta{ display:flex; align-items:center; gap:14px; }
.nav-toggle{
  display:none; flex-direction:column; gap:5px; background:none; padding:8px;
}
.nav-toggle span{ width:24px; height:2px; background:var(--cream); transition:.3s; }

@media (max-width:920px){
  .nav-links{
    position:fixed; inset-inline:0; top:var(--nav-h);
    background:var(--navy-ink);
    flex-direction:column; align-items:flex-start; gap:0;
    padding:10px 24px 24px;
    transform:translateY(-8px);
    opacity:0; pointer-events:none;
    transition:opacity .3s, transform .3s;
  }
  .nav-links.open{ opacity:1; pointer-events:auto; transform:translateY(0); }
  .nav-links a{ width:100%; padding:14px 0; border-bottom:1px solid rgba(255,255,255,.06); }
  .nav-cta .btn-outline{ display:none; }
  .nav-toggle{ display:flex; }
}

/* ---- Footer ---- */
.footer{
  background:var(--navy-ink); color:#aeb8cc;
  padding:70px 0 26px;
  position:relative;
}
.footer .container{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:40px; }
.footer h4{ color:var(--cream); font-size:16px; margin-bottom:18px; }
.footer p{ font-size:14.5px; line-height:1.9; }
.footer ul li{ margin-bottom:11px; }
.footer ul a{ font-size:14.5px; transition:color .25s; }
.footer ul a:hover{ color:var(--gold); }
.footer-bottom{
  margin-top:50px; padding-top:24px; border-top:1px solid rgba(255,255,255,.08);
  text-align:center; font-size:13px; color:#7c8aa8;
}
.social-row{ display:flex; gap:12px; margin-top:16px; }
.social-row a{
  width:38px; height:38px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,.06); transition:.3s;
}
.social-row a:hover{ background:var(--gold); color:var(--navy-ink); transform:translateY(-3px); }

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

/* ---- Whatsapp floating button ---- */
.wa-float{
  position:fixed; bottom:26px; left:26px; z-index:900;
  width:60px; height:60px; border-radius:50%;
  background:#25D366; display:flex; align-items:center; justify-content:center;
  box-shadow:0 10px 28px rgba(37,211,102,.45);
  animation:wa-pulse 2.4s ease-in-out infinite;
}
@keyframes wa-pulse{
  0%,100%{ box-shadow:0 10px 28px rgba(37,211,102,.45); }
  50%{ box-shadow:0 10px 28px rgba(37,211,102,.75),0 0 0 10px rgba(37,211,102,.12); }
}

/* ---- Cards shared ---- */
.card{
  background:#fff; border-radius:var(--radius-md);
  box-shadow:0 10px 30px rgba(11,30,61,.06);
  transition:transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s;
}

/* ---- Utility ---- */
.text-gold{ color:var(--gold); }
.mt-8{ margin-top:8px;}
.mt-16{ margin-top:16px;}
.mt-24{ margin-top:24px;}
.mt-40{ margin-top:40px;}
.grid{ display:grid; }
.flex{ display:flex; }
.hidden{ display:none !important; }

/* ---- Scroll reveal base (JS toggles .is-visible) ---- */
[data-reveal]{
  opacity:0; transform:translateY(36px);
  transition:opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
[data-reveal].is-visible{ opacity:1; transform:translateY(0); }
[data-reveal="scale"]{ transform:scale(.92) translateY(20px); }
[data-reveal="scale"].is-visible{ transform:scale(1) translateY(0); }
[data-reveal="right"]{ transform:translateX(48px); }
[data-reveal="left"]{ transform:translateX(-48px); }
[data-reveal="right"].is-visible,[data-reveal="left"].is-visible{ transform:translateX(0); }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}

/* ---- Focus visibility ---- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible{
  outline:2.5px solid var(--gold); outline-offset:3px;
}

/* ---- Page hero shared (inner pages) ---- */
.page-hero{
  background:radial-gradient(120% 140% at 20% -10%, #16305c 0%, var(--navy-ink) 60%);
  padding:calc(var(--nav-h) + 90px) 0 90px;
  position:relative; overflow:hidden;
  color:var(--cream);
}
.page-hero h1{ font-size:clamp(34px,5vw,58px); }
.page-hero .breadcrumb{ margin-top:18px; font-size:14px; color:#9fb0cc; }
.page-hero .breadcrumb a:hover{ color:var(--gold); }

/* ---- Stamp decorative ring (signature motif) ---- */
.stamp{
  position:relative;
  border:2px dashed var(--line);
  border-radius:50%;
}

/* =========================================================
   Global mobile responsiveness pass
   ========================================================= */
@media (max-width:768px){
  :root{ --nav-h:64px; }
  .container{ padding:0 18px; }
  .section{ padding:60px 0; }
  .section-tight{ padding:44px 0; }
  .section-head{ margin-bottom:36px; }
  .section-head p{ font-size:15.5px; }
  .btn{ padding:14px 24px; font-size:14px; }
  .page-hero{ padding:calc(var(--nav-h) + 54px) 0 60px; }
  .page-hero h1{ font-size:clamp(28px,7vw,40px); }
  .footer{ padding:50px 0 20px; }
  .footer .container{ gap:32px; }
}
@media (max-width:480px){
  .container{ padding:0 16px; }
  .section{ padding:48px 0; }
  .wa-float{ width:52px; height:52px; bottom:18px; left:18px; }
  .wa-float svg{ width:26px; height:26px; }
}
