/* Athena Luxury Rentals — design system
   Palette carried from the live site: navy #0d141a/#1a2633, steel blue #3a7ca5, gold #e8b04b */

:root {
  --navy-900: #0d141a;
  --navy-800: #121c25;
  --navy-700: #1a2633;
  --navy-600: #22323f;
  --blue: #3a7ca5;
  --blue-600: #336d91;
  --gold: #e8b04b;
  --gold-300: #ffd28c;
  --gold-soft: #fff8e2;
  --ink: #0d141a;
  --muted: #5b6b78;
  --muted-d: #a6b6c2;
  --line: rgba(255, 255, 255, .10);
  --line-ink: rgba(13, 20, 26, .12);
  --white: #ffffff;
  --bg: #f6f8fa;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, .45);
  --radius: 16px;
  --font-display: 'Sora', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --container: 1180px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--dark { background: var(--navy-900); color: var(--white); }
.section--navy { background: var(--navy-700); color: var(--white); }
.section--soft { background: var(--bg); }
.section--dark h1, .section--dark h2, .section--dark h3,
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 .9rem;
}
.section-head { max-width: 720px; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.section-head p { color: var(--muted); font-size: 1.06rem; }
.section--dark .section-head p, .section--navy .section-head p { color: var(--muted-d); }
.gold-text { color: var(--gold); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted-d); max-width: 46ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  padding: .85rem 1.5rem; border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--navy-900); box-shadow: 0 10px 30px -10px rgba(232, 176, 75, .6); }
.btn--gold:hover { background: var(--gold-300); }
.btn--outline { border-color: rgba(255, 255, 255, .35); color: var(--white); }
.btn--outline:hover { border-color: var(--gold); color: var(--gold); }
.btn--ink { background: var(--navy-900); color: var(--white); }
.btn--ink:hover { background: var(--navy-700); }
.btn--lg { padding: 1rem 1.8rem; font-size: 1.05rem; }

