/* =========================================================================
 *  Carismatic Cars — Stylesheet
 *  Mobile-first, no frameworks, WCAG-AA contrast.
 * ========================================================================= */

/* -------------------------------------------------------------------------
 * Brand palette — from CC Brand Sheet (May 2026)
 * Bright Orange #F87D0C   hero highlights, mascot body, CTA accents
 * Border Orange #F48920   frames, strokes, secondary accents
 * Bright Blue   #2068BA   primary fields, banners, social backdrops
 * Deep Blue     #0E52AA   contrast panels, outlines behind white type
 * Soft Cream    #F8F7F2   logo lettering, light text, soft contrast
 * Warm Cream    #F1D098   warm neutral support
 * Outline Black #0C0603   strong definition
 * Brown Shadow  #7E4927   small grounding details
 * ------------------------------------------------------------------------- */
:root {
  --blue: #2068BA;
  --blue-deep: #0E52AA;
  --blue-darker: #0A3F86;
  --orange: #F87D0C;
  --orange-border: #F48920;
  --orange-dark: #D86A05;
  --cream: #F8F7F2;
  --cream-warm: #F1D098;
  --black: #0C0603;
  --brown: #7E4927;
  --grey: #4A4A4A;
  --grey-light: #EBE9E3;
  --grey-mid: #C9C4BC;
  --white: #FFFFFF;

  /* Backwards-compatible aliases so the rest of the stylesheet
     keeps reading even if we miss a reference */
  --navy: var(--blue);
  --navy-deep: var(--blue-deep);
  --amber: var(--orange);
  --amber-dark: var(--orange-dark);
  --offwhite: var(--cream);

  --font-head: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(12, 6, 3, 0.08);
  --shadow-md: 0 6px 18px rgba(14, 82, 170, 0.14);

  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--grey);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
a:hover, a:focus { color: var(--amber-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--blue-deep);
  margin: 0 0 .5em;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.4rem); margin-top: 0; font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }

p { margin: 0 0 1em; }

ul { padding-left: 1.2em; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

section { padding: 4rem 0; }
section:nth-of-type(even) { background: var(--white); }

.section-intro {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--blue-deep);
  color: var(--white);
  box-shadow: 0 2px 0 var(--orange-border), 0 4px 12px rgba(12, 6, 3, .15);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .02em;
}

.brand img {
  height: 44px;
  width: auto;
  display: block;
}
.brand .brand-text {
  display: none; /* full lockup is in the rectangle SVG */
}
.brand .brand-fallback {
  background: var(--orange);
  color: var(--white);
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 8px;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .02em;
}

.nav-toggle {
  background: transparent;
  border: 1px solid rgba(255,255,255,.4);
  color: var(--white);
  padding: .45rem .7rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.nav-toggle:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: .5rem;
}

.nav-list a {
  color: var(--white);
  text-decoration: none;
  padding: .45rem .8rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: .95rem;
}
.nav-list a:hover, .nav-list a:focus-visible {
  background: rgba(255,255,255,.1);
  color: var(--white);
}

@media (max-width: 800px) {
  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--navy-deep);
    flex-direction: column;
    padding: .5rem 1.25rem 1rem;
    gap: 0;
  }
  .nav-list.open { display: flex; }
  .nav-list a {
    padding: .8rem .25rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
}

@media (min-width: 801px) {
  .nav-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(140deg, rgba(32,104,186,.95), rgba(14,82,170,.92) 60%, rgba(10,63,134,.95)),
    radial-gradient(circle at 85% 15%, rgba(248,125,12,.35), transparent 55%);
  background-color: var(--blue-deep);
  color: var(--white);
  padding: 4.5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}

.hero h1 { color: var(--white); }
.hero .lede { color: rgba(255,255,255,.95); font-size: 1.15rem; max-width: 640px; font-weight: 500; }
.hero p { color: rgba(255,255,255,.88); }

.hero .tag {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  padding: .35rem .9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  box-shadow: 0 2px 0 rgba(0,0,0,.08);
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-layout { grid-template-columns: 1.4fr 1fr; }
}

.hero-mark {
  display: flex;
  justify-content: center;
  align-items: center;
  order: -1;
}
.hero-mark img {
  max-width: 280px;
  width: 70%;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.25));
}
@media (min-width: 900px) {
  .hero-mark { order: 0; justify-content: flex-end; }
  .hero-mark img { max-width: 340px; width: 100%; }
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .85rem 1.4rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .08s ease, background .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 2px 0 var(--orange-dark);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--orange-dark); color: var(--white);
  box-shadow: 0 2px 0 rgba(0,0,0,.15);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  background: var(--white); color: var(--blue-deep);
}

