/* --- CSS variables (easy to tweak) --- */
:root {
  --colour-bg: #f4f6f9;
  --colour-surface: #ffffff;
  --colour-text: #1a2332;
  --colour-muted: #5c6b7f;
  --colour-accent: #0d4f8b;
  --colour-accent-hover: #0a3d6d;
  --colour-accent-soft: rgba(13, 79, 139, 0.08);
  --colour-border: #e2e8f0;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(26, 35, 50, 0.08);
  --header-h: 72px;
  --max-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-hei
  
  ght: 1.6;
  color: var(--colour-text);
  background: var(--colour-bg);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--colour-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.skip-link {
  position: absolute;

git init
git add
gi



  left: -9b999px;
  z-index: 999;
  padding: 0.75rem 1rem;
  background: var(--colour-accent);
  color: #fff;
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* --- Header & navbar --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--colour-border);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1rem;
  min-height: var(--header-h);
}

.logo {
  font-weight: 900;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  color: var(--colour-text);
  text-decoration: none;
}

.logo__best,
.logo__rest {
  display: inline-block;
  line-height: 1;
}

/* Premium gradient styling for “Bestcarfinance” */
.site-header .logo__best {
  background: linear-gradient(135deg, #0d4f8b 0%, #1a6cb5 40%, #7eb8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 12px 28px rgba(13, 79, 139, 0.18);
  font-weight: 950;
}

.site-header .logo__rest {
  background: linear-gradient(135deg, #0a2744 0%, #0d4f8b 65%, #1a6cb5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 950;
}

.logo--footer {
  color: #fff;
}

.logo--footer .logo__best {
  background: linear-gradient(135deg, #7eb8ff 0%, #ffffff 48%, #7ee7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 950;
}

.logo--footer .logo__rest {
  background: linear-gradient(135deg, #ffffff 0%, #b8dfff 55%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 900;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--colour-text);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  display: block;
  padding: 0.5rem 0.85rem;
  color: var(--colour-text);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 8px;
}

.nav-menu a:hover {
  background: var(--colour-accent-soft);
  text-decoration: none;
}

.btn--nav {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .btn--nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    background: var(--colour-surface);
    border-bottom: 1px solid var(--colour-border);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  }

  .nav-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-menu a {
    padding: 0.85rem 1rem;
  }

  body.nav-open {
    overflow: hidden;
  }

  .logo {
    font-size: 1.85rem;
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn--small {
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
}

.btn--primary {
  background: var(--colour-accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--colour-accent-hover);
  text-decoration: none;
}

.btn--ghost {
  background: transparent;
  color: var(--colour-accent);
  border-color: var(--colour-accent);
}

.btn--ghost:hover {
  background: var(--colour-accent-soft);
  text-decoration: none;
}

.btn--full {
  width: 100%;
}

/* --- Hero --- */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5rem) 0;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a2744 0%, #0d4f8b 45%, #1a6cb5 100%);
  z-index: 0;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 20%, rgba(255, 255, 255, 0.12), transparent);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr 340px;
    align-items: center;
  }
}

.hero__content {
  color: #fff;
}

/* Hero outline CTA: high contrast on blue gradient (primary stays solid blue) */
.hero .btn--ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.16);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 8px 24px rgba(0, 0, 0, 0.2);
}

.hero .btn--ghost:hover {
  color: #0a2744;
  background: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  text-decoration: none;
}

.hero .btn--ghost:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

.hero .brand-word {
  display: inline-block;
  padding: 0.1rem 0.8rem;
  border-radius: 999px;
  font-size: 1.35em;
  font-weight: 900;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(126, 184, 255, 0.2) 50%, rgba(255, 255, 255, 0.16) 100%);
  border: 1px solid rgba(126, 184, 255, 0.55);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.hero .brand-word.brand-word--eyebrow {
  font-size: 1.2em;
  padding: 0.1rem 0.75rem;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a8d4ff;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  line-height: 1.15;
  font-weight: 700;
}

.hero__lead {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  max-width: 36ch;
  color: rgba(255, 255, 255, 0.9);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero__trust {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
}

.hero__trust li::before {
  content: "✓ ";
  color: #7ee787;
  font-weight: 700;
}

.hero__card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(8px);
  color: #fff;
}

.hero__card-title {
  margin: 0 0 1rem;
  font-size: 1.28rem;
}

.hero__list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
}

.hero__list li {
  margin-bottom: 0.65rem;
}

/* --- Sections --- */
.section {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.section__header h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.section__intro {
  margin: 0;
  color: var(--colour-muted);
  font-size: 1.05rem;
}

.about {
  background: var(--colour-surface);
}

.about__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .about__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.about__text p {
  margin: 0 0 1rem;
  color: var(--colour-muted);
}

.about__text p:last-child {
  margin-bottom: 0;
}

.about__stats {
  display: grid;
  gap: 1rem;
}

.stat {
  padding: 1.25rem;
  background: var(--colour-bg);
  border-radius: var(--radius);
  border: 1px solid var(--colour-border);
}

/* --- Gallery --- */
.gallery {
  background: linear-gradient(180deg, var(--colour-surface) 0%, #eef3f8 100%);
}

.gallery__grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .gallery__grid {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

.gallery__figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--colour-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery__figure img {
  display: block;
  width: 100%;
  height: auto;
}

/* --- Disclosures --- */
.disclosures {
  background: linear-gradient(180deg, #eef3f9 0%, #f7fbff 100%);
}

.disclosures__card {
  background: var(--colour-surface);
  padding: clamp(1.25rem, 4vw, 2rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--colour-border);
  box-shadow: var(--shadow);
}

.disclosures__p {
  margin: 0 0 0.9rem;
  color: var(--colour-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.disclosures__p:last-child {
  margin-bottom: 0;
}

.stat__value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--colour-accent);
}

.stat__label {
  font-size: 0.9rem;
  color: var(--colour-muted);
}

.services__grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 600px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--colour-surface);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--colour-border);
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--colour-muted);
}

