:root {
  --red: #c8102e;
  --red-dark: #a10d24;
  --red-tint: #fdecec;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: #171717;
  background: #fff;
}
a {
  color: inherit;
  text-decoration: none;
}

/* ---------- top bar + nav ---------- */
.top {
  background: #111;
  color: #fff;
  padding: 8px 5%;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 5%;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 20;
}
.logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.logo img {
  height: 74px;
  width: auto;
  display: block;
}
/* Logo pinned left (see .nav), navlinks fills the rest of the bar so the
   main links can be centered in the middle with Contact pinned to the
   far right — see .navlinks-links below. */
.navlinks {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 24px;
  font-size: 14px;
}
.navlinks-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 22px;
}
.navlinks a {
  font-weight: 700;
}
.navlinks a[aria-current="page"] {
  color: var(--red);
}
.navlinks .nav-cta[aria-current="page"] {
  background: var(--red-dark);
  color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55);
}
.navlinks .nav-cta {
  background: var(--red);
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background 0.2s ease;
}
.navlinks .nav-cta:hover {
  background: var(--red-dark);
}

/* Hamburger: CSS-only toggle, no JS required for the menu itself */
.nav-toggle {
  display: none;
}
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 26px;
  height: 26px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  height: 2px;
  background: #111;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- hero ---------- */
.hero {
  min-height: 520px;
  padding: 80px 7%;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 45px;
  align-items: center;
  background: linear-gradient(120deg, #fff 48%, #f1f1f1 48%);
}
.hero.hero--photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  grid-template-columns: 1.1fr 460px;
  gap: 60px;
  min-height: 680px;
  padding: 48px 7% 90px;
}
.hero--photo .hero-content h1,
.hero--photo .hero-content .lead,
.hero--photo .hero-content .crumb {
  text-shadow: 0 2px 16px rgba(255, 255, 255, 0.8), 0 1px 4px rgba(255, 255, 255, 0.6);
}
/* Pin the text column to the top of the banner (rather than the grid's
   default vertical centering) so the car in the background photo — sitting
   lower-left in the frame — isn't covered by the copy. */
.hero--photo .hero-content {
  align-self: start;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 2px 8px rgba(17, 17, 17, 0.06);
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 18px;
}
.hero-kicker svg {
  flex: 0 0 auto;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}
.hero-ctas .btn:not(.btn-outline) {
  background: var(--red);
  border-color: var(--red);
}
.hero-ctas .btn:not(.btn-outline):hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}
.hero-ctas .btn-outline {
  background: #fff;
  color: #111;
  border-color: #111;
}
.hero-ctas .btn-outline:hover {
  background: #111;
  color: #fff;
}
/* Homepage-only feature bullets — mobile only, see the max-width:800px
   query below for the display:grid that brings them back. */
