/* =========================================================
   My Driving Trainer — Stylesheet
   Aesthetic: confident, modern, trustworthy
   Palette: deep navy, warm cream, signal yellow accent
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  --navy: #0d2c54;
  --navy-deep: #081b35;
  --navy-soft: #1e4380;
  --cream: #faf6f0;
  --cream-warm: #f3ecde;
  --yellow: #f5c518;
  --yellow-soft: #fde68a;
  --text: #1a1a1a;
  --text-muted: #5c5c5c;
  --line: #e3ddd0;
  --success: #15803d;
  --shadow-soft: 0 4px 20px rgba(13, 44, 84, 0.08);
  --shadow-strong: 0 12px 40px rgba(13, 44, 84, 0.15);
  --display: 'Fraunces', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ========== NAV ========== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

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

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

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  font-size: 15px;
  color: var(--navy);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}

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

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--yellow);
  border-radius: 2px;
}

.nav-cta {
  background: var(--yellow);
  color: var(--navy);
  padding: 12px 22px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(245, 197, 24, 0.3);
}

.nav-cta:hover {
  background: #e6b610;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 197, 24, 0.45);
  color: var(--navy);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  color: var(--navy);
}

.nav-toggle svg { width: 28px; height: 28px; }

/* ========== HERO ========== */
.hero {
  padding: 80px 0 100px;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow);
  color: var(--navy);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 24px;
}

.hero-eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--navy);
  border-radius: 50%;
}

h1.hero-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  line-height: 1.05;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

h1.hero-title em {
  font-style: italic;
  color: var(--navy-soft);
  font-weight: 400;
}

.hero-sub {
  font-size: 19px;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 520px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
  cursor: pointer;
  border: 0;
  font-family: var(--sans);
}

.btn-primary {
  background: var(--navy);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-secondary:hover {
  background: var(--navy);
  color: var(--cream);
}

.btn-yellow {
  background: var(--yellow);
  color: var(--navy);
}
.btn-yellow:hover {
  background: #e6b610;
  transform: translateY(-2px);
}

/* Hero visual: stacked cards on right */
.hero-visual {
  position: relative;
  height: 460px;
}

.hero-card {
  position: absolute;
  background: white;
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-strong);
  border: 1px solid var(--line);
}

.hero-card-1 {
  top: 0;
  left: 0;
  width: 260px;
  transform: rotate(-3deg);
  z-index: 1;
}

.hero-card-2 {
  top: 60px;
  right: 0;
  width: 280px;
  transform: rotate(2deg);
  z-index: 3;
  background: var(--navy);
  color: var(--cream);
}

.hero-card-3 {
  bottom: 0;
  left: 60px;
  width: 270px;
  transform: rotate(-1deg);
  z-index: 2;
  background: var(--yellow);
}

.hero-card .card-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: 0.7;
}

.hero-card .card-big {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 8px;
}

.hero-card .card-small {
  font-size: 14px;
  opacity: 0.85;
}

.hero-card-2 .card-label { color: var(--yellow); opacity: 1; }

/* Decorative blob */
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 197, 24, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
}

/* ========== SECTIONS ========== */
section { padding: 80px 0; }

.section-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--navy-soft);
  margin-bottom: 16px;
}

h2.section-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  max-width: 720px;
}

.section-lead {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 56px;
}

/* ========== FEATURE GRID ========== */
.features {
  background: white;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.feature {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--cream);
  transition: all 0.3s;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: var(--navy-soft);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--navy);
  color: var(--yellow);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}

.feature h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}

.feature p {
  color: var(--text-muted);
  font-size: 15px;
}

/* ========== PRICING ========== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.price-card {
  background: white;
  border: 2px solid var(--line);
  border-radius: 24px;
  padding: 40px 32px;
  position: relative;
  transition: all 0.3s;
}

.price-card:hover {
  border-color: var(--navy);
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.price-card.featured {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}

.price-card.featured .price-name,
.price-card.featured .price-amount,
.price-card.featured .price-features li { color: var(--cream); }

.price-card.featured .price-feature-check { color: var(--yellow); }

.price-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--yellow);
  color: var(--navy);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

.price-name {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.price-tag {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.price-card:not(.featured) .price-tag { border-bottom-color: var(--line); }

.price-amount {
  font-family: var(--display);
  font-size: 56px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1;
}

.price-unit {
  font-size: 16px;
  color: var(--text-muted);
}

.price-card.featured .price-unit { color: var(--yellow-soft); }

.price-features {
  list-style: none;
  margin-bottom: 32px;
}

.price-features li {
  display: flex;
  align-items: start;
  gap: 12px;
  padding: 8px 0;
  font-size: 15px;
  color: var(--text);
}

.price-feature-check {
  color: var(--success);
  flex-shrink: 0;
  margin-top: 3px;
}

/* ========== ARTICLES GRID ========== */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.article-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: all 0.3s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}

