/* ============================================================
   THINKLEAP EDUCATIONAL SERVICES LLP — shared stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500&display=swap');

:root{
  --ink:        #16233F;
  --ink-soft:   #2A3A5C;
  --paper:      #FAF8F2;
  --paper-dim:  #F1ECE0;
  --amber:      #D99A2B;
  --amber-deep: #B87E1B;
  --sage:       #6F8F7C;
  --text:       #232323;
  --text-muted: #5B5F6A;
  --line:       #DDD6C4;
  --radius:     2px;

  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    "IBM Plex Mono", monospace;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; }

.wrap{
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- eyebrow / labels ---------- */
.eyebrow{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before{
  content: "";
  width: 22px;
  height: 1px;
  background: var(--amber-deep);
  display: inline-block;
}

/* ---------- header / nav ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 242, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  max-width: 1120px;
  margin: 0 auto;
}
.wordmark{
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.wordmark .leap{ color: var(--amber-deep); font-style: italic; font-weight: 500; }

.nav-links{
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a{
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a.active{ color: var(--ink); }
.nav-links a.active::after{
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--amber);
}
.nav-cta{
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--paper);
  background: var(--ink);
  padding: 10px 18px;
  border-radius: var(--radius);
  transition: background 0.2s ease;
  white-space: nowrap;
}
.nav-cta:hover{ background: var(--amber-deep); }

.nav-toggle{ display:none; }

/* ---------- step motif (signature element) ---------- */
.steps-svg{ display:block; }

.step-rule{
  height: 14px;
  width: 100%;
  background-image: repeating-linear-gradient(
    to right,
    var(--amber) 0px, var(--amber) 18px,
    transparent 18px, transparent 20px
  );
  clip-path: polygon(0 100%, 0 60%, 10% 60%, 10% 20%, 20% 20%, 20% 0, 100% 0, 100% 100%);
  opacity: 0.9;
}

/* ---------- hero ---------- */
.hero{
  padding: 88px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero .wrap{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero h1{
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.05;
  font-weight: 600;
  margin: 18px 0 22px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.hero h1 em{
  font-style: italic;
  color: var(--amber-deep);
  font-weight: 500;
}
.hero p.lede{
  font-size: 18px;
  color: var(--text-muted);
  max-width: 46ch;
  margin: 0 0 32px;
}
.hero-actions{ display:flex; gap: 16px; flex-wrap: wrap; }

.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.btn-primary{ background: var(--ink); color: var(--paper); }
.btn-primary:hover{ background: var(--amber-deep); }
.btn-ghost{ border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover{ background: var(--ink); color: var(--paper); }

/* hero step graphic */
.hero-figure{
  position: relative;
}

/* ---------- sections ---------- */
section{ padding: 88px 0; }
.section-tight{ padding: 64px 0; }
.bg-dim{ background: var(--paper-dim); }
.bg-ink{ background: var(--ink); color: var(--paper); }

h2.section-title{
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  color: var(--ink);
  margin: 14px 0 18px;
  letter-spacing: -0.01em;
}
.bg-ink h2.section-title{ color: var(--paper); }

.section-head{ max-width: 640px; margin-bottom: 52px; }
.section-head p{ color: var(--text-muted); font-size: 17px; }
.bg-ink .section-head p{ color: #C7CEDD; }

/* card grids */
.grid-3{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid-2{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.card{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.bg-dim .card{ background: var(--paper); }
.card .num{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--amber-deep);
  letter-spacing: 0.08em;
}
.card h3{
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
  margin: 12px 0 10px;
}
.card p{ color: var(--text-muted); font-size: 15px; margin: 0; }

/* stat row */
.stat-row{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
}
.stat{ text-align: left; }
.stat .figure{
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  color: var(--ink);
}
.stat .label{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-top: 4px;
}

/* timeline / process (used only where order truly matters) */
.process{
  display: flex;
  flex-direction: column;
  gap: 0;
}
.process-item{
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.process-item:last-child{ border-bottom: 1px solid var(--line); }
.process-item .step-label{
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--amber-deep);
  padding-top: 4px;
}
.process-item h3{
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--ink);
}
.process-item p{ margin:0; color: var(--text-muted); font-size: 15px; max-width: 62ch; }

/* quote / testimonial */
.quote-block{
  border-left: 3px solid var(--amber);
  padding-left: 28px;
  margin: 0;
}
.quote-block p{
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
  line-height: 1.5;
  margin: 0 0 14px;
}
.quote-block cite{
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* CTA band */
.cta-band{
  background: var(--ink);
  color: var(--paper);
  padding: 72px 0;
  text-align: center;
}
.cta-band h2{
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 600;
  margin: 0 0 14px;
}
.cta-band p{ color: #C7CEDD; margin: 0 0 30px; }

/* ---------- simple page hero (inner pages) ---------- */
.page-hero{
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1{
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 600;
  color: var(--ink);
  margin: 14px 0 12px;
  letter-spacing: -0.01em;
}
.page-hero p{ color: var(--text-muted); font-size: 17px; max-width: 60ch; margin: 0; }

/* ---------- forms (contact) ---------- */
.form-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
form.contact-form{ display: flex; flex-direction: column; gap: 20px; }
.field{ display: flex; flex-direction: column; gap: 8px; }
.field label{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field input, .field textarea, .field select{
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--text);
  resize: vertical;
}
.field input:focus, .field textarea:focus, .field select:focus{
  outline: 2px solid var(--amber);
  outline-offset: 1px;
  border-color: var(--amber-deep);
}
.contact-info-item{
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.contact-info-item:last-child{ padding-bottom: 0; }
.contact-info-item .ico{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--amber-deep);
  padding-top: 3px;
  width: 20px;
}
.contact-info-item h4{
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  margin: 0 0 4px;
  color: var(--ink);
}
.contact-info-item p, .contact-info-item address{
  margin: 0;
  font-style: normal;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.form-note{
  font-size: 13px;
  color: var(--text-muted);
  margin-top: -6px;
}

/* ---------- legal pages ---------- */
.legal-body{
  max-width: 760px;
  padding: 56px 0 96px;
}
.legal-body h2{
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  margin: 44px 0 14px;
}
.legal-body h2:first-child{ margin-top: 0; }
.legal-body p, .legal-body li{
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.75;
}
.legal-body ul, .legal-body ol{ padding-left: 22px; }
.legal-body strong{ color: var(--ink); }
.legal-updated{
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--amber-deep);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  display: block;
}
.legal-toc{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 32px 0 8px;
  background: var(--paper-dim);
}
.legal-toc p{ margin: 0 0 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.legal-toc ol{ margin: 0; padding-left: 20px; }
.legal-toc a{ text-decoration: none; color: var(--ink); font-size: 14.5px; }
.legal-toc a:hover{ color: var(--amber-deep); }
.legal-toc li{ margin-bottom: 6px; }

/* ---------- footer ---------- */
.site-footer{
  background: var(--ink);
  color: #C7CEDD;
  padding-top: 0;
}
.footer-steps{
  height: 16px;
  background-image: repeating-linear-gradient(
    to right,
    var(--amber) 0px, var(--amber) 22px,
    transparent 22px, transparent 24px
  );
  clip-path: polygon(0 0, 100% 0, 100% 40%, 90% 40%, 90% 70%, 80% 70%, 80% 100%, 0 100%);
}
.footer-main{
  padding: 64px 0 40px;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
}
.footer-brand .wordmark{ color: var(--paper); }
.footer-brand .wordmark .leap{ color: var(--amber); }
.footer-brand p{
  font-size: 14px;
  color: #97A2BC;
  margin: 16px 0 0;
  max-width: 34ch;
  line-height: 1.7;
}
.footer-col h5{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #97A2BC;
  margin: 0 0 18px;
}
.footer-col ul{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a{
  text-decoration: none;
  color: #DCE1EE;
  font-size: 14.5px;
  transition: color 0.2s ease;
}
.footer-col a:hover{ color: var(--amber); }
.footer-address address{
  font-style: normal;
  font-size: 14.5px;
  line-height: 1.75;
  color: #DCE1EE;
}
.footer-bottom{
  border-top: 1px solid #2B3A5C;
  padding: 22px 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p{
  margin: 0;
  font-size: 13px;
  color: #8A94AE;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.footer-bottom .legal-links{
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-bottom .legal-links a{
  font-size: 13px;
  color: #8A94AE;
  text-decoration: none;
}
.footer-bottom .legal-links a:hover{ color: var(--amber); }

/* ---------- responsive ---------- */
@media (max-width: 860px){
  .hero .wrap{ grid-template-columns: 1fr; }
  .hero-figure{ order: -1; max-width: 260px; }
  .grid-3{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
  .stat-row{ grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .form-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .nav-links{
    position: fixed;
    top: 73px; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    gap: 0;
    padding: 8px 32px 20px;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open{ display: flex; }
  .nav-links a{ padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    background: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
  }
  .nav-toggle span{
    display: block; width: 16px; height: 1.5px; background: var(--ink);
    position: relative;
  }
  .nav-toggle span::before, .nav-toggle span::after{
    content:""; position:absolute; left:0; width:16px; height:1.5px; background:var(--ink);
  }
  .nav-toggle span::before{ top: -5px; }
  .nav-toggle span::after{ top: 5px; }
  .nav-cta{ display:none; }
}

@media (max-width: 600px){
  .wrap{ padding: 0 20px; }
  .nav{ padding: 18px 20px; }
  section{ padding: 64px 0; }
  .footer-grid{ grid-template-columns: 1fr; }
  .footer-bottom{ flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ transition: none !important; animation: none !important; }
}

:focus-visible{ outline: 2px solid var(--amber-deep); outline-offset: 2px; }
