/* ============================================================
   Reading Driving Test Car Hire — Stylesheet
   Design language: British road signage — deep signage green,
   directional white borders, condensed sign typography, and a
   red "L-plate" accent used only for urgency (test day / CTA).
   ============================================================ */

:root {
  --green-dark: #123524;
  --green-mid: #1f6b45;
  --green-mid-hover: #185737;
  --bg: #f1f2ec;
  --panel: #ffffff;
  --text-dark: #16241d;
  --text-muted: #4b5a52;
  --red-accent: #d7263d;
  --amber: #f2b705;
  --border-sign: #ffffff;
  --radius: 2px;
  --shadow-sign: 0 6px 0 rgba(0, 0, 0, 0.12);
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Public Sans", "Segoe UI", Arial, sans-serif;
  --font-mono: "Space Mono", "Courier New", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-dark);
  line-height: 1.55;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 0.5em;
  color: var(--green-dark);
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-mid);
  display: inline-block;
  margin-bottom: 10px;
}

section { padding: 72px 0; }

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--green-dark);
  color: #fff;
  border-bottom: 4px solid var(--border-sign);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  color: #fff;
  text-decoration: none;
}

.brand .plate {
  background: #fff;
  color: var(--green-dark);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 3px 7px;
  border-radius: 3px;
  border: 2px solid var(--green-dark);
  line-height: 1;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-contact a.phone-link {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  text-decoration: none;
  border: 2px solid #fff;
  padding: 8px 14px;
  border-radius: var(--radius);
  white-space: nowrap;
}

.header-contact a.phone-link:hover { background: #fff; color: var(--green-dark); }

.header-contact .email-link {
  font-size: 0.85rem;
  color: #d8e4dc;
  text-decoration: none;
  display: none;
}

@media (min-width: 720px) {
  .header-contact .email-link { display: inline; }
}

/* ---------------- Hero ---------------- */

.hero {
  background: var(--green-dark);
  color: #fff;
  padding: 64px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 880px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  line-height: 1.05;
  margin-bottom: 18px;
}

.hero h1 span { color: var(--amber); }

.hero p.lead {
  font-size: 1.08rem;
  color: #dfe8e2;
  max-width: 46ch;
  margin-bottom: 28px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  padding: 15px 26px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:active { transform: translateY(2px); }

.btn-primary {
  background: var(--amber);
  color: var(--green-dark);
  box-shadow: var(--shadow-sign);
}
.btn-primary:hover { background: #ffc72c; }

.btn-outline {
  background: transparent;
  border-color: #fff;
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }

/* Road sign panel — the signature visual element */
.sign-panel {
  background: var(--green-mid);
  border: 5px solid var(--border-sign);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sign);
  color: #fff;
  transform: rotate(-1.2deg);
}

.sign-panel .sign-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.35);
  font-family: var(--font-mono);
  font-size: 0.95rem;
}
.sign-panel .sign-row:last-child { border-bottom: none; }

.sign-panel .arrow {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--amber);
}

.sign-panel .sign-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.5rem;
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

/* ---------------- Trust strip ---------------- */

.trust-strip {
  background: var(--panel);
  border-top: 1px solid #e2e5df;
  border-bottom: 1px solid #e2e5df;
  padding: 22px 0;
}

.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.trust-item strong { color: var(--green-dark); font-size: 0.95rem; }

/* ---------------- Services ---------------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.service-card {
  background: var(--panel);
  border: 1px solid #e2e5df;
  border-left: 5px solid var(--green-mid);
  border-radius: var(--radius);
  padding: 22px;
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.5s ease forwards;
}

.service-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-card .icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
}

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .service-card { animation: none; opacity: 1; transform: none; }
}

/* ---------------- Pricing (mileage-sign style) ---------------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.price-sign {
  background: var(--green-dark);
  border: 4px solid var(--border-sign);
  border-radius: var(--radius);
  color: #fff;
  padding: 26px 22px;
  position: relative;
  transition: transform 0.2s ease;
}

.price-sign:hover { transform: translateY(-6px); }

.price-sign.featured {
  background: var(--green-mid);
  border-color: var(--amber);
}

.price-sign .badge {
  position: absolute;
  top: -14px;
  right: 16px;
  background: var(--amber);
  color: var(--green-dark);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

.price-sign h3 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.price-sign .price {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--amber);
  margin: 10px 0;
  line-height: 1;
}

.price-sign .price small {
  font-size: 1rem;
  color: #dfe8e2;
  font-weight: 400;
}

.price-sign ul {
  list-style: none;
  padding: 0;
  margin: 14px 0 20px;
  font-size: 0.9rem;
}

.price-sign li {
  padding: 5px 0 5px 20px;
  position: relative;
  color: #e7efe9;
}

.price-sign li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--amber);
  font-weight: 700;
}

.price-note {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------------- How it works ---------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 32px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 54px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  background: var(--green-dark);
  color: var(--amber);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.step h3 { font-size: 1rem; margin-bottom: 6px; }
.step p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }

/* ---------------- Coverage ---------------- */

.coverage-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.coverage-list span {
  background: var(--panel);
  border: 1px solid #dfe3dc;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.88rem;
  color: var(--text-dark);
}

/* ---------------- FAQ ---------------- */

.faq-item {
  border-bottom: 1px solid #dfe3dc;
  padding: 18px 0;
}

.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.02rem;
  color: var(--green-dark);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--green-mid);
}

.faq-item[open] summary::after { content: "–"; }

.faq-item p {
  margin-top: 12px;
  color: var(--text-muted);
}

/* ---------------- Contact / form ---------------- */

.contact-section { background: var(--green-dark); color: #fff; }
.contact-section h2 { color: #fff; }
.contact-section .eyebrow { color: var(--amber); }
.contact-section p.lead { color: #dfe8e2; max-width: 60ch; }

.form-wrap {
  background: var(--panel);
  border-radius: var(--radius);
  border: 4px solid var(--border-sign);
  padding: 32px;
  margin-top: 32px;
  color: var(--text-dark);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.field { display: flex; flex-direction: column; gap: 6px; }

.field.full { grid-column: 1 / -1; }

.field label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid #cfd6cc;
  border-radius: var(--radius);
  background: #fbfbf9;
  color: var(--text-dark);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid var(--amber);
  outline-offset: 1px;
  border-color: var(--green-mid);
}

.field textarea { resize: vertical; min-height: 90px; }

.form-footer-row {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.form-note { font-size: 0.82rem; color: var(--text-muted); }

/* honeypot - hidden from real users */
.hp-field { position: absolute; left: -9999px; top: -9999px; }

#form-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  display: none;
}
#form-status.success { display: block; background: #e4f4ea; color: #145c32; border: 1px solid #b7e0c4; }
#form-status.error { display: block; background: #fbe6e8; color: var(--red-accent); border: 1px solid #f3c0c6; }

/* ---------------- Footer ---------------- */

.site-footer {
  background: #0c2118;
  color: #cfd9d2;
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
}

.footer-brand {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 10px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  color: #cfd9d2;
  text-decoration: none;
  font-size: 0.92rem;
  margin-bottom: 8px;
}
.footer-col a:hover { color: var(--amber); }

.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.8rem;
  color: #8fa196;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------------- Mobile call bar ---------------- */

.mobile-call-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--red-accent);
  color: #fff;
  text-align: center;
  padding: 14px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  font-size: 0.95rem;
  display: block;
}

@media (min-width: 720px) {
  .mobile-call-bar { display: none; }
}

body { padding-bottom: 0; }

@media (max-width: 719px) {
  body { padding-bottom: 58px; }
}
