/* =========================================================================
   IVORY — Luxury Car Hire Melbourne (WORKING NAME)
   Design system · white-led / light palette (deliberately not black)
   Style: editorial luxury · Cormorant Garamond display + Inter body
   Accent: champagne bronze. Charcoal ink (not pure black).
   All colours are CSS custom properties — no hardcoded hex in components.
   ========================================================================= */

:root {
  /* Surfaces (white-led) */
  --paper:      #FBFAF7;   /* primary warm white */
  --paper-2:    #F4F1EA;   /* alt sections / cards */
  --paper-3:    #ECE7DC;   /* deeper sand for frames */

  /* Ink (near-black, never pure #000) */
  --ink:        #1C1B18;   /* headings + body */
  --ink-soft:   #5B564C;   /* muted copy */
  --ink-faint:  #8B8578;   /* labels / meta */

  /* Champagne bronze accent */
  --gold:       #B08D57;   /* decorative rules / fills */
  --gold-soft:  #CBB489;   /* light lines */
  --gold-deep:  #7A5E31;   /* accent TEXT (AA on paper) */

  --line:       #E4DFD4;   /* hairlines */

  /* Type */
  --font-display: "Cormorant Garamond", Cormorant, Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Rhythm */
  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 9vw, 9rem);
  --unit: 8px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---------- Type scale ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: 0.005em; color: var(--ink); }
.display  { font-size: clamp(2.9rem, 7.2vw, 6.1rem); font-weight: 400; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 400; }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
p  { color: var(--ink-soft); max-width: 65ch; }
.lead { font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.55; color: var(--ink); font-weight: 300; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.8em;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); display: inline-block; }
.eyebrow.center::after { content: ""; width: 34px; height: 1px; background: var(--gold); display: inline-block; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--sand { background: var(--paper-2); }
.stack > * + * { margin-top: 1.1rem; }
.measure { max-width: 62ch; }
.center { text-align: center; margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 52px; padding: 0 1.9rem;
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  border: 1px solid var(--ink); color: var(--ink); background: transparent;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--gold { border-color: var(--gold); color: var(--paper); background: var(--gold); }
.btn--gold:hover { background: var(--gold-deep); border-color: var(--gold-deep); }
.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn--lg { min-height: 58px; padding: 0 2.4rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.5em; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--gold); padding-bottom: 3px; transition: gap .3s var(--ease), color .3s var(--ease); }
.link-arrow:hover { gap: 0.9em; color: var(--gold-deep); }
.link-arrow::after { content: "\2192"; }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.35rem var(--gutter);
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.scrolled { background: var(--paper); padding-block: 0.9rem; box-shadow: 0 1px 0 var(--line); }
.brand { font-family: var(--font-display); font-size: 1.65rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink); padding-left: 0.32em; }
.brand small { display: block; font-family: var(--font-body); font-size: 0.52rem; letter-spacing: 0.42em; color: var(--ink-faint); margin-top: 2px; padding-left: 0.1em; }
.nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.4vw, 2.4rem); }
.nav a { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); position: relative; padding-block: 4px; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--gold); transition: width .3s var(--ease); }
.nav a:not(.btn):hover::after { width: 100%; }
.nav .btn { min-height: 44px; padding: 0 1.3rem; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--paper); align-items: center; justify-content: center; }
.nav-toggle span { position: relative; width: 20px; height: 1.5px; background: var(--ink); transition: background .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding-top: 6rem;
  background:
    radial-gradient(120% 90% at 50% -10%, #FFFFFF 0%, var(--paper) 42%, var(--paper-2) 100%);
}
.hero::after { /* fine top hairline of light */ content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.5), transparent 25%); }
.hero__inner { position: relative; z-index: 2; max-width: 960px; }
.hero .display { margin-top: 1.6rem; }
.hero__sub { margin-top: 1.7rem; font-size: clamp(1.05rem, 1.6vw, 1.32rem); font-weight: 300; color: var(--ink-soft); max-width: 52ch; }
.hero__cta { margin-top: 2.6rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__scroll { position: absolute; left: 50%; bottom: 2rem; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; font-size: 0.62rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-faint); }
.hero__scroll span.rule { width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); }

/* Image slot — intentional, luxe placeholder for real fleet photography */
.slot {
  position: relative; background: var(--paper-3); border: 1px solid var(--line);
  overflow: hidden; aspect-ratio: 16 / 10;
}
.slot::before { content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(115deg, transparent 42%, rgba(255,255,255,.55) 50%, transparent 58%),
    repeating-linear-gradient(125deg, var(--paper-2) 0 22px, var(--paper-3) 22px 44px);
  opacity: .9; }
