/* ─────────────────────────────────────────────────────────────
   Myfleet Lease — design tokens & global styles
   Clean & corporate. Logo colors: cyan / teal / mint.
   ───────────────────────────────────────────────────────────── */

:root {
  /* Brand palette (from logo) */
  --brand-cyan:      #5BC8E8;
  --brand-teal:      #1A8FB8;   /* primary — logo wordmark */
  --brand-teal-2:    #2BB3B3;   /* mid-teal wing */
  --brand-mint:      #2BCC8E;   /* mint wing — sustainability accent */
  --brand-deep:      #0E5E7C;   /* deepened teal for emphasis */

  /* Primary — overridable by Tweaks */
  --primary:         var(--brand-teal);
  --primary-ink:     #ffffff;
  --primary-soft:    #E8F4F9;
  --primary-soft-2:  #D2EAF2;

  --accent:          var(--brand-mint);
  --accent-soft:     #DAF6E8;

  /* Neutrals — light mode */
  --ink:             #0E2530;
  --text:            #213642;
  --muted:           #5E7480;
  --hairline:        #E4EDF1;
  --border:          #D4E1E8;

  --surface:         #ffffff;
  --surface-2:       #F5F9FB;
  --surface-3:       #ECF3F6;
  --surface-tint:    #F8FBFC;

  --shadow-sm: 0 1px 2px rgba(14, 37, 48, 0.04), 0 1px 3px rgba(14, 37, 48, 0.06);
  --shadow-md: 0 4px 12px rgba(14, 37, 48, 0.06), 0 2px 4px rgba(14, 37, 48, 0.04);
  --shadow-lg: 0 18px 40px -12px rgba(14, 37, 48, 0.14), 0 8px 16px -8px rgba(14, 37, 48, 0.08);
  --shadow-xl: 0 32px 64px -24px rgba(14, 37, 48, 0.22);

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  /* Type scale */
  --font-display: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --font-sans:    "Manrope", ui-sans-serif, system-ui, sans-serif;

  --container:    1200px;
  --section-y:    96px;
}

[data-theme="dark"] {
  --ink:          #F1F7FA;
  --text:         #D9E5EB;
  --muted:        #8FA3AD;
  --hairline:     rgba(255,255,255,0.08);
  --border:       rgba(255,255,255,0.12);

  --surface:      #0B1A23;
  --surface-2:    #0F2330;
  --surface-3:    #15303E;
  --surface-tint: #0D1F2A;

  --primary-soft:   rgba(91, 200, 232, 0.12);
  --primary-soft-2: rgba(91, 200, 232, 0.20);
  --accent-soft:    rgba(43, 204, 142, 0.14);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 18px 40px -12px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 32px 64px -24px rgba(0, 0, 0, 0.7);
}

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--surface);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-wrap: pretty;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; cursor: pointer; }

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  font-weight: 600;
}
h1 { font-size: clamp(40px, 5.6vw, 68px); letter-spacing: -0.03em; }
h2 { font-size: clamp(30px, 3.6vw, 46px); }
h3 { font-size: clamp(22px, 2.2vw, 28px); }
h4 { font-size: 18px; letter-spacing: -0.01em; }
p  { margin: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--primary);
  padding: 6px 12px; border-radius: 999px;
  background: var(--primary-soft);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--muted); }

/* Layout */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: var(--section-y); }
.section.tight { padding-block: 64px; }
.section.surface-2 { background: var(--surface-2); }
.section.surface-3 { background: var(--surface-3); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: 14px; }
.section-head .lead { margin-top: 18px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans); font-weight: 600; font-size: 15px;
  padding: 14px 22px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  text-decoration: none; white-space: nowrap;
  background: var(--primary); color: var(--primary-ink);
  box-shadow: 0 4px 10px -2px color-mix(in oklab, var(--primary) 50%, transparent);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -4px color-mix(in oklab, var(--primary) 55%, transparent); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }

.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--border); box-shadow: none;
}
.btn-ghost:hover { background: var(--surface-2); box-shadow: none; }

.btn-soft {
  background: var(--primary-soft); color: var(--primary); box-shadow: none;
}
.btn-soft:hover { background: var(--primary-soft-2); box-shadow: none; }

