/* ==========================================================================
   Adonai Tuition Center — Single-Page Website
   Blue theme · Serif headings (Playfair Display) · Poppins body
   ========================================================================== */

:root {
  --blue:        #2563EB;
  --blue-dark:   #1E40AF;
  --blue-bright: #3B82F6;
  --navy:        #1E3A8A;
  --navy-deep:   #0F172A;
  --ink:         #1F2937;
  --muted:       #6B7280;
  --bg:          #FFFFFF;
  --bg-alt:      #F3F4F6;
  --bg-soft:     #F8FAFC;
  --card-alt:    #F3F4F6;
  --green:       #22C55E;
  --line:        #E5E7EB;

  --grad-blue:   linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);
  --grad-hero:   linear-gradient(135deg, #1E40AF 0%, #2563EB 55%, #3B82F6 100%);

  --font-serif:  'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:   'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --radius:      18px;
  --radius-sm:   10px;
  --shadow-sm:   0 4px 14px rgba(30, 58, 138, 0.08);
  --shadow-md:   0 12px 32px rgba(30, 58, 138, 0.12);
  --shadow-lg:   0 24px 56px rgba(30, 58, 138, 0.16);
  --nav-h:       76px;
  --container:   1180px;
  --ease:        cubic-bezier(.22,.61,.36,1);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); overflow-x: clip; }
body {
  margin: 0; font-family: var(--font-sans); color: var(--ink);
  background: var(--bg); line-height: 1.7; overflow-x: clip; max-width: 100%;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 { font-family: var(--font-serif); color: var(--navy); font-weight: 700; line-height: 1.2; margin: 0; }
p { margin: 0 0 1rem; }
a { color: var(--blue); text-decoration: none; transition: color .25s; }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 3px; border-radius: 6px; }

.container-x { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.bg-alt { background: var(--bg-alt); }
.bg-soft { background: var(--bg-soft); }

/* ---------- Section heading ---------- */
.head { text-align: center; max-width: 760px; margin: 0 auto clamp(2.2rem, 5vw, 3.4rem); }
.head h2 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: .6rem; }
.head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.section-line { width: 84px; height: 4px; border-radius: 4px; background: var(--grad-blue); margin: 1rem auto 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-sans); font-weight: 600; font-size: 1rem; cursor: pointer;
  padding: .85rem 1.9rem; border-radius: var(--radius-sm); border: 2px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad-blue); color: #fff; box-shadow: 0 10px 24px rgba(37,99,235,.3); }