.btn-secondary {
  background: var(--blue-deep); color: var(--white);
}
.btn-secondary:hover, .btn-secondary:focus-visible {
  background: var(--blue-darker); color: var(--white);
}

/* ---------- Why list ---------- */
.why-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: .65rem;
  margin-top: 1.5rem;
}
.why-list li {
  background: rgba(255,255,255,.1);
  border-left: 4px solid var(--orange);
  padding: .7rem 1rem;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,.97);
  font-weight: 500;
}
@media (min-width: 700px) {
  .why-list { grid-template-columns: 1fr 1fr; }
}

/* ---------- About ---------- */
.about-points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}
@media (min-width: 800px) {
  .about-points { grid-template-columns: repeat(3, 1fr); }
}
.about-points article {
  background: var(--cream);
  padding: 1.5rem;
  border-radius: var(--radius);
  border-top: 5px solid var(--orange);
  box-shadow: var(--shadow-sm);
}
.about-points h3 { margin-top: 0; color: var(--blue-deep); }

.promise {
  background: var(--blue-deep);
  color: var(--white);
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  margin-top: 2rem;
  font-size: 1.05rem;
  border-left: 6px solid var(--orange);
}
.promise strong { color: var(--orange); }

/* ---------- Fleet grid ---------- */
.fleet-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .fleet-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .fleet-grid { grid-template-columns: repeat(3, 1fr); } }

.vehicle-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s ease, transform .15s ease;
  border: 1px solid var(--grey-light);
}
.vehicle-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.vehicle-card .photo {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--grey-light);
  overflow: hidden;
}
.vehicle-card .photo img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vehicle-card .photo .placeholder {
  position: absolute; inset: 0;
  z-index: 0;
  display: grid; place-items: center;
  color: var(--grey);
  font-family: var(--font-head);
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--grey-light), var(--grey-mid));
}

.cat-badge {
  position: absolute;
  top: .65rem; left: .65rem;
  z-index: 2;
  background: var(--blue-deep);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .3rem .6rem;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
}
.cat-badge.cat-suv    { background: var(--blue-deep); }
.cat-badge.cat-family { background: var(--orange-dark); }
.cat-badge.cat-town   { background: var(--blue); }

.vehicle-card .title-bar {
  background: var(--blue);
  color: var(--white);
  padding: .85rem 1rem;
  border-bottom: 3px solid var(--orange);
}
.vehicle-card .title-bar h3 {
  color: var(--white);
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.vehicle-card .title-bar .tagline {
  font-size: .85rem;
  opacity: .92;
  margin: .15rem 0 0;
  font-weight: 500;
}

.vehicle-card .body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.spec-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .35rem .85rem;
  font-size: .9rem;
}
.spec-list li { display: flex; justify-content: space-between; gap: .5rem; }
.spec-list .k { color: var(--grey); }
.spec-list .v { color: var(--blue-deep); font-weight: 700; text-align: right; }

.vehicle-card .blurb {
  font-size: .92rem;
  color: var(--grey);
  margin: 0;
  font-style: normal;
  line-height: 1.5;
}

.vehicle-card .notes {
  font-size: .85rem;
  color: var(--grey);
  margin: 0;
}
.vehicle-card .notes strong,
.vehicle-card .perfect-for strong { color: var(--blue-deep); }

.vehicle-card .perfect-for {
  font-size: .85rem;
  color: var(--grey);
  margin: 0;
  padding-top: .5rem;
  border-top: 1px dashed var(--grey-light);
}

.vehicle-card .footer {
  padding: 1rem;
  border-top: 1px solid var(--grey-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  background: var(--cream);
}

.vehicle-card .rate {
  font-family: var(--font-head);
  color: var(--blue-deep);
}
.vehicle-card .rate .num { font-size: 1.45rem; font-weight: 800; color: var(--orange); letter-spacing: -.01em; }
.vehicle-card .rate small { display: block; font-size: .75rem; color: var(--grey); font-weight: 500; }

/* ---------- Discount tiers ---------- */
.discount-tiers {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
}
@media (min-width: 700px) {
  .discount-tiers { grid-template-columns: repeat(4, 1fr); }
}
.discount-tiers li {
  background: var(--white);
  border: 2px solid var(--orange);
  border-radius: var(--radius);
  padding: 1rem .75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
}
.discount-tiers .tier-percent {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--orange);
  line-height: 1;
}
.discount-tiers .tier-label {
  font-size: .85rem;
  color: var(--blue-deep);
  font-weight: 600;
}

