/* ===== Granjo shared styles ===== */
:root{
  --navy:#0d1f4a;
  --navy-deep:#0a1838;
  --red:#a4193d;
  --red-dark:#871432;
  --bg:#ffffff;
  --bg-soft:#f4f5f8;
  --bg-blue-soft:#eef1f7;
  --text:#000000;
  --muted:#000000;
  --line:#e3e5ea;
}
 
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;font-size:18px}
body{
  font-family:'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.55;
  overflow-x:hidden;
}
img,video,iframe{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
 
h1,h2,h3,h4{font-family:'Playfair Display', Georgia, serif;color:#000000;font-weight:700;line-height:1.15}
h1{font-size:3rem}
h2{font-size:2.25rem}
h3{font-size:1.15rem}
 
.container{max-width:1200px;margin:0 auto;padding:0 24px}
 
/* ===== Sticky stacked nav ===== */
.nav-wrap{
  position:sticky;
  top:0;
  z-index:1000;
  box-shadow:0 2px 14px rgba(0,0,0,.08);
}
 
/* Top bar — navy */
.nav-top{
  background:var(--navy);
  color:#fff;
}
.nav-top-inner{
  max-width:1200px;
  margin:0 auto;
  padding:12px 24px;
  display:flex;
  align-items:center;
  gap:20px;
}
/* Logo lockup — globe + wordmark act as one mark */
.logo{
  display:inline-flex;
  align-items:center;
  gap:10px;
  line-height:1;
  user-select:none;
}
.logo img{
  height:60px;
  width:auto;
  display:block;
  filter:drop-shadow(0 2px 4px rgba(0,0,0,.35));
  flex-shrink:0;
  border-radius:8px;
}
.logo-word{
  font-family:'Playfair Display', Georgia, serif;
  font-size:1.85rem;
  font-weight:700;
  color:#fff;
  letter-spacing:.5px;
  line-height:1;
  text-shadow:0 1px 2px rgba(0,0,0,.25);
  position:relative;
  top:1px;
}
.logo:hover img{filter:drop-shadow(0 2px 6px rgba(164,25,61,.45))}
.logo-footer img{height:48px;border-radius:6px}
.logo-footer .logo-word{font-size:1.55rem}
.search{
  flex:1;max-width:340px;position:relative;
}
.search input{
  width:100%;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.25);
  color:#fff;
  padding:9px 14px 9px 38px;
  border-radius:999px;
  font-size:.9rem;
  outline:none;
  transition:.2s;
}
.search input::placeholder{color:rgba(255,255,255,.65)}
.search input:focus{background:rgba(255,255,255,.2);border-color:#fff}
.search svg{position:absolute;left:13px;top:50%;transform:translateY(-50%);opacity:.8}
 
.nav-top nav{display:flex;align-items:center;gap:26px;margin-left:auto}
.nav-top nav a{
  font-size:.92rem;font-weight:500;color:#fff;
  padding:6px 2px;position:relative;
}
.nav-top nav a:hover{color:#f3c1cf}
.nav-top nav a.active::after{
  content:"";position:absolute;left:0;right:0;bottom:-4px;height:2px;background:var(--red);
}
.btn-apply{
  background:var(--red);color:#fff;
  padding:10px 22px;border-radius:4px;
  font-weight:600;font-size:.9rem;
  transition:.2s;
  display:inline-block;
}
.btn-apply:hover{background:var(--red-dark)}
 
/* Hamburger — hidden on desktop */
.hamburger{
  display:none;
  background:none;
  border:none;
  color:#fff;
  font-size:28px;
  cursor:pointer;
  padding:4px 10px;
  margin-left:auto;
  line-height:1;
}
 
/* Bottom bar — white */
.nav-bottom{
  background:#fff;
  border-bottom:1px solid var(--line);
}
.nav-bottom-inner{
  max-width:1200px;margin:0 auto;
  padding:14px 24px;
  display:flex;align-items:center;justify-content:flex-end;gap:42px;
}
.nav-bottom a{
  font-size:.95rem;font-weight:500;color:#000000;
  padding:4px 2px;position:relative;
}
.nav-bottom a:hover{color:var(--red)}
.nav-bottom a.active{color:#000000}
.nav-bottom a.active::after{
  content:"";position:absolute;left:0;right:0;bottom:-6px;height:2px;background:var(--red);
}
 
/* ===== Hero ===== */
.hero{
  background:linear-gradient(rgba(13,31,74,.78), rgba(13,31,74,.55)),
    url('back.png') center/cover;
  color:#fff;
  padding:90px 0 110px;
}
.hero h1{color:#fff;max-width:640px;margin-bottom:18px}
.eyebrow{
  color:var(--red);font-weight:700;letter-spacing:.18em;font-size:.82rem;
  text-transform:uppercase;margin-bottom:14px;display:block;
}
.hero p{max-width:520px;color:rgba(255,255,255,.88);margin-bottom:32px;font-size:1.02rem}
.btn-row{display:flex;gap:14px;flex-wrap:wrap}
.btn{
  display:inline-block;padding:13px 26px;border-radius:4px;
  font-weight:600;font-size:.95rem;cursor:pointer;transition:.2s;
  border:2px solid transparent;
  text-align:center;
}
.btn-primary{background:var(--red);color:#fff}
.btn-primary:hover{background:var(--red-dark)}
.btn-outline{border-color:#fff;color:#fff;background:transparent}
.btn-outline:hover{background:#fff;color:#000000}
 
/* ===== Section base ===== */
section{padding:70px 0}
.section-title{text-align:center;margin-bottom:48px}
.section-title h2{display:inline-block;position:relative;padding-bottom:14px}
.section-title h2::after{
  content:"";position:absolute;left:50%;bottom:0;transform:translateX(-50%);
  width:50px;height:3px;background:var(--red);
}
 
/* Why choose — 4 feature cards */
.features{background:var(--bg-soft)}
.features-grid{
  display:grid;grid-template-columns:repeat(4,1fr);gap:0;
}
.feature{
  text-align:center;padding:20px 22px;
  border-right:1px solid var(--line);
}
.feature:last-child{border-right:none}
.feature-icon{
  width:62px;height:62px;border-radius:50%;
  background:#f7e5ec;color:var(--red);
  display:grid;place-items:center;margin:0 auto 18px;
}
.feature h3{margin-bottom:10px;font-size:1.1rem}
.feature p{color:#000000;font-size:.92rem}
 
/* About split */
.about{padding:0}
.about-grid{display:grid;grid-template-columns:1fr 1fr;align-items:stretch}
.about-img{
  background:url('back.png') center/cover;
  min-height:420px;
}
.about-text{
  background:var(--bg-blue-soft);
  padding:70px 60px;display:flex;flex-direction:column;justify-content:center;
}
.about-text h2{position:relative;padding-bottom:14px;margin-bottom:22px}
.about-text h2::after{
  content:"";position:absolute;left:0;bottom:0;width:50px;height:3px;background:var(--red);
}
.about-text p{color:#000000;margin-bottom:24px}
 
/* Stats */
.stats{background:var(--navy);color:#fff;padding:40px 0}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.stat{display:flex;align-items:center;gap:16px;justify-content:center}
.stat-icon{
  width:56px;height:56px;border-radius:50%;background:var(--red);
  display:grid;place-items:center;color:#fff;
  flex-shrink:0;
}
.stat-num{font-family:'Playfair Display',serif;font-size:1.9rem;font-weight:700;line-height:1;color:#fff}
.stat-label{font-size:.88rem;color:rgba(255,255,255,.8);margin-top:4px}
 
/* Courses */
.courses{background:var(--bg-soft)}
.courses-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.course{
  background:#fff;border-radius:6px;overflow:hidden;
  box-shadow:0 4px 18px rgba(13,31,74,.06);
  text-align:center;padding-bottom:24px;
  position:relative;
  transition:.25s;
}
.course:hover{transform:translateY(-4px);box-shadow:0 10px 28px rgba(13,31,74,.12)}
.course-img{height:140px;background-size:cover;background-position:center}
.course-badge{
  width:48px;height:48px;border-radius:50%;background:var(--red);color:#fff;
  display:grid;place-items:center;margin:-24px auto 14px;position:relative;
  box-shadow:0 4px 12px rgba(164,25,61,.4);
}
.course h3{margin-bottom:8px}
.course p{color:#000000;font-size:.9rem;padding:0 18px}
 
/* Footer */
footer{
  background:var(--navy-deep);color:rgba(255,255,255,.75);
  padding:50px 0 24px;margin-top:0;font-size:.9rem;
}
.foot-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:40px;margin-bottom:30px}
footer h4{color:#fff;margin-bottom:14px;font-family:inherit;font-size:.95rem;font-weight:600;letter-spacing:.05em;text-transform:uppercase}
footer ul{list-style:none}
footer li{margin-bottom:8px}
footer a:hover{color:#fff}
.foot-bottom{border-top:1px solid rgba(255,255,255,.1);padding-top:18px;text-align:center;font-size:.82rem}
 
/* Generic page hero (for sub-pages) */
.page-hero{
  background:linear-gradient(rgba(13,31,74,.85),rgba(13,31,74,.85));
  background-color:var(--navy);
  color:#fff;padding:80px 0 60px;text-align:center;
}
.page-hero h1{color:#fff;margin-bottom:10px}
.page-hero .crumb{color:rgba(255,255,255,.7);font-size:.9rem}
.page-hero .crumb a{color:#f3c1cf}
 
.content-section{padding:70px 0}
.prose{max-width:780px;margin:0 auto;color:#000000;font-size:1.02rem}
.prose p{margin-bottom:18px;color:#000000}
.prose h2{margin:30px 0 14px}
.prose h3{margin:24px 0 10px;color:#000000;font-size:1.25rem}
.prose ul{margin:0 0 18px 22px;color:#000000}
.prose li{margin-bottom:6px}
 
/* Form */
.form{max-width:620px;margin:0 auto;background:#fff;border:1px solid var(--line);border-radius:8px;padding:36px}
.form label{display:block;font-weight:600;font-size:.88rem;margin-bottom:6px;color:#000000}
.form .field{margin-bottom:18px}
.form input,.form select,.form textarea{
  width:100%;padding:11px 14px;border:1px solid var(--line);border-radius:4px;
  font-family:inherit;font-size:.95rem;outline:none;transition:.2s;background:#fff;
}
.form input:focus,.form select:focus,.form textarea:focus{border-color:var(--navy)}
.form textarea{min-height:120px;resize:vertical}
 
/* ============================================
   RESPONSIVE
   ============================================ */
 
/* TABLET — 1024px and below */
@media (max-width:1024px){
  html{font-size:17px}
  .container{padding:0 20px}
  h1{font-size:2.4rem}
  h2{font-size:1.9rem}
 
  .features-grid,.courses-grid{grid-template-columns:repeat(2,1fr)}
  .stats-grid{grid-template-columns:repeat(2,1fr);gap:30px}
 
  .feature{padding:30px 22px;border-bottom:1px solid var(--line)}
  .feature:nth-child(even){border-right:none}
  .feature:nth-last-child(-n+2){border-bottom:none}
 
  .about-grid{grid-template-columns:1fr}
  .about-img{min-height:300px}
  .about-text{padding:50px 40px}
 
  .foot-grid{grid-template-columns:1fr 1fr;gap:30px}
 
  .hero{padding:70px 0 80px}
 
  .nav-top nav{gap:18px}
  .nav-bottom-inner{gap:28px}
}
 
/* PHONE — 768px and below */
@media (max-width:768px){
  html{font-size:15px}
  .container{padding:0 16px}
 
  h1{font-size:1.9rem;line-height:1.2}
  h2{font-size:1.5rem}
  h3{font-size:1.05rem}
 
  /* ---- NAV: hamburger takeover ---- */
  .nav-top-inner{
    flex-wrap:wrap;
    padding:10px 16px;
    gap:12px;
  }
  .logo img{height:44px}
  .logo-word{font-size:1.3rem}
 
  .hamburger{display:block}
 
  .search{
    display:none;
    order:5;
    flex-basis:100%;
    max-width:none;
  }
  .search.open{display:block}
 
  .nav-top nav{
    display:none;
    width:100%;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    margin-left:0;
    order:6;
    padding-top:8px;
    border-top:1px solid rgba(255,255,255,.15);
  }
  .nav-top nav.open{display:flex}
  .nav-top nav a{
    width:100%;
    padding:12px 4px;
    font-size:1rem;
    border-bottom:1px solid rgba(255,255,255,.1);
  }
  .nav-top nav a.active::after{display:none}
 
  /* ---- APPLY NOW — small pill on phone ---- */
  .btn-apply{
    width:auto;
    padding:6px 14px;
    font-size:.72rem;
    border-radius:999px;
    letter-spacing:.3px;
    margin-top:0;
    text-align:center;
    box-shadow:0 2px 6px rgba(164,25,61,.3);
  }
 
  .nav-bottom-inner{
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    padding:8px 16px;
  }
  .nav-bottom-inner.open{display:flex}
  .nav-bottom a{
    width:100%;
    padding:12px 4px;
    font-size:1rem;
    border-bottom:1px solid var(--line);
  }
  .nav-bottom a:last-child{border-bottom:none}
  .nav-bottom a.active::after{display:none}
 
  /* ---- HERO ---- */
  .hero{padding:50px 0 60px}
  .hero p{font-size:1rem}
  .btn-row{flex-direction:column;gap:12px}
  .btn{width:100%}
 
  /* ---- SECTIONS ---- */
  section{padding:50px 0}
  .section-title{margin-bottom:32px}
 
  .features-grid,.courses-grid{grid-template-columns:1fr;gap:0}
  .stats-grid{grid-template-columns:1fr;gap:20px}
 
  .feature{
    border-right:none;
    border-bottom:1px solid var(--line);
    padding:28px 20px;
  }
  .feature:last-child{border-bottom:none}
 
  .about-text{padding:40px 24px}
 
  .stats{padding:30px 0}
  .stat{justify-content:flex-start;padding:0 24px}
 
  .course{padding-bottom:20px}
  .course-img{height:180px}
 
  /* ---- PAGE HERO ---- */
  .page-hero{padding:50px 0 40px}
 
  /* ---- FORM ---- */
  .form{padding:24px 20px;border-radius:6px}
 
  /* ---- FOOTER ---- */
  .foot-grid{grid-template-columns:1fr;gap:28px;text-align:left}
 
  /* ---- HIDE ENTIRE NAV ON SCROLL DOWN (PHONE ONLY) ---- */
  .nav-wrap{
    transition:transform .3s ease;
  }
  .nav-wrap.hide-on-scroll{
    transform:translateY(-100%);
  }
}
 
/* SMALL PHONE — 420px and below */
@media (max-width:420px){
  h1{font-size:1.6rem}
  h2{font-size:1.3rem}
  .logo-word{font-size:1.15rem}
  .logo img{height:38px}
  .hero{padding:40px 0 50px}
  .about-text{padding:32px 20px}
  .nav-top-inner{padding:10px 14px}
}