/* ===========================
   American Star Driving School
   Shared Stylesheet
   =========================== */

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

:root {
  --navy: #1a2744;
  --gold: #c8960c;
  --gold-light: #f0b429;
  --white: #ffffff;
  --light-bg: #f7f8fc;
  --text: #333333;
  --text-muted: #666666;
  --border: #e0e3ed;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

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

/* ---- NAV ---- */
header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-decoration: none;
}
.logo-top {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--gold-light);
  text-transform: uppercase;
}
.logo-bottom {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--white);
  text-transform: uppercase;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
}
nav a {
  text-decoration: none;
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
nav a:hover, nav a.active {
  background: rgba(255,255,255,0.12);
  color: var(--white);
}

/* hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: 0.3s;
}

/* ---- PAGE HERO ---- */
.page-hero {
  background: var(--navy);
  padding: 56px 24px;
  text-align: center;
}
.page-hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.04em;
}
.page-hero p {
  color: rgba(255,255,255,0.75);
  margin-top: 12px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
}

/* ---- HOME HERO ---- */
.home-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--navy);
}
.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 50, 0.62);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 24px;
  max-width: 700px;
}
.hero-content h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.hero-content p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  margin-top: 20px;
  line-height: 1.7;
}
.hero-cta {
  display: inline-block;
  margin-top: 32px;
  background: var(--gold);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 4px;
  font-size: 1rem;
  letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.1s;
}
.hero-cta:hover { background: #b07d00; transform: translateY(-1px); }

/* ---- SECTION ---- */
section { padding: 64px 24px; }
.container { max-width: 1100px; margin: 0 auto; }

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy);
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 40px;
  font-size: 1rem;
}
.divider {
  width: 52px;
  height: 3px;
  background: var(--gold);
  margin: 10px auto 32px;
  border-radius: 2px;
}

/* ---- SERVICE CARDS ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}
.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.card-body ul {
  list-style: none;
  flex: 1;
}
.card-body ul li {
  padding: 4px 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
}
.card-body ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}
.card-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  margin-top: 16px;
}
.btn {
  display: inline-block;
  margin-top: 16px;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  transition: background 0.2s;
}
.btn:hover { background: var(--gold); }
.btn-gold {
  background: var(--gold);
}
.btn-gold:hover { background: #b07d00; }

/* ---- INFO STRIP ---- */
.info-strip {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 52px 24px;
}
.info-strip h2 {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}
.info-items {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.info-item {
  text-align: center;
}
.info-item .icon {
  font-size: 2rem;
  margin-bottom: 8px;
}
.info-item h4 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 4px;
}
.info-item p, .info-item a {
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
}
.info-item a:hover { color: var(--gold-light); }

/* ---- ABOUT SNIPPET ---- */
.about-snippet {
  background: var(--light-bg);
}
.about-snippet .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-text h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
}
.about-text p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

/* ---- CONTACT PAGE ---- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-form-wrap h2, .contact-info-wrap h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}
.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-group input, .form-group textarea, .form-group select {
  border: 1.5px solid var(--border);
  border-radius: 5px;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-family: var(--font);
  transition: border-color 0.2s;
  background: var(--white);
  color: var(--text);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--gold);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.btn-submit {
  background: var(--gold);
  color: var(--white);
  border: none;
  cursor: pointer;
  padding: 12px 32px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background 0.2s;
  width: 100%;
}
.btn-submit:hover { background: #b07d00; }

.success-msg {
  display: none;
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
  border-radius: 6px;
  padding: 14px 18px;
  font-weight: 600;
  margin-top: 16px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}
.contact-detail .icon {
  font-size: 1.5rem;
  color: var(--gold);
  min-width: 32px;
  text-align: center;
}
.contact-detail h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.contact-detail p, .contact-detail a {
  color: var(--navy);
  font-weight: 500;
  text-decoration: none;
  font-size: 1rem;
}
.contact-detail a:hover { color: var(--gold); }

.hours-table { width: 100%; border-collapse: collapse; }
.hours-table tr td {
  padding: 6px 0;
  font-size: 0.95rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.hours-table tr td:last-child { text-align: right; font-weight: 600; color: var(--navy); }

/* ---- PERMIT PAGE ---- */
.permit-hero-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}
.docs-list {
  background: var(--light-bg);
  border-left: 4px solid var(--gold);
  border-radius: 0 6px 6px 0;
  padding: 24px 28px;
  margin: 24px 0;
}
.docs-list li {
  padding: 6px 0;
  font-size: 0.98rem;
  color: var(--text);
  list-style: none;
  padding-left: 22px;
  position: relative;
}
.docs-list li::before {
  content: '📄';
  position: absolute;
  left: 0;
  font-size: 0.85rem;
}
.teen-card {
  background: var(--navy);
  color: var(--white);
  border-radius: 12px;
  padding: 36px 40px;
  max-width: 600px;
  margin: 0 auto;
}
.teen-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold-light);
  margin-bottom: 20px;
}
.teen-card ul { list-style: none; }
.teen-card ul li {
  padding: 6px 0 6px 22px;
  position: relative;
  color: rgba(255,255,255,0.88);
  font-size: 0.95rem;
}
.teen-card ul li::before { content: '✓'; position: absolute; left: 0; color: var(--gold-light); font-weight: 700; }
.teen-card .price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold-light);
  margin-top: 24px;
}
.teen-card .btn {
  background: var(--gold);
  margin-top: 16px;
  display: block;
  text-align: center;
}

/* ---- ABOUT PAGE ---- */
.about-full { background: var(--light-bg); }
.about-box {
  background: var(--white);
  border-radius: 12px;
  padding: 48px 56px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  max-width: 800px;
  margin: 0 auto;
}
.about-box h2 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 16px;
}
.about-box p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 20px;
}

/* ---- DMV PRICING TABLE ---- */
.dmv-section { background: var(--light-bg); }
.dmv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.dmv-card {
  background: var(--white);
  border-radius: 8px;
  padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border-top: 4px solid var(--gold);
}
.dmv-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
}
.dmv-card p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.dmv-note {
  text-align: center;
  font-style: italic;
  color: var(--text-muted);
  margin-top: 24px;
  font-size: 0.93rem;
}

/* ---- FOOTER ---- */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 48px 24px 28px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.footer-col p, .footer-col a {
  font-size: 0.92rem;
  line-height: 1.9;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  display: block;
}
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  max-width: 1100px;
  margin: 0 auto;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  nav ul { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--navy); padding: 12px 0; }
  nav ul.open { display: flex; }
  nav a { padding: 12px 24px; border-radius: 0; }
  .menu-toggle { display: flex; }

  .about-snippet .container { grid-template-columns: 1fr; gap: 32px; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .info-items { gap: 28px; }
  .about-box { padding: 32px 24px; }
  .teen-card { padding: 28px 24px; }
}
