/* =========================================================================
   VACSC Motor Driving Training Center — LIGHT UI (White background)
   - Google Font: Inter
   - Mobile/Tab/Desktop responsive
   - Clean header (white nav + slim navy topbar)
   ========================================================================= */

:root{
  --font: "Inter", system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;

  /* Light base */
  --bg: #ffffff;
  --text: #0f172a;     /* slate-900 */
  --muted: #475569;    /* slate-600 */
  --line: #e2e8f0;     /* slate-200 */
  --card: #ffffff;
  --soft: #f8fafc;     /* slate-50 */

  /* Brand */
  --navy: #0b1f44;
  --navy2:#081732;
  --orange:#f97316;
  --blue:#2563eb;
  --green:#16a34a;

  --radius: 16px;
  --radius2: 22px;
  --shadow: 0 12px 30px rgba(15,23,42,.10);
  --max: 1160px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  overflow-x:hidden;
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; height:auto; }
.container{ max-width:var(--max); margin:0 auto; padding: 0 18px; }

/* Screen reader only helper (for icon buttons) */
.sr-only{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}

/* Skip link */
.skip-link{ position:absolute; left:-999px; width:1px; height:1px; overflow:hidden; }
.skip-link:focus{
  left:18px; top:14px; width:auto; height:auto;
  background:#fff; border:1px solid var(--line);
  padding:10px 12px; border-radius:12px; z-index:9999;
}

/* ================= HEADER ================= */
.site-header{ position: sticky; top:0; z-index:60; }

/* Top bar (navy) */
.topbar{
  background: linear-gradient(90deg, var(--navy), var(--navy2));
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.topbar-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; padding: 8px 0;
}
.topbar-left{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; }

/* Topbar font readable */
.topbar-item{
  color: rgba(255,255,255,.92);
  font-size: 14px;
  font-weight: 600;
  display:inline-flex; align-items:center; gap:8px;
}
.topbar-item:hover{ color:#fff; }
.sep{ color: rgba(255,255,255,.28); }

/* Badge readable */
.topbar-badge{
  font-size: 13px;
  font-weight: 800;
  color: rgba(255,255,255,.90);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  white-space: nowrap;
}

/* Nav wrapper (WHITE) */
.navwrap{
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(15,23,42,.06);
}
.nav-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:14px; padding: 12px 0;
}

/* Brand */
.brand{ display:flex; align-items:center; gap:12px; min-width: 220px; }
.brand-logo{
  width:52px; height:52px;
  border-radius: 999px;
  border: 2px solid rgba(249,115,22,.45);
  background:#fff;
  box-shadow: 0 10px 22px rgba(15,23,42,.10);
  display:inline-flex; align-items:center; justify-content:center;
  overflow:hidden;
}
.brand-logo img{
  width:100%; height:100%;
  object-fit: contain; /* ratio safe */
  background:#fff;
}
.brand-text{ line-height:1.1; }

/* IMPORTANT FIX:
   Your brand-name was set to 32px (too large) and it breaks mobile layout.
   We keep it professional + readable across devices. */
