/* ============================================================
   AutoGo Driving School — stylesheet
   Mobile-first, no framework
   ============================================================ */

/* Google Fonts loaded via <link> in HTML for non-blocking performance */

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

:root {
  --green:   #2d7a27;
  --green-dark: #235f1e;
  --black:   #1a1a1a;
  --white:   #ffffff;
  --grey-bg: #f5f5f5;
  --grey-mid: #e0e0e0;
  --grey-text: #555555;
  --radius:  8px;
  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

img {
  max-width: 100%;
  display: block;
}

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

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.2;
}

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-label {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 10px;
}

.section-heading {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.section-subheading {
  font-size: 1rem;
  color: var(--grey-text);
  max-width: 560px;
  margin-bottom: 48px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  border: 2px solid transparent;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--black);
}

/* ---------- Navigation ---------- */
#navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--grey-mid);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo img {
  height: 48px;
  width: auto;
}

.nav-links {
  display: none;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--black);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--green);
}

.nav-cta {
  display: none;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.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);
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--grey-mid);
  padding: 20px;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav a {
  display: block;
  padding: 14px 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--black);
  border-bottom: 1px solid var(--grey-mid);
  transition: color var(--transition);
}

.mobile-nav a:hover {
  color: var(--green);
}

.mobile-nav .mobile-cta {
  margin-top: 20px;
  display: block;
  text-align: center;
}

/* ---------- Hero ---------- */
#hero {
  background: var(--black);
  color: var(--white);
  padding: 48px 0 44px;
  position: relative;
  overflow: hidden;
}

/* Subtle green accent strip */
#hero::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: var(--green);
}

.hero-content {
  max-width: 680px;
}

.hero-eyebrow {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 24px;
}

.hero-headline {
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--white);
}

.hero-headline span {
  color: var(--green);
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,0.75);
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- About ---------- */
#about {
  padding: 48px 0;
  background: var(--white);
}

/* ---------- Instructor ---------- */
#instructor {
  padding: 48px 0;
  background: var(--grey-bg);
}

.instructor-card {
  background: var(--white);
  border-radius: var(--radius);
  border-top: 3px solid var(--green);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  overflow: hidden;
}

.instructor-card-image img {
  width: 100%;
  height: auto;
  display: block;
}

.instructor-card-body {
  padding: 32px 28px 36px;
}

.instructor-card-body h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 56px;
}

.about-card {
  background: var(--grey-bg);
  border-radius: var(--radius);
  padding: 32px 28px;
  border-left: 4px solid var(--green);
}

.about-icon {
  display: block;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  color: var(--green);
}

.about-icon svg {
  width: 40px;
  height: 40px;
  stroke-width: 1.5;
}

.about-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.about-card p {
  font-size: 0.92rem;
  color: var(--grey-text);
  line-height: 1.65;
}


/* Photo placeholder */
.photo-placeholder {
  background: var(--grey-mid);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 20px;
}

.photo-placeholder-instructor {
  height: 220px;
  margin-bottom: 20px;
}

.adi-badge {
  margin-top: 20px;
  font-size: 0.8rem;
  color: #888;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bio-checklist {
  list-style: none;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bio-checklist li {
  font-size: 0.95rem;
  color: var(--grey-text);
  padding-left: 24px;
  position: relative;
}

.bio-checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-color: var(--green);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 10px 10px;
  background-repeat: no-repeat;
  background-position: center;
}

.placeholder-note {
  display: inline-block;
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffc107;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  margin-bottom: 10px;
}

/* ---------- Services ---------- */
#services {
  padding: 48px 0;
  background: var(--grey-bg);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  border-top: 3px solid var(--green);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: box-shadow var(--transition), transform var(--transition);
}

.service-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.service-icon {
  display: block;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  color: var(--green);
}

.service-icon svg {
  width: 36px;
  height: 36px;
  stroke-width: 1.5;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--grey-text);
  line-height: 1.6;
}

/* ---------- Pricing ---------- */
#pricing {
  padding: 48px 0;
  background: var(--white);
}

.pricing-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.pricing-highlight {
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
}

.pricing-highlight .price-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.85;
  margin-bottom: 8px;
}

.pricing-highlight .price-amount {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 3.6rem;
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-highlight .price-desc {
  font-size: 0.95rem;
  opacity: 0.88;
  margin-bottom: 24px;
}

.pricing-highlight hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.3);
  margin-bottom: 20px;
}