.btn-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--primary); font-weight: 600; font-size: 15px;
}
.btn-link .arr { transition: transform .2s ease; }
.btn-link:hover { text-decoration: none; }
.btn-link:hover .arr { transform: translateX(3px); }

.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-lg { padding: 16px 26px; font-size: 16px; }

/* Header / nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--surface) 88%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 24px;
}
.site-logo { display: flex; align-items: center; gap: 10px; color: var(--ink); white-space: nowrap; }
.site-logo:hover { text-decoration: none; }
.site-logo .wordmark { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; color: var(--brand-teal); white-space: nowrap; }
[data-theme="dark"] .site-logo .wordmark { color: var(--brand-cyan); }
.site-logo svg { width: 48px; height: 38px; flex-shrink: 0; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a, .site-nav .dropdown > button {
  font: inherit; font-size: 15px; font-weight: 500; color: var(--text);
  padding: 8px 14px; border-radius: 10px;
  background: transparent; border: 0; display: inline-flex; align-items: center; gap: 6px;
}
.site-nav a:hover, .site-nav .dropdown > button:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.site-nav a.active, .site-nav .dropdown.active > button { color: var(--ink); }
.site-nav a.active::after, .site-nav .dropdown.active > button::after {
  content: ""; display: block; height: 2px; width: 22px; margin: 4px auto 0;
  background: var(--primary); border-radius: 2px;
}
.site-nav .dropdown { position: relative; }
.site-nav .dropdown > button .chev { transition: transform .2s; }
.site-nav .dropdown.open > button .chev { transform: rotate(180deg); }
.site-nav .dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(-6px);
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px; min-width: 280px;
  opacity: 0; pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
  z-index: 60;
}
.site-nav .dropdown.open .dropdown-menu { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.site-nav .dropdown-menu a {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 10px;
  width: 100%; box-sizing: border-box;
}
.site-nav .dropdown-menu a:hover { background: var(--surface-2); text-decoration: none; }
.site-nav .dropdown-menu a .ic {
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
  background: var(--primary-soft); color: var(--primary);
  display: grid; place-items: center;
}
.site-nav .dropdown-menu a.mint .ic { background: var(--accent-soft); color: #0E7A4D; }
[data-theme="dark"] .site-nav .dropdown-menu a.mint .ic { color: var(--brand-mint); }
.site-nav .dropdown-menu a .label { font-weight: 600; color: var(--ink); font-size: 14px; }
.site-nav .dropdown-menu a .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.site-nav .dropdown-menu a.active { background: var(--primary-soft); }
.site-nav .dropdown-menu a.active::after { display: none; }

.header-cta { display: flex; align-items: center; gap: 10px; }

.header-login {
  font-size: 14px; font-weight: 600; color: var(--text);
  padding: 8px 14px; border-radius: 10px;
  display: inline-flex; align-items: center; gap: 6px;
}
.header-login:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.header-login svg { color: var(--muted); }
.header-login:hover svg { color: var(--primary); }

.nav-toggle { display: none; background: transparent; border: 0; color: var(--ink); padding: 8px; border-radius: 8px; }
.nav-toggle:hover { background: var(--surface-2); }

@media (max-width: 920px) {
  .site-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 12px 24px 20px; background: var(--surface); border-bottom: 1px solid var(--hairline); gap: 2px; }
  .site-nav.open { display: flex; }
  .site-nav a, .site-nav .dropdown > button { padding: 12px 14px; justify-content: flex-start; }
  .site-nav a.active::after, .site-nav .dropdown.active > button::after { display: none; }
  .site-nav .dropdown { width: 100%; }
  .site-nav .dropdown > button { width: 100%; justify-content: space-between; }
  .site-nav .dropdown-menu { position: static; transform: none; opacity: 1; pointer-events: auto; box-shadow: none; border: 0; border-left: 2px solid var(--hairline); border-radius: 0; margin-left: 14px; padding: 4px 0 8px 8px; min-width: 0; display: none; }
  .site-nav .dropdown.open .dropdown-menu { display: block; transform: none; }
  .nav-toggle { display: inline-flex; }
  .header-cta .btn:not(.btn-sm) { display: none; }
}

/* Footer */
.site-footer {
  background: var(--surface-2);
  border-top: 1px solid var(--hairline);
  margin-top: 96px;
}
/* Contact strip */
.footer-strip {
  background: linear-gradient(135deg, var(--primary) 0%, #1fa8a8 100%);
  padding: 20px 0;
}
.footer-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-strip-contacts {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-strip-contacts a,
.footer-strip-contacts span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  opacity: .92;
}
.footer-strip-contacts a:hover { opacity: 1; text-decoration: underline; }
.footer-strip .btn-strip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.18);
  border: 1.5px solid rgba(255,255,255,.5);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s;
}
.footer-strip .btn-strip:hover { background: rgba(255,255,255,.28); }
/* Main footer grid */
.footer-main {
  padding: 60px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .site-logo { margin-bottom: 12px; }
.footer-brand .brand-blurb { color: var(--muted); max-width: 280px; margin: 0; font-size: 14px; line-height: 1.6; }
.site-footer h5 { font-family: var(--font-sans); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 0 0 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.site-footer li { font-size: 14px; }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--primary); }
.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.footer-contact-list li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--primary);
}
.footer-contact-list a { color: var(--text); font-size: 13px; }
.footer-contact-list a:hover { color: var(--primary); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  color: var(--muted);
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: var(--muted); font-size: 12px; }
.footer-bottom-links a:hover { color: var(--primary); }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 28px; }
}
@media (max-width: 600px) {
  .footer-strip-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* Card */
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card.hover:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border); }