.slot__label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.4rem; z-index: 2; }
.slot__label .k { font-family: var(--font-body); font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-faint); }
.slot__label .n { font-family: var(--font-display); font-size: 1.35rem; color: var(--ink-soft); }
.slot--tall { aspect-ratio: 3 / 4; }
.slot--wide { aspect-ratio: 21 / 9; }

/* ---------- Section head ---------- */
.section-head { max-width: 720px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: 1rem; }
.section-head p { margin-top: 1.1rem; }
.section-head.center p { margin-inline: auto; }

/* ---------- Fleet grid ---------- */
.grid { display: grid; gap: clamp(1.2rem, 2.4vw, 2rem); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-fleet { background: var(--paper); border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.card-fleet:hover { transform: translateY(-4px); box-shadow: 0 18px 50px -30px rgba(28,27,24,.5); }
.card-fleet .slot { aspect-ratio: 4 / 3; border: 0; border-bottom: 1px solid var(--line); }
.card-fleet__body { padding: 1.4rem 1.5rem 1.6rem; }
.card-fleet__body .k { font-size: 0.64rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-deep); }
.card-fleet__body h3 { margin: 0.5rem 0 0.5rem; }
.card-fleet__body p { font-size: 0.95rem; margin-bottom: 1rem; }
.flag { display: inline-block; margin-top: 0.4rem; font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); border: 1px dashed var(--line); padding: 3px 7px; }

/* ---------- Experiences list ---------- */
.exp { border-top: 1px solid var(--line); }
.exp__row { display: grid; grid-template-columns: 4rem 1fr auto; align-items: center; gap: 1.5rem; padding: 1.7rem 0; border-bottom: 1px solid var(--line); transition: padding-left .35s var(--ease); }
.exp__row:hover { padding-left: 0.7rem; }
.exp__row .num { font-family: var(--font-display); font-size: 1.3rem; color: var(--gold); }
.exp__row h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); }
.exp__row p { font-size: 0.92rem; margin-top: 0.3rem; max-width: 60ch; }
.exp__row .go { color: var(--ink-faint); font-size: 1.4rem; transition: color .3s var(--ease), transform .3s var(--ease); }
.exp__row:hover .go { color: var(--gold-deep); transform: translateX(5px); }

/* ---------- Feature band ---------- */
.feature { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.feature--rev { direction: rtl; } .feature--rev > * { direction: ltr; }

/* ---------- Values ---------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 3vw, 2.6rem); }
.value .num { font-family: var(--font-display); font-size: 2.4rem; color: var(--gold); line-height: 1; }
.value h3 { font-size: 1.15rem; margin: 0.9rem 0 0.5rem; }
.value p { font-size: 0.92rem; }
.value { padding-top: 1.3rem; border-top: 1px solid var(--ink); }

/* ---------- Journal ---------- */
.card-post .slot { aspect-ratio: 3 / 2; border: 0; border-bottom: 1px solid var(--line); }
.card-post { border: 1px solid var(--line); background: var(--paper); transition: transform .4s var(--ease); }
.card-post:hover { transform: translateY(-4px); }
.card-post__body { padding: 1.3rem 1.4rem 1.5rem; }
.card-post__body .k { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); }
.card-post__body h3 { font-size: 1.25rem; margin-top: 0.5rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--paper-2); border-block: 1px solid var(--line); text-align: center; }
.cta-band .display { margin: 1rem auto 0; max-width: 16ch; }
.cta-band .btn { margin-top: 2rem; }

/* ---------- Contact / form ---------- */
.form-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.field { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1.15rem; }
.field label { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line);
  padding: 0.9rem 1rem; border-radius: 0; transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176,141,87,.18); }
