/* =========================================================
   CHAUDHARY DRIVING SCHOOL - COMPLETE STYLESHEET
   ========================================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --yellow: #ffd21a;
  --black: #101419;
  --text: #17202a;
  --muted: #66717d;
  --soft: #f5f6f7;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.container {
  width: min(1180px, 92%);
  margin: auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 20px 0;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.brand {
  display: flex;
  align-items: center;
  color: #fff;
  gap: 10px;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 47px;
  height: 47px;
  border: 5px solid var(--yellow);
  border-radius: 50%;
  font-size: 23px;
  color: var(--yellow);
}

.brand strong,
.brand b,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong {
  font-size: 20px;
}

.brand b {
  color: var(--yellow);
  font-size: 15px;
}

.brand small {
  font-size: 13px;
  margin-top: 3px;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(12, 17, 22, 0.78);
  backdrop-filter: blur(12px);
  padding: 7px;
  border-radius: 13px;
}

.nav a {
  color: #fff;
  padding: 10px 13px;
  font-size: 13px;
  border-radius: 9px;
}

.nav a:hover,
.nav a.active {
  background: var(--yellow);
  color: #111;
}

.nav .nav-cta {
  background: var(--yellow);
  color: #111;
  font-weight: 800;
  margin-left: 5px;
}

.menu-btn {
  display: none;
  background: var(--yellow);
  border: 0;
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 20px;
  cursor: pointer;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
  min-height: 650px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;

  background-image: url("./hero-background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;

  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.82) 0%,
      rgba(0, 0, 0, 0.60) 35%,
      rgba(0, 0, 0, 0.18) 70%,
      rgba(0, 0, 0, 0.05) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding-top: 55px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 800;
  color: var(--yellow);
  margin-bottom: 12px;
}

.eyebrow.dark {
  color: #111;
}

.hero h1 {
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -3px;
}

.hero h1 span {
  color: var(--yellow);
}

.hero-text {
  max-width: 550px;
  color: #e0e4e8;
  margin: 20px 0 28px;
  font-size: 17px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 9px;
  padding: 14px 22px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-yellow {
  background: var(--yellow);
  color: #111;
}

.btn-outline {
  border-color: #fff;
  color: #fff;
  background: transparent;
}

.script {
  font-family: Pacifico, cursive;
  font-size: 25px;
  line-height: 1.2;
  transform: rotate(-4deg);
  position: absolute;
  right: -10px;
  bottom: 0;
  color: #fff;
}

.script span {
  color: var(--yellow);
}


/* =========================================================
   QUICK INFO
   ========================================================= */

.quick-info {
  margin-top: -45px;
  position: relative;
  z-index: 5;
}

.info-grid {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.12);

  display: grid;
  grid-template-columns: repeat(5, 1fr);

  padding: 22px;
}

.info-grid > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  text-align: left;

  border-right: 1px solid #ddd;

  font-size: 13px;
}

.info-grid > div:last-child {
  border-right: 0;
}

.info-icon {
  font-size: 29px;
}


/* =========================================================
   SECTIONS
   ========================================================= */

.section {
  padding: 100px 0;
}

.soft {
  background: var(--soft);
}

h2 {
  font-size: clamp(30px, 4vw, 45px);
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 18px;
}


/* =========================================================
   ABOUT
   ========================================================= */

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 70px;
  align-items: center;
}

.section-copy > p {
  color: var(--muted);
  max-width: 650px;
  margin-bottom: 14px;
}

.details-card {
  background: #f3f5f6;
  border-radius: 15px;
  padding: 20px;
  margin: 25px 0;
}

.details-card p {
  margin: 8px 0;
  font-size: 14px;
}

.details-card a {
  font-weight: 700;
}

.details-card a:hover {
  color: #b08e00;
}


/* =========================================================
   INSTRUCTOR
   ========================================================= */

