:root {
  --color-bg: #f5f7fb;
  --color-surface: #ffffff;
  --color-text: #162033;
  --color-muted: #5e6b84;
  --color-accent: #c62828;
  --color-accent-dark: #9b1c1c;
  --color-border: #dfe5ef;
  --radius: 12px;
  --shadow: 0 8px 20px rgba(22, 32, 51, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
  font-size: 15px;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

/* Strong reset to avoid third-party embeds overriding fonts */
html, body, :root {
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ensure headings inherit the site font and stable sizes */
h1, h2, h3, h4, h5 {
  font-family: inherit !important;
  font-weight: 700;
}

h1 {
  font-size: clamp(1.6rem, 4.2vw, 2.4rem) !important;
  line-height: 1.14 !important;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  min-width: 0;
}

.nav-toggle {
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.25rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
}

.site-nav {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  position: absolute;
  top: 100%;
  left: 1rem;
  right: 1rem;
  background: var(--color-surface);
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.site-nav.open {
  display: flex;
}

.site-nav a.active {
  color: var(--color-accent);
  font-weight: 600;
}

.hero {
  padding: 2.25rem 0 2rem;
  background: linear-gradient(135deg, #ffffff 0%, #eef3fb 100%);
}

.hero-content,
.split-layout,
.about-layout,
.contact-layout {
  display: grid;
  gap: 2rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin-top: 0;
}

.hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.button {
  display: inline-block;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.2s ease;
  text-align: center;
  white-space: nowrap;
}

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

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--color-accent-dark);
}

.button.secondary {
  background: transparent;
  border: 1px solid var(--color-border);
}

.hero-card,
.info-panel,
.contact-form,
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 1.5rem;
}

.section {
  padding: 2rem 0;
}

.section.alt {
  background: #f0f4fb;
}

.section-heading {
  margin-bottom: 1.5rem;
}

.section-description {
  color: var(--color-muted);
  max-width: 720px;
}

.card-grid {
  display: grid;
  gap: 1.25rem;
}

.card {
  overflow: hidden;
}

.vehicle-image {
  min-height: 160px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #dce6f6, #f7fafd);
  color: var(--color-muted);
  font-weight: 600;
}

/* Header / logo */
.logo {
  height: 32px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.brand-text {
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.instagram-embed-card iframe,
.instagram-media {
  max-width: 100% !important;
  width: 100% !important;
}

.card-body {
  padding: 0.9rem 1rem 1rem;
}

.price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0;
}

.info-panel {
  padding: 1.5rem;
}

.instagram-grid {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

.instagram-embed-card,
.instagram-link-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.instagram-link-card h3 {
  margin-bottom: 0.5rem;
}

.instagram-link-card p {
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.25rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(198, 40, 40, 0.2);
  border-color: var(--color-accent);
}

.form-status {
  min-height: 1.4rem;
  color: var(--color-accent);
  font-weight: 600;
}

.site-footer {
  padding: 1.5rem 0 2rem;
  color: var(--color-muted);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Slightly smaller headings for a cleaner desktop layout */
h2 {
  font-size: 1.15rem;
}

h3 {
  font-size: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 699px) {
  .nav-bar {
    align-items: center;
  }

  .brand-text {
    font-size: 0.9rem;
  }

  .logo {
    height: 28px;
  }

  .hero h1 {
    font-size: clamp(1.5rem, 6.8vw, 1.95rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-card,
  .info-panel,
  .contact-form,
  .instagram-embed-card,
  .instagram-link-card {
    padding: 1rem;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 700px) {
  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    gap: 1rem;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    left: auto;
    right: auto;
  }

  .nav-toggle {
    display: none;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-content,
  .split-layout,
  .about-layout,
  .contact-layout {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }

  .instagram-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: stretch;
  }
}

@media (min-width: 960px) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