.form-note { font-size: 0.8rem; color: var(--ink-faint); margin-top: 0.6rem; }
.contact-aside .eyebrow { margin-bottom: 1rem; }
.contact-aside dl { margin-top: 1.6rem; }
.contact-aside dt { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); margin-top: 1.1rem; }
.contact-aside dd { font-size: 1.05rem; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--line); padding-block: clamp(3.5rem, 7vw, 6rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-brand .brand { font-size: 1.9rem; }
.footer-brand p { margin-top: 1.1rem; font-size: 0.92rem; max-width: 34ch; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; margin-bottom: 1.1rem; }
.footer-col a { display: block; font-size: 0.92rem; color: var(--ink-soft); padding: 0.32rem 0; transition: color .25s var(--ease); }
.footer-col a:hover { color: var(--gold-deep); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.6rem; border-top: 1px solid var(--line); font-size: 0.78rem; color: var(--ink-faint); }
.footer-base a { color: var(--ink-faint); } .footer-base a:hover { color: var(--ink); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .feature, .form-grid { grid-template-columns: 1fr; }
  .feature--rev { direction: ltr; }
}
@media (max-width: 720px) {
  .nav { position: fixed; inset: 0 0 0 auto; width: min(82vw, 360px); flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.6rem; background: var(--paper); padding: 2rem 2.2rem; transform: translateX(100%); transition: transform .45s var(--ease); box-shadow: -20px 0 60px -30px rgba(0,0,0,.4); }
  .nav.open { transform: none; }
  .nav a { font-size: 1rem; }
  .nav-toggle { display: inline-flex; z-index: 120; }
  body.menu-open { overflow: hidden; }
  .grid--3, .grid--2, .values { grid-template-columns: 1fr; }
  .exp__row { grid-template-columns: 2.6rem 1fr; }
  .exp__row .go { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hero__scroll { display: none; }
}
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Motion / a11y ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }

/* =========================================================================
   INNER PAGES (generated) — page hero, prose, FAQ, related, wide footer
   ========================================================================= */
.page-hero { padding: clamp(8rem,13vw,10.5rem) 0 clamp(2.5rem,5vw,3.5rem);
  background: radial-gradient(120% 100% at 50% -20%, #fff, var(--paper) 45%, var(--paper-2)); border-bottom: 1px solid var(--line); }
.breadcrumb { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.breadcrumb a { color: var(--ink-faint); } .breadcrumb a:hover { color: var(--gold-deep); }
.breadcrumb span { margin: 0 .55em; color: var(--gold-soft); }
.page-hero h1 { margin-top: 1.1rem; max-width: 20ch; }
.page-hero .hero__sub { margin-top: 1.2rem; }
.page-hero .btnrow { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }

.body-wrap { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: clamp(2rem,5vw,4.5rem); align-items: start; }
.prose { max-width: 72ch; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { margin: 2.5rem 0 1rem; font-size: clamp(1.6rem,2.8vw,2.25rem); }
.prose h3 { margin: 1.9rem 0 .7rem; font-size: 1.3rem; }
.prose p { margin-bottom: 1.1rem; }
.prose ul, .prose ol { margin: 0 0 1.2rem 1.2rem; color: var(--ink-soft); }
.prose li { margin-bottom: .5rem; padding-left: .3rem; }
.prose a { color: var(--gold-deep); border-bottom: 1px solid var(--gold-soft); transition: border-color .25s var(--ease); }
.prose a:hover { border-color: var(--gold-deep); }
.prose strong { color: var(--ink); font-weight: 600; }

.enquire-card { position: sticky; top: 6.5rem; background: var(--paper-2); border: 1px solid var(--line); padding: 1.8rem 1.7rem; }
.enquire-card .eyebrow { margin-bottom: .9rem; }
.enquire-card h3 { font-size: 1.35rem; }
.enquire-card p { font-size: .9rem; margin: .6rem 0 1.3rem; }
.enquire-card .btn { width: 100%; }

.faq { border-top: 1px solid var(--line); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 1.25rem 0; }
.faq summary { cursor: pointer; font-family: var(--font-display); font-size: 1.22rem; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-deep); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin-top: .9rem; color: var(--ink-soft); max-width: 68ch; }

.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.related-grid a { border: 1px solid var(--line); padding: 1.3rem 1.4rem; background: var(--paper); transition: transform .3s var(--ease), border-color .3s var(--ease); }
.related-grid a:hover { transform: translateY(-3px); border-color: var(--gold-soft); }
.related-grid .k { font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); }
.related-grid span.t { display: block; font-family: var(--font-display); font-size: 1.22rem; margin-top: .4rem; color: var(--ink); }

/* Wider 5-column footer (brand + 4 link columns) */
.footer-grid { grid-template-columns: 1.3fr repeat(4, 1fr); }

@media (max-width: 1000px) {
  .body-wrap { grid-template-columns: 1fr; }
  .enquire-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .related-grid { grid-template-columns: 1fr; }
}

/* Preview-only: highlight unconfirmed placeholders. Removed at go-live once filled. */
.todo { background: #FBF3D9; color: var(--gold-deep); border-bottom: 1px dashed var(--gold); padding: 0 .22em; font-size: .92em; border-radius: 2px; }
