/* Aliazis Rent — static, dependency-free stylesheet.
   Colour tokens: every text/background pair meets WCAG 2.1 AA (≥ 4.5:1) in both themes. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --text: #16181d;
  --muted: #474d57;
  --link: #0a5c4a;
  --link-hover: #06392e;
  --heading: #0f1720;
  --accent: #0a5c4a;          /* deep electric green, 7.7:1 on white */
  --accent-soft: #e4f4ef;
  --surface: #f4f6f8;
  --surface-2: #ffffff;
  --border: #d6dbe1;
  --header-bg: #0f1720;
  --header-text: #ffffff;
  --btn-bg: #0a5c4a;
  --btn-bg-hover: #06392e;
  --btn-text: #ffffff;
  --band-bg: #0f1720;
  --band-text: #f3f5f7;
  --band-accent: #7fe0c4;
  --footer-bg: #0a0f15;
  --footer-text: #e8ebef;
  --footer-link: #7fe0c4;
  --focus: #b35c00;
  --focus-on-dark: #ffd166;
  --shadow: 0 1px 2px rgba(15, 23, 32, .06), 0 8px 24px rgba(15, 23, 32, .08);
  --radius: 14px;
  --max: 70rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0e1116;
    --text: #e9edf2;
    --muted: #b8c0ca;
    --link: #7fe0c4;
    --link-hover: #b5f0de;
    --heading: #ffffff;
    --accent: #7fe0c4;
    --accent-soft: #15332c;
    --surface: #161b22;
    --surface-2: #1b212a;
    --border: #2e3640;
    --header-bg: #070a0e;
    --btn-bg: #7fe0c4;
    --btn-bg-hover: #b5f0de;
    --btn-text: #06261e;
    --band-bg: #15332c;
    --band-text: #f3f5f7;
    --band-accent: #7fe0c4;
    --footer-bg: #070a0e;
    --focus: #ffb347;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1116;
  --text: #e9edf2;
  --muted: #b8c0ca;
  --link: #7fe0c4;
  --link-hover: #b5f0de;
  --heading: #ffffff;
  --accent: #7fe0c4;
  --accent-soft: #15332c;
  --surface: #161b22;
  --surface-2: #1b212a;
  --border: #2e3640;
  --header-bg: #070a0e;
  --btn-bg: #7fe0c4;
  --btn-bg-hover: #b5f0de;
  --btn-text: #06261e;
  --band-bg: #15332c;
  --band-text: #f3f5f7;
  --band-accent: #7fe0c4;
  --footer-bg: #070a0e;
  --focus: #ffb347;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: anywhere;      /* long words/URLs never push the layout wider */
  hyphens: manual;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: underline; text-underline-offset: .18em; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: 1rem; }

