/* ==========================================================
   MARATHON CAR RENTAL & LEASING — main stylesheet
   Change the brand colors here (one place for the whole site)
   ========================================================== */
:root {
  --navy: #0d2240;        /* header, footer, headings */
  --navy-2: #16345f;      /* hover / secondary dark */
  --red: #e31b23;         /* buttons, accents */
  --red-dark: #b8141b;
  --light: #f3f5f8;       /* light section background */
  --border: #dde2ea;
  --text: #24303f;
  --muted: #6b7686;
  --white: #ffffff;
  --radius: 6px;
  --shadow: 0 6px 22px rgba(13, 34, 64, .10);
  --font-head: "Montserrat", Arial, sans-serif;
  --font-body: "Open Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--navy); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(28px, 4.2vw, 46px); }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: 22px; }
h4 { font-size: 17px; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.section { padding: 64px 0; }
.section.light { background: var(--light); }
.center { text-align: center; }
.lead { font-size: 18px; color: var(--muted); max-width: 760px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 14px;
  padding: 13px 28px;
  border-radius: var(--radius);
  border: 2px solid var(--red);
  background: var(--red);
  color: var(--white);
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); text-decoration: none; }
.btn.outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn.outline:hover { background: var(--navy); color: var(--white); }
.btn.white { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn.small { padding: 8px 18px; font-size: 13px; }

/* ---------- Top utility bar ---------- */
.topbar { background: var(--navy); color: #c9d3e2; font-size: 13px; }
.topbar .container { display: flex; justify-content: flex-end; align-items: center; gap: 22px; min-height: 38px; flex-wrap: wrap; }
.topbar a { color: #c9d3e2; }
.topbar a:hover { color: var(--white); text-decoration: none; }
.topbar .quote { background: var(--red); color: var(--white); padding: 9px 16px; font-weight: 700; }
.topbar .quote:hover { background: var(--red-dark); }

/* ---------- Header ---------- */
.header { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.header .container { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 54px; width: auto; }
.brand .tagline { font-size: 12px; color: var(--muted); font-style: italic; border-left: 1px solid var(--border); padding-left: 12px; max-width: 130px; line-height: 1.3; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; }
.nav a {
  display: block; padding: 10px 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 14px; white-space: nowrap;
  color: var(--navy); border-bottom: 3px solid transparent;
}
.nav a:hover, .nav a.active { color: var(--red); text-decoration: none; border-bottom-color: var(--red); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  background: var(--navy) center/cover no-repeat;
  padding: 72px 0 120px;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,34,64,.92) 0%, rgba(13,34,64,.65) 55%, rgba(13,34,64,.35) 100%); }
.hero .container { position: relative; }
.hero h1 { color: var(--white); max-width: 760px; }
.hero p { font-size: 19px; max-width: 640px; color: #e4eaf3; }
.hero .badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.hero .badge { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); padding: 7px 14px; border-radius: 30px; font-size: 14px; }
.hero .badge b { color: #ffd23f; }

.page-hero { position: relative; background: var(--navy) center/cover no-repeat; color: var(--white); padding: 70px 0; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(13,34,64,.78); }
.page-hero .container { position: relative; }
.page-hero h1 { color: var(--white); margin: 0 0 .3em; }
.page-hero p { margin: 0; color: #d9e1ec; font-size: 18px; max-width: 720px; }
.crumbs { font-size: 13px; color: #aab7ca; margin-bottom: 10px; }
.crumbs a { color: #aab7ca; }

/* ---------- Reservation box ---------- */
.reserve-box {
  position: relative; z-index: 5;
  background: var(--white); border-radius: 10px; box-shadow: var(--shadow);
  padding: 26px; margin-top: -80px; border-top: 5px solid var(--red);
}
.reserve-box h2 { font-size: 22px; margin-bottom: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.form-grid .span-2 { grid-column: span 2; }
.form-grid .span-4 { grid-column: 1 / -1; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 5px; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--text);
  padding: 11px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white);
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(227,27,35,.25); border-color: var(--red); }
textarea { min-height: 140px; resize: vertical; }
.form-actions { display: flex; align-items: end; }
.form-actions .btn { width: 100%; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 10px; }
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 28px; box-shadow: var(--shadow); }
.alert { display: none; padding: 14px 16px; border-radius: var(--radius); margin-top: 14px; background: #e9f6ee; color: #1e6a3a; border: 1px solid #bfe3cc; }
.alert.show { display: block; }

/* ---------- Two-column blocks ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: 10px; box-shadow: var(--shadow); width: 100%; height: 380px; object-fit: cover; }
.checklist { list-style: none; padding: 0; margin: 0 0 1.4em; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: 14px; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--red); color: var(--white); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.checklist li b { color: var(--navy); }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; margin-top: 34px; }
.feature { background: var(--white); border-radius: 10px; padding: 26px; box-shadow: var(--shadow); border-bottom: 4px solid var(--red); }
.feature .ico { width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 14px; }
.feature h4 { margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- CTA banner ---------- */
.cta { background: var(--red); color: var(--white); padding: 44px 0; }
.cta .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta h3 { color: var(--white); margin: 0 0 4px; font-size: 26px; }
.cta p { margin: 0; color: #ffe1e2; }

/* ---------- Fleet ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 26px 0 30px; }
.filters button {
  font-family: var(--font-head); font-weight: 600; font-size: 14px; cursor: pointer;
  padding: 9px 16px; border-radius: 30px; border: 1px solid var(--border); background: var(--white); color: var(--navy);
}
.filters button:hover { border-color: var(--navy); }
.filters button.active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.fleet { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.car { background: var(--white); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.car:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.car .photo { aspect-ratio: 16 / 10; background: var(--light); overflow: hidden; }
.car .photo img { width: 100%; height: 100%; object-fit: cover; }
.car .body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.car .cls { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--red); font-weight: 700; }
.car h4 { margin: 4px 0 10px; }
.car .specs { display: flex; gap: 16px; color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.car .specs span { display: flex; align-items: center; gap: 6px; }
.car .specs img { width: 18px; height: 18px; }
.car .bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 14px; }
.car .price { font-family: var(--font-head); color: var(--navy); }
.car .price b { font-size: 24px; }
.car .price small { display: block; font-size: 12px; color: var(--muted); font-family: var(--font-body); }
.fleet-note { font-size: 14px; color: var(--muted); text-align: center; margin-top: 22px; }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; margin-top: 30px; }
.review { background: var(--white); border-radius: 10px; padding: 24px; box-shadow: var(--shadow); position: relative; }
.review .stars { color: #f5b301; letter-spacing: 2px; margin-bottom: 8px; }
.review p { font-style: italic; color: var(--muted); }
.review .who { font-weight: 700; color: var(--navy); font-size: 14px; }
.review .src { font-size: 12px; color: var(--muted); }

/* ---------- Content pages ---------- */
.content { max-width: 880px; }
.content h2 { margin-top: 1.4em; }
.content h2:first-child { margin-top: 0; }
.content ul, .content ol { padding-left: 22px; }
.content li { margin-bottom: 8px; }
.with-aside { display: grid; grid-template-columns: 1fr 340px; gap: 44px; align-items: start; }
.aside-card { background: var(--navy); color: #d9e1ec; border-radius: 10px; padding: 26px; position: sticky; top: 110px; }
.aside-card h4 { color: var(--white); }
.aside-card a { color: var(--white); font-weight: 700; }
.aside-card .big { font-family: var(--font-head); font-size: 24px; color: var(--white); display: block; margin: 6px 0 16px; }
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.info-card { border: 1px solid var(--border); border-radius: 10px; padding: 24px; background: var(--white); }
.info-card h3 { font-size: 19px; }
.info-card dl { margin: 0; display: grid; grid-template-columns: 90px 1fr; gap: 8px 10px; font-size: 15px; }
.info-card dt { font-weight: 700; color: var(--navy); }
.info-card dd { margin: 0; }
.fee-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 20px 0 30px; }
.fee { border-radius: 10px; padding: 24px; background: var(--light); border-left: 5px solid var(--red); }
.fee .amt { font-family: var(--font-head); font-size: 30px; font-weight: 700; color: var(--red); }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; background: var(--white); }
.faq-item summary { cursor: pointer; padding: 16px 18px; font-family: var(--font-head); font-weight: 600; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--red); }
.faq-item[open] summary::after { content: "–"; }
.faq-item .ans { padding: 0 18px 16px; color: var(--muted); }
.biz-table { width: 100%; border-collapse: collapse; margin: 10px 0 20px; }
.biz-table th, .biz-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); }
.biz-table th { width: 38%; color: var(--navy); background: var(--light); }
.map-embed { width: 100%; height: 340px; border: 0; border-radius: 10px; }
.sitemap-list { columns: 2; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #aab7ca; padding: 56px 0 0; font-size: 14px; }
.footer .cols { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 30px; }
.footer img.logo { height: 56px; width: auto; margin-bottom: 14px; }
.footer h4 { color: var(--white); font-size: 15px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer a { color: #aab7ca; }
.footer a:hover { color: var(--white); }
.footer .contact-line { margin-bottom: 6px; }
.footer .contact-line a { color: var(--white); font-weight: 600; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: 700; font-size: 14px; }
.social a:hover { background: var(--red); text-decoration: none; }
.footer .bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding: 18px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; }

/* ---------- Responsive ---------- */
@media (min-width: 1100px) { .features { grid-template-columns: repeat(5, 1fr); } .features.three { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1200px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); display: none; box-shadow: var(--shadow); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 8px 16px 16px; }
  .nav a { border-bottom: 1px solid var(--border); }
  .header .container { position: relative; }
  .footer .cols { grid-template-columns: 1fr 1fr 1fr; }
  .footer .cols > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .split, .with-aside { grid-template-columns: 1fr; gap: 30px; }
  .split img { height: 260px; }
  .aside-card { position: static; }
  .fee-cards { grid-template-columns: 1fr; }
  .topbar .hide-sm { display: none; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .brand .tagline { display: none; }
  .brand img { height: 44px; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .section { padding: 46px 0; }
  .hero { padding: 50px 0 110px; }
  .sitemap-list { columns: 1; }
  .topbar .container { justify-content: center; gap: 14px; }
}
