/* ============================================================
   Jhansi Best Driving Classes — stylesheet
   ============================================================ */

:root {
  --navy-950: #0a0e1a;
  --navy-900: #0e1524;
  --navy-800: #131b2f;
  --navy-700: #1c2740;
  --navy-600: #29385a;
  --line-on-navy: rgba(255, 255, 255, 0.12);

  --accent: #e8871e;
  --accent-dark: #c66d10;
  --accent-light: #f4a950;
  --accent-soft: #fbe6c8;

  --paper: #f8f5ef;
  --paper-alt: #efe7d8;
  --card: #ffffff;

  --ink: #171a21;
  --ink-soft: #565c6b;
  --ink-faint: #8890a0;
  --border-soft: rgba(23, 26, 33, 0.09);

  --font-display: "Fraunces", serif;
  --font-body: "Manrope", sans-serif;

  --shadow-sm: 0 2px 10px rgba(15, 15, 25, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 15, 25, 0.10);
  --shadow-lg: 0 24px 60px rgba(10, 14, 26, 0.22);

  --header-h: 76px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 14px); }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: 0;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
address { font-style: normal; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.08;
}

.icon { flex-shrink: 0; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--navy-950);
  padding: 10px 16px;
  z-index: 200;
  font-weight: 700;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; }

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--accent-light); }

.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); color: var(--ink); }
.section-head--light h2 { color: #fff; }

/* ============ REVEAL ANIMATION ============ */
[data-animate] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-animate].in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-animate] { opacity: 1; transform: none; transition: none; }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.96rem;
  letter-spacing: 0.01em;
  padding: 14px 26px;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-accent {
  background: var(--accent);
  color: var(--navy-950);
  box-shadow: 0 10px 24px rgba(232, 135, 30, 0.32);
}
.btn-accent:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(232, 135, 30, 0.4); }

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-outline-light:hover { border-color: var(--accent-light); color: var(--accent-light); transform: translateY(-2px); }

.btn-sm { padding: 9px 18px; font-size: 0.86rem; }
.btn-lg { padding: 16px 30px; font-size: 1.02rem; }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(10, 14, 26, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(10, 14, 26, 0.94);
  border-bottom-color: var(--line-on-navy);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.header-inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand { display: flex; align-items: center; gap: 11px; color: #fff; }
.brand__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy-800);
  border: 1.5px solid var(--line-on-navy);
  color: var(--accent);
  flex-shrink: 0;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__line1 { font-family: var(--font-display); font-size: 0.98rem; font-weight: 700; }
.brand__line2 { font-family: var(--font-display); font-size: 0.98rem; font-weight: 500; color: var(--accent-light); }

.nav__list { display: flex; align-items: center; gap: 30px; }
.nav__list a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
  font-weight: 600;
  position: relative;
  padding: 6px 0;
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transition: right 0.3s var(--ease);
}
.nav__list a:hover { color: #fff; }
.nav__list a:hover::after, .nav__list a.is-active::after { right: 0; }
.nav__list a.is-active { color: #fff; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-call span { display: inline; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--line-on-navy);
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  padding: calc(var(--header-h) + 40px) 0 70px;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__scene { width: 100%; height: 100%; }

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 24px 0 max(24px, calc((100vw - 1180px) / 2 + 24px));
}

.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 3.9rem);
  margin-bottom: 20px;
  max-width: 15ch;
}
.hero__sub {
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 34ch;
  margin-bottom: 16px;
  font-weight: 500;
}
.hero__features {
  font-size: 0.94rem;
  color: var(--accent-light);
  font-weight: 600;
  margin-bottom: 34px;
  max-width: 40ch;
}
.hero__features span { color: rgba(255, 255, 255, 0.35); margin: 0 3px; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }

.hero__alt { font-size: 0.94rem; color: rgba(255, 255, 255, 0.72); margin-bottom: 26px; }
.hero__alt a { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.35); font-weight: 700; color: #fff; }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line-on-navy);
}
.hero__trust li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
}
.hero__trust .icon { color: var(--accent); }