.pricing-highlight ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-highlight ul li {
  font-size: 0.92rem;
  opacity: 0.92;
  padding-left: 20px;
  position: relative;
}

.pricing-highlight ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  font-weight: 700;
}

.pricing-notes {
  max-width: 560px;
}

.pricing-notes p {
  font-size: 0.95rem;
  color: var(--grey-text);
  margin-bottom: 12px;
  padding-left: 16px;
  border-left: 3px solid var(--green);
}

.pricing-notes .book-note {
  background: var(--grey-bg);
  border-left: none;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 24px;
}

.pricing-notes .book-note strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.pricing-notes .book-note p {
  border-left: none;
  padding-left: 0;
  font-size: 0.9rem;
  margin: 0;
}

/* ---------- Testimonials (stubbed, hidden) ---------- */
/* Uncomment #testimonials section in index.html when testimonials are available */
#testimonials {
  padding: 48px 0;
  background: var(--grey-bg);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.testimonial-stars {
  color: #f5a623;
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.testimonial-card blockquote {
  font-size: 0.95rem;
  color: var(--grey-text);
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
}

.testimonial-card cite {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--green);
}

.testimonials-more {
  text-align: center;
  margin-top: 36px;
}

.testimonials-more a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.testimonials-more a:hover {
  color: var(--green-dark);
}

/* ---------- Contact ---------- */
#contact {
  padding: 48px 0;
  background: var(--black);
  color: var(--white);
}

#contact .section-heading {
  color: var(--white);
}

#contact .section-subheading {
  color: rgba(255,255,255,0.65);
}

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

.contact-info h3 {
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
  color: var(--white);
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-detail-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  color: var(--green);
}

.contact-detail-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.75;
}

.contact-detail-body strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 3px;
}

.contact-detail-body span {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
}

.contact-detail-body a {
  color: rgba(255,255,255,0.8);
  transition: color var(--transition);
}

.contact-detail-body a:hover {
  color: var(--white);
}

.contact-areas {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.contact-areas h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 10px;
}

.contact-areas p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}

/* Contact form */
.contact-form-wrapper h3 {
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  color: var(--white);
}

.form-note {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 7px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 13px 16px;
  color: var(--white);
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  transition: border-color var(--transition), background var(--transition);
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.3);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  background: rgba(255,255,255,0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-submit {
  width: 100%;
  border: none;
  padding: 15px;
  font-size: 0.95rem;
  margin-top: 6px;
}

/* ---------- Footer ---------- */
#footer {
  background: #111;
  color: rgba(255,255,255,0.6);
  padding: 40px 0 28px;
  border-top: 3px solid var(--green);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-logo img {
  height: 52px;
  width: 52px;
  margin: 0 auto;
  border-radius: 50%;
  object-fit: cover;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.footer-links a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-copy {
  font-size: 0.82rem;
}

.footer-credit {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

.footer-credit a {
  color: rgba(255,255,255,0.45);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.footer-credit a:hover {
  color: rgba(255,255,255,0.8);
}

/* ---------- Thank-you page ---------- */
.thankyou-page {
  min-height: 100vh;
  background: var(--black);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.thankyou-page .checkmark {
  font-size: 3.5rem;
  margin-bottom: 24px;
}

.thankyou-page h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 16px;
}

.thankyou-page h1 span {
  color: var(--green);
}

.thankyou-page p {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.65;
}

/* ============================================================
   RESPONSIVE — tablet (≥600px)
   ============================================================ */
@media (min-width: 600px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-grid .about-card:last-child {
    grid-column: span 2;
    max-width: 50%;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   RESPONSIVE — desktop (≥900px)
   ============================================================ */
@media (min-width: 900px) {
  /* Section spacing */
  #hero { padding: 80px 0 70px; }
  #about, #instructor, #services, #pricing, #testimonials, #contact, #footer {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  /* Nav */
  .hamburger { display: none; }
  .mobile-nav { display: none !important; }
  .nav-links { display: flex; }
  .nav-cta { display: inline-block; }

  /* About */
  .about-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .about-grid .about-card:last-child {
    grid-column: span 1;
    max-width: 100%;
  }

  /* Instructor card — side by side on desktop */
  .instructor-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .instructor-card-image {
    height: 100%;
  }

  .instructor-card-image img {
    height: 100%;
    object-fit: cover;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  /* Pricing */
  .pricing-wrapper {
    flex-direction: row;
    align-items: flex-start;
    gap: 48px;
  }

  .pricing-highlight {
    flex-shrink: 0;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Footer */
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
