/* ============================================================
   121DRIVINGTUITION — Main Stylesheet
   ============================================================ */

/* ---------- Variables ---------- */
:root {
  --orange:    #F97316;
  --red:       #E11D48;
  --red-hover: #BE123C;
  --dark:      #111827;
  --dark-2:    #1F2937;
  --text:      #374151;
  --text-light:#6B7280;
  --surface:   #F9FAFB;
  --border:    #E5E7EB;
  --white:     #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.1),0 1px 2px rgba(0,0,0,.06);
  --shadow:    0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,.1),0 4px 10px -5px rgba(0,0,0,.06);
  --radius:    0.5rem;
  --radius-lg: 1rem;
  --font-body: 'Inter', sans-serif;
  --font-head: 'Poppins', sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.6; }
img  { display: block; max-width: 100%; height: auto; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }

/* ---------- Utilities ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--dark);
  text-align: center;
  margin-bottom: 0.75rem;
}
.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 3rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Brand name: 121<DRIVING>TUITION */
.brand { font-family: var(--font-head); font-weight: 800; letter-spacing: -0.5px; }
.brand strong { color: var(--red); font-weight: 900; }

/* Buttons */
.btn-red {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 0.7rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1rem;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}
.btn-red:hover  { background: var(--red-hover); transform: translateY(-1px); color: var(--white); }
.btn-red.large  { padding: 1rem 2.75rem; font-size: 1.125rem; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  height: 70px;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img { height: 52px; width: auto; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.nav-link {
  font-weight: 500;
  color: var(--text);
  font-size: 0.95rem;
  transition: color .2s;
}
.nav-link:hover { color: var(--red); }
.nav-link.btn-red { color: var(--white); }
.nav-link.btn-red:hover { color: var(--white); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 9rem 0 5.5rem;
  background: linear-gradient(160deg, #111827 0%, #1f2937 100%);
  color: var(--white);
  text-align: center;
}
.hero-logo { height: 90px; width: auto; margin: 0 auto 1.5rem; }

.hero-company {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 0.35rem;
}
.hero-company strong { color: var(--red); }

.hero-tagline {
  font-size: 0.85rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 1.75rem;
}
.hero-description {
  max-width: 680px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
  color: #D1D5DB;
  line-height: 1.75;
}

/* Feature cards */
.hero-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 1000px;
  margin: 0 auto 3rem;
}
.feature-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 2rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  transition: background .2s;
}
.feature-card:hover { background: rgba(255,255,255,.1); }
.feature-card i {
  font-size: 2.25rem;
  color: var(--orange);
}
.feature-card span {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing { padding: 5rem 0; background: var(--surface); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: transform .2s, box-shadow .2s;
  border: 2px solid transparent;
}
.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--red);
}
.pricing-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1.25rem;
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.price-block { margin-bottom: 0.75rem; }
.price-old {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--red);
  text-decoration: line-through;
  margin-right: 0.4rem;
}
.price-new {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}
.price-single {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}
.pricing-card p {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 1.75rem;
  flex: 1;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials { padding: 5rem 0; background: var(--white); overflow: hidden; }

.scroll-outer {
  overflow: hidden;
  margin-bottom: 1.5rem;
  /* mask so edges fade */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  mask-image:         linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}
.scroll-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: slideLeft 35s linear infinite;
}
.scroll-track:hover { animation-play-state: paused; }

.photo-track { animation-duration: 65s; } /* slower than text */