.article-image {
  height: 200px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow);
  font-size: 60px;
}

.article-image.alt-1 {
  background: linear-gradient(135deg, #d97706 0%, #f5c518 100%);
  color: var(--navy);
}
.article-image.alt-2 {
  background: linear-gradient(135deg, #15803d 0%, #22c55e 100%);
  color: var(--cream);
}
.article-image.alt-3 {
  background: linear-gradient(135deg, #7f1d1d 0%, #b91c1c 100%);
  color: var(--cream);
}
.article-image.alt-4 {
  background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
  color: var(--cream);
}

.article-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-meta {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy-soft);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.article-title {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 12px;
}

.article-excerpt {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 20px;
  flex: 1;
}

.article-read {
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ========== CTA BANNER ========== */
.cta-banner {
  background: var(--navy);
  color: var(--cream);
  border-radius: 28px;
  padding: 64px 48px;
  text-align: center;
  margin: 60px auto;
  max-width: 1240px;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(245, 197, 24, 0.15), transparent 70%);
  border-radius: 50%;
}

.cta-banner h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  margin-bottom: 16px;
  position: relative;
}

.cta-banner p {
  font-size: 18px;
  opacity: 0.85;
  margin-bottom: 32px;
  position: relative;
}

/* ========== FOOTER ========== */
footer {
  background: var(--navy-deep);
  color: var(--cream);
  padding: 64px 0 32px;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo { margin-bottom: 20px; }
.footer-logo img {
  height: 56px;
  background: var(--cream);
  padding: 12px 20px;
  border-radius: 100px;
  display: block;
}

.footer-tag {
  color: var(--cream);
  opacity: 0.7;
  font-size: 15px;
  max-width: 300px;
}

.footer-col h4 {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  color: var(--yellow);
  margin-bottom: 18px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: var(--cream);
  opacity: 0.8;
  font-size: 14px;
  transition: opacity 0.2s;
}
.footer-col a:hover { opacity: 1; color: var(--yellow); }

.footer-bottom {
  border-top: 1px solid rgba(250, 246, 240, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  opacity: 0.6;
}

/* ========== INNER PAGE HEADER ========== */
.page-header {
  padding: 80px 0 60px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.page-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.page-header h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.page-header p {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* ========== ABOUT / SERVICES CONTENT ========== */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.content-grid h2 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 20px;
  line-height: 1.15;
}

.content-grid p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 16px;
}

.content-image {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  border-radius: 24px;
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 120px;
  color: var(--yellow);
  position: relative;
  overflow: hidden;
}

.content-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(245, 197, 24, 0.2) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(245, 197, 24, 0.1) 0%, transparent 40%);
}

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
}

.contact-info-card {
  background: var(--navy);
  color: var(--cream);
  border-radius: 24px;
  padding: 40px;
}

.contact-info-card h3 {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: start;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--yellow);
  color: var(--navy);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 4px;
}

.contact-value {
  font-size: 16px;
  color: var(--cream);
  word-break: break-word;
}

.contact-form {
  background: white;
  border-radius: 24px;
  padding: 40px;
  border: 1px solid var(--line);
}

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--line);
  border-radius: 12px;
  font-family: var(--sans);
  font-size: 15px;
  background: var(--cream);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 0;
  border-color: var(--navy);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* ========== ARTICLE SINGLE ========== */
.article-single {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px;
}

.article-single .article-meta {
  margin-bottom: 16px;
}

.article-single h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.article-single .lead {
  font-size: 20px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.5;
}

.article-single h2 {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 600;
  color: var(--navy);
  margin: 40px 0 16px;
}

.article-single p {
  font-size: 17px;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.7;
}

.article-single ul {
  margin-bottom: 20px;
  padding-left: 24px;
}

.article-single li {
  font-size: 17px;
  margin-bottom: 8px;
  line-height: 1.7;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 32px;
}

/* ========== MOBILE ========== */
@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }

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

  .hero-visual { height: 360px; }
  .hero-card-1 { width: 200px; }
  .hero-card-2 { width: 220px; }
  .hero-card-3 { width: 210px; }

  .feature-grid,
  .pricing-grid,
  .article-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  section { padding: 60px 0; }
  .cta-banner { padding: 48px 24px; margin: 40px 16px; }
  .content-image { height: 300px; font-size: 80px; }
}
