/* ============================================================
   Jassal Driving School — Redesign 2026
   Palette: White / Navy #1a2c6b / Red #d0021b
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy:    #1a2c6b;
  --navy2:   #0f1d4a;
  --red:     #d0021b;
  --red2:    #a80016;
  --white:   #ffffff;
  --off:     #f5f6fa;
  --grey:    #6b7280;
  --light:   #e8eaf2;
  --text:    #1a1f2e;
  --shadow:  0 4px 24px rgba(26,44,107,.10);
  --shadow-lg: 0 12px 48px rgba(26,44,107,.15);
  --radius:  12px;
  --radius-lg: 20px;
  --font:    'Plus Jakarta Sans', sans-serif;
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a  { color: var(--navy); text-decoration: none; }

/* ── Scroll animations ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .65s var(--transition), transform .65s var(--transition);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-left  { transform: translateX(-32px); }
.reveal-right { transform: translateX(32px); }
.reveal-left.visible, .reveal-right.visible { transform: none; }

/* stagger children */
.stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .5s; }
.stagger.visible > *:nth-child(1) { opacity:1; transform:none; transition-delay:.05s; }
.stagger.visible > *:nth-child(2) { opacity:1; transform:none; transition-delay:.15s; }
.stagger.visible > *:nth-child(3) { opacity:1; transform:none; transition-delay:.25s; }
.stagger.visible > *:nth-child(4) { opacity:1; transform:none; transition-delay:.35s; }

/* ── Header / Nav ─────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--light);
  box-shadow: 0 2px 12px rgba(26,44,107,.06);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img { height: 52px; width: auto; }

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: .25rem;
}

nav a {
  display: block;
  padding: .45rem .85rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}

nav a:hover { color: var(--navy); background: var(--off); }

nav a.active {
  color: var(--navy);
  background: var(--light);
}

.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: .5rem 1.1rem !important;
  border-radius: 8px !important;
  margin-left: .5rem;
}
.nav-cta:hover { background: var(--red2) !important; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Page hero banner ─────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy2) 0%, var(--navy) 100%);
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/banner-home.png') center/cover no-repeat;
  opacity: .12;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 60px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.page-hero h1 {
  position: relative;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.02em;
}
.page-hero h1 span { color: #ff6b7a; }

/* ── Home Hero ────────────────────────────────────────────── */
.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy2) 0%, var(--navy) 60%, #2a3f8f 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/banner-home.png') center/cover no-repeat;
  opacity: .15;
}
.hero-shape {
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 80px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem 8rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-text { }
.hero-text .tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
  padding: .35rem .9rem;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: 1.5rem;
}
.hero-text h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 1.25rem;
}
.hero-text h1 em {
  font-style: normal;
  color: #ff6b7a;
}
.hero-text p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.8);
  max-width: 480px;
  margin-bottom: 2.25rem;
  line-height: 1.7;
}
.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,.15);
}
.stat-item { }
.stat-item .num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.stat-item .num span { color: #ff6b7a; }
.stat-item .lbl {
  font-size: .8rem;
  color: rgba(255,255,255,.6);
  margin-top: .25rem;
}

.hero-card-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 24px 80px rgba(0,0,0,.25);
  width: 100%;
  max-width: 360px;
}
.hero-card .hc-title {
  font-size: .75rem;
  font-weight: 700;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1.25rem;
}
.hc-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--light);
}
.hc-row:last-child { border-bottom: none; }
.hc-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.hc-icon.blue { background: #e8edf8; }
.hc-icon.red  { background: #fce8ea; }
.hc-icon.green{ background: #e8f5ee; }
.hc-label { font-size: .875rem; font-weight: 600; color: var(--text); }
.hc-sub   { font-size: .75rem; color: var(--grey); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.6rem;
  border-radius: 10px;
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}
.btn-red   { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(208,2,27,.3); }
.btn-navy  { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy2); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.4);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

/* ── Section layouts ──────────────────────────────────────── */
.section { padding: 5rem 2rem; }
.section-sm { padding: 3rem 2rem; }
.container { max-width: 1200px; margin: 0 auto; }

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .75rem;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--grey);
  max-width: 560px;
  line-height: 1.7;
}
.section-head { margin-bottom: 3rem; }
.section-head.center { text-align: center; }
.section-head.center .section-sub { margin: 0 auto; }

