/*
Theme Name: GoKart Transportation
Author: GoKart Transportation
Description: Custom theme for GoKart Transportation — safe student transportation across DE, PA, FL, MI & MD. Includes a static front page and a "Drive With Us" recruiting page template with embedded driver application form.
Version: 1.0.2
Requires at least: 5.3
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gokart-transportation
*/

:root {
  --navy: #1B2A55;
  --ink: #141414;
  --gold: #F0932B;
  --gold-light: #FFD873;
  --cream: #FFF8ED;
  --bg-light: #F7F8FA;
  --text: #26282c;
  --muted: #5a5f66;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.55;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: .3px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 6px 16px rgba(240,147,43,.35); }
.btn-outline { background: transparent; border-color: #fff; color: #fff; }
.btn-navy { background: var(--navy); color: #fff; box-shadow: 0 6px 16px rgba(27,42,85,.3); }

/* ---- header ---- */
header.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid #eee;
}
/* offset for the WP admin bar when logged in */
body.admin-bar header.site-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar header.site-header { top: 46px; }
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 24px;
  max-width: 1120px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 54px; width: auto; }
nav.main-nav { display: flex; align-items: center; gap: 26px; }
nav.main-nav a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px;
}
nav.main-nav a:hover { color: var(--gold); }
.nav-phone {
  background: var(--navy); color: #fff; padding: 9px 18px; border-radius: 999px;
  font-weight: 700; text-decoration: none; font-size: 14px; white-space: nowrap;
}
.nav-phone:hover { background: var(--ink); }

/* ---- hero ---- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0f1b30 100%);
  color: #fff;
  padding: 70px 24px 90px;
  text-align: center;
}
.hero h1 { font-size: 42px; margin: 0 0 16px; letter-spacing: .3px; }
.hero p.lead { font-size: 19px; color: #d8def0; max-width: 680px; margin: 0 auto 32px; }
.hero .cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- sections ---- */
section { padding: 70px 24px; }
section.alt { background: var(--bg-light); }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 46px; }
.section-head .eyebrow {
  color: var(--gold); font-weight: 800; letter-spacing: 2px; font-size: 13px; text-transform: uppercase;
}
.section-head h2 { font-size: 32px; margin: 8px 0 12px; color: var(--navy); }
.section-head p { color: var(--muted); font-size: 16.5px; }

.grid { display: grid; gap: 26px; max-width: 1120px; margin: 0 auto; }
.grid-5 { grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px,1fr)); }

.card {
  background: #fff; border: 1px solid #ececec; border-radius: 14px; padding: 28px 22px;
  box-shadow: 0 4px 18px rgba(20,20,20,.04);
}
.card .icon { font-size: 34px; margin-bottom: 12px; display: block; }
.card h3 { margin: 0 0 10px; font-size: 19px; color: var(--navy); }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.state-card { border-top: 4px solid var(--gold); }
.state-card h3 { display:flex; align-items:center; gap:8px; }

.about-wrap { display: flex; gap: 46px; align-items: center; flex-wrap: wrap; max-width: 1120px; margin: 0 auto; }
.about-wrap .about-text { flex: 1 1 420px; }
.about-wrap .about-logo { flex: 1 1 320px; text-align: center; }
.about-text h2 { font-size: 30px; color: var(--navy); margin-top:0; }
.about-text p { color: var(--muted); font-size: 16px; }

.callout {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-radius: 18px; padding: 46px 36px; text-align: center; color: var(--ink);
  max-width: 1120px; margin: 0 auto;
}
.callout h2 { font-size: 28px; margin: 0 0 12px; }
.callout p { font-size: 16.5px; margin: 0 0 24px; }

.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 30px;
  max-width: 1120px; margin: 0 auto;
}
.contact-grid .card h3 { font-size: 16px; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); }
.contact-grid .card p, .contact-grid .card a { color: var(--text); font-size: 15.5px; text-decoration: none; }

footer.site-footer {
  background: var(--ink); color: #cfd3da; padding: 40px 24px 26px; text-align: center; font-size: 14px;
}
footer.site-footer a { color: #fff; text-decoration: none; font-weight: 600; }
footer.site-footer .foot-links { margin-bottom: 16px; display:flex; gap: 22px; justify-content:center; flex-wrap: wrap;}

/* FAQ / details */
details.faq {
  background: #fff; border: 1px solid #ececec; border-radius: 12px; padding: 4px 22px; margin-bottom: 14px;
}
details.faq summary {
  cursor: pointer; font-weight: 700; padding: 16px 0; color: var(--navy); font-size: 16.5px; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 22px; color: var(--gold); }
details.faq[open] summary::after { content: "\2013"; }
details.faq p { color: var(--muted); padding-bottom: 18px; margin: 0; font-size: 15.5px; }

.steps { counter-reset: step; max-width: 900px; margin: 0 auto; }
.step { display: flex; gap: 20px; margin-bottom: 26px; align-items: flex-start; }
.step .num {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px;
}
.step h3 { margin: 4px 0 6px; color: var(--navy); font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

.form-section { background: var(--navy); color: #fff; }
.form-wrap {
  max-width: 760px; margin: 0 auto 22px; background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.form-wrap iframe { width: 100%; height: 720px; border: 0; display: block; }
.form-fallback { text-align: center; color: #d8def0; font-size: 14.5px; max-width: 640px; margin: 0 auto 20px; }
.form-cta { text-align: center; }

@media (max-width: 780px) {
  nav.main-nav { display: none; }
  .hero h1 { font-size: 30px; }
  .about-wrap { flex-direction: column; }
}

/* WordPress fallback content (index.php) */
.wp-fallback { max-width: 760px; margin: 0 auto; padding: 70px 24px; }
.wp-fallback h1, .wp-fallback h2 { color: var(--navy); }