/* ============ ABOUT ============ */
.about { padding: 100px 0; background: var(--paper); }
.about__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: start;
}
.about h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 22px; }
.about__copy p { font-size: 1.04rem; line-height: 1.75; color: var(--ink-soft); margin-bottom: 18px; }

.highlight-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-top: 8px;
}

.about__visual { display: flex; flex-direction: column; gap: 18px; margin-top: 6px; }
.about__card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.about__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.about__card .icon { color: var(--accent); flex-shrink: 0; }
.about__card p { font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.about__card--2 { margin-left: 32px; }
.about__card--3 { margin-left: 14px; }

/* ============ TRAINING ============ */
.training { padding: 100px 0; background: var(--paper-alt); }
.training__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.tcard {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.tcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.tcard__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--navy-950);
  color: var(--accent);
  margin-bottom: 20px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.tcard:hover .tcard__icon { background: var(--accent); color: var(--navy-950); }
.tcard h3 { font-size: 1.08rem; margin-bottom: 8px; color: var(--ink); }
.tcard p { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.55; }

/* ============ WHY CHOOSE US ============ */
.why { padding: 100px 0; background: var(--navy-950); position: relative; }
.why::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(232, 135, 30, 0.14), transparent 55%);
  pointer-events: none;
}
.why__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.why__grid li {
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--navy-800);
  border: 1px solid var(--line-on-navy);
  border-radius: var(--radius-sm);
  padding: 20px 20px;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.why__grid li:hover { transform: translateY(-4px); border-color: var(--accent); }
.why__grid .icon {
  flex-shrink: 0;
  color: var(--navy-950);
  background: var(--accent);
  border-radius: 50%;
  padding: 4px;
  width: 24px; height: 24px;
}

/* ============ HOW IT WORKS ============ */
.steps { padding: 100px 0; background: var(--paper); }
.steps__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
}
.steps__list::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: repeating-linear-gradient(to right, var(--border-soft) 0 10px, transparent 10px 18px);
  z-index: 0;
}
.steps__list li {
  position: relative;
  z-index: 1;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 30px 24px 28px;
  box-shadow: var(--shadow-sm);
  text-align: left;
}
.steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--navy-950);
  color: var(--accent-light);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 18px;
}
.steps__list .icon { color: var(--accent-dark); margin-bottom: 14px; }
.steps__list h3 { font-size: 1.1rem; color: var(--ink); }

/* ============ WHO CAN JOIN ============ */
.who { padding: 100px 0 110px; background: var(--paper-alt); }
.who__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.wcard {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.wcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.wcard .icon { color: var(--accent-dark); }
.wcard span { font-weight: 700; font-size: 0.98rem; color: var(--ink); }
.wcard:nth-child(4) { grid-column: span 3; }
.wcard:nth-child(5) { grid-column: span 3; }
.wcard:nth-child(6) { grid-column: span 6; }
.wcard:nth-child(6) { flex-direction: row; align-items: center; }

/* ============ LOCATION ============ */
.location { padding: 100px 0; background: var(--paper); }
.location__grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: center;
}
.location h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 22px; }
.location address {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 30px;
}
.location address strong { color: var(--ink); font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; }

.location__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-soft);
  aspect-ratio: 4 / 3;
}

