/*
Theme Name: Drive Perfect
Theme URI: https://driveperfectdrivingschool.com
Author: Drive Perfect Driving School
Description: Drive Perfect Driving School WordPress theme.
Version: 1.0.0
*/

:root { --black:#050505; --dark:#111; --yellow:#fdbb10; --yellow-soft:#f6c744; --white:#fff; --off-white:#fafafa; --light:#f5f5f5; --border:#e6e6e6; --text:#151515; --muted:#666; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; min-height:100vh; background:var(--off-white); color:var(--text); font-family:Poppins,Arial,sans-serif; }
a { color:inherit; text-decoration:none; }
img { max-width:100%; height:auto; display:block; }
.container { width:min(1200px,calc(100% - 40px)); margin-inline:auto; }
.section { padding:80px 0; }
.eyebrow { color:var(--yellow); font-size:12px; font-weight:700; letter-spacing:.18em; text-transform:uppercase; }
.title-xl { font-size:clamp(42px,5vw,68px); line-height:1.04; margin:0; }
.title-lg { font-size:clamp(32px,4vw,48px); line-height:1.08; margin:0; }
.button { display:inline-flex; align-items:center; gap:10px; border:0; border-radius:999px; padding:14px 20px; font-weight:700; transition:.25s ease; }
.button:hover { transform:translateY(-2px); box-shadow:0 10px 24px rgba(253,187,16,.2); }
.button-primary { background:var(--yellow); color:var(--black); }
.button-secondary { border:1px solid rgba(255,255,255,.25); color:var(--white); }
.button-dark { background:var(--black); color:var(--white); }
.button svg { width:19px; height:19px; }
.site-header { background:var(--black); color:var(--white); }
.header-inner { min-height:88px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.brand-logo { width:170px; }
.primary-nav ul { display:flex; gap:25px; list-style:none; margin:0; padding:0; }
.primary-nav a { display:block; padding:10px 0; border-bottom:2px solid transparent; color:rgba(255,255,255,.8); font-size:14px; }
.primary-nav a:hover,.primary-nav .current-menu-item>a { color:#fff; border-color:var(--yellow); }
.header-actions { display:flex; align-items:center; gap:14px; }
.header-whatsapp { display:inline-flex; align-items:center; gap:8px; border:1px solid rgba(255,255,255,.2); border-radius:999px; padding:11px 15px; font-size:14px; font-weight:700; }
.header-whatsapp svg { width:16px; height:16px; color:var(--yellow); flex:0 0 auto; }
.social-links { display:flex; align-items:center; gap:10px; }
.social-link { display:flex; align-items:center; justify-content:center; width:34px; height:34px; border-radius:50%; border:1px solid rgba(255,255,255,.2); color:#fff; transition:.2s ease; }
.social-link svg { width:16px; height:16px; }
.social-link:hover { background:var(--yellow); border-color:var(--yellow); color:var(--black); }
.social-links-footer { margin-top:16px; }
.mobile-nav-social { display:none; }
@media (max-width:900px) { .mobile-nav-social { display:flex; padding:14px 10px 4px; border-top:1px solid rgba(255,255,255,.1); margin-top:8px; } .mobile-nav-social .social-link { border-color:rgba(255,255,255,.15); } }
.nav-toggle { display:none; width:42px; height:42px; border:1px solid rgba(255,255,255,.2); border-radius:12px; background:transparent; padding:0; flex-direction:column; align-items:center; justify-content:center; gap:5px; cursor:pointer; }
.nav-toggle span { width:20px; height:2px; background:#fff; border-radius:2px; transition:.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }
.hero { position:relative; overflow:hidden; min-height:560px; display:flex; align-items:center; color:#fff; background:var(--black) center/cover no-repeat; }
.hero::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(0,0,0,.94),rgba(0,0,0,.72),rgba(0,0,0,.2)); }
.hero-content { position:relative; z-index:1; padding:100px 0; }
.hero-content p { max-width:600px; color:rgba(255,255,255,.78); line-height:1.8; }
.hero-actions { display:flex; flex-wrap:wrap; gap:14px; margin-top:28px; }
.trust-bar { background:#111; color:#fff; }
.trust-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; padding:25px 0; }
.trust-item { display:flex; align-items:center; gap:12px; font-size:14px; }
.icon-badge { width:48px; height:48px; flex:0 0 auto; display:grid; place-items:center; border-radius:16px; background:var(--black); color:var(--yellow); }
.icon-badge svg { width:25px; height:25px; }
.card { border:1px solid var(--border); border-radius:16px; background:#fff; padding:24px; box-shadow:0 4px 12px rgba(0,0,0,.05); }
.card-dark { border:1px solid rgba(255,255,255,.12); border-radius:16px; background:rgba(255,255,255,.05); padding:24px; color:#fff; }
.card-hover { transition:.3s ease; }
.card-hover:hover { transform:translateY(-8px); border-color:var(--yellow); box-shadow:0 18px 36px rgba(0,0,0,.12); }
.grid-2 { display:grid; grid-template-columns:repeat(2,1fr); gap:40px; align-items:center; }
.grid-2-stretch { display:grid; grid-template-columns:repeat(2,1fr); gap:40px; align-items:stretch; }
.media-fill { position:relative; min-height:420px; border-radius:16px; overflow:hidden; }
.media-fill img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.grid-4 { display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
.course-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.course-card { min-height:245px; }
.course-icon { width:56px; height:56px; display:grid; place-items:center; border-radius:16px; background:var(--black); color:var(--yellow); margin-bottom:16px; transition:.3s ease; }
.course-icon svg { width:28px; height:28px; }
.check-badge { display:inline-flex; align-items:center; justify-content:center; width:20px; height:20px; border-radius:50%; background:var(--yellow); color:var(--black); flex:0 0 auto; }
.check-badge svg { width:12px; height:12px; }
.benefit-row { display:flex; align-items:flex-start; gap:10px; margin:0 0 10px; }
.course-card:hover .course-icon { background:var(--yellow); color:var(--black); transform:rotate(3deg); }
.promo { border-radius:24px; background:var(--black); color:#fff; padding:38px; }
.promo-grid { display:grid; grid-template-columns:auto 1.2fr 1fr auto; gap:28px; align-items:center; }
.promo-icon { width:80px; height:80px; display:grid; place-items:center; border:2px solid var(--yellow); border-radius:50%; color:var(--yellow); }
.promo-icon svg { width:36px; height:36px; }
.contact-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:20px; }

.award-strip { border-bottom:1px solid var(--border); background:#fff; }
.award-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:32px; align-items:center; padding:32px 0; }
.award-grid-single { grid-template-columns:1fr; justify-items:center; text-align:center; padding:28px 0; }
.award-grid-single .rating { text-align:center; }
.award-grid-single .rating .score { justify-content:center; }
.rating { text-align:right; }
.rating .stars { color:var(--yellow); display:inline-flex; gap:2px; }
.rating .stars svg { width:16px; height:16px; }
.rating .score { font-size:26px; font-weight:700; display:flex; align-items:center; gap:8px; justify-content:flex-end; }

.roadmap-grid { display:grid; grid-template-columns:repeat(3,1fr); column-gap:24px; row-gap:64px; position:relative; padding-top:36px; }
.roadmap-step { position:relative; padding-top:72px; }
.roadmap-step::before { content:""; position:absolute; top:28px; left:68px; right:-24px; height:8px; border-radius:4px; background:var(--black); }
.roadmap-step::after { content:""; position:absolute; top:31px; left:68px; right:-24px; height:2px; background:repeating-linear-gradient(90deg,var(--yellow) 0 10px,transparent 10px 18px); }
.roadmap-step:last-child::before,.roadmap-step:nth-child(3n)::before,
.roadmap-step:last-child::after,.roadmap-step:nth-child(3n)::after { display:none; }
.roadmap-node { position:absolute; top:0; left:0; width:64px; height:64px; border-radius:50%; background:var(--yellow); color:var(--black); display:grid; place-items:center; font-weight:700; z-index:2; border:4px solid var(--off-white); box-shadow:0 8px 20px rgba(0,0,0,.18); }
.roadmap-node svg { width:26px; height:26px; }
.roadmap-step.is-highlight .card { border:2px solid var(--yellow); }

.test-grid,.why-train-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.why-train-grid { grid-template-columns:repeat(4,1fr); }
.test-grid ul { list-style:none; margin:16px 0 0; padding:0; }
.test-grid li { display:flex; gap:8px; align-items:flex-start; padding:6px 0; color:var(--muted); font-size:14px; }
.test-grid li svg { width:16px; height:16px; flex:0 0 auto; margin-top:2px; color:var(--yellow); }

.footer { background:var(--dark); color:#fff; padding:64px 0 24px; }
.footer-grid { display:grid; grid-template-columns:1.2fr repeat(3,1fr); gap:40px; }
.footer ul { list-style:none; margin:0; padding:0; line-height:2; color:rgba(255,255,255,.7); }
.footer-bottom { border-top:1px solid rgba(255,255,255,.12); margin-top:45px; padding-top:20px; color:rgba(255,255,255,.55); font-size:14px; }
@media (max-width:900px) {
    .nav-toggle { display:flex; }
    .primary-nav { display:none; position:absolute; top:100%; right:20px; left:20px; background:var(--dark); border:1px solid rgba(255,255,255,.1); border-radius:16px; padding:12px; z-index:20; box-shadow:0 20px 40px rgba(0,0,0,.35); }
    .primary-nav.is-open { display:block; }
    .primary-nav ul { flex-direction:column; gap:0; }
    .primary-nav a { padding:12px 10px; border-bottom:0; border-radius:10px; }
    .primary-nav a:hover,.primary-nav .current-menu-item>a { background:rgba(255,255,255,.08); }
    .header-inner { position:relative; }
    .header-actions .social-links { display:none; }
    .trust-grid,.grid-4,.course-grid,.why-train-grid { grid-template-columns:repeat(2,1fr); }
    .promo-grid,.footer-grid,.award-grid,.roadmap-grid,.test-grid { grid-template-columns:repeat(2,1fr); }
    .rating { text-align:left; }
    .rating .score { justify-content:flex-start; }
    .roadmap-step::before { display:none; }
}
@media (max-width:640px) { .container { width:min(100% - 32px,1200px); } .section { padding:56px 0; } .grid-2,.grid-2-stretch,.grid-3,.grid-4,.course-grid,.contact-grid,.trust-grid,.promo-grid,.footer-grid,.award-grid,.roadmap-grid,.test-grid,.why-train-grid { grid-template-columns:1fr; } .media-fill { min-height:280px; } .hero { min-height:520px; } .promo { padding:26px; } }