.btn-primary:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 16px 32px rgba(37,99,235,.4); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; transform: translateY(-3px); }
.btn-outline-light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.7); backdrop-filter: blur(6px); }
.btn-outline-light:hover { background: #fff; color: var(--blue-dark); transform: translateY(-3px); }
.btn-lg { padding: 1rem 2.2rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 1000;
  display: flex; align-items: center; transition: background .35s, box-shadow .35s, height .35s;
  background: transparent;
}
.nav.solid { background: rgba(255,255,255,.96); box-shadow: var(--shadow-sm); backdrop-filter: blur(10px); height: 66px; }
.nav-inner { display: flex; align-items: center; gap: 1rem; width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.brand { display: flex; align-items: center; gap: .6rem; }
.brand .cap { width: 40px; height: 40px; border-radius: 11px; background: var(--grad-blue); display: grid; place-items: center; color: #fff; font-size: 1.2rem; flex: none; }
.brand b { font-family: var(--font-serif); font-size: 1.25rem; line-height: 1; }
.brand span { display: block; font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; margin-top: 3px; }
.nav.solid .brand b, .nav.solid .brand span { color: var(--navy); }
.nav:not(.solid) .brand b { color: #fff; }
.nav:not(.solid) .brand span { color: rgba(255,255,255,.85); }
.nav-links { display: flex; align-items: center; gap: .3rem; margin-left: auto; list-style: none; padding: 0; margin-bottom: 0; }
.nav-links a { font-weight: 500; font-size: .96rem; padding: .5rem .9rem; border-radius: 8px; position: relative; color: var(--ink); }
.nav:not(.solid) .nav-links a { color: rgba(255,255,255,.92); }
.nav-links a::after { content: ""; position: absolute; left: 50%; bottom: .3rem; width: 0; height: 2px; background: currentColor; transform: translateX(-50%); transition: width .3s var(--ease); }
.nav-links a:hover::after, .nav-links a.active::after { width: 40%; }
.nav-cta { margin-left: .6rem; }
.nav-links a.btn { color: #fff; padding: .6rem 1.4rem; }
.nav-links a.btn:hover { color: #fff; }
.nav-links a.btn::after { display: none; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: inherit; font-size: 1.5rem; cursor: pointer; }
.nav:not(.solid) .nav-toggle { color: #fff; }
.nav.solid .nav-toggle { color: var(--navy); }

/* ---------- Hero ---------- */
.hero {
  position: relative; display: block; text-align: center;
  padding: calc(var(--nav-h) + 4rem) 0 4.5rem; color: #fff; overflow: hidden;
  border-bottom-left-radius: 32px; border-bottom-right-radius: 32px;
  box-shadow: 0 24px 50px rgba(37, 99, 235, 0.18);
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 55%, #60A5FA 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.10), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,.08), transparent 45%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M0 59h60M59 0v60' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='1'/%3E%3C/svg%3E");
}
.hero .container-x { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.8rem;
  border: 1.5px solid rgba(255,255,255,.6); border-radius: 50rem; padding: .7rem 1.8rem;
  font-weight: 600; font-size: 1.2rem; background: rgba(255,255,255,.12); backdrop-filter: blur(6px);
}
.hero-badge i { font-size: 1.15em; }
.hero-badge i { color: #FCD34D; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5.5vw, 4.2rem); margin-bottom: 1.4rem; margin-inline: auto; }
.hero p { color: rgba(255,255,255,.92); font-size: clamp(1.05rem, 2vw, 1.35rem); max-width: 42rem; margin: 0 auto 2.2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3.5rem); justify-content: center; margin-top: 3rem; }
.hero-stats .n { font-family: var(--font-sans); font-weight: 800; font-size: 2rem; }
.hero-stats .l { font-size: .9rem; color: rgba(255,255,255,.82); }
.scroll-cue { position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.8); font-size: 1.6rem; z-index: 2; animation: bob 1.8s ease-in-out infinite; }

/* ---------- About founder ---------- */
.about-lead { color: var(--muted); font-size: 1.08rem; }
.about-card { background: var(--grad-blue); color: #fff; border-radius: var(--radius); padding: clamp(1.8rem, 3vw, 2.6rem); box-shadow: var(--shadow-md); }
.about-card .check-list li { color: #fff; border-color: rgba(255,255,255,.16); }
.about-card .check-list li i { color: #fff; background: rgba(255,255,255,.2); }

/* check list */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; align-items: center; gap: .85rem; padding: .8rem 0; font-weight: 500; }
.check-list li i { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; color: #fff; background: var(--green); }
.check-list.blue li i { background: var(--blue); }

/* ---------- Course programs ---------- */
.program {
  position: relative; background: #fff; border-radius: var(--radius); padding: 2.4rem 1.8rem 2rem;
  text-align: center; box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  overflow: hidden; height: 100%; transition: transform .35s var(--ease), box-shadow .35s;
}
.program::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--grad-blue); }
.program:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.program .p-icon { font-size: 3rem; color: var(--navy); margin: .6rem 0 1rem; }
.program h3 { font-size: 1.9rem; margin-bottom: .3rem; }
.program .p-sub { color: var(--muted); font-weight: 500; margin-bottom: 1.4rem; }
.program ul { list-style: none; padding: 0; margin: 0 0 1.8rem; text-align: left; }
.program ul li { display: flex; align-items: center; gap: .7rem; padding: .7rem .2rem; border-bottom: 1px solid var(--line); color: var(--ink); }
.program ul li:last-child { border-bottom: 0; }
.program ul li i { color: var(--blue); font-size: .95rem; }
.ribbon { position: absolute; top: 20px; right: -52px; transform: rotate(45deg); background: var(--grad-blue); color: #fff; font-weight: 600; font-size: .82rem; letter-spacing: .04em; padding: .4rem 3.4rem; box-shadow: 0 6px 14px rgba(37,99,235,.35); }

/* ---------- Programs intro ---------- */
.programs-intro { max-width: 660px; margin: 0 auto; text-align: center; color: #4B6BB0; font-family: var(--font-sans); font-size: 1.1rem; line-height: 1.75; font-weight: 400; }
@media (max-width: 576px) { .programs-intro { font-size: 1rem; } }

/* ---------- Program group label ---------- */
.group-label { text-align: center; font-family: var(--font-sans); font-weight: 700; color: var(--navy); font-size: clamp(1.35rem, 2.6vw, 1.8rem); margin: 0 0 2rem; display: flex; align-items: center; justify-content: center; gap: .6rem; }
.group-label::before, .group-label::after { content: ""; height: 2px; width: 40px; background: var(--line); border-radius: 2px; }

/* ---------- Subjects we offer ---------- */
.subject-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.2rem; text-align: center; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s; height: 100%; overflow: hidden; }
.subject-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--grad-blue); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.subject-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.subject-card:hover::before { transform: scaleX(1); }
.subject-card .sub-icon { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 16px; display: grid; place-items: center; font-size: 1.7rem; color: #fff; background: var(--grad-blue); box-shadow: 0 10px 22px rgba(37,99,235,.28); transition: transform .35s var(--ease); }
.subject-card:hover .sub-icon { transform: scale(1.08) rotate(-4deg); }
.subject-card h3 { font-family: var(--font-sans); font-weight: 700; color: var(--navy-deep); font-size: 1.15rem; margin: 0; }
.subject-group { margin-top: clamp(2.8rem, 5vw, 4rem); }

/* ---------- Summer course ---------- */
.summer-sec { background: #EFF6FF; }
.summer-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow-sm); height: 100%; transition: transform .35s var(--ease), box-shadow .35s; }
.summer-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.summer-card .s-icon { width: 62px; height: 62px; border-radius: 16px; display: grid; place-items: center; font-size: 1.7rem; color: #fff; background: linear-gradient(135deg, #F59E0B, #FB923C); margin-bottom: 1.1rem; box-shadow: 0 10px 22px rgba(245,158,11,.3); }
.summer-card h3 { font-family: var(--font-sans); font-weight: 700; color: var(--navy-deep); font-size: 1.3rem; margin-bottom: .5rem; }
.summer-card p { color: var(--muted); margin: 0; }
.summer-tag { display: inline-block; background: #FEF3C7; color: #B45309; font-weight: 600; font-size: .82rem; padding: .3rem .9rem; border-radius: 50rem; margin-bottom: .8rem; }

/* ---------- Why choose (features) ---------- */
.feature { background: var(--card-alt); border-radius: var(--radius); padding: 2.2rem 1.6rem; text-align: center; height: 100%; transition: transform .35s var(--ease), box-shadow .35s, background .35s; }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); background: #fff; }
.feature .f-icon { font-size: 2.4rem; color: var(--blue); margin-bottom: 1rem; }
.feature h3 { font-family: var(--font-sans); font-weight: 700; font-size: 1.2rem; color: var(--navy-deep); margin-bottom: .5rem; }
.feature p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ---------- Stats band ---------- */
.stats { background: var(--grad-hero); }
.stat-card { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius); padding: 2.4rem 1.4rem; text-align: center; color: #fff; height: 100%; backdrop-filter: blur(4px); }
.stat-card .num { font-family: var(--font-sans); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; }
.stat-card .num small { font-size: .6em; }
.stat-card .t { font-weight: 700; font-size: 1.25rem; margin: .6rem 0 .3rem; color: #fff; font-family: var(--font-sans); }
.stat-card .s { color: rgba(255,255,255,.82); font-size: .95rem; }

/* ---------- Reviews ---------- */
.review { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); height: 100%; border: 1px solid var(--line); }
.review .stars { color: var(--blue); letter-spacing: 3px; margin-bottom: 1rem; font-size: 1.05rem; }
.review .quote { font-style: italic; color: var(--ink); margin-bottom: 1.4rem; }
.review .who b { display: block; color: var(--navy-deep); font-family: var(--font-sans); font-weight: 700; }
.review .who span { color: var(--muted); font-size: .88rem; }

/* ---------- Admissions ---------- */
.admissions-box { max-width: 860px; margin-inline: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-md); padding: clamp(1.8rem, 4vw, 3rem); border: 1px solid var(--line); }
.admissions-box > p { text-align: center; color: var(--muted); font-size: 1.08rem; }
.admissions-actions { display: flex; flex-direction: column; gap: 1rem; max-width: 460px; margin: 1.8rem auto 0; }

/* ---------- Contact ---------- */
.info-card { background: var(--card-alt); border-radius: var(--radius); padding: 2.2rem 1.4rem; text-align: center; height: 100%; transition: transform .35s var(--ease), box-shadow .35s; }
.info-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.info-card .i-icon { font-size: 2.4rem; color: var(--blue); margin-bottom: .9rem; }
.info-card h3 { font-family: var(--font-sans); font-weight: 700; font-size: 1.2rem; color: var(--navy-deep); margin-bottom: .5rem; }
.info-card a { font-weight: 600; }
.info-card p { color: var(--muted); margin: .15rem 0 0; font-size: .95rem; }

.form-wrap { max-width: 720px; margin: 2.6rem auto 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-md); padding: clamp(1.6rem, 4vw, 2.6rem); border: 1px solid var(--line); }
.form-wrap h3 { font-family: var(--font-sans); font-weight: 700; color: var(--navy-deep); font-size: 1.5rem; margin-bottom: 1.4rem; }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; color: var(--navy-deep); margin-bottom: .45rem; }
.field label .req { color: #e11d48; }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-soft); color: var(--ink); font-family: var(--font-sans); font-size: 1rem; transition: border-color .25s, box-shadow .25s, background .25s;
}
.field input:hover:not(:focus), .field select:hover:not(:focus), .field textarea:hover:not(:focus) { border-color: #b9c6e0; background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(37,99,235,.13); }
.field textarea { min-height: 140px; resize: vertical; }
.field .err { color: #e11d48; font-size: .82rem; margin-top: .35rem; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #e11d48; box-shadow: 0 0 0 4px rgba(225,29,72,.12); }
.field.invalid .err { display: block; }
.form-success { display: none; align-items: center; gap: .6rem; background: rgba(34,197,94,.12); color: #15803d; border: 1px solid rgba(34,197,94,.3); padding: .9rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-weight: 500; }
.form-success.show { display: flex; }

.map-embed { border: 0; width: 100%; height: 380px; border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-top: 2.6rem; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: #9ca9c4; padding: clamp(3rem, 6vw, 4.5rem) 0 0; }
.footer h5 { font-family: var(--font-sans); color: #fff; font-size: 1.05rem; margin-bottom: 1.1rem; }
.footer .f-brand b { font-family: var(--font-sans); color: #fff; font-size: 1.3rem; }
.footer .f-brand p { margin: 1rem 0 1.3rem; color: #8593b0; }
.footer a { color: #9ca9c4; }
.footer a:hover { color: var(--blue-bright); }
.f-links { list-style: none; padding: 0; margin: 0; }
.f-links li { margin-bottom: .6rem; }
.f-contact { list-style: none; padding: 0; margin: 0; }
.f-contact li { display: flex; gap: .6rem; margin-bottom: .7rem; color: #8593b0; }
.f-contact i { color: var(--blue-bright); margin-top: .25rem; }
.socials { display: flex; gap: .6rem; }
.socials a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; transition: all .3s; }
.socials a:hover { background: var(--blue); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.8rem; padding: 1.4rem 0; font-size: .9rem; text-align: center; color: #8593b0; }

/* ---------- WhatsApp float ---------- */
.wa-float { position: fixed; right: 20px; bottom: 22px; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; font-size: 1.7rem; box-shadow: 0 10px 26px rgba(37,211,102,.45); z-index: 900; transition: transform .25s; }
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(37,211,102,.5); animation: pulse 2.2s infinite; }
.call-float { position: fixed; right: 20px; bottom: 90px; width: 58px; height: 58px; border-radius: 50%; background: var(--grad-blue); color: #fff; display: grid; place-items: center; font-size: 1.5rem; box-shadow: 0 10px 26px rgba(37,99,235,.45); z-index: 900; transition: transform .25s; }
.call-float:hover { transform: scale(1.08); color: #fff; }
.call-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(37,99,235,.5); animation: pulse 2.2s infinite; }
.to-top { position: fixed; right: 20px; bottom: 158px; width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #fff; border: 0; display: grid; place-items: center; font-size: 1.1rem; cursor: pointer; z-index: 900; opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .3s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 3000; background: var(--grad-hero); display: grid; place-items: center; transition: opacity .5s, visibility .5s; }
.loader.hide { opacity: 0; visibility: hidden; }
.loader .box { text-align: center; color: #fff; }
.loader .box b { font-family: var(--font-serif); font-size: 1.3rem; }
.loader .ring { width: 52px; height: 52px; margin: 1rem auto 0; border: 4px solid rgba(255,255,255,.25); border-top-color: #fff; border-radius: 50%; animation: spin 1s linear infinite; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

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