.skip-link {
  position: absolute; left: 1rem; top: -6rem; z-index: 100;
  padding: .75rem 1rem; border-radius: 8px;
  background: var(--btn-bg); color: var(--btn-text); font-weight: 700;
}
.skip-link:focus { top: 1rem; color: var(--btn-text); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
.wrap.narrow { max-width: 48rem; }

/* ---------- ESPA banner: first element, above the fold, always on white for the official logos ---------- */
.espa { background: #ffffff; border-bottom: 1px solid #d6dbe1; }
.espa a { display: block; max-width: 60rem; margin: 0 auto; padding: .4rem clamp(.5rem, 3vw, 1rem); border-radius: 0; }
.espa a:focus-visible { outline: 3px solid #b35c00; outline-offset: -3px; }
.espa img { display: block; width: 100%; height: auto; }

/* ---------- header ---------- */
.site-header { background: var(--header-bg); color: var(--header-text); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .5rem 1.5rem; padding-top: .8rem; padding-bottom: .8rem;
}
.site-header :focus-visible { outline-color: var(--focus-on-dark); }
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  color: var(--header-text); font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; text-decoration: none;
}
.brand:hover { color: var(--header-text); }
.brand-mark {
  display: inline-grid; place-items: center; width: 2rem; height: 2rem; flex: none;
  border-radius: 50%; background: #7fe0c4; color: #06261e;
}
.brand-mark .icon-svg { width: 1.1rem; height: 1.1rem; fill: currentColor; stroke: none; }

.header-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; min-width: 0; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0 1.1rem; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  display: inline-block; padding: .6rem 0; min-height: 44px;
  color: var(--header-text); font-weight: 500; text-decoration: none;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--header-text); border-bottom-color: #7fe0c4; }

.theme-toggle {
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: 44px; padding: .35rem .95rem;
  border: 2px solid rgba(255, 255, 255, .7); border-radius: 999px;
  background: transparent; color: var(--header-text);
  font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { background: rgba(255, 255, 255, .12); }
.theme-toggle[aria-pressed="true"] { background: #7fe0c4; border-color: #7fe0c4; color: #06261e; }
.theme-toggle .icon-svg { width: 1.15rem; height: 1.15rem; }

/* ---------- hero ---------- */
.hero {
  background: var(--surface);         /* solid colour so contrast checkers can verify every text pair */
  border-bottom: 4px solid var(--accent);
  padding: clamp(2rem, 6vw, 4.5rem) 0;
}
.hero-grid {
  display: grid; align-items: center; gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}
.hero-text { min-width: 0; }
.eyebrow {
  display: inline-block; margin: 0 0 1rem; padding: .3rem .8rem; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: .9rem; font-weight: 700; letter-spacing: .02em;
}
.hero h1 {
  margin: 0 0 1rem; color: var(--heading);
  font-size: clamp(1.9rem, 4.6vw, 3.1rem); line-height: 1.12; letter-spacing: -.02em;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); margin: 0 0 1.75rem; max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-art { margin: 0; min-width: 0; }
.hero-art img {
  display: block; width: 100%; height: auto;
  border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow);
}
.hero-art figcaption { margin-top: .5rem; font-size: .85rem; color: var(--muted); text-align: right; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .75rem 1.4rem; border-radius: 999px; border: 2px solid var(--btn-bg);
  background: var(--btn-bg); color: var(--btn-text);
  font: inherit; font-weight: 700; text-decoration: none; text-align: center; cursor: pointer;
}
.button:hover { background: var(--btn-bg-hover); border-color: var(--btn-bg-hover); color: var(--btn-text); }
.button-ghost { background: transparent; color: var(--accent); border-color: var(--accent); }
.button-ghost:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }

/* ---------- sections ---------- */
main section { padding: clamp(2.5rem, 6vw, 4rem) 0; }
main section.alt { background: var(--surface); }
main h1 { color: var(--heading); line-height: 1.15; font-size: clamp(1.6rem, 4.5vw, 2.3rem); letter-spacing: -.015em; }
main h2 { margin: 0 0 .75rem; color: var(--heading); font-size: clamp(1.45rem, 3.2vw, 2rem); line-height: 1.2; letter-spacing: -.01em; }
main h3 { margin: 0 0 .4rem; font-size: 1.15rem; color: var(--heading); }
.section-lead { color: var(--muted); max-width: 42rem; margin: 0 0 1.75rem; }

.icon-svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card-icon {
  display: inline-grid; place-items: center; flex: none;
  width: 2.75rem; height: 2.75rem; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
}

/* car specs */
.specs { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(9.5rem, 100%), 1fr)); margin: 0; }
.specs div {
  min-width: 0; padding: 1rem 1.15rem; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--border); box-shadow: var(--shadow);
  border-top: 4px solid var(--accent);
}
.specs dt { font-size: .85rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.specs dd { margin: .2rem 0 0; font-size: 1.15rem; font-weight: 800; color: var(--heading); }

/* feature cards */
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); }
.card {
  min-width: 0; padding: 1.4rem; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.card .card-icon { margin-bottom: .9rem; }
.card p { margin: 0; color: var(--muted); }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); counter-reset: none; }
.steps li { display: flex; gap: 1rem; align-items: flex-start; min-width: 0; padding: 1.2rem; border-radius: var(--radius); border: 1px dashed var(--border); }
.steps p { margin: 0; min-width: 0; }
.step-num {
  display: inline-grid; place-items: center; flex: none;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--btn-bg); color: var(--btn-text); font-weight: 800;
}