/* Pill / chips */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--text);
  padding: 5px 10px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--hairline);
}
.chip.green { color: #0E7A4D; background: var(--accent-soft); border-color: transparent; }
[data-theme="dark"] .chip.green { color: var(--brand-mint); }
.chip.blue  { color: var(--brand-teal); background: var(--primary-soft); border-color: transparent; }
[data-theme="dark"] .chip.blue { color: var(--brand-cyan); }

/* Form */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 13px; font-weight: 600; color: var(--text); }
.field > .hint { font-size: 13px; color: var(--muted); }
.input, .textarea, .select {
  width: 100%; padding: 12px 14px; font: inherit;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--primary) 18%, transparent);
}
.textarea { min-height: 120px; resize: vertical; }

/* Logo glyph (3 flame shapes) */
.logo-glyph { width: 48px; height: 38px; flex-shrink: 0; }

/* Decorative – soft glow blob behind hero */
.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
  background: none;
  color: var(--text);
  text-align: unset;
}
.hero h1 {
  font-size: clamp(40px, 5.6vw, 68px);
  font-weight: 600;
  margin-top: 18px;
  margin-bottom: 0;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.hero h1:focus,
.hero h1:focus-visible { outline: none; }
.hero p {
  opacity: 1;
  margin-bottom: 0;
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}
.hero::before {
  content: ""; position: absolute; pointer-events: none;
  width: 800px; height: 800px; border-radius: 50%;
  right: -200px; top: -240px;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--brand-cyan) 28%, transparent), transparent 70%);
  filter: blur(20px);
  z-index: 0;
}
.hero::after {
  content: ""; position: absolute; pointer-events: none;
  width: 600px; height: 600px; border-radius: 50%;
  left: -240px; bottom: -260px;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--brand-mint) 22%, transparent), transparent 70%);
  filter: blur(20px);
  z-index: 0;
}
.hero > .container { position: relative; z-index: 1; }

/* Image slot defaults */
image-slot {
  --slot-bg: var(--surface-2);
  --slot-border: var(--hairline);
  background: var(--surface-2);
}

/* Utility */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 960px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  :root { --section-y: 64px; }
}

/* Marquee / inline animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .6s ease both; }
.fade-up.d1 { animation-delay: .08s; }
.fade-up.d2 { animation-delay: .16s; }
.fade-up.d3 { animation-delay: .24s; }
.fade-up.d4 { animation-delay: .32s; }

/* Blazor focuses the first heading on navigation — suppress the focus ring globally */
h1:focus, h2:focus, h3:focus { outline: none; }