@keyframes slideLeft {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Text testimonial card */
.t-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  width: 310px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.t-card .t-name  { font-weight: 700; color: var(--dark); margin-bottom: 0.25rem; font-size: 0.95rem; }
.t-card .t-stars { color: var(--orange); font-size: 0.8rem; margin-bottom: 0.75rem; letter-spacing: 1px; }
.t-card .t-text  { font-size: 0.875rem; color: var(--text); line-height: 1.65; }

/* Photo card */
.p-card {
  width: 200px;
  height: 200px;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.p-card img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   BOOK SECTION
   ============================================================ */
.book-section {
  padding: 6rem 0;
  background: linear-gradient(160deg, #111827 0%, #1f2937 100%);
  text-align: center;
  color: var(--white);
}
.book-section .section-title  { color: var(--white); margin-bottom: 0.75rem; }
.book-section .section-subtitle { color: #9CA3AF; margin-bottom: 2.5rem; }

/* ============================================================
   PAGE HEADER (About / Process pages)
   ============================================================ */
.page-header {
  padding: 8rem 0 4rem;
  background: linear-gradient(160deg, #111827 0%, #1f2937 100%);
  text-align: center;
  color: var(--white);
}
.page-header h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.page-header p { color: #9CA3AF; font-size: 1.1rem; max-width: 560px; margin: 0 auto; }

/* ============================================================
   ABOUT PAGE — Instructors
   ============================================================ */
.instructors { padding: 5rem 0; }

.instructor-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
}
.instructor-card:hover { box-shadow: var(--shadow-lg); }

.instructor-avatar {
  width: 220px;
  height: 220px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.instructor-avatar i { font-size: 5rem; color: var(--orange); }

.instructor-info h2 {
  font-family: var(--font-head);
  font-size: 1.75rem;
  color: var(--dark);
  margin-bottom: 0.4rem;
}
.instructor-badge {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-light);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.instructor-info p {
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 1.75rem;
  font-size: 1rem;
}
.instructor-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.btn-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 2px solid var(--border);
  color: var(--dark);
  padding: 0.65rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1rem;
  transition: border-color .2s, background .2s;
}
.btn-phone:hover { border-color: var(--orange); background: #fff7ed; }
.btn-phone i { color: var(--orange); }

/* Why choose us */
.why-us { padding: 5rem 0; background: var(--surface); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.why-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.why-card i { font-size: 2.25rem; color: var(--orange); margin-bottom: 1rem; }
.why-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; color: var(--dark); }
.why-card p  { font-size: 0.875rem; color: var(--text-light); line-height: 1.6; }

/* ============================================================
   PROCESS PAGE
   ============================================================ */
.process-steps { padding: 5rem 0; }

.step-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2.5rem;
  margin-bottom: 4rem;
  align-items: start;
}
.step-num {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow);
}
.step-body h2 {
  font-size: 1.6rem;
  color: var(--dark);
  margin-bottom: 1rem;
}
.step-body p { color: var(--text); line-height: 1.75; margin-bottom: 1rem; }
.step-body ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.step-body ul li { color: var(--text); margin-bottom: 0.4rem; line-height: 1.6; }
.step-body a { color: var(--red); font-weight: 500; }
.step-body a:hover { text-decoration: underline; }

.test-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}
.test-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.test-card h3 { font-size: 1.05rem; color: var(--dark); margin-bottom: 1rem; }
.test-card ul { list-style: disc; padding-left: 1.25rem; }
.test-card ul li { color: var(--text); font-size: 0.9rem; margin-bottom: 0.35rem; }

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-top: 1.5rem;
}
.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.process-cta {
  padding: 5rem 0;
  background: var(--surface);
  text-align: center;
}
.process-cta p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 2rem;
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-content { padding: 5rem 0; }
.legal-content .legal-inner { max-width: 780px; margin: 0 auto; }
.legal-content h2 { font-size: 1.4rem; color: var(--dark); margin: 2rem 0 0.75rem; }
.legal-content h3 { font-size: 1.1rem; color: var(--dark); margin: 1.5rem 0 0.5rem; }
.legal-content p  { color: var(--text); line-height: 1.75; margin-bottom: 1rem; }
.legal-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-content ul li { color: var(--text); line-height: 1.7; margin-bottom: 0.3rem; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--dark);
  color: #9CA3AF;
  padding: 4.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1.4fr 1.4fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 2rem;
}
.footer-logo { height: 68px; width: auto; margin-bottom: 1.25rem; }
.footer-brand .brand { font-size: 1.5rem; color: var(--white); display: block; margin-bottom: 0.5rem; }
.footer-brand p { font-size: 0.875rem; line-height: 1.65; }

.footer-col h4 {
  color: var(--white);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}
.footer-col h4 + h4 { margin-top: 1.75rem; }
.footer-col p { font-size: 0.875rem; margin-bottom: 0.85rem; line-height: 1.55; }
.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: #9CA3AF;
  transition: color .2s;
  margin-bottom: 0.5rem;
}
.footer-col a:hover { color: var(--orange); }
.footer-col .tel { font-size: 0.875rem; color: #D1D5DB; font-weight: 500; }

.footer-social { display: flex; gap: 0.75rem; margin-top: 0.5rem; }
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #9CA3AF;
  transition: background .2s, color .2s;
}
.social-btn:hover { background: var(--orange); color: var(--white); }

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: #6B7280;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-features   { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid    { grid-template-columns: repeat(2, 1fr); }
  .why-grid        { grid-template-columns: repeat(2, 1fr); }
  .footer-grid     { grid-template-columns: 1fr 1fr; }
  .footer-brand    { grid-column: span 2; }
}

@media (max-width: 768px) {
  /* Mobile nav */
  .nav-menu {
    position: fixed;
    top: 70px; left: 0; right: 0; bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1rem 0 2rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .3s ease;
    box-shadow: var(--shadow-lg);
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-menu li   { width: 100%; }
  .nav-link {
    display: block;
    padding: 0.875rem 1.75rem;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
    border-radius: 0;
  }
  .nav-link.btn-red {
    margin: 1rem 1.75rem 0;
    width: calc(100% - 3.5rem);
    text-align: center;
    border-bottom: none;
  }
  .hamburger { display: flex; }

  /* Instructor card */
  .instructor-card { grid-template-columns: 1fr; }
  .instructor-avatar { width: 100%; height: 180px; }

  /* Process */
  .step-item { grid-template-columns: 56px 1fr; gap: 1.25rem; }
  .step-num  { width: 56px; height: 56px; font-size: 1.5rem; }
  .test-grid { grid-template-columns: 1fr; }

  .footer-grid  { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }

  /* Faster text scroll on mobile */
  .scroll-track { animation-duration: 18s; }
  .photo-track  { animation-duration: 35s; }
}

@media (max-width: 480px) {
  .hero-features { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid  { grid-template-columns: 1fr; }
  .why-grid      { grid-template-columns: 1fr; }
}