/* --- Calculator --- */
.calculator-section {
  background: linear-gradient(180deg, var(--colour-bg) 0%, #e8eef5 100%);
}

.calculator {
  display: grid;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 800px) {
  .calculator {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.calculator__controls,
.calculator__results {
  background: var(--colour-surface);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--colour-border);
  box-shadow: var(--shadow);
}

.field {
  margin-bottom: 1.5rem;
}

.field:last-child {
  margin-bottom: 0;
}

.field label,
.field > span:first-child {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.field__hint {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--colour-muted);
}

.field__row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.field input[type="range"] {
  flex: 1;
  min-width: 160px;
  accent-color: var(--colour-accent);
}

.field__output {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--colour-accent);
  min-width: 5.5rem;
  text-align: right;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  padding: 0.5rem 1rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border: 2px solid var(--colour-border);
  border-radius: 999px;
  background: var(--colour-bg);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.pill:hover {
  border-color: var(--colour-accent);
}

.pill.is-active {
  border-color: var(--colour-accent);
  background: var(--colour-accent-soft);
  color: var(--colour-accent);
}

.credit-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

@media (min-width: 480px) {
  .credit-group {
    grid-template-columns: repeat(4, 1fr);
  }
}

.credit-option {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.5rem;
  border: 2px solid var(--colour-border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s;
}

.credit-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.credit-option:has(input:checked) {
  border-color: var(--colour-accent);
  background: var(--colour-accent-soft);
  color: var(--colour-accent);
}

.calculator__payment-label {
  margin: 0;
  font-size: 0.95rem;
  color: var(--colour-muted);
}

.calculator__payment {
  margin: 0.25rem 0 0.75rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  color: var(--colour-accent);
  line-height: 1.1;
}

.calculator__apr {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  color: var(--colour-muted);
}

.calculator__totals {
  margin: 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--colour-border);
  display: grid;
  gap: 0.75rem;
}

.calculator__totals div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.calculator__totals dt {
  margin: 0;
  font-size: 0.875rem;
  color: var(--colour-muted);
}

.calculator__totals dd {
  margin: 0;
  font-weight: 700;
  font-size: 1.05rem;
}

.calculator__disclaimer {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--colour-muted);
}

.contact__form .field input,
.contact__form .field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--colour-border);
  border-radius: 8px;
}

.contact__form .field input:focus,
.contact__form .field textarea:focus {
  outline: 2px solid var(--colour-accent);
  outline-offset: 2px;
}

/* --- Contact --- */
.contact {
  background: linear-gradient(180deg, #eef3f9 0%, var(--colour-surface) 45%, #f4f7fb 100%);
  border-top: 4px solid var(--colour-accent);
}

.contact__grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 800px) {
  .contact__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.contact__intro,
.contact__form {
  background: var(--colour-surface);
  padding: clamp(1.25rem, 4vw, 2rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--colour-border);
  box-shadow: var(--shadow);
}

.contact__intro h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--colour-accent);
  line-height: 1.2;
}

.contact__intro > p {
  margin: 0 0 1.5rem;
  color: var(--colour-muted);
  font-size: 1.05rem;
}

.contact__details a {
  font-weight: 600;
  color: var(--colour-accent);
}

.contact__form .btn--primary {
  font-size: 1.05rem;
  padding: 0.8rem 1.5rem;
}

.contact__details {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact__details li {
  margin-bottom: 1rem;
}

.contact__details strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--colour-muted);
  margin-bottom: 0.25rem;
}

.form__feedback {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  min-height: 1.4em;
}

.form__feedback.is-success {
  color: #0d7a4a;
}

.form__feedback.is-error {
  color: #c53030;
}

/* --- Footer --- */
.site-footer {
  background: #121a24;
  color: #b8c2d0;
  padding-top: 2.5rem;
}

.footer__inner {
  display: grid;
  gap: 2rem;
  padding-bottom: 2rem;
}

@media (min-width: 700px) {
  .footer__inner {
    grid-template-columns: 1.2fr 1fr;
  }
}

.footer__tagline {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  max-width: 28ch;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.footer__heading {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
}

.footer__links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__links a {
  color: #b8c2d0;
  font-size: 0.95rem;
}

.footer__links li {
  margin-bottom: 0.5rem;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 0;
}

.footer__bottom-inner p {
  margin: 0;
  font-size: 0.85rem;
  text-align: center;
}

@media (min-width: 700px) {
  .footer__bottom-inner p {
    text-align: left;
  }
}