/* ============ CONTACT ============ */
.contact { padding: 110px 0; background: var(--navy-950); position: relative; overflow: hidden; }
.contact::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 15% 85%, rgba(232, 135, 30, 0.18), transparent 55%);
  pointer-events: none;
}
.contact__inner { position: relative; text-align: center; max-width: 720px; }
.contact h2 { font-size: clamp(2.1rem, 4vw, 3rem); color: #fff; margin-bottom: 16px; }
.contact__sub { font-size: 1.12rem; color: rgba(255, 255, 255, 0.75); margin-bottom: 46px; }

.contact__numbers {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.contact__number {
  background: var(--navy-800);
  border: 1px solid var(--line-on-navy);
  border-radius: var(--radius-md);
  padding: 20px 34px;
  min-width: 230px;
}
.contact__number--primary { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(232, 135, 30, 0.14); }
.contact__label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 8px;
}
.contact__number a {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}
.contact__number--primary a { color: var(--accent-light); }

.contact__cta { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }

/* ============ FOOTER ============ */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, 0.75); padding: 64px 0 0; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line-on-navy);
}
.footer__brand .brand__text { color: #fff; margin-bottom: 12px; display: flex; flex-direction: column; }
.footer__brand p { font-size: 0.92rem; color: rgba(255, 255, 255, 0.55); }

.footer__contact { display: flex; flex-direction: column; gap: 12px; }
.footer__contact a, .footer__contact p {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.92rem;
  font-weight: 600;
}
.footer__contact a:hover { color: var(--accent-light); }
.footer__contact .icon { margin-top: 2px; color: var(--accent); }

.footer__links { display: flex; flex-direction: column; gap: 12px; }
.footer__links a { font-size: 0.92rem; font-weight: 600; }
.footer__links a:hover { color: var(--accent-light); }

.footer__bottom { text-align: center; padding: 22px 0; font-size: 0.82rem; color: rgba(255, 255, 255, 0.45); }

/* ============ MOBILE STICKY CTA ============ */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  background: rgba(10, 14, 26, 0.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line-on-navy);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
}
.mobile-cta__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 13px 10px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.92rem;
}
.mobile-cta__btn--primary { background: var(--accent); color: var(--navy-950); }
.mobile-cta__btn--secondary { background: transparent; border: 1.5px solid rgba(255, 255, 255, 0.3); color: #fff; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .training__grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__visual { flex-direction: row; flex-wrap: wrap; }
  .about__card { flex: 1 1 260px; margin-left: 0 !important; }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .location__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav { position: fixed; inset: var(--header-h) 0 0 0; background: rgba(10, 14, 26, 0.98); backdrop-filter: blur(16px); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s; overflow-y: auto; }
  .nav.is-open { opacity: 1; transform: translateY(0); visibility: visible; }
  .nav__list { flex-direction: column; align-items: flex-start; gap: 4px; padding: 30px 28px 40px; }
  .nav__list a { display: block; padding: 14px 0; font-size: 1.2rem; width: 100%; border-bottom: 1px solid var(--line-on-navy); }
  .nav__list a::after { display: none; }
  .nav-toggle { display: flex; }
  .header-call span { display: none; }
  .header-call { padding: 11px; }

  body { padding-bottom: 76px; }
  .mobile-cta { display: flex; }

  .steps__list { grid-template-columns: 1fr; }
  .steps__list::before { display: none; }
  .who__grid { grid-template-columns: repeat(2, 1fr); }
  .wcard, .wcard:nth-child(4), .wcard:nth-child(5) { grid-column: span 2 !important; }
  .wcard:nth-child(6) { grid-column: span 2 !important; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .section-inner { padding: 0 20px; }
  .about, .training, .why, .steps, .who, .location, .contact { padding: 72px 0; }
  .hero { min-height: 100vh; padding: calc(var(--header-h) + 30px) 0 50px; }
  .hero__inner { margin-left: 20px; margin-right: 20px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .training__grid { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: 1fr; }
  .who__grid { grid-template-columns: 1fr; }
  .wcard, .wcard:nth-child(4), .wcard:nth-child(5), .wcard:nth-child(6) { grid-column: span 1 !important; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; text-align: left; }
  .contact__cta { flex-direction: column; }
  .contact__cta .btn { width: 100%; }
  .contact__number { min-width: 0; width: 100%; }
  .location__map { aspect-ratio: 16 / 11; }
}