/* contact band */
.contact-band { background: var(--band-bg); color: var(--band-text); }
.contact-band h2 { color: #ffffff; }
.contact-band .section-lead { color: var(--band-text); }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); }
.contact-item {
  display: flex; gap: .9rem; align-items: center; min-width: 0;
  padding: 1rem 1.15rem; border-radius: var(--radius);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .18);
}
.contact-item > span:last-child { min-width: 0; }
.contact-band .card-icon { background: var(--band-accent); color: #06261e; }
.contact-band a { color: var(--band-accent); }

/* ---------- footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 2rem 0; font-size: .95rem; }
.site-footer a { color: var(--footer-link); }
.site-footer a:hover { color: #ffffff; }
.site-footer :focus-visible { outline-color: var(--focus-on-dark); }
.site-footer p { margin: .25rem 0; }

/* ---------- poster & statement pages ---------- */
.poster {
  margin: 1.5rem 0; padding: clamp(1rem, 4vw, 2rem);
  border-radius: var(--radius); border: 2px solid var(--accent);
  background: var(--surface-2); box-shadow: var(--shadow);
}
.poster img { display: block; width: 100%; height: auto; margin-bottom: 1.25rem; background: #fff; border-radius: 8px; }
.poster dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .35rem 1rem; margin: 1rem 0; }
.poster dt { font-weight: 700; }
.poster dd { margin: 0; }
.note { color: var(--muted); font-style: italic; }
.ticks { padding-left: 1.25rem; }
.ticks li { margin-bottom: .4rem; }

/* ---------- responsive ---------- */
@media (max-width: 52rem) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 34rem; }
}
@media (max-width: 40rem) {
  body { font-size: 1rem; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; }
  .hero-actions .button { flex: 1 1 100%; }
  .poster dl { grid-template-columns: minmax(0, 1fr); }
  .poster dd { margin-bottom: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- contact grid + availability form ---------- */
:root { --error: #b3261e; --ok: #0a5c4a; --field-border: #6b7480; }
:root[data-theme="dark"] { --error: #ffb4ab; --ok: #7fe0c4; --field-border: #8b95a1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --error: #ffb4ab; --ok: #7fe0c4; --field-border: #8b95a1; } }

.contact-grid { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); align-items: start; }
.contact-grid .contact-list { grid-template-columns: minmax(0, 1fr); }

.booking-form {
  min-width: 0; padding: clamp(1.1rem, 3vw, 1.75rem); border-radius: var(--radius);
  background: var(--surface-2); color: var(--text); box-shadow: var(--shadow);
}
.booking-form h3 { margin: 0 0 .25rem; font-size: 1.35rem; color: var(--heading); }
.form-note { margin: 0 0 1rem; font-size: .95rem; color: var(--muted); }
.form-grid { display: grid; gap: 1rem 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); margin-bottom: 1.25rem; }
.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { font-weight: 600; }
.req { color: var(--error); margin-left: .15rem; }
.booking-form input:not([type="checkbox"]), .booking-form select, .booking-form textarea {
  width: 100%; min-width: 0; min-height: 48px; padding: .6rem .75rem;
  border: 2px solid var(--field-border); border-radius: 10px;
  background: var(--bg); color: var(--text); font: inherit;
}
.booking-form textarea { resize: vertical; min-height: 6rem; }
.booking-form input:focus-visible, .booking-form select:focus-visible, .booking-form textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--accent); }
.booking-form [aria-invalid="true"] { border-color: var(--error); }
.field-check { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: .6rem; }
.field-check input { width: 1.4rem; height: 1.4rem; margin: .15rem 0 0; flex: none; accent-color: var(--accent); }
.field-check label { flex: 1 1 0; min-width: 0; font-weight: 500; }
.field-check .field-error { flex-basis: 100%; }
.field-error { margin: 0; color: var(--error); font-weight: 600; font-size: .95rem; }
.form-status { margin: 1rem 0 0; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--error); }
.form-status.is-ok { color: var(--ok); }
.booking-form .button { width: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.site-footer .made-by { margin-top: .75rem; }

@media (max-width: 52rem) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 40rem) { .booking-form .button { width: 100%; } }
