/* iCoachMath mobile-first base
   - Keep it light
   - No framework needed
   - Works from 320px up
*/

:root{
  --bg: #ffffff;
  --bg-alt: #f7f7fb;
  --text: #121316;
  --muted: #5a606b;
  --line: #e6e7ee;
  --brand: #1b3a8a;        /* adjust later to match your logo */
  --brand-2: #f28c28;      /* accent */
  --brand-3: #f2c94c;      /* accent */
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --container: 1120px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.5;
}

a{ color:var(--brand); text-decoration:none; }
a:hover{ text-decoration:underline; }

img{ max-width:100%; height:auto; }

.container{
  width:min(100% - 2rem, var(--container));
  margin-inline:auto;
}

.sr-only{
  position:absolute;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}

.skip-link{
  position:absolute;
  left:-999px;
  top:.75rem;
  background:var(--brand);
  color:#fff;
  padding:.5rem .75rem;
  border-radius:999px;
  z-index:9999;
}
.skip-link:focus{ left:.75rem; }

.site-header{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(255,255,255,.92);
  backdrop-filter:saturate(150%) blur(8px);
  border-bottom:1px solid var(--line);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding:.75rem 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:.6rem;
  font-weight:800;
  letter-spacing:.2px;
}
.brand-mark{
  width:38px; height:38px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:linear-gradient(135deg, var(--brand), #0f1f55);
  color:#fff;
  font-size:1rem;
}
.brand-text{ font-size:1.05rem; }

.nav-toggle{
  display:inline-flex;
  flex-direction:column;
  gap:5px;
  padding:.6rem .65rem;
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
}
.nav-toggle-bar{
  width:22px; height:2px;
  background:var(--text);
  display:block;
}
.site-nav{
  display:none;
  position:absolute;
  left:0; right:0;
  top:100%;
  background:#fff;
  border-bottom:1px solid var(--line);
  padding:.75rem 1rem 1rem;
}
.site-nav a{
  display:block;
  padding:.65rem .25rem;
  font-weight:650;
  color:var(--text);
}
.site-nav a:hover{ text-decoration:none; color:var(--brand); }

.site-nav.is-open{ display:block; }

.hero{
  position:relative;
  overflow:hidden;
  border-bottom:1px solid var(--line);
}
.hero-media{
  position:absolute;
  inset:0;
  background:
    radial-gradient(1200px 400px at 20% 20%, rgba(242,140,40,.25), transparent 60%),
    radial-gradient(900px 350px at 70% 40%, rgba(27,58,138,.22), transparent 55%),
    url("../..//img/slider/3-1.jpg") center/cover no-repeat;
  filter:saturate(1.05);
  transform:scale(1.02);
}
.hero-media::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.96));
}
.hero-inner{
  position:relative;
  padding:3.25rem 0 2.5rem;
}
.hero-copy{
  max-width: 48rem;
}
.hero h1{
  margin:0 0 .75rem 0;
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  line-height:1.12;
}
.hero p{
  margin:0 0 1.1rem 0;
  color:var(--muted);
  font-size:1.05rem;
}

.site-search{
  display:flex;
  gap:.65rem;
  margin:1rem 0 1rem;
}
.site-search input{
  flex:1;
  padding:.85rem .9rem;
  border:1px solid var(--line);
  border-radius:12px;
  font-size:1rem;
}
.site-search button{
  padding:.85rem 1rem;
  border-radius:12px;
  border:1px solid var(--brand);
  background:var(--brand);
  color:#fff;
  font-weight:700;
  cursor:pointer;
}
.site-search button:hover{ filter:brightness(.95); }

.hero-cta{
  display:flex;
  flex-wrap:wrap;
  gap:.75rem;
  margin-top:.25rem;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.8rem 1rem;
  border-radius:999px;
  font-weight:750;
  border:1px solid var(--line);
  background:#fff;
  color:var(--text);
}
.btn.primary{
  background:var(--brand);
  border-color:var(--brand);
  color:#fff;
}
.btn.ghost{
  border-color:rgba(27,58,138,.35);
  color:var(--brand);
  background:rgba(27,58,138,.06);
}
.btn:hover{ text-decoration:none; }

.hero-note{
  margin-top:1rem;
  font-size:.95rem;
  color:var(--muted);
}

.section{
  padding:2.25rem 0;
}
.section-alt{
  background:var(--bg-alt);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.section-head{
  margin-bottom:1rem;
}
.section-head h2{
  margin:0 0 .25rem 0;
  font-size:1.6rem;
}
.muted{ color:var(--muted); }

.grid{
  display:grid;
  gap:1rem;
}
.cards{
  grid-template-columns: 1fr;
}
.card{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background:#fff;
  overflow:hidden;
  box-shadow: var(--shadow);
}
.card-media{
  height:170px;
  background:
    linear-gradient(135deg, rgba(27,58,138,.12), rgba(242,140,40,.10));
  background-size:cover;
  background-position:center;
}
.card-body{
  padding:1rem;
}
.card h3{
  margin:.1rem 0 .35rem;
  font-size:1.15rem;
}
.card p{
  margin:0 0 .75rem;
  color:var(--muted);
}
.card-link{
  font-weight:750;
  text-decoration:none;
}
.card-link:hover{ text-decoration:underline; }

.pill-grid{
  display:flex;
  flex-wrap:wrap;
  gap:.6rem;
}
.pill{
  display:inline-flex;
  align-items:center;
  padding:.55rem .85rem;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--line);
  font-weight:650;
  color:var(--text);
}
.pill:hover{
  text-decoration:none;
  border-color:rgba(27,58,138,.35);
}

.fineprint{
  color:var(--muted);
  font-size:.95rem;
  margin-top:1rem;
}

.site-footer{
  border-top:1px solid var(--line);
  padding:2rem 0;
  background:#fff;
}
.footer-inner{
  display:grid;
  gap:1.25rem;
}
.footer-nav{
  display:flex;
  flex-wrap:wrap;
  gap:.75rem 1rem;
}
.footer-nav a{ color:var(--muted); font-weight:650; }
.footer-nav a:hover{ color:var(--brand); text-decoration:none; }

/* >= 720px */
@media (min-width: 45rem){
  .nav-toggle{ display:none; }
  .site-nav{
    display:flex !important;
    position:static;
    padding:0;
    border:0;
    background:transparent;
    gap:1.1rem;
  }
  .site-nav a{
    display:inline-flex;
    padding:.35rem .25rem;
    color:var(--muted);
    font-weight:700;
  }
  .site-nav a:hover{ color:var(--brand); }
  .cards{ grid-template-columns: repeat(2, 1fr); }
  .footer-inner{ grid-template-columns: 1.4fr 1fr 1fr; align-items:start; }
}

/* >= 1024px */
@media (min-width: 64rem){
  .hero-inner{ padding:4.25rem 0 3.25rem; }
  .cards{ grid-template-columns: repeat(4, 1fr); }
  .card-media{ height:165px; }
}