.brand-name{
  font-weight: 900;
  font-size: 18px;              /* fixed from 32px */
  color: var(--text);
  letter-spacing: .2px;
}
.brand-sub{
  margin-top:2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

/* Desktop nav */
.nav{ display:flex; align-items:center; gap: 10px; }

/* Menu font bigger + professional */
.nav a{
  font-size: 16px;              /* balanced for desktop */
  color: #0f172a;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 800;
  letter-spacing: .15px;
  line-height: 1.2;
}
.nav a:hover{
  background: var(--soft);
  border-color: var(--line);
}

/* Dropdown (Desktop hover) */
.dropdown{ position: relative; display:inline-block; }
.dropbtn .plus{ color: var(--orange); font-weight: 900; margin-left: 2px; }
.dropmenu{
  position:absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 310px;
  display:none;
  background:#fff;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(15,23,42,.14);
  overflow:hidden;
  z-index:70;
}
.dropmenu a{
  display:block;
  padding: 13px 14px;
  font-weight: 700;
  font-size: 15px;
  color:#0f172a;
  border-bottom: 1px solid var(--line);
}
.dropmenu a:last-child{ border-bottom:0; }
.dropmenu a:hover{ background: rgba(249,115,22,.10); }
.dropdown:hover .dropmenu,
.dropdown:focus-within .dropmenu{ display:block; }

/* Buttons */
.nav-cta{ display:flex; align-items:center; gap:10px; }
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-weight: 800;
  font-size: 14px;
  cursor:pointer;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
  white-space:nowrap;
  user-select:none;
}
.btn:hover{ background: var(--soft); border-color: #cbd5e1; }
.btn:active{ transform: translateY(1px); }

.btn-primary{
  border-color: rgba(249,115,22,.35);
  background: linear-gradient(135deg, rgba(249,115,22,.18), rgba(37,99,235,.10));
}
.btn-primary:hover{
  border-color: rgba(249,115,22,.45);
  background: linear-gradient(135deg, rgba(249,115,22,.24), rgba(37,99,235,.14));
}
.btn-ghost{ background: #fff; }

/* Menu button (Hamburger icon) */
.btn-menu{
  display:none;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 14px;
  border: 2px solid rgba(249,115,22,.55);
  background: #fff;
}
.btn-menu:hover{ background: var(--soft); border-color: rgba(249,115,22,.75); }

/* Hamburger lines */
.btn-menu .hamburger{
  width: 18px;
  height: 14px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.btn-menu .hamburger span{
  display:block;
  height:2px;
  width:100%;
  background:#0f172a;
  border-radius:999px;
}

/* Mobile menu container */
.mobile-menu{
  display:none;
  padding: 12px 0 16px;
}
.mobile-menu.show{ display:block; }

/* Mobile menu links */
.mobile-menu a{
  display:block;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  margin-top: 10px;
  color: var(--text);
  font-weight: 700;
}
.mobile-menu a:hover{ background: var(--soft); }

/* Mobile submenu (hidden by default, opens on click) */
.m-subtoggle{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background:#fff;
  margin-top: 10px;
  color: var(--text);
  font-weight: 800;
  cursor:pointer;
}
.m-subtoggle:hover{ background: var(--soft); }

.m-subtoggle .chev{
  width: 10px;
  height: 10px;
  border-right: 2px solid #0f172a;
  border-bottom: 2px solid #0f172a;
  transform: rotate(45deg);
  transition: transform .15s ease;
  opacity:.9;
}
.m-subtoggle[aria-expanded="true"] .chev{
  transform: rotate(-135deg);
}

/* Submenu list (collapsed by default) */
.mobile-submenu{
  display:none;
  margin-top: 8px;
  padding-left: 10px; /* light indent */
}
.mobile-submenu.show{ display:block; }
.mobile-submenu a{
  margin-top: 8px;
  font-weight: 700;
}

/* ================= CONTENT (basic readable defaults) ================= */
.hero{ padding: 46px 0 20px; background: #fff; }
.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 26px;
  align-items: stretch;
}
.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size: 13px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: #0f172a;
  font-weight: 600;
}
.hero h1{
  margin: 14px 0 10px;
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: -.6px;
}
.hero p{
  margin:0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
  max-width: 62ch;
}
.hero-actions{ margin-top: 18px; display:flex; flex-wrap:wrap; gap: 12px; }

.hero-stats{
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
}
.stat{
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: 0 8px 18px rgba(15,23,42,.06);
}
.stat .num{ font-weight:900; font-size: 16px; }
.stat .lbl{ color: var(--muted); font-size: 12.5px; margin-top: 4px; line-height:1.55; }

.hero-card{
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.hero-badge{ padding: 18px; }
.hb-title{ font-weight: 900; font-size: 16px; margin-bottom: 10px; }
.hero-badge ul{ margin:0; padding-left: 18px; color: var(--muted); line-height: 1.8; }

/* Sections */
.section{ padding: 42px 0; background:#fff; }
.section h2{ font-size: 28px; margin: 0 0 10px; letter-spacing: -.4px; }
.lead{ margin: 0 0 18px; color: var(--muted); line-height: 1.75; max-width: 82ch; }

.grid-3{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}
.cardx{
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius2);
  padding: 18px;
  box-shadow: 0 10px 22px rgba(15,23,42,.06);
}
.cardx h3{ margin: 10px 0 8px; font-size: 16px; }
.cardx p{ margin:0; color: var(--muted); line-height: 1.7; font-size: 14px; }

.tag{
  display:inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(249,115,22,.28);
  background: rgba(249,115,22,.10);
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
}

.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items:start;
}
.panelx{
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius2);
  padding: 18px;
  box-shadow: 0 10px 22px rgba(15,23,42,.06);
}

/* Footer */
.site-footer{
  margin-top: 40px;
  background: #0b1f44;
  color: rgba(255,255,255,.92);
  padding: 34px 0 18px;
}
.site-footer h4{ margin: 0 0 10px; font-size: 14px; color:#fff; }
.footer-grid{
  display:grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 18px;
}
.footer-brand{ display:flex; align-items:center; gap: 12px; }
.footer-logo{
  width:54px; height:54px; border-radius:999px;
  border: 2px solid rgba(249,115,22,.55);
  background:#fff; overflow:hidden;
}
.footer-logo img{ width:100%; height:100%; object-fit: contain; background:#fff; }
.footer-title{ font-weight: 900; color:#fff; }
.footer-sub{ color: rgba(255,255,255,.75); font-size: 12px; margin-top:2px; }
.footer-text{ margin: 12px 0 0; color: rgba(255,255,255,.78); line-height: 1.65; font-size: 14px; }
.f-link{ display:block; color: rgba(255,255,255,.82); padding: 7px 0; font-size: 14px; }
.f-link:hover{ color:#fff; text-decoration: underline; }
.f-contact{ color: rgba(255,255,255,.82); font-size: 14px; line-height: 1.7; }
.f-contact a{ color:#fff; text-decoration: underline; }

.footer-bottom{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.14);
  display:flex;
  justify-content:space-between;
  gap: 12px;
  flex-wrap:wrap;
  color: rgba(255,255,255,.78);
  font-size: 12.5px;
}

/* ================= RESPONSIVE ================= */

/* Slight downscale for medium desktops so nav does not wrap */
@media (max-width: 1100px){
  .nav a{
    font-size: 15px;
    padding: 11px 10px;
  }
}

/* Tablet/Mobile */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero h1{ font-size: 34px; }
  .grid-3{ grid-template-columns: 1fr; }
  .split{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }

  /* Desktop nav hidden on mobile */
  .nav{ display:none; }

  /* Show hamburger button on mobile */
  .btn-menu{ display:inline-flex; align-items:center; justify-content:center; }

  /* Desktop hover dropdown not required on mobile */
  .dropmenu{ display:none !important; }

  /* Keep brand readable on mobile */
  .brand-name{ font-size: 18px; }
  .brand-sub{ font-size: 13px; }

  /* Mobile topbar: prevent ugly wraps and separators */
  .topbar-left{ gap:10px; }
  .sep{ display:none; } /* hide separators on small screens */
}

/* Small mobile */
@media (max-width: 520px){
  .hero h1{ font-size: 30px; }
  .hero-stats{ grid-template-columns: 1fr; }

  /* Topbar stack cleanly on very small screens */
  .topbar-inner{
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .topbar-right{
    width: 100%;
    display:flex;
    justify-content:flex-start;
  }
}
