/* RV REPAIR 2 — PREMIUM DESIGN V2 */
/* Scoped to the RV Repair 2 website only */

:root {
  --rv-navy: #10243a;
  --rv-blue: #1767a5;
  --rv-accent: #f5b83d;
  --rv-text: #203047;
  --rv-muted: #607086;
  --rv-radius: 14px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  color: var(--rv-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  letter-spacing: -0.025em;
  line-height: 1.18;
}

h1 {
  font-weight: 800;
}

p, li {
  line-height: 1.65;
}

a {
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--rv-accent);
  outline-offset: 3px;
}

button,
input[type="submit"],
input[type="button"],
a.btn,
a.button,
.btn,
.button {
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    background-color .2s ease;
}

button:not(:disabled):hover,
input[type="submit"]:not(:disabled):hover,
a.btn:hover,
a.button:hover,
.btn:hover,
.button:hover {
  transform: translateY(-2px);
}

input:not([type="checkbox"]):not([type="radio"]),
textarea,
select {
  max-width: 100%;
  box-sizing: border-box;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

input,
textarea,
select,
button {
  font: inherit;
}

form input:not([type="checkbox"]):not([type="radio"]),
form textarea,
form select {
  border-radius: 8px;
}

form button,
form input[type="submit"] {
  cursor: pointer;
}

section {
  scroll-margin-top: 90px;
}

@media (max-width: 768px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  h2 {
    font-size: clamp(1.5rem, 6vw, 2.3rem);
  }

  p, li {
    overflow-wrap: break-word;
  }

  form input,
  form textarea,
  form select {
    width: 100%;
  }

  button,
  input[type="submit"] {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
