/* =====================================================================
   Driving school — three switchable design styles
   data-theme="drivin" : white + dark sections + yellow accent (professional)
   data-theme="dreams" : white + deep navy (corporate, trustworthy)
   data-theme="bold"   : loud yellow + navy (pricing-first, punchy)
   ===================================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

:root {
  --font-head: 'Work Sans', 'Segoe UI', sans-serif;
  --font-body: 'Work Sans', 'Segoe UI', sans-serif;
}

/* ---------- theme palettes ---------- */
html[data-theme="drivin"] {
  --bg: #ffffff;
  --bg-alt: #f7f6f2;
  --dark: #1b1b18;
  --card: #ffffff;
  --text: #333330;
  --text-soft: #7a7a74;
  --accent: #F3BD00;
  --accent-ink: #1b1b18;
  --border: #e9e7e0;
  --hero-overlay: rgba(27, 27, 24, 0.78);
}
html[data-theme="dreams"] {
  --bg: #ffffff;
  --bg-alt: #f4f7fa;
  --dark: #0c2b4b;
  --card: #ffffff;
  --text: #33404e;
  --text-soft: #5a7089;
  --accent: #0c2b4b;
  --accent-ink: #ffffff;
  --border: #e2e9f0;
  --hero-overlay: rgba(12, 43, 75, 0.78);
  --font-head: 'Open Sans', 'Segoe UI', sans-serif;
  --font-body: 'Open Sans', 'Segoe UI', sans-serif;
}
html[data-theme="bold"] {
  --bg: #ffffff;
  --bg-alt: #fffbe0;
  --dark: #002b5e;
  --card: #ffffff;
  --text: #22303f;
  --text-soft: #6a7686;
  --accent: #ffdd00;
  --accent-ink: #1a1a1a;
  --border: #eeeae0;
  --hero-overlay: rgba(0, 43, 94, 0.80);
  --font-head: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Poppins', 'Segoe UI', sans-serif;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  transition: background 0.4s, color 0.4s;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--border); }
html[data-theme="bold"] header { background: var(--accent); border-bottom: none; }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; max-width: 1120px; margin: 0 auto; flex-wrap: wrap; gap: 10px; }
.brand { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--dark); display: flex; align-items: center; gap: 8px; }
.brand .dot { color: var(--accent); }
html[data-theme="dreams"] .brand .dot, html[data-theme="bold"] .brand .dot { color: var(--dark); }
.nav ul { display: flex; gap: 24px; flex-wrap: wrap; }
.nav a { font-size: 0.9rem; font-weight: 500; color: var(--text-soft); transition: color 0.2s; }
html[data-theme="bold"] .nav a { color: #4a4a3a; }
.nav a:hover, .nav a.active { color: var(--dark); }
html[data-theme="drivin"] .nav a.active { color: #b28a00; }
.nav .nav-cta { background: var(--accent); color: var(--accent-ink); padding: 8px 18px; border-radius: 4px; font-weight: 600; }
html[data-theme="bold"] .nav .nav-cta { background: var(--dark); color: #fff; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 60vh; display: flex; align-items: center; background-size: cover; background-position: center; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--hero-overlay); }
.hero-inner { position: relative; z-index: 1; padding: 70px 24px; max-width: 700px; margin: 0 auto; text-align: center; }
.hero .kicker { display: inline-block; background: var(--accent); color: var(--accent-ink); font-size: 0.75rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; padding: 5px 14px; border-radius: 3px; margin-bottom: 16px; }
.hero h1 { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.9rem, 4.6vw, 3rem); line-height: 1.15; color: #ffffff; margin-bottom: 12px; }
.hero .sub { color: rgba(255, 255, 255, 0.85); font-size: 1.05rem; margin-bottom: 8px; }
.hero .kn { color: var(--accent); font-size: 0.95rem; margin-bottom: 26px; }
html[data-theme="dreams"] .hero .kn { color: #9fc3e8; }

/* ---------- buttons ---------- */
.btn { display: inline-block; cursor: pointer; font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; padding: 13px 30px; border-radius: 4px; border: none; background: var(--accent); color: var(--accent-ink); transition: all 0.25s; }
.btn:hover { transform: translateY(-2px); opacity: 0.92; }
.btn-dark { background: var(--dark); color: #ffffff; }
.btn-outline { background: transparent; border: 2px solid var(--accent); color: var(--accent); }
.hero .btn-outline { border-color: #ffffff; color: #ffffff; }

/* ---------- stats strip ---------- */
.stats { background: var(--dark); padding: 26px 0; }
.stats .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 18px; text-align: center; }
.stat b { display: block; font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; color: var(--accent); }
html[data-theme="dreams"] .stat b { color: #ffffff; }
.stat span { font-size: 0.82rem; color: rgba(255, 255, 255, 0.75); }

/* ---------- sections ---------- */
section { padding: 66px 0; }
.section-head { text-align: center; margin-bottom: 42px; }
.section-head .kicker { font-size: 0.75rem; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: #b28a00; }
html[data-theme="dreams"] .section-head .kicker { color: #4a7bb0; }
html[data-theme="bold"] .section-head .kicker { color: #b29b00; }
.section-head h2 { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin-top: 6px; color: var(--dark); }
.section-alt { background: var(--bg-alt); }

/* ---------- course cards ---------- */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.course-card { background: var(--card); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; position: relative; transition: transform 0.25s, box-shadow 0.25s; display: flex; flex-direction: column; }
.course-card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.10); }
.course-card.popular { border: 2px solid var(--accent); }
html[data-theme="dreams"] .course-card.popular { border-color: var(--dark); }
.pop-badge { position: absolute; top: 12px; right: 12px; z-index: 1; background: var(--accent); color: var(--accent-ink); font-size: 0.68rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; padding: 4px 10px; border-radius: 3px; }
html[data-theme="dreams"] .pop-badge { background: var(--dark); color: #fff; }
.course-img { aspect-ratio: 16 / 9; overflow: hidden; }
.course-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.course-card:hover .course-img img { transform: scale(1.05); }
.course-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.course-type { font-size: 0.7rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--text-soft); }
.course-body h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--dark); margin: 4px 0 8px; }
.course-meta { font-size: 0.82rem; color: var(--text-soft); margin-bottom: 10px; }
.course-feats { margin-bottom: 14px; }
.course-feats li { font-size: 0.85rem; color: var(--text); padding-left: 20px; position: relative; margin-bottom: 5px; }
.course-feats li::before { content: "✓"; position: absolute; left: 0; color: #2e9e5b; font-weight: 700; }
.course-price { font-family: var(--font-head); font-size: 1.45rem; font-weight: 700; color: var(--dark); margin-bottom: 12px; }
.course-price small { font-size: 0.78rem; font-weight: 400; color: var(--text-soft); }
.course-body .btn { margin-top: auto; text-align: center; }

/* ---------- RTO services ---------- */
.rto-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.rto-card { background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 0 6px 6px 0; padding: 18px 20px; }
html[data-theme="dreams"] .rto-card { border-left-color: var(--dark); }
.rto-card h3 { font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--dark); margin-bottom: 6px; }
.rto-card p { font-size: 0.87rem; color: var(--text-soft); }

/* ---------- why us / perks ---------- */
.perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.perk { text-align: center; padding: 26px 18px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; }
.perk .p-ico { font-size: 1.9rem; }
.perk h3 { font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--dark); margin: 10px 0 6px; }
.perk p { font-size: 0.86rem; color: var(--text-soft); }

/* ---------- highlights ticker ---------- */
.highlights { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.highlights span { background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 0.8rem; padding: 7px 14px; border-radius: 20px; }

/* ---------- split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.split h2 { font-family: var(--font-head); font-weight: 700; font-size: 1.8rem; color: var(--dark); margin-bottom: 14px; }
.split p { color: var(--text-soft); margin-bottom: 12px; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* ---------- testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.testi { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 22px; }
.testi .stars { color: #f5a623; letter-spacing: 2px; margin-bottom: 10px; }
.testi p { font-size: 0.9rem; color: var(--text); margin-bottom: 12px; }
.testi .who { font-size: 0.82rem; font-weight: 600; color: var(--dark); }
.testi .who small { display: block; font-weight: 400; color: var(--text-soft); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list li { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.contact-list .c-ico { font-size: 1.3rem; margin-top: 2px; }
.contact-list strong { display: block; font-weight: 600; color: var(--dark); }
.contact-list span { color: var(--text-soft); font-size: 0.9rem; }
.contact-form label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 6px; color: var(--text); }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; margin-bottom: 16px; padding: 12px 14px; background: var(--bg); border: 1px solid var(--border); border-radius: 4px; color: var(--text); font-family: var(--font-body); font-size: 0.95rem; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--dark); }

/* ---------- footer ---------- */
footer { background: var(--dark); color: rgba(255, 255, 255, 0.8); padding: 46px 0 90px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; }
@media (max-width: 700px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-grid h4 { font-family: var(--font-head); font-weight: 700; color: #ffffff; margin-bottom: 12px; }
.foot-grid h4 .dot { color: var(--accent); }
.foot-grid p, .foot-grid a { color: rgba(255, 255, 255, 0.7); font-size: 0.88rem; }
.foot-grid li { margin-bottom: 8px; }
.foot-grid a:hover { color: var(--accent); }
.copyright { text-align: center; color: rgba(255, 255, 255, 0.5); font-size: 0.8rem; margin-top: 34px; }

/* ---------- style switcher ---------- */
.style-switcher { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; align-items: center; gap: 4px; background: rgba(30, 30, 30, 0.92); color: #ddd; padding: 6px 10px; border-radius: 30px; box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35); font-size: 0.8rem; }
.style-switcher .sw-label { padding: 0 6px; letter-spacing: 1px; color: #999; }
.style-switcher button { font-family: var(--font-body); cursor: pointer; border: none; border-radius: 20px; background: transparent; color: #ccc; padding: 7px 16px; font-size: 0.8rem; transition: all 0.2s; }
.style-switcher button:hover { color: #fff; }
.style-switcher button.active { background: #F3BD00; color: #1b1b18; font-weight: 600; }

/* ---------- floating WhatsApp ---------- */
.wa-float { position: fixed; bottom: 18px; right: 18px; z-index: 100; width: 52px; height: 52px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3); }
