.brand-image {
  width: 110px !important;
  height: 68px !important;
  overflow: visible !important;
  border-radius: 0 !important;
  background: transparent !important;
}
.brand-image img {
  object-fit: contain !important;
}
.inner-header {
  position: relative;
  background: var(--ink);
}
.page-hero {
  min-height: 440px;
  display: flex;
  align-items: flex-end;
  padding: 120px 6% 55px;
  color: var(--white);
  background:
    linear-gradient(90deg, #000c, #0003),
    var(--page-bg) center/cover;
}
.page-hero h1 {
  font: 800 clamp(3rem, 7vw, 5.5rem)/0.9 "Barlow Condensed";
  text-transform: uppercase;
  margin: 0;
}
.page-hero p {
  font-size: 1.1rem;
  max-width: 620px;
  line-height: 1.6;
}
.page-hero--contact-photo {
  min-height: 560px;
  background-position: center 52%;
}
.page-hero--contact-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 10, 9, 0.92) 0%, rgba(8, 10, 9, 0.62) 48%, rgba(8, 10, 9, 0.18) 100%);
  pointer-events: none;
}
.page-hero--contact-photo {
  position: relative;
}
.page-hero--contact-photo > div {
  position: relative;
  z-index: 1;
}
.page-hero__breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  font-weight: 600;
}
.page-hero__breadcrumbs a {
  color: #fff;
}
.page-hero__breadcrumbs a:hover {
  color: var(--orange);
}
.page-hero__breadcrumbs strong {
  color: var(--orange);
}

/* Keep the Contact breadcrumb inside the photo hero, without the global white panel. */
.page-hero .page-hero__breadcrumbs.breadcrumbs {
  width: auto;
  max-width: none;
  min-height: 0;
  margin: 0 0 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(255, 255, 255, 0.82);
}

.page-hero .page-hero__breadcrumbs.breadcrumbs a {
  color: var(--orange);
}

.page-hero .page-hero__breadcrumbs.breadcrumbs span {
  color: rgba(255, 255, 255, 0.65);
}

.page-hero .page-hero__breadcrumbs.breadcrumbs strong {
  color: #fff;
}
.content-wrap {
  max-width: 1180px;
  margin: auto;
  padding: 65px 24px;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
  align-items: center;
}
.split img {
  width: 100%;
  border-radius: 6px;
}
.feature-row,
.vehicle-grid,
.tour-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.mini-feature,
.vehicle,
.tour-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--white);
}
.mini-feature {
  text-align: center;
}
.mini-feature b {
  display: block;
  color: var(--orange);
  font-size: 2rem;
}
.vehicle img,
.tour-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 4px;
}
.vehicle h3,
.tour-card h3 {
  text-transform: uppercase;
  font: 700 1.35rem "Barlow Condensed";
}
.tour-card {
  padding: 0;
  overflow: hidden;
}
.tour-card div {
  padding: 22px;
}
.subheading {
  text-align: center;
  font: 700 2.2rem "Barlow Condensed";
  text-transform: uppercase;
  margin: 55px 0 28px;
}
.contact-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 55px;
}
.contact-form {
  display: grid;
  gap: 17px;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.contact-form label {
  font-size: 0.85rem;
  font-weight: 700;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  margin-top: 7px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font: inherit;
}
.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-status {
  font-size: 0.9rem;
  color: #278442;
}
.booking-security {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  margin: 0 0 6px;
  padding: 22px;
  border: 1px solid #d8c1a7;
  border-left: 5px solid var(--orange);
  border-radius: 7px;
  background: #f7f1e9;
}
.booking-security__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--brand-brown);
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(155, 79, 0, 0.18);
}
.booking-security__icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.booking-security h2 {
  margin: 0 0 7px;
  color: var(--ink);
  font: 800 1.35rem "Barlow Condensed", sans-serif;
  text-transform: uppercase;
}
.booking-security p {
  margin: 0;
  color: #514940;
  font-size: 0.82rem;
  line-height: 1.65;
}
.booking-security__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin-top: 12px;
}
.booking-security__contacts a {
  color: var(--brand-brown);
  font-size: 0.7rem;
  font-weight: 700;
  text-decoration: none;
}
.booking-security__contacts a:hover {
  text-decoration: underline;
}