.hero-features {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 12px 28px;
  margin-top: 30px;
}
.hero-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}
.hero-feature svg {
  flex: 0 0 auto;
  color: var(--red);
}
.hero-right-image {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  display: block;
}
.hero--photo .hero-aside {
  width: 100%;
  max-width: 460px;
}
h1 {
  font-family: Georgia, serif;
  font-size: 54px;
  line-height: 1.02;
  margin: 0 0 18px;
}
.lead {
  font-size: 18px;
  line-height: 1.65;
  max-width: 650px;
}
.carart {
  height: 340px;
  border-radius: 160px 30px 160px 30px;
  background: radial-gradient(circle at 50% 60%, #fff 0 12%, #ddd 13% 17%, transparent 18%), linear-gradient(145deg, #fafafa, #cfcfcf);
  position: relative;
  box-shadow: 0 30px 60px #0002;
}
.carart:after {
  content: "ULTIMATE";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  font-weight: 900;
  color: #111;
  letter-spacing: 0.12em;
  text-align: center;
}

/* The form lives directly in the hero's right column (see Hero.tsx's
   `aside` prop) instead of as a separate card overlapping the section
   below it. */
.hero-aside {
  width: 100%;
}

/* ---------- quote / contact forms ---------- */
.quote {
  background: #fff;
  border: 1px solid #ddd;
  padding: 28px;
  border-radius: 14px;
  box-shadow: 0 14px 40px #0001;
  width: 100%;
}
.quote h2 {
  font-family: Georgia, serif;
  font-size: 22px;
  margin: 0 0 18px;
}
.quote-form,
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.quote-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.quote-form .form-footer {
  grid-column: 1 / -1;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label,
.field-label {
  font-size: 13px;
  font-weight: 700;
  color: #171717;
}
.quote input,
.quote select,
.quote textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font: inherit;
  /* 16px stops iOS Safari auto-zooming the page when a field is focused. */
  font-size: 16px;
  min-height: 44px;
}
.quote-form input:not([type="hidden"]):not([type="checkbox"]),
.quote-form select,
.quote-form .date-toggle,
.quote-form .dial-toggle {
  height: 44px;
  min-height: 44px;
}
.quote textarea {
  min-height: 100px;
  resize: vertical;
}
.btn {
  display: inline-block;
  background: #111;
  color: #fff;
  padding: 10px 18px;
  border-radius: 5px;
  border: 2px solid var(--red);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  min-height: 38px;
}
.btn:disabled {
  opacity: 0.6;
  cursor: default;
}
.quote-form .btn,
.contact-form .btn {
  background: var(--red);
  transition: background 0.2s ease;
}
.quote-form .btn:hover:not(:disabled),
.contact-form .btn:hover:not(:disabled) {
  background: var(--red-dark);
}

.phone-field {
  display: flex;
  gap: 6px;
}
.phone-field .phone-number {
  flex: 1;
  min-width: 0;
}

/* Searchable dial-code combobox */
.dial-combo {
  position: relative;
  flex: 0 0 auto;
}
.dial-toggle {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.dial-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 250px;
  max-width: 78vw;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 10px 30px #0002;
  z-index: 40;
  padding: 8px;
}
.dial-search {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  min-height: 0;
}
.dial-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 220px;
  overflow-y: auto;
}
.dial-list li {
  padding: 8px 10px;
  font-size: 13px;
  border-radius: 6px;
  cursor: pointer;
}
.dial-list li:hover {
  background: #f1f1f1;
}
.dial-list li[aria-selected="true"] {
  background: var(--red-tint);
  color: var(--red-dark);
  font-weight: 700;
}

/* Custom calendar date picker (src/client/datepicker.ts) */
.date-picker {
  position: relative;
}
.date-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  height: 44px;
  padding: 0 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  color: #171717;
  cursor: pointer;
  text-align: left;
}
.date-toggle .date-toggle-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.date-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 40;
  width: 260px;
  max-width: 78vw;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 10px 30px #0002;
  padding: 10px;
}
.date-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.date-panel-title {
  font-size: 13px;
  font-weight: 700;
}
.date-prev,
.date-next {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #171717;
  cursor: pointer;
}
.date-prev:hover,
.date-next:hover {
  background: #f1f1f1;
}
.date-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #999;
  margin-bottom: 4px;
}
.date-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.date-day {
  height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.date-day:hover:not(:disabled) {
  background: #f1f1f1;
}
.date-day:disabled {
  color: #ccc;
  cursor: not-allowed;
}
.date-day.is-selected {
  background: var(--red);
  color: #fff;
}
.date-day.is-today:not(.is-selected) {
  border: 1px solid var(--red);
}

.form-footer {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: #444;
  cursor: pointer;
}
.consent input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin-top: 1px;
  flex: 0 0 auto;
  accent-color: var(--red);
}
.consent a {
  text-decoration: underline;
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.form-message {
  margin: 0;
  font-size: 14px;
  min-height: 1em;
}
.form-message.success {
  color: #16794d;
  font-weight: 600;
}
.form-message.error {
  color: #b3261e;
  font-weight: 600;
}
/* ---------- content sections ---------- */
.section {
  padding: 55px 7%;
  max-width: 1250px;
  margin: auto;
}
.section h2 {
  font-family: Georgia, serif;
  font-size: 34px;
  margin: 0 0 18px;
}
.section p {
  font-size: 16px;
  line-height: 1.82;
  color: #333;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(17, 17, 17, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--red-dark);
  box-shadow: 0 18px 32px rgba(200, 16, 46, 0.15);
}
.card-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 16px;
}
.card-body {
  flex: 1;
}
.card h3 {
  font-family: Georgia, serif;
  font-size: 19px;
  margin: 0 0 8px;
  line-height: 1.25;
}
.card p {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  margin: 0;
}
.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #efefef;
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
}
.card-cta svg {
  transition: transform 0.2s ease;
}
.card:hover .card-cta svg {
  transform: translateX(3px);
}
.dark {
  background: #111;
  color: #fff;
  padding-bottom: 90px;
  margin-bottom: 40px;
}
.dark p {
  color: #ddd;
}
.crumb {
  font-size: 13px;
  color: #666;
  margin-bottom: 20px;
}

