/* =========================================================================
   Cool Car Rentals — Design System
   Tokens adapted from style.md (Hyer luxury) applied to CCR travel content.
   Font: Archivo (free stand-in for licensed HelveticaNowDisplay).
   ========================================================================= */

:root {
  /* Colors */
  --color-obsidian: #333333;
  --color-canvas-white: #ffffff;
  --color-slate-mist: #555555;
  --color-desert-sienna: #481ca0;
  --color-sienna-dark: #311074;
  --color-mist-bg: #f5f5f5;       /* soft band between white sections */
  --color-hairline: #e0e0e0;

  /* Typography */
  --font-display: 'Archivo', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Archivo', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --text-body-sm: 17px;
  --text-subheading: 20px;
  --text-heading-sm: 30px;
  --text-heading: 52px;
  --text-heading-lg: 63px;
  --text-display: 96px;          /* scaled down from 187px for a content site */

  --fw-regular: 400;
  --fw-medium: 600;
  --fw-bold: 700;

  /* Spacing */
  --section-gap: 68px;
  --card-padding: 22px;
  --element-gap: 23px;

  /* Radius */
  --radius-card: 45px;
  --radius-md: 22px;
  --radius-full: 1000px;

  /* Layout */
  --container: 1200px;
  --gutter: 24px;
  --header-h: 76px;
}

/* ----------------------------------------------------------------------- */
/* Reset                                                                    */
/* ----------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: var(--text-body-sm);
  line-height: 1.61;
  letter-spacing: 0.17px;
  color: var(--color-obsidian);
  background: var(--color-canvas-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; }

/* ----------------------------------------------------------------------- */
/* Typography helpers                                                       */
/* ----------------------------------------------------------------------- */
.display {
  font-size: var(--text-display);
  font-weight: var(--fw-bold);
  line-height: 0.92;
  letter-spacing: -0.03em;
}
.h-lg { font-size: var(--text-heading-lg); font-weight: var(--fw-bold); line-height: 0.95; letter-spacing: -0.02em; }
.h    { font-size: var(--text-heading);    font-weight: var(--fw-bold); line-height: 1.05; letter-spacing: -0.02em; }
.h-sm { font-size: var(--text-heading-sm); font-weight: var(--fw-bold); line-height: 1.1;  letter-spacing: -0.01em; }
.sub  { font-size: var(--text-subheading);  font-weight: var(--fw-regular); line-height: 1.4; }
.muted { color: var(--color-slate-mist); }
.eyebrow {
  font-size: 14px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-desert-sienna);
}

/* ----------------------------------------------------------------------- */
/* Layout primitives                                                        */
/* ----------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-gap); }
.section--tight { padding-block: 44px; }

/* Alternating bands */
.band-white { background: var(--color-canvas-white); }
.band-mist  { background: var(--color-mist-bg); }
.band-dark  { background: var(--color-obsidian); color: var(--color-canvas-white); }
.band-dark .muted { color: #9aa1a3; }

.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head .h, .section-head .h-lg { margin-top: 10px; }
.section-head .sub { margin-top: 16px; }

.grid { display: grid; gap: var(--element-gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ----------------------------------------------------------------------- */
/* Buttons (pill)                                                           */
/* ----------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: var(--fw-bold);
  font-size: var(--text-body-sm);
  line-height: 1;
  padding: 16px 26px 17px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--color-desert-sienna); color: #fff; }
.btn--primary:hover { background: var(--color-sienna-dark); }
.btn--dark { background: var(--color-obsidian); color: #fff; }
.btn--dark:hover { border-color: #fff; }
.btn--ghost { background: transparent; color: var(--color-obsidian); border-color: var(--color-obsidian); }
.btn--ghost:hover { background: var(--color-obsidian); color: #fff; }
.btn--ghost-light { background: transparent; color: #fff; border-color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--color-obsidian); }
.btn--lg { padding: 19px 32px 20px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ----------------------------------------------------------------------- */
/* Header / Nav                                                             */
/* ----------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-hairline);
}
.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__logo { width: 60px; height: auto; }
.brand__placeholder {
  font-weight: var(--fw-bold);
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.brand__placeholder span { color: var(--color-desert-sienna); }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-size: var(--text-body-sm); color: var(--color-obsidian); }
.nav__links a:hover { color: var(--color-desert-sienna); }
.nav__cta { display: flex; align-items: center; gap: 14px; }

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px; height: 44px;
  position: relative;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  content: '';
  position: absolute;
  left: 10px;
  width: 24px; height: 2px;
  background: var(--color-obsidian);
  transition: transform .2s ease, opacity .2s ease;
}
.nav__toggle span { top: 21px; }
.nav__toggle span::before { top: -7px; }
.nav__toggle span::after { top: 7px; }
.nav--open .nav__toggle span { background: transparent; }
.nav--open .nav__toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav--open .nav__toggle span::after  { transform: translateY(-7px) rotate(-45deg); }

/* ----------------------------------------------------------------------- */
/* Hero                                                                     */
/* ----------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  border-radius: 0;
}
.hero .ph { position: absolute; inset: 0; border-radius: 0; }
.hero__overlay {
  position: absolute; inset: 0;
  background: url('../assets/hero.webp') center / cover no-repeat;
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: 60px;
}
.hero__inner .display { max-width: 14ch; }
.hero__sub { margin-top: 20px; max-width: 48ch; color: #f1f1f0; }
.hero__cta { margin-top: 32px; }

/* ----------------------------------------------------------------------- */
/* Image placeholder                                                        */
/* ----------------------------------------------------------------------- */
.media {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--color-mist-bg);
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3  { aspect-ratio: 4 / 3; }
.media--1x1  { aspect-ratio: 1 / 1; }
.media--3x4  { aspect-ratio: 3 / 4; }

.ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  background:
    repeating-linear-gradient(45deg, rgba(51,51,51,.035) 0 12px, rgba(51,51,51,.06) 12px 24px);
  color: var(--color-slate-mist);
}
.ph::after {
  content: attr(data-label);
  font-size: 14px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6f6f76;
  max-width: 22ch;
}
.band-dark .ph { background: repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 12px, rgba(255,255,255,.09) 12px 24px); }
.band-dark .ph::after { color: #b9bdbe; }

/* ----------------------------------------------------------------------- */
/* Cards                                                                    */
/* ----------------------------------------------------------------------- */
.card {
  background: var(--color-canvas-white);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); }
.card__body { padding: var(--card-padding); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__body .h-sm { margin-top: 4px; }
.card__foot { margin-top: auto; padding-top: 14px; }
.band-mist .card { background:#fff; }

/* Step (numbered) cards for the lease explainer */
.steps { counter-reset: step; }
.step__num {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  background: var(--color-obsidian);
  color: #fff;
  font-weight: var(--fw-bold);
  font-size: 22px;
  margin-bottom: 18px;
}
.band-dark .step__num { background: var(--color-desert-sienna); }

/* Amenity strip */
.amenities { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 18px;
  border-radius: var(--radius-full);
  border: 1px solid currentColor;
  font-weight: var(--fw-medium);
  font-size: 15px;
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-desert-sienna); }

/* Spec table */
.spec { width: 100%; border-collapse: collapse; }
.spec th, .spec td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--color-hairline); font-size: 16px; }
.spec th { color: var(--color-slate-mist); font-weight: var(--fw-medium); width: 42%; }
.spec td { font-weight: var(--fw-medium); }