/* Legal pages */
.legal-hero {
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  padding: 145px 6% 60px;
  color: #fff;
  background: linear-gradient(90deg, rgba(8, 10, 9, .95), rgba(8, 10, 9, .42)), url("real-trips/contact-coastal-track.jpg") center 52% / cover no-repeat;
}
.legal-hero h1 { margin: 5px 0 16px; font: 800 clamp(3.4rem, 7vw, 6rem)/.85 "Barlow Condensed"; text-transform: uppercase; }
.legal-hero p:not(.eyebrow) { max-width: 720px; line-height: 1.7; }
.legal-content { max-width: 900px; margin: 0 auto; padding: 65px 24px 90px; }
.legal-content h2 { margin: 36px 0 10px; font: 800 1.65rem "Barlow Condensed"; text-transform: uppercase; }
.legal-content p { color: var(--muted); line-height: 1.8; }
.legal-content a { color: var(--brand-brown); font-weight: 700; }
.legal-content ul {
  margin: 10px 0 24px;
  padding-left: 1.35rem;
  color: var(--muted);
  line-height: 1.8;
}
.legal-content li + li { margin-top: 8px; }
.legal-note {
  margin: 30px 0 42px;
  padding: 24px 26px;
  border-left: 5px solid var(--orange);
  border-radius: 0 7px 7px 0;
  background: #f4eee7;
}
.legal-note > strong {
  display: block;
  margin-bottom: 7px;
  font: 800 1.25rem "Barlow Condensed";
  text-transform: uppercase;
}
.legal-note p { margin: 0; color: #47423d; }
.legal-contact-card {
  display: grid;
  gap: 6px;
  margin: 14px 0 18px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
}
.legal-contact-card p { margin: 0; }

/* Thank-you confirmation */
.thank-you-hero {
  position: relative;
  min-height: 760px;
  display: grid;
  place-items: center;
  padding: 150px 24px 80px;
  background: url("real-trips/4x4-dry-track.jpg") center 62% / cover no-repeat;
  isolation: isolate;
}
.thank-you-hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(110deg, rgba(8, 10, 9, 0.94) 0%, rgba(8, 10, 9, 0.78) 52%, rgba(8, 10, 9, 0.5) 100%),
    linear-gradient(0deg, rgba(8, 10, 9, 0.78), transparent 50%);
}
.thank-you-card {
  width: min(900px, 100%);
  padding: clamp(34px, 6vw, 70px);
  color: var(--white);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(18, 20, 18, 0.86);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(8px);
}
.thank-you-card__icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 24px;
  color: #fff;
  font-size: 2.25rem;
  font-weight: 800;
  border: 2px solid var(--orange);
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 9px rgba(155, 79, 0, 0.2);
}
.thank-you-card h1 {
  margin: 6px 0 18px;
  font: 800 clamp(3.2rem, 8vw, 6rem) / 0.9 "Barlow Condensed", sans-serif;
  text-transform: uppercase;
}
.thank-you-card__lead {
  max-width: 660px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.75;
}
.thank-you-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 38px 0 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
}
.thank-you-info > div {
  padding: 24px 18px;
  background: rgba(12, 13, 12, 0.8);
}
.thank-you-info span {
  display: block;
  margin-bottom: 10px;
  color: var(--orange);
  font: 800 1.2rem "Barlow Condensed", sans-serif;
}
.thank-you-info p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
  line-height: 1.55;
}
.thank-you-info strong {
  display: block;
  margin-bottom: 5px;
  color: #fff;
  font-size: 0.95rem;
}
.thank-you-card__note {
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
}
.thank-you-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.thank-you-actions .btn {
  min-width: 220px;
}
.thank-you-actions .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
  background: transparent;
}
.thank-you-actions .btn-outline:hover {
  color: var(--ink);
  background: #fff;
}
.simple-footer {
  background: var(--charcoal);
  color: var(--white);
  padding: 35px 6%;
  display: flex;
  justify-content: space-between;
}
.simple-footer a {
  color: var(--orange);
}
@media (max-width: 850px) {
  .split,
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .feature-row,
  .vehicle-grid,
  .tour-grid {
    grid-template-columns: 1fr 1fr;
  }
  .inner-header .main-nav {
    background: var(--ink);
  }
}
@media (max-width: 520px) {
  .feature-row,
  .vehicle-grid,
  .tour-grid,
  .form-row {
    grid-template-columns: 1fr;
  }
  .page-hero {
    min-height: 380px;
  }
  .page-hero--contact-photo {
    min-height: 500px;
    background-position: 63% center;
  }
  .booking-security {
    grid-template-columns: 1fr;
    padding: 19px;
  }
  .simple-footer {
    flex-direction: column;
    gap: 12px;
  }
  .thank-you-hero {
    min-height: auto;
    padding: 115px 16px 48px;
  }
  .thank-you-card {
    padding: 32px 20px;
  }
  .thank-you-info {
    grid-template-columns: 1fr;
  }
  .thank-you-info > div {
    padding: 18px;
  }
  .thank-you-actions .btn {
    width: 100%;
  }
}
