/* =========================================================
   SANJAY KESSRANI THEME — MAIN STYLESHEET
   Palette: near-black / warm off-white / signature orange
   Type: Fraunces (display) + Inter (body/UI)
   ========================================================= */

:root{
  --ink:        #0D0D0D;
  --ink-soft:   #1A1A1A;
  --paper:      #FFFFFF;
  --paper-warm: #F7F5F1;
  --line:       #26221D;
  --line-soft:  #E4DFD6;
  --rust:       #D4590F;
  --rust-deep:  #A8420A;
  --grey:       #6B6B6B;
  --grey-soft:  #9A968E;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style:none; margin:0; padding:0; }
h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}
p{ max-width: 62ch; }
.wrap{ max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

:focus-visible{ outline: 2px solid var(--rust); outline-offset: 3px; }

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

/* -------------------- HEADER -------------------- */
.site-header{
  position: sticky; top:0; z-index: 50;
  background: rgba(13,13,13,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap{
  display:flex; align-items:center; justify-content:space-between;
  height: 78px;
}
.brand{
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 600;
  color: var(--paper);
}
.brand span{ color: var(--rust); }

.primary-nav > ul{ display:flex; gap: 2.2rem; align-items:center; }
.primary-nav a{
  color: var(--paper-warm); font-size: 0.95rem; font-weight: 500;
  padding: 6px 2px; border-bottom: 1px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
.primary-nav a:hover{ border-color: var(--rust); color: var(--paper); }

.has-children{ position: relative; }
.menu-item-has-children{ position: relative; }
.sub-menu{
  position:absolute; top: 100%; left: -14px; min-width: 230px;
  background: var(--ink-soft); border:1px solid var(--line);
  padding: 10px; display:none; flex-direction:column; gap: 2px;
  box-shadow: 0 18px 40px rgba(0,0,0,.4);
}
.has-children:hover .sub-menu,
.has-children:focus-within .sub-menu,
.menu-item-has-children:hover .sub-menu,
.menu-item-has-children:focus-within .sub-menu{ display:flex; }
.sub-menu a{
  padding: 9px 12px; border-radius: 2px; border-bottom:none;
  font-size: 0.88rem;
}
.sub-menu a:hover{ background: rgba(212,89,15,0.12); color: var(--rust); }

.nav-toggle{ display:none; }

@media (max-width: 880px){
  .primary-nav{ display:none; }
  .nav-toggle{
    display:block; background:none; border:1px solid var(--line);
    color: var(--paper); padding: 8px 12px; font-size: .85rem;
  }
}

/* -------------------- HERO -------------------- */
.hero{
  background: var(--ink);
  color: var(--paper);
  padding: 7rem 0 5.5rem;
  position: relative;
  overflow: hidden;
}
.hero::after{
  content:"";
  position:absolute; right:-10%; top:-30%;
  width:60%; height:160%;
  background: radial-gradient(circle at center, rgba(212,89,15,0.16), transparent 65%);
  pointer-events:none;
}
.hero .eyebrow{
  color: var(--rust); font-size: .9rem; letter-spacing: .02em;
  margin-bottom: 1rem; font-weight:600;
}
.hero h1{
  font-size: clamp(2.4rem, 5.4vw, 4.1rem);
  max-width: 15ch;
  color: var(--paper);
}
.hero .lede{
  color: var(--paper-warm); font-size: 1.15rem; max-width: 46ch;
  margin: 1.3rem 0 2.2rem; opacity: .88;
}
.hero-actions{ display:flex; gap: 1rem; flex-wrap:wrap; }

.btn{
  display:inline-block; padding: 0.9rem 1.6rem; font-weight:600;
  font-size: .95rem; border: 1px solid transparent; transition: all .15s ease;
}
.btn-primary{ background: var(--rust); color: var(--paper); }
.btn-primary:hover{ background: var(--rust-deep); }
.btn-outline{ border-color: var(--line-soft); color: var(--paper); }
.btn-outline:hover{ border-color: var(--rust); color: var(--rust); }
.hero .btn-outline{ border-color: rgba(255,255,255,0.3); }

.hero-stats{
  display:flex; gap: 2.6rem; margin-top: 3.2rem;
  padding-top: 2rem; border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.hero-stats .num{ font-family: var(--font-display); font-size: 2rem; color: var(--rust); }
.hero-stats .label{ font-size: .82rem; color: var(--grey-soft); margin-top:.2rem; }

/* -------------------- SECTION SHELL -------------------- */
.section{ padding: 5.5rem 0; }
.section-warm{ background: var(--paper-warm); }
.section-ink{ background: var(--ink); color: var(--paper); }
.section-ink h2, .section-ink h3{ color: var(--paper); }
.section-ink p{ color: var(--paper-warm); opacity:.85; }

.section-head{
  display:flex; justify-content:space-between; align-items:flex-end;
  gap: 2rem; margin-bottom: 2.6rem; flex-wrap:wrap;
  border-bottom: 1px solid var(--line-soft); padding-bottom: 1.4rem;
}
.section-ink .section-head{ border-color: var(--line); }
.section-head h2{ font-size: clamp(1.8rem, 3vw, 2.4rem); }
.section-head .kicker{
  color: var(--rust); font-weight:600; font-size:.85rem; display:block; margin-bottom:.5rem;
}
.section-head .view-all{ font-size:.9rem; font-weight:600; color:var(--rust); white-space:nowrap; }
.section-head .view-all:hover{ text-decoration: underline; }

/* -------------------- SERVICES / COURSES GRID -------------------- */
.asym-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.section-ink .asym-grid{ background: var(--line); border-color: var(--line); }

.tile{
  background: var(--paper); padding: 2.4rem 2rem;
  transition: background .18s ease;
  position: relative;
}
.section-ink .tile{ background: var(--ink); }
.tile:hover{ background: var(--paper-warm); }
.section-ink .tile:hover{ background: var(--ink-soft); }

.tile .tile-index{
  font-family: var(--font-display); color: var(--grey-soft);
  font-size: .95rem; margin-bottom: 1.6rem; display:block;
}
.tile h3{ font-size: 1.28rem; margin-bottom: .6rem; }
.tile p{ color: var(--grey); font-size: .95rem; margin-bottom: 1.2rem; }
.section-ink .tile p{ color: var(--paper-warm); }
.tile .tile-link{
  font-size: .85rem; font-weight:600; color: var(--rust);
  border-bottom: 1px solid transparent;
}
.tile:hover .tile-link{ border-color: var(--rust); }

@media (max-width: 900px){ .asym-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px){ .asym-grid{ grid-template-columns: 1fr; } }

/* -------------------- PROCESS (legitimate sequence) -------------------- */
.process{ display:grid; grid-template-columns: repeat(4,1fr); gap: 2rem; }
.process-step{ border-top: 3px solid var(--rust); padding-top: 1.1rem; }
.process-step .step-no{ font-family: var(--font-display); color: var(--rust); font-size:1.3rem; }
.process-step h4{ font-size: 1.05rem; margin: .5rem 0 .4rem; }
.process-step p{ font-size:.9rem; color:var(--grey); }
@media (max-width: 800px){ .process{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px){ .process{ grid-template-columns: 1fr; } }

/* -------------------- TESTIMONIAL / TRUST STRIP -------------------- */
.trust-strip{
  display:flex; flex-wrap:wrap; gap: 2.4rem 3.2rem; align-items:center;
  justify-content:space-between; padding: 2.2rem 0; border-top:1px solid var(--line-soft);
  border-bottom:1px solid var(--line-soft);
}
.trust-item{ font-size:.85rem; color:var(--grey); font-weight:600; }

/* -------------------- CTA BAND -------------------- */
.cta-band{
  background: var(--rust); color: var(--paper);
  padding: 4rem 0; text-align:left;
}
.cta-band .wrap{ display:flex; justify-content:space-between; align-items:center; gap:2rem; flex-wrap:wrap; }
.cta-band h2{ color: var(--paper); font-size: clamp(1.7rem,3vw,2.3rem); margin:0; max-width: 22ch; }
.cta-band .btn-outline{ border-color: rgba(255,255,255,0.5); color:var(--paper); }
.cta-band .btn-outline:hover{ background: var(--paper); color: var(--rust); border-color: var(--paper); }

/* -------------------- BREADCRUMBS -------------------- */
.breadcrumbs{
  font-size: .82rem; color: var(--grey); padding: 1.4rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.breadcrumbs a{ color: var(--grey); }
.breadcrumbs a:hover{ color: var(--rust); }
.breadcrumbs .sep{ margin: 0 .5rem; color: var(--grey-soft); }

/* -------------------- SINGLE PAGE CONTENT -------------------- */
.page-hero{
  background: var(--ink); color: var(--paper); padding: 3.6rem 0 3rem;
}
.page-hero .kicker{ color: var(--rust); font-weight:600; font-size:.85rem; }
.page-hero h1{ color: var(--paper); font-size: clamp(2rem, 4vw, 3rem); margin-top:.5rem; }

.page-content{ padding: 4rem 0; }
.page-content .content-wrap{ max-width: 760px; }
.page-content h2{ margin-top: 2.2rem; font-size: 1.7rem; }
.page-content h3{ margin-top: 1.6rem; font-size: 1.25rem; }
.page-content p, .page-content li{ color: var(--ink-soft); }
.page-content ul{ list-style: disc; padding-left: 1.4rem; margin-bottom: 1.2rem; }
.page-content li{ margin-bottom: .4rem; }

/* -------------------- RELATED / INTERLINKING MODULE -------------------- */
.related-module{ background: var(--paper-warm); padding: 3.5rem 0; margin-top: 2rem; }
.related-module h3{ font-size: 1.3rem; margin-bottom: 1.4rem; }
.related-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; }
.related-card{
  background: var(--paper); border: 1px solid var(--line-soft);
  padding: 1.4rem; transition: border-color .15s ease;
}
.related-card:hover{ border-color: var(--rust); }
.related-card .r-label{ font-size:.78rem; color:var(--rust); font-weight:600; }
.related-card h4{ font-size: 1.02rem; margin: .4rem 0 0; }
@media (max-width:800px){ .related-grid{ grid-template-columns: 1fr; } }

/* -------------------- FOOTER -------------------- */
.site-footer{ background: var(--ink); color: var(--paper-warm); padding: 4.5rem 0 2rem; }
.footer-grid{
  display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem;
  padding-bottom: 3rem; border-bottom: 1px solid var(--line);
}
.footer-brand .brand{ margin-bottom: .8rem; }
.footer-brand p{ color: var(--grey-soft); font-size: .92rem; }
.footer-col h5{
  font-size: .82rem; text-transform: uppercase; letter-spacing:.04em;
  color: var(--grey-soft); margin-bottom: 1rem; font-weight:600;
}
.footer-col ul li{ margin-bottom: .55rem; }
.footer-col a{ font-size: .92rem; color: var(--paper-warm); }
.footer-col a:hover{ color: var(--rust); }
.footer-bottom{
  display:flex; justify-content:space-between; padding-top: 1.6rem;
  font-size: .8rem; color: var(--grey-soft); flex-wrap:wrap; gap: .8rem;
}
@media (max-width: 900px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-grid{ grid-template-columns: 1fr; } }

/* -------------------- MOBILE NAV DRAWER -------------------- */
.mobile-drawer{
  display:none; position:fixed; inset:0; background: var(--ink); z-index: 60;
  padding: 2rem var(--gutter); overflow-y:auto;
}
.mobile-drawer.is-open{ display:block; }
.mobile-drawer .close-drawer{
  background:none; border:1px solid var(--line); color:var(--paper);
  padding: 8px 14px; margin-bottom: 2rem;
}
.mobile-drawer ul{ display:flex; flex-direction:column; gap: 1rem; }
.mobile-drawer a{ color: var(--paper); font-family: var(--font-display); font-size: 1.4rem; }
.mobile-drawer .sub-menu{ position:static; display:flex !important; background:none; border:none; padding: .5rem 0 0 1rem; }
.mobile-drawer .sub-menu a{ font-family: var(--font-body); font-size: 1rem; color: var(--paper-warm); }