.instructor-card {
  background: #111820;
  color: #fff;
  border-radius: 24px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.instructor-photo {
  height: 370px;
  display: grid;
  place-items: center;
  position: relative;
  background: linear-gradient(145deg, #dfe5e8, #69747b);
}
.instructor-image {
  width: 100%;
  height: 370px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.photo-placeholder {
  width: 170px;
  height: 210px;
  border-radius: 85px 85px 35px 35px;
  background: #202a31;
  color: #fff;

  display: grid;
  place-items: center;

  font-weight: 800;
  letter-spacing: 2px;
  font-size: 22px;

  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.25);
}

.photo-placeholder small {
  font-size: 12px;
}

.instructor-photo > span {
  position: absolute;
  right: 18px;
  top: 20px;

  background: #fff;
  color: #111;

  padding: 7px 12px;

  font-weight: 800;
  font-size: 11px;
}

.quote {
  font-family: Pacifico, cursive;
  font-size: 25px;
  padding: 22px 20px 8px;
  color: #fff;
}

.instructor-card > small {
  padding-bottom: 25px;
  display: block;
  color: #bbb;
}


/* =========================================================
   SECTION HEADINGS
   ========================================================= */

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 35px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.simple p:last-child {
  color: var(--muted);
  max-width: 380px;
}


/* =========================================================
   TIMING
   ========================================================= */

.timing-box {
  background: #fff3bd;
  padding: 16px 22px;
  border-radius: 14px;

  display: flex;
  gap: 14px;

  min-width: 220px;
}

.timing-box > span {
  font-size: 30px;
}

.timing-box small {
  font-weight: 700;
}


/* =========================================================
   COURSES
   ========================================================= */

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.course-card {
  background: #fff;
  padding: 28px;
  border: 1px solid #e4e6e8;
  border-radius: 18px;
  position: relative;
}

.course-card.featured {
  border: 2px solid var(--yellow);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.popular {
  position: absolute;
  right: 15px;
  top: 15px;

  font-size: 9px;
  font-weight: 900;

  background: var(--yellow);
  padding: 5px 8px;
  border-radius: 5px;
}

.card-icon {
  font-size: 34px;
  margin-bottom: 13px;
}

.course-card h3 {
  font-size: 20px;
}

.course-card p {
  color: var(--muted);
  margin: 5px 0 20px;
}

.text-link {
  font-weight: 800;
}

.text-link:hover {
  color: #b28c00;
}


/* =========================================================
   CARS & FEES
   ========================================================= */

/* EXACTLY 3 COLUMNS */
.cars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  align-items: stretch;
}

/* Each card */
.car-card {
  width: 100%;
  min-width: 0;

  text-align: center;

  border: 1px solid #e5e7e9;
  border-radius: 18px;

  padding: 12px 18px 24px;

  background: #fff;

  overflow: hidden;
}


/* Car image area */
.car-visual {
  width: 100%;
  height: 190px;

  border-radius: 12px;

  margin-bottom: 18px;

  background: linear-gradient(
    150deg,
    #f5f6f7,
    #dce1e4
  );

  position: relative;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
}


/* Car image */
.car-visual img {
  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: center;

  display: block;

  position: relative;
  z-index: 1;
}


/* Category badge */
.car-visual span {
  position: absolute;

  z-index: 5;

  top: 12px;
  left: 12px;

  background: #111820;
  color: #fff;

  font-size: 9px;
  font-weight: 900;

  padding: 5px 8px;

  border-radius: 5px;
}


/* Car title */
.car-card h3 {
  font-size: 20px;
  margin-bottom: 3px;
}

.car-card p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 0;
}


/* Price */
.price {
  display: inline-block;

  background: var(--yellow);

  padding: 7px 17px;

  border-radius: 8px;

  font-size: 21px;
  font-weight: 900;

  margin: 15px 0;
}


/* Book button */
.small {
  width: 100%;

  padding: 10px 16px;

  font-size: 13px;

  display: flex;
}


/* =========================================================
   DARK BANNER
   ========================================================= */

.dark-banner {
  background: #10161d;
  color: #fff;

  padding: 80px 0;

  position: relative;
  overflow: hidden;
}

.dark-banner::after {
  content: "";

  position: absolute;

  width: 450px;
  height: 450px;

  border: 1px solid rgba(255, 210, 26, 0.15);

  border-radius: 50%;

  right: -100px;
  top: -160px;
}

.banner-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;

  position: relative;
  z-index: 2;
}

.banner-inner h2 {
  font-size: 45px;
}