/* ---------- Inclusions ---------- */
.inclusions {
  margin-top: 2.5rem;
  background: linear-gradient(135deg, var(--cream-warm), #FAE5C3);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  border-left: 6px solid var(--orange);
}
.inclusions h3 { margin-top: 0; color: var(--blue-deep); }
.inclusions ul { margin: 0; padding-left: 1.2em; }
.inclusions li { margin: .25rem 0; }

/* ---------- Booking steps ---------- */
.steps {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  margin: 2rem 0;
}
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
}
.step .num {
  position: absolute;
  top: -18px; left: 1.25rem;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 800;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 3px 0 var(--orange-dark);
  border: 3px solid var(--cream);
}
.step h3 { margin-top: .25rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
table.cc-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: .95rem;
}
table.cc-table thead { background: var(--blue-deep); color: var(--white); }
table.cc-table thead th { font-weight: 700; letter-spacing: .02em; }
table.cc-table th, table.cc-table td {
  padding: .75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--grey-light);
}
table.cc-table tbody tr:last-child td { border-bottom: 0; }
table.cc-table tbody tr:nth-child(even) { background: var(--cream); }
table.cc-table .num-col { text-align: right; font-weight: 700; color: var(--orange-dark); }

/* ---------- Booking form ---------- */
.form-wrap {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  padding: 1rem;
  margin-top: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.form-wrap iframe { width: 100%; border: 0; min-height: 800px; }

.form-fallback {
  padding: 1rem;
  display: grid;
  gap: 1rem;
}
.form-fallback p { margin: 0; }

.form-fallback .actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.form-fallback label {
  display: block;
  font-weight: 600;
  color: var(--navy);
  font-size: .92rem;
}
.form-fallback input,
.form-fallback select,
.form-fallback textarea {
  display: block;
  width: 100%;
  margin-top: .35rem;
  padding: .65rem .8rem;
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--grey);
  background: var(--white);
  font-weight: 400;
}
.form-fallback input:focus,
.form-fallback select:focus,
.form-fallback textarea:focus {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
  border-color: var(--orange);
}
.form-fallback fieldset label {
  font-weight: 400;
  color: var(--grey);
  padding: .25rem 0;
}
.form-fallback fieldset input[type="checkbox"] {
  display: inline-block;
  width: auto;
  margin: 0 .5rem 0 0;
  vertical-align: middle;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ---------- Good to know (accordion) ---------- */
.gtk { margin-top: 2rem; }
.gtk details {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius-sm);
  margin-bottom: .5rem;
  padding: 0;
  overflow: hidden;
}
.gtk summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--blue-deep);
  list-style: none;
  position: relative;
  padding-right: 2.5rem;
}
.gtk summary::-webkit-details-marker { display: none; }
.gtk summary::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--orange);
  font-weight: 700;
}
.gtk details[open] summary::after { content: "−"; }
.gtk details[open] summary { border-bottom: 1px solid var(--grey-light); }
.gtk .panel { padding: 1rem 1.25rem 1.25rem; }
.gtk .panel p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}
@media (min-width: 850px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.contact-block {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--grey-light);
}
.contact-block h3 { margin-top: 0; }
.contact-block .ico {
  display: inline-block;
  width: 1.4em; text-align: center; margin-right: .35em;
}
.contact-block ul { list-style: none; padding: 0; margin: .25rem 0 1rem; }
.contact-block li { padding: .25rem 0; }

.directions h4 { margin: 1rem 0 .35rem; color: var(--blue-deep); }
.contact-block h4 { color: var(--blue-deep); }

.payment-methods {
  display: flex; flex-wrap: wrap; gap: .4rem;
  margin: .5rem 0 0;
}
.payment-methods span {
  background: var(--blue);
  color: var(--white);
  padding: .3rem .7rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue-deep);
  color: rgba(255,255,255,.85);
  padding: 2.5rem 0 1.5rem;
  margin-top: 0;
  border-top: 4px solid var(--orange);
}
.site-footer .container {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .site-footer .container { grid-template-columns: 1.2fr 1fr 1fr; }
}
.site-footer h4 { color: var(--white); margin-bottom: .65rem; font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; }
.site-footer a { color: var(--orange); text-decoration: none; font-weight: 500; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--white); text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: .2rem 0; }
.site-footer .legal {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 2rem; padding-top: 1.25rem;
  font-size: .85rem; text-align: center;
  color: rgba(255,255,255,.55);
}
.site-footer .tagline {
  color: var(--orange);
  font-family: var(--font-head);
  font-weight: 600;
  margin: 0 0 .5rem;
}

/* ---------- Utilities ---------- */
.lede { font-size: 1.1rem; }
.muted { color: var(--grey); font-size: .9rem; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin-bottom: .5rem;
}
.center { text-align: center; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  background: var(--orange);
  color: var(--white);
  padding: .5rem 1rem;
  z-index: 100;
  font-weight: 600;
  border-radius: var(--radius-sm);
}
.skip-link:focus { left: 1rem; top: 1rem; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0s !important; transition-duration: 0s !important; }
  html { scroll-behavior: auto; }
}