/* ── Feature cards ────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--red));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 52px; height: 52px;
  background: var(--off);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}
.feature-card:hover .feature-icon { background: var(--light); }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; color: var(--text); }
.feature-card p  { font-size: .875rem; color: var(--grey); line-height: 1.6; }

/* ── About strip ──────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
}
.about-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
  position: absolute;
  bottom: 1.5rem; left: 1.5rem;
  background: var(--white);
  border-radius: 12px;
  padding: .75rem 1rem;
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: .75rem;
}
.about-badge .num { font-size: 1.4rem; font-weight: 800; color: var(--red); }
.about-badge .lbl { font-size: .75rem; color: var(--grey); font-weight: 600; }
.about-text p { font-size: 1rem; color: var(--grey); line-height: 1.8; margin-bottom: 1.25rem; }

/* ── Pricing ──────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: start;
}
.price-card {
  background: var(--white);
  border: 1.5px solid var(--light);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: var(--transition);
  position: relative;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.price-card.featured {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}
.price-card.featured .price-label,
.price-card.featured p { color: rgba(255,255,255,.75); }
.price-card.featured h3 { color: var(--white); }
.price-card.featured .price-badge { background: var(--red); }
.price-badge {
  display: inline-block;
  background: var(--off);
  color: var(--navy);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .75rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.price-amount {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: .5rem;
}
.price-amount small { font-size: 1rem; font-weight: 500; color: var(--grey); }
.price-card.featured .price-amount { color: var(--white); }
.price-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .75rem; }
.price-card p  { font-size: .875rem; color: var(--grey); line-height: 1.7; margin-bottom: .5rem; }
.price-divider { height: 1px; background: var(--light); margin: 1.25rem 0; }
.price-card.featured .price-divider { background: rgba(255,255,255,.15); }

/* ── Areas ────────────────────────────────────────────────── */
.areas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.areas-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}
.area-pill {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: var(--off);
  border: 1px solid var(--light);
  border-radius: 10px;
  padding: .75rem 1rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  transition: var(--transition);
}
.area-pill:hover { background: var(--light); border-color: var(--navy); color: var(--navy); }
.area-pill::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
}
.areas-info { }
.areas-info h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 1rem; }
.areas-info p  { color: var(--grey); line-height: 1.8; margin-bottom: 1.5rem; }
.contact-strip {
  background: var(--off);
  border: 1px solid var(--light);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.contact-strip .cs-icon {
  width: 44px; height: 44px;
  background: var(--navy);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-strip .cs-text p  { font-size: .8rem; color: var(--grey); }
.contact-strip .cs-text a  { font-size: 1.05rem; font-weight: 700; color: var(--navy); }

/* ── Reviews ──────────────────────────────────────────────── */
.reviews-section { background: var(--off); }
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.review-card {
  background: var(--white);
  border: 1px solid var(--light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.review-stars { color: #f59e0b; font-size: 1rem; letter-spacing: .05em; }
.review-card p {
  font-size: .9rem;
  color: var(--grey);
  line-height: 1.75;
  flex: 1;
  font-style: italic;
}
.review-card p::before { content: '\201C'; }
.review-card p::after  { content: '\201D'; }
.review-author { display: flex; align-items: center; gap: .75rem; }
.review-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), #3a5bcd);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
}
.review-name { font-weight: 700; font-size: .875rem; color: var(--text); }

/* ── Gallery ──────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}
.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--transition);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,44,107,.5) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ── Contact ──────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: var(--transition);
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.contact-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.contact-icon.red   { background: #fce8ea; }
.contact-icon.navy  { background: #e8edf8; }
.contact-icon.green { background: #e8f5ee; }
.contact-card h3 { font-size: 1rem; font-weight: 700; color: var(--text); }
.contact-card p  { font-size: .9rem; color: var(--grey); line-height: 1.7; }
.contact-card a  { color: var(--navy); font-weight: 700; font-size: 1.05rem; }

/* ── CTA band ─────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, var(--navy2), var(--navy));
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(208,2,27,.2) 0%, transparent 60%);
}
.cta-band h2 {
  position: relative;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
}
.cta-band p {
  position: relative;
  font-size: 1.05rem;
  color: rgba(255,255,255,.75);
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* ── Footer ───────────────────────────────────────────────── */
footer {
  background: var(--navy2);
  color: rgba(255,255,255,.6);
  text-align: center;
  padding: 2rem;
  font-size: .85rem;
}
footer a { color: rgba(255,255,255,.8); font-weight: 600; }
footer a:hover { color: var(--white); }

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
  .hero-text p  { margin-left: auto; margin-right: auto; }
  .hero-btns    { justify-content: center; }
  .hero-stats   { justify-items: center; }
  .hero-card-wrap { display: none; }
  .about-grid   { grid-template-columns: 1fr; gap: 2.5rem; }
  .areas-grid   { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 640px) {
  .header-inner { padding: 0 1.25rem; }
  .section      { padding: 3.5rem 1.25rem; }

  nav ul {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--light);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    gap: .25rem;
    z-index: 99;
  }
  nav ul.open { display: flex; }
  nav a { padding: .75rem 1rem; font-size: 1rem; }
  .nav-cta { margin-left: 0; text-align: center; }
  .menu-toggle { display: flex; }

  .hero-content { padding: 4rem 1.25rem 6rem; }
  .hero-stats   { grid-template-columns: repeat(3,1fr); gap: .5rem; }
  .stat-item .num { font-size: 1.5rem; }

  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid  { grid-template-columns: 1fr; }
  .areas-list    { grid-template-columns: 1fr; }
  .review-grid   { grid-template-columns: 1fr; }
  .gallery-grid  { grid-template-columns: 1fr; }
  .contact-grid  { grid-template-columns: 1fr; }

  .page-hero { padding: 3.5rem 1.25rem 3rem; }
}