.banner-inner p:last-child {
  color: #aeb7be;
}


/* =========================================================
   CONTACT
   ========================================================= */

.contact-section {
  background: #fafafa;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 70px;
}

.contact-actions {
  display: flex;
  gap: 12px;
  margin: 25px 0;
}

.action-card {
  display: flex;
  align-items: center;
  gap: 12px;

  background: #fff;

  border: 1px solid #e2e5e7;

  padding: 14px;

  border-radius: 12px;

  flex: 1;
}

.action-card span {
  font-size: 25px;
}

.action-card strong,
.action-card small {
  display: block;
}

.action-card small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}

.address-box {
  padding: 20px;

  background: #fff;

  border-left: 4px solid var(--yellow);

  border-radius: 8px;
}

.address-box p {
  color: var(--muted);
  margin: 5px 0;
}

.address-box a {
  font-weight: 800;
  font-size: 13px;
}


/* =========================================================
   CONTACT FORM
   ========================================================= */

.contact-form {
  background: #fff;

  border: 1px solid #e4e6e8;

  padding: 30px;

  border-radius: 20px;

  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.06);
}

.contact-form h3 {
  font-size: 25px;
  margin-bottom: 20px;
}

.contact-form label {
  font-size: 12px;
  font-weight: 800;

  display: block;

  margin: 12px 0;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  display: block;

  width: 100%;

  border: 1px solid #dfe2e5;

  border-radius: 9px;

  padding: 13px;

  margin-top: 6px;

  font: inherit;

  outline: 0;
}

.contact-form textarea {
  min-height: 105px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #e5ba00;
}

.full {
  width: 100%;
}

.form-note {
  font-size: 11px;
  color: #7a838b;
  margin-top: 12px;
  text-align: center;
}

.form-status {
  font-size: 13px;
  font-weight: 700;
  margin-top: 10px;
  text-align: center;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
  background: #0e1318;
  color: #fff;
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner strong,
.footer-inner span {
  display: block;
}

.footer-inner > p {
  color: #8d969e;
  font-size: 12px;
}


/* =========================================================
   FLOATING CALL
   ========================================================= */

.floating-call {
  display: none;

  position: fixed;

  right: 18px;
  bottom: 18px;

  width: 54px;
  height: 54px;

  background: var(--yellow);
  color: #111;

  border-radius: 50%;

  place-items: center;

  font-size: 23px;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);

  z-index: 50;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

  .nav {
    position: absolute;

    right: 4%;
    top: 75px;

    display: none;

    flex-direction: column;

    width: 220px;

    padding: 10px;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    width: 100%;
  }

  .menu-btn {
    display: block;
  }


  .info-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .info-grid > div {
    border-right: 0;
  }


  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }


  .course-grid {
    grid-template-columns: repeat(2, 1fr);
  }


  .cars-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }


  .script {
    display: none;
  }


  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

  .header {
    padding: 12px 0;
  }

  .brand-icon {
    width: 40px;
    height: 40px;
  }

  .brand strong {
    font-size: 16px;
  }

  .brand b {
    font-size: 12px;
  }

  .brand small {
    font-size: 10px;
  }


  .hero {
    min-height: 680px;

    background-position: 65% center;
  }

  .hero-overlay {
    background:
      linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.88),
        rgba(0, 0, 0, 0.55)
      );
  }

  .hero h1 {
    font-size: 45px;
    letter-spacing: -2px;
  }

  .hero-text {
    font-size: 14px;
  }


  .quick-info {
    margin-top: -25px;
  }

  .info-grid {
    grid-template-columns: 1fr;
    padding: 15px;
  }

  .info-grid > div {
    justify-content: flex-start;

    border-bottom: 1px solid #eee;

    padding: 8px;
  }


  .section {
    padding: 70px 0;
  }


  .course-grid,
  .cars-grid {
    grid-template-columns: 1fr;
  }


  .instructor-photo {
    height: 300px;
  }


  .contact-actions {
    flex-direction: column;
  }


  .banner-inner {
    flex-direction: column;

    align-items: flex-start;

    gap: 25px;
  }

  .banner-inner h2 {
    font-size: 35px;
  }


  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }


  .floating-call {
    display: grid;
  }
}