/* Price line */
.price { display: flex; align-items: baseline; gap: 8px; }
.price__amount { font-size: 30px; font-weight: var(--fw-bold); letter-spacing: -0.01em; }

/* Testimonial */
.quote { font-size: 21px; line-height: 1.45; font-weight: var(--fw-medium); }
.quote__who { margin-top: 16px; display: flex; align-items: center; gap: 12px; }
.quote__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--color-mist-bg); flex: none; position: relative; overflow: hidden; }
.stars { color: var(--color-desert-sienna); letter-spacing: 2px; font-size: 16px; }

/* Split feature row */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split--reverse .split__media { order: 2; }

/* ----------------------------------------------------------------------- */
/* Forms                                                                    */
/* ----------------------------------------------------------------------- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 15px; font-weight: var(--fw-medium); }
.field .req { color: var(--color-desert-sienna); }
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 16px;
  color: var(--color-obsidian);
  background: #fff;
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 130px; resize: vertical; border-radius: 18px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-desert-sienna);
  box-shadow: 0 0 0 3px rgba(72,28,160,.18);
}
.field .hint { font-size: 13px; color: var(--color-slate-mist); }
.field--invalid input,
.field--invalid select,
.field--invalid textarea { border-color: #c0392b; }
.form__note { font-size: 14px; color: var(--color-slate-mist); }
.form__success {
  display: none;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(72,28,160,.08);
  border: 1px solid var(--color-desert-sienna);
  font-weight: var(--fw-medium);
}
.form__success.is-visible { display: block; }

/* Contact details list */
.contact-list { display: grid; gap: 20px; }
.contact-item .label { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--color-slate-mist); }
.contact-item .value { font-size: 20px; font-weight: var(--fw-bold); margin-top: 3px; }
.contact-item .value a:hover { color: var(--color-desert-sienna); }

/* ----------------------------------------------------------------------- */
/* CTA band                                                                 */
/* ----------------------------------------------------------------------- */
.cta-band { text-align: center; }
.cta-band .btn-row { justify-content: center; margin-top: 28px; }

/* ----------------------------------------------------------------------- */
/* Footer                                                                   */
/* ----------------------------------------------------------------------- */
.footer { background: var(--color-obsidian); color: #fff; padding-block: 60px 30px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: #8e9092; margin-bottom: 16px; font-weight: var(--fw-bold); }
.footer a { color: #d7d9da; font-size: 16px; line-height: 2.1; }
.footer a:hover { color: #fff; }
.footer__brand .brand__placeholder { color: #fff; }
.footer__tag { color: #9aa1a3; margin-top: 14px; max-width: 30ch; }
.footer__bottom {
  margin-top: 44px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: #8e9092; font-size: 14px;
}

/* WhatsApp float */
.wa-float {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 60;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }

/* ----------------------------------------------------------------------- */
/* Page hero (inner pages)                                                  */
/* ----------------------------------------------------------------------- */
.page-hero { padding-block: 56px 8px; }
.page-hero .h-lg { max-width: 16ch; }
.page-hero .sub { margin-top: 16px; max-width: 56ch; }

/* ----------------------------------------------------------------------- */
/* Responsive                                                               */
/* ----------------------------------------------------------------------- */
@media (max-width: 960px) {
  :root { --text-display: 64px; --text-heading-lg: 46px; --text-heading: 40px; --section-gap: 52px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .split--reverse { grid-template-columns: 1fr; gap: 28px; }
  .split--reverse .split__media { order: 0; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav__links, .nav__cta .btn { display: none; }
  .nav__toggle { display: block; }
  .nav--open .nav__links {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px var(--gutter) 24px;
    background: #fff;
    border-bottom: 1px solid var(--color-hairline);
  }
  .nav--open .nav__links a { padding: 12px 0; width: 100%; font-size: 20px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .hero { min-height: 70vh; }
}

@media (max-width: 420px) {
  :root { --text-display: 50px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none !important; }
}
