/* Local Driving School, shared styles */

:root {
  --blue-900: #0b2545;
  --blue-800: #123a6b;
  --blue-700: #1a4d8f;
  --blue-600: #2563b0;
  --gold-500: #e0a72e;
  --gold-600: #c2891a;
  --gray-900: #1c1f24;
  --gray-700: #454b54;
  --gray-500: #737a85;
  --gray-200: #e4e7eb;
  --gray-100: #f4f6f8;
  --white: #ffffff;

  --radius: 10px;
  --shadow: 0 6px 24px rgba(11, 37, 69, 0.12);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

.demo-banner {
  background: #14181d;
  color: #e6edf0;
  font-size: 0.85rem;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  text-align: center;
}
.demo-banner a {
  color: #4dd6ea;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.demo-banner a:hover { text-decoration: underline; }
html.framed .demo-banner { display: none; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.55;
}

h1, h2, h3, h4 {
  font-family: inherit;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--blue-900);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--gray-700); }

a {
  color: var(--blue-700);
  text-decoration: none;
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--gold-500);
  color: var(--blue-900);
}

.btn-primary:hover {
  background: var(--gold-600);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(224, 167, 46, 0.35);
}

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

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

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

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

/* Header / Nav */

.site-header {
  background: var(--blue-900);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--white);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.2px;
}

.brand .brand-accent { color: var(--gold-500); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-500);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-phone {
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blue-900);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .nav-links.open {
    max-height: 420px;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 14px 24px;
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .nav-phone { display: none; }

  .nav-toggle { display: flex; }

  .nav-bar { position: relative; flex-wrap: wrap; }
}

/* Hero */

.hero {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  color: var(--white);
  padding: 88px 0 96px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

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

.hero p.lead {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-badges {
  display: flex;
  gap: 24px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--white);
}

.hero-badge .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold-500);
  flex: none;
}

.hero-card {
  background: var(--white);
  color: var(--gray-900);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.hero-card h3 { margin-bottom: 4px; }
.hero-card .price { font-size: 2.2rem; font-weight: 800; color: var(--blue-800); }
.hero-card .price span { font-size: 1rem; font-weight: 600; color: var(--gray-500); }

.hero-card ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.hero-card li {
  padding: 8px 0;
  border-top: 1px solid var(--gray-200);
  font-size: 0.95rem;
  color: var(--gray-700);
}

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
}

/* Sections */

.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--gray-100);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  color: var(--gold-600);
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

/* Grids / Cards */

.grid {
  display: grid;
  gap: 28px;
}

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

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
  height: 100%;
}

.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(224, 167, 46, 0.15);
  color: var(--gold-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

/* About / instructor */

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.about-grid img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-photo-placeholder {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-600));
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about-photo-placeholder .emoji { font-size: 2.4rem; }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* Testimonials */

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold-500);
}

.testimonial-card p.quote {
  font-style: italic;
  color: var(--gray-900);
}

.testimonial-card .author {
  font-weight: 700;
  color: var(--blue-800);
  margin: 0;
}

.testimonial-card .role {
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* Pricing table */

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.pricing-table th, .pricing-table td {
  padding: 18px 22px;
  text-align: left;
}

.pricing-table thead {
  background: var(--blue-900);
  color: var(--white);
}

.pricing-table tbody tr:nth-child(even) {
  background: var(--gray-100);
}

.pricing-table td.price {
  font-weight: 800;
  color: var(--blue-800);
  font-size: 1.1rem;
}

.policy-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 14px;
}

.policy-list li {
  display: flex;
  gap: 12px;
  color: var(--gray-700);
}

.policy-list li::before {
  content: "✓";
  color: var(--gold-500);
  font-weight: 800;
  flex: none;
}

/* FAQ */

.faq-list details {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 12px;
  padding: 16px 20px;
}

.faq-list summary {
  font-weight: 700;
  cursor: pointer;
  color: var(--blue-900);
}

.faq-list details p {
  margin: 12px 0 0;
}

/* CTA band */

.cta-band {
  background: linear-gradient(135deg, var(--gold-600), var(--gold-500));
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}

.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.9); }

/* Footer */

.site-footer {
  background: var(--blue-900);
  color: rgba(255,255,255,0.75);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 32px;
}

.site-footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 14px;
}

.site-footer .brand { margin-bottom: 14px; }

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.site-footer a {
  color: rgba(255,255,255,0.75);
}

.site-footer a:hover { color: var(--gold-500); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  font-size: 0.85rem;
  text-align: center;
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Page header (interior pages) */

.page-hero {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}

.page-hero h1 { color: var(--white); margin-bottom: 8px; }
.page-hero p { color: rgba(255,255,255,0.85); margin: 0; }

/* Contact page */

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 860px) {
  .contact-wrap { grid-template-columns: 1fr; }
}

.form-field {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-field label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gray-900);
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
}

.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.contact-info-item .icon {
  margin-bottom: 0;
  flex: none;
}

.form-status { font-weight: 700; margin-top: 12px; }
.form-status.success { color: var(--blue-700); }
.form-status.error { color: #b3261e; }