/* ---------- footer ---------- */
.footer {
  background: #111;
  color: #cfcfcf;
  padding: 56px 7% 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 40px;
}
.footer-brand .footer-logo-badge {
  display: inline-block;
  background: #fff;
  border-radius: 10px;
  padding: 10px 14px;
}
.footer-logo {
  height: 44px;
  width: auto;
  display: block;
}
.footer-desc {
  margin: 18px 0 0;
  max-width: 420px;
  font-size: 14px;
  line-height: 1.7;
  color: #b5b5b5;
}
.footer-contact {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.9;
  color: #cfcfcf;
}
.footer-contact p {
  margin: 0;
}
.footer-col h3 {
  color: #fff;
  font-size: 14px;
  margin: 0 0 16px;
}
.footer-col {
  display: flex;
  flex-direction: column;
}
.footer-col a {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  color: #b5b5b5;
}
.footer-col a:hover {
  color: #fff;
}
.footer-payments {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 28px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer-payments-label {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a8a8a;
}
.footer-payments-image {
  height: auto;
  width: 100%;
  max-width: 220px;
}
@media (min-width: 640px) {
  .footer-payments-image {
    max-width: 240px;
  }
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
  color: #8a8a8a;
}
.footer-bottom-links {
  display: flex;
  gap: 18px;
}

/* ---------- floating buttons: icon-only ---------- */
.float,
.call {
  position: fixed;
  bottom: 18px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
  box-shadow: 0 8px 20px #0003;
}
.float {
  right: 18px;
  background: #25d366;
  color: #fff;
}
.call {
  left: 18px;
  background: #111;
  color: #fff;
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 800px) {
  .logo img {
    height: 52px;
  }
  .navlinks {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid #eee;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .navlinks-links {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
  }
  .navlinks a {
    padding: 14px 5%;
    width: 100%;
    border-top: 1px solid #f0f0f0;
  }
  .nav-toggle:checked ~ .navlinks {
    max-height: 60vh;
    overflow-y: auto;
  }
  .hamburger {
    display: flex;
  }
  .nav-toggle:checked ~ .hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle:checked ~ .hamburger span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle:checked ~ .hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero,
  .hero.hero--photo {
    grid-template-columns: 1fr;
    padding: 50px 6% 40px;
    min-height: 0;
  }
  .hero--photo .hero-aside {
    max-width: none;
  }
  .hero-features {
    display: grid;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  h1 {
    font-size: 38px;
  }
  .section {
    padding: 40px 6%;
  }
  .dark {
    padding-bottom: 64px;
    margin-bottom: 28px;
  }
  .section h2 {
    font-size: 27px;
  }
  .quote {
    padding: 14px;
  }
  .carart {
    height: 220px;
  }
  .carart:after {
    font-size: 34px;
  }
  .float,
  .call {
    width: 46px;
    height: 46px;
    bottom: 14px;
  }
  .float {
    right: 14px;
  }
  .call {
    left: 14px;
  }
  .top {
    font-size: 11px;
    padding: 8px 5%;
  }
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 30px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-brand {
    grid-column: auto;
  }
  .lead {
    font-size: 16px;
  }
  .section h2 {
    font-size: 23px;
  }
  .btn {
    width: 100%;
    text-align: center;
  }
  .quote-form {
    grid-template-columns: 1fr;
  }
  .quote-form .form-footer {
    grid-column: auto;
  }
  .dial-panel {
    width: min(300px, 90vw);
  }
  .date-panel {
    width: 100%;
  }
  .top span:last-child {
    font-weight: 700;
  }
}