/* ---------- header / nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 20, 26, .82); backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--white); }
.brand img { height: 42px; width: auto; border-radius: 8px; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.06rem; letter-spacing: .01em; }
.brand__name small { display: block; font-weight: 400; font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a { color: var(--muted-d); font-weight: 500; font-size: .96rem; transition: color .15s ease; }
.nav__links a:hover, .nav__links a.is-active { color: var(--white); }
.nav__cta { display: flex; align-items: center; gap: 1rem; }
.nav__toggle { display: none; background: none; border: 0; color: var(--white); cursor: pointer; padding: 6px; }
.nav__toggle svg { width: 26px; height: 26px; }

/* ---------- hero ---------- */
.hero { position: relative; color: var(--white); background: var(--navy-900); overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, rgba(13, 20, 26, .94) 30%, rgba(13, 20, 26, .55) 70%, rgba(58, 124, 165, .35));
}
.hero__inner { position: relative; z-index: 2; padding: clamp(4.5rem, 11vw, 8.5rem) 0 clamp(3.5rem, 8vw, 6rem); max-width: 760px; }
.hero h1 { margin-bottom: .35em; }
.hero .lead { margin-bottom: 2rem; color: #d7e2ea; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero--sm .hero__inner { padding: clamp(3.5rem, 8vw, 5.5rem) 0; max-width: 720px; }

/* ---------- fleet cards ---------- */
.grid { display: grid; gap: 1.6rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-ink); box-shadow: 0 10px 30px -22px rgba(13, 20, 26, .5);
  display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__media { position: relative; aspect-ratio: 16 / 11; background: var(--navy-700); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__badge {
  position: absolute; top: 12px; left: 12px; background: rgba(13, 20, 26, .82); color: var(--gold-300);
  font-size: .72rem; font-weight: 600; letter-spacing: .04em; padding: .35rem .7rem; border-radius: 999px;
  font-family: var(--font-display); backdrop-filter: blur(4px);
}
.card__body { padding: 1.4rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: .4rem; }
.card__body p { color: var(--muted); font-size: .95rem; flex: 1; }
.card__price { display: flex; align-items: baseline; gap: .5rem; margin: .8rem 0 1.1rem; }
.card__price b { font-family: var(--font-display); font-size: 1.7rem; color: var(--ink); }
.card__price span { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- perks (car club) ---------- */
.perks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; max-width: 940px; margin-inline: auto; }
.perk { display: flex; gap: .9rem; background: var(--navy-800); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem; }
.perk__ico { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(232, 176, 75, .15); color: var(--gold); }
.perk p { margin: 0; color: #cdd9e1; font-size: .96rem; }
.perk a { color: var(--gold-300); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- stat + newsletter ---------- */
.stat { text-align: center; }
.stat b { font-family: var(--font-display); font-size: clamp(2.6rem, 6vw, 3.6rem); color: var(--gold); display: block; line-height: 1; }
.stat span { letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; color: var(--muted-d); }
.inline-form { display: flex; gap: .6rem; max-width: 440px; }
.inline-form input { flex: 1; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery a { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 1 / 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery a:hover img { transform: scale(1.06); }

/* ---------- booking embed ---------- */
.booking { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line-ink); }
/* Height is a generous fallback for when the postMessage auto-resize listener
   hasn't initialized; the listener overrides this with the booking app's
   actual content height. */
.booking iframe { width: 100%; height: 1700px; border: 0; display: block; background: #fff; }

/* ---------- info / contact ---------- */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; align-items: start; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.2rem; }
.info-list li { display: flex; gap: .9rem; align-items: flex-start; }
.info-list .ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(58, 124, 165, .14); color: var(--blue); }
.section--dark .info-list .ico, .section--navy .info-list .ico { background: rgba(232, 176, 75, .15); color: var(--gold); }
.info-list h4 { margin: 0 0 .15rem; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-d); font-weight: 600; }
.info-list a, .info-list p { margin: 0; font-size: 1.08rem; color: inherit; }

/* ---------- forms ---------- */
.form { display: grid; gap: .9rem; }
.field label { display: block; font-size: .82rem; font-weight: 600; letter-spacing: .04em; margin-bottom: .35rem; color: var(--muted-d); }
.section--soft .field label, body > main .section:not(.section--dark):not(.section--navy) .field label { color: var(--muted); }
input, textarea, select {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--line-ink); border-radius: 12px; padding: .8rem 1rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(58, 124, 165, .18); }
textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .82rem; color: var(--muted); }
.section--dark .form-note, .section--navy .form-note { color: var(--muted-d); }
.alert { padding: .9rem 1.1rem; border-radius: 12px; font-size: .95rem; margin-bottom: 1rem; }
.alert--ok { background: rgba(46, 160, 102, .15); color: #1e7f4e; border: 1px solid rgba(46, 160, 102, .35); }

/* ---------- legal / prose ---------- */
.legal { max-width: 820px; margin-inline: auto; }
.legal .updated { color: var(--muted); font-size: .92rem; margin-bottom: 2rem; }
.legal h2 { font-size: 1.45rem; margin-top: 2.6rem; }
.legal h3 { font-size: 1.08rem; margin-top: 1.7rem; margin-bottom: .3rem; color: var(--navy-700); }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 1.2rem; display: grid; gap: .45rem; margin: 0 0 1.1rem; }
.legal strong { color: var(--ink); }
.legal a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- footer ---------- */
.footer { background: var(--navy-900); color: var(--muted-d); padding: 3.5rem 0 2rem; border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; margin-bottom: 2.4rem; }
.footer h4 { color: var(--white); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.footer a { color: var(--muted-d); transition: color .15s ease; }
.footer a:hover { color: var(--gold); }
.footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer__brand img { height: 48px; width: auto; border-radius: 8px; margin-bottom: 1rem; }
.footer__brand p { max-width: 30ch; font-size: .95rem; }
.social { display: flex; gap: .7rem; margin-top: 1rem; }
.social a { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; display: grid; place-items: center; color: var(--white); }
.social a:hover { border-color: var(--gold); color: var(--gold); }
.footer__bottom { border-top: 1px solid var(--line); padding-top: 1.4rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem;
    position: absolute; top: 72px; left: 0; right: 0; background: var(--navy-900);
    padding: 1.4rem 22px 1.8rem; border-bottom: 1px solid var(--line);
  }
  .nav__links a { font-size: 1.05rem; }
  .grid--3, .grid--2, .info-grid, .perks, .footer__grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .hero__cta .btn, .inline-form .btn { width: 100%; justify-content: center; }
  .inline-form { flex-direction: column; }
  .booking iframe { height: 1900px; }   /* fallback only; auto-resize JS overrides this */
  .nav.is-open .nav__links .nav__book-m { display: inline-flex; margin-top: .5rem; }
}
.nav__cta .btn--book { display: none; }
@media (min-width: 761px) { .nav__cta .btn--book { display: inline-flex; } }
/* Book Now lives in the desktop nav__cta; on mobile it rides inside the open menu */
.nav__links .nav__book-m { display: none; }
.nav__links a.nav__book-m { color: var(--navy-900); font-weight: 600; font-family: var(--font-display); }
.nav__links a.nav__book-m:hover { color: var(--navy-900); }
