/**
 * Horizontal Traders Vehicle Hire - Main Stylesheet
 * Brand Source of Truth: Dark navy, blue-teal, and muted teal
 */

/* ==========================================================================
   1. Global Design Tokens (:root)
   ========================================================================== */
:root {
  /* Brand Palette - Exact match from Horizontal Traders Logo */
  --ht-navy-950: #00152e; /* Exact Logo Deep Midnight Navy */
  --ht-navy-900: #011b37; /* Logo Dark Navy Tone */
  --ht-navy-800: #022a4a; /* Logo Deep Navy Tint */

  --ht-teal-700: #01757f; /* Exact Logo Subtitle & Road Deep Teal */
  --ht-teal-600: #02667c; /* Logo Road Mid-Tone */
  --ht-teal-500: #018b9e; /* Logo Road Bright Tone */
  --ht-teal-400: #06c1d5; /* Exact Logo Road Highlight & Pin Cyan */
  --ht-teal-300: #38e1f2; /* Logo Light Cyan Glow */
  --ht-teal-100: #e6f9fb; /* Light Accent Background */
  --ht-blue-50:  #f0f8fa; /* Soft Blue/Gray Wash */

  --ht-text:       #00152e;
  --ht-text-muted: #4b6375;
  --ht-border:     #d2e3eb;
  --ht-surface:    #f5f9fb;
  --ht-white:      #ffffff;

  /* Button Tokens */
  --ht-btn-primary-bg:    linear-gradient(135deg, #01757f 0%, #02667c 100%);
  --ht-btn-primary-text:  var(--ht-white);
  --ht-btn-primary-hover: var(--ht-navy-950);

  /* Approved Accent Gradient (Directly from the Logo Highway Swoop) */
  --ht-gradient-accent: linear-gradient(135deg, #01757f 0%, #06c1d5 100%);
  --ht-gradient-dark:   linear-gradient(180deg, #00152e 0%, #011b37 100%);

  /* Typography */
  --ht-font-sans:    'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --ht-font-heading: 'Manrope', 'Inter', system-ui, -apple-system, sans-serif;

  --ht-h1: clamp(42px, 5vw, 68px);
  --ht-h2: clamp(32px, 4vw, 48px);
  --ht-h3: clamp(24px, 2.5vw, 30px);
  --ht-h4: clamp(19px, 2vw, 22px);
  --ht-body: clamp(16px, 1.1vw, 18px);
  --ht-small: clamp(13px, 1vw, 15px);

  --ht-line-height-tight: 1.15;
  --ht-line-height-base:  1.6;
  --ht-line-height-loose: 1.75;

  /* Layout & Spacing */
  --ht-container-max:  1380px;
  --ht-container-wide: 1500px;
  --ht-gutter: clamp(20px, 3.5vw, 44px);

  --section-lg: clamp(72px, 8vw, 120px);
  --section-md: clamp(48px, 6vw, 80px);
  --section-sm: clamp(32px, 4vw, 56px);

  /* Radii */
  --ht-radius-xs:   4px;
  --ht-radius-sm:   8px;
  --ht-radius-md:   16px;
  --ht-radius-lg:   20px;
  --ht-radius-pill: 9999px;

  /* Shadows */
  --ht-shadow-xs: 0 2px 8px rgba(3, 24, 48, 0.04);
  --ht-shadow-sm: 0 8px 25px rgba(3, 24, 48, 0.06);
  --ht-shadow-md: 0 16px 45px rgba(3, 24, 48, 0.10);
  --ht-shadow-lg: 0 24px 60px rgba(3, 24, 48, 0.14);

  /* Transitions */
  --ht-transition-fast: 180ms cubic-bezier(0.4, 0, 0.2, 1);
  --ht-transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   2. Modern Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--ht-font-sans);
  font-size: 16px;
  color: var(--ht-text);
  background-color: var(--ht-white);
  line-height: var(--ht-line-height-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

body.ht-no-scroll {
  overflow: hidden !important;
}

img,
svg,
video,
picture {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button {
  background: none;
  border: none;
  cursor: pointer;
}

a {
  color: var(--ht-teal-700);
  text-decoration: none;
  transition: color var(--ht-transition-fast);
}

a:hover {
  color: var(--ht-navy-800);
}

ul, ol {
  list-style: none;
}

/* Accessibility Focus Ring */
:focus-visible {
  outline: 2px solid var(--ht-teal-500);
  outline-offset: 3px;
}

/* Skip Link */
.ht-skip-link {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--ht-navy-950);
  color: var(--ht-white);
  padding: 12px 24px;
  z-index: 99999;
  border-radius: var(--ht-radius-sm);
  font-weight: 600;
  /* Parked off-screen with transform rather than a negative `top`: transform is
     composited, so revealing the link cannot trigger layout. */
  transform: translateY(calc(-100% - 40px));
  transition: transform var(--ht-transition-fast);
}

.ht-skip-link:focus {
  transform: translateY(0);
}

/* ==========================================================================
   3. Fluid Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ht-font-heading);
  color: var(--ht-navy-950);
  font-weight: 700;
  line-height: var(--ht-line-height-tight);
  letter-spacing: -0.02em;
}

h1 { font-size: var(--ht-h1); }
h2 { font-size: var(--ht-h2); }
h3 { font-size: var(--ht-h3); }
h4 { font-size: var(--ht-h4); }

p {
  font-size: var(--ht-body);
  color: var(--ht-text);
  line-height: var(--ht-line-height-base);
}

.ht-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ht-font-sans);
  font-size: var(--ht-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ht-teal-700);
  margin-bottom: 12px;
}

.ht-eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: var(--ht-radius-pill);
}

.ht-text-muted {
  color: var(--ht-text-muted);
}

.ht-lead {
  font-size: clamp(18px, 1.4vw, 22px);
  color: var(--ht-text-muted);
  line-height: var(--ht-line-height-loose);
}

/* ==========================================================================
   4. Layout System
   ========================================================================== */
.ht-container {
  width: 100%;
  max-width: var(--ht-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--ht-gutter);
  padding-right: var(--ht-gutter);
}

.ht-container-wide {
  width: 100%;
  max-width: var(--ht-container-wide);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--ht-gutter);
  padding-right: var(--ht-gutter);
}

.ht-section {
  padding-top: var(--section-md);
  padding-bottom: var(--section-md);
}

.ht-section--lg {
  padding-top: var(--section-lg);
  padding-bottom: var(--section-lg);
}

.ht-section--sm {
  padding-top: var(--section-sm);
  padding-bottom: var(--section-sm);
}

.ht-section--surface {
  background-color: var(--ht-surface);
}

.ht-section--accent-light {
  background-color: var(--ht-teal-100);
}

.ht-section--dark {
  background-color: var(--ht-navy-950);
  color: var(--ht-white);
}

.ht-section--dark h1,
.ht-section--dark h2,
.ht-section--dark h3,
.ht-section--dark h4 {
  color: var(--ht-white);
}

.ht-section--dark p,
.ht-section--dark .ht-lead {
  color: #B5C6D4;
}

.ht-section-header {
  margin-bottom: clamp(32px, 5vw, 60px);
}

.ht-section-header--center {
  text-align: center;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.ht-section-header h2 {
  margin-bottom: 16px;
}

/* ==========================================================================
   5. Buttons & Badges
   ========================================================================== */
.ht-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--ht-font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--ht-radius-sm);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--ht-transition-fast);
  border: 1.5px solid transparent;
}

.ht-btn svg {
  transition: transform var(--ht-transition-fast);
}

.ht-btn:hover svg {
  transform: translateX(3px);
}

/* Primary Button: Exact Brand Teal Gradient -> Hover: Deep Logo Navy */
.ht-btn-primary {
  background: var(--ht-btn-primary-bg);
  color: var(--ht-white);
  border-color: var(--ht-teal-700);
  box-shadow: 0 4px 14px rgba(1, 117, 127, 0.28);
}

.ht-btn-primary:hover,
.ht-btn-primary:focus {
  background: var(--ht-navy-950);
  color: var(--ht-white);
  border-color: var(--ht-navy-950);
  box-shadow: 0 6px 18px rgba(0, 21, 46, 0.35);
}

/* Secondary / Outline Button */
.ht-btn-secondary {
  background-color: transparent;
  color: var(--ht-teal-700);
  border-color: var(--ht-teal-700);
}

.ht-btn-secondary:hover,
.ht-btn-secondary:focus {
  background-color: var(--ht-teal-700);
  color: var(--ht-white);
}

/* White Button (for dark backgrounds) */
.ht-btn-white {
  background-color: var(--ht-white);
  color: var(--ht-navy-950);
  border-color: var(--ht-white);
}

.ht-btn-white:hover,
.ht-btn-white:focus {
  background-color: var(--ht-teal-100);
  color: var(--ht-teal-700);
  border-color: var(--ht-teal-100);
}

.ht-btn-sm {
  padding: 10px 18px;
  font-size: 13.5px;
}

.ht-btn-lg {
  padding: 18px 36px;
  font-size: 17px;
  border-radius: var(--ht-radius-md);
}

/* Badges */
.ht-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--ht-radius-xs);
  line-height: 1.2;
}

.ht-badge-teal {
  background: var(--ht-teal-100);
  color: var(--ht-teal-700);
}

.ht-badge-navy {
  background: var(--ht-navy-900);
  color: var(--ht-white);
}

.ht-badge-popular {
  background: #EBF8FE;
  color: #0369A1;
  border: 1px solid #BAE6FD;
}

.ht-badge-student {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
}

/* ==========================================================================
   6. Header Component
   ========================================================================== */
.ht-site-header {
  width: 100%;
  position: relative;
  z-index: 1000;
  background-color: var(--ht-white);
  border-bottom: 1px solid var(--ht-border);
  transition: box-shadow var(--ht-transition-base);
}

.ht-site-header--sticky {
  position: sticky;
  top: 0;
}

.ht-site-header--scrolled {
  box-shadow: 0 4px 20px rgba(0, 22, 46, 0.08);
}

/* Top Utility Bar */
.ht-top-bar {
  background-color: var(--ht-navy-950);
  color: #D4E1EA;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  line-height: 1.4;
}

.ht-top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.ht-top-bar__left,
.ht-top-bar__right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.ht-top-bar__left {
	min-width: 0;
	order: 2;
	margin-left: auto;
	justify-content: flex-end;
}

.ht-top-bar__right {
	order: 1;
	margin-left: 0;
	justify-content: flex-start;
	flex-shrink: 0;
}

.ht-top-bar__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #D4E1EA;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: color var(--ht-transition-fast);
}

.ht-top-bar__item:hover {
  color: var(--ht-teal-400);
}

.ht-top-bar__item svg {
  color: var(--ht-teal-400);
  flex-shrink: 0;
}

.ht-top-bar__socials {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.ht-top-bar__social-link,
.ht-top-bar__social-icon {
  color: #D4E1EA;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color var(--ht-transition-fast);
}

.ht-top-bar__social-icon {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.14);
	color: #d9e8ef;
	opacity: 1;
	cursor: default;
}

.ht-top-bar__social-icon svg {
	width: 14px;
	height: 14px;
}

.ht-top-bar__social-link:hover {
  color: var(--ht-teal-400);
}

/* Main Navigation Bar */
.ht-main-bar {
  padding: 11px 0;
  background-color: var(--ht-white);
  min-height: 74px;
  display: flex;
  align-items: center;
}

.ht-main-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
}

/* Site Identity / Logo */
.ht-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ht-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  text-decoration: none;
}

.ht-logo-img,
.custom-logo,
.ht-logo-link img {
  display: block;
  width: auto;
  height: 52px;
  max-height: 54px;
  max-width: 270px;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
  transform: translateZ(0);
}

.ht-logo-text {
  font-family: var(--ht-font-heading);
  font-size: 26px;
  font-weight: 800;
  color: var(--ht-navy-950);
  letter-spacing: -0.02em;
}

.ht-logo-text span {
  color: var(--ht-teal-700);
}

/* Desktop Navigation Menu */
.ht-nav-desktop {
  display: flex;
  align-items: center;
}

.ht-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ht-nav__item {
  position: relative;
}

.ht-nav__link {
  display: inline-flex;
  align-items: center;
  position: relative;
  padding: 10px 14px;
  font-family: var(--ht-font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ht-navy-950);
  border-radius: 8px;
  white-space: nowrap;
  transition: all var(--ht-transition-fast);
}

.ht-nav__link:hover {
  color: var(--ht-teal-700);
  background-color: var(--ht-blue-50);
}

.ht-nav__item--active > .ht-nav__link,
.ht-nav__link[aria-current="page"] {
  font-weight: 700;
  color: var(--ht-teal-700);
  background: transparent;
  box-shadow: none;
}

.ht-nav__item--active > .ht-nav__link::after,
.ht-nav__link[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  width: auto;
  height: 3px;
  background: var(--ht-gradient-accent);
  border-radius: var(--ht-radius-pill);
  box-shadow: 0 2px 7px rgba(6, 193, 213, 0.28);
  transform: none;
}

.ht-nav__submenu-toggle {
  display: none; /* Desktop uses hover/focus */
}

/* Desktop Dropdowns */
.ht-nav__sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--ht-white);
  border: 1px solid var(--ht-border);
  border-radius: var(--ht-radius-md);
  box-shadow: var(--ht-shadow-md);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--ht-transition-fast);
  z-index: 100;
}

.ht-nav__item:hover > .ht-nav__sub-menu,
.ht-nav__item:focus-within > .ht-nav__sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ht-nav__sub-menu .ht-nav__link {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  width: 100%;
  border-radius: var(--ht-radius-xs);
}

/* Header Right Actions */
.ht-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ht-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--ht-radius-sm);
  background: var(--ht-surface);
  color: var(--ht-navy-950);
  border: 1px solid var(--ht-border);
  transition: all var(--ht-transition-fast);
}

.ht-hamburger:hover {
  background: var(--ht-teal-100);
  color: var(--ht-teal-700);
}

/* ==========================================================================
   7. Page Hero Component
   ========================================================================== */
.ht-hero {
  position: relative;
  padding: clamp(60px, 8vw, 110px) 0;
  background-color: var(--ht-navy-950);
  color: var(--ht-white);
  overflow: hidden;
}

.ht-hero--compact {
  padding: clamp(40px, 5vw, 65px) 0;
}

.ht-hero--light {
  background-color: var(--ht-surface);
  color: var(--ht-text);
}

.ht-hero--light h1,
.ht-hero--light h2 {
  color: var(--ht-navy-950);
}

.ht-hero--dark-gradient {
  background: linear-gradient(135deg, #031830 0%, #073B4C 100%);
}

.ht-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.ht-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ht-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.ht-hero__overlay--medium {
  background: linear-gradient(90deg, rgba(3, 24, 48, 0.92) 0%, rgba(3, 24, 48, 0.72) 100%);
}

.ht-hero__overlay--dark {
  background: rgba(3, 24, 48, 0.88);
}

.ht-hero__overlay--subtle {
  background: rgba(3, 24, 48, 0.45);
}

.ht-hero__inner {
  position: relative;
  z-index: 3;
}

.ht-hero__content {
  max-width: 780px;
}

.ht-hero--center .ht-hero__content {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.ht-hero__heading {
  color: var(--ht-white);
  margin-bottom: 20px;
}

.ht-hero--light .ht-hero__heading {
  color: var(--ht-navy-950);
}

.ht-hero__highlight {
  color: var(--ht-teal-500);
}

.ht-hero__desc {
  font-size: clamp(17px, 1.2vw, 20px);
  color: #D4E1EA;
  line-height: var(--ht-line-height-loose);
  margin-bottom: 32px;
}

.ht-hero--light .ht-hero__desc {
  color: var(--ht-text-muted);
}

.ht-hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ht-hero--center .ht-hero__actions {
  justify-content: center;
}

/* Breadcrumbs */
.ht-breadcrumbs {
  margin-bottom: 20px;
  font-size: 13.5px;
}

.ht-breadcrumbs__list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ht-breadcrumbs__item a {
  color: #B0C4DE;
}

.ht-hero--light .ht-breadcrumbs__item a {
  color: var(--ht-teal-700);
}

.ht-breadcrumbs__item a:hover {
  color: var(--ht-white);
}

.ht-breadcrumbs__separator {
  color: rgba(255, 255, 255, 0.4);
}

.ht-hero--light .ht-breadcrumbs__separator {
  color: var(--ht-border);
}

.ht-breadcrumbs__item--active {
  color: var(--ht-white);
  font-weight: 500;
}

.ht-hero--light .ht-breadcrumbs__item--active {
  color: var(--ht-text);
}

/* ==========================================================================
   8. Vehicle Card Component
   ========================================================================== */
.ht-vehicle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}

.ht-vehicle-card {
  background: var(--ht-white);
  border: 1px solid var(--ht-border);
  border-radius: var(--ht-radius-md);
  box-shadow: var(--ht-shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform var(--ht-transition-base), box-shadow var(--ht-transition-base);
}

.ht-vehicle-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ht-shadow-md);
}

.ht-vehicle-card__media {
  position: relative;
  background-color: var(--ht-surface);
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.ht-vehicle-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ht-transition-base);
}

.ht-vehicle-card:hover .ht-vehicle-card__img {
  transform: scale(1.03);
}

.ht-vehicle-card__badges {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.ht-vehicle-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ht-vehicle-card__header {
  margin-bottom: 16px;
}

.ht-vehicle-card__subtitle {
  font-size: 13.5px;
  color: var(--ht-text-muted);
  margin-bottom: 4px;
}

.ht-vehicle-card__title {
  font-size: 20px;
  font-weight: 700;
}

.ht-vehicle-card__title a {
  color: var(--ht-navy-950);
}

.ht-vehicle-card__title a:hover {
  color: var(--ht-teal-700);
}

.ht-vehicle-card__specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 16px;
  padding: 16px 0;
  margin-bottom: 20px;
  border-top: 1px solid var(--ht-border);
  border-bottom: 1px solid var(--ht-border);
  font-size: 14px;
  color: var(--ht-text);
}

.ht-vehicle-spec-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ht-vehicle-spec-item svg {
  color: var(--ht-teal-700);
  flex-shrink: 0;
}

.ht-vehicle-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
}

.ht-vehicle-card__price-wrap {
  display: flex;
  flex-direction: column;
}

.ht-vehicle-card__price-label {
  font-size: 12px;
  color: var(--ht-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ht-vehicle-card__price {
  font-family: var(--ht-font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--ht-navy-950);
}

.ht-vehicle-card__price small {
  font-size: 13px;
  font-weight: 500;
  color: var(--ht-text-muted);
}

/* ==========================================================================
   9. Footer Component
   ========================================================================== */
.ht-site-footer {
  background-color: var(--ht-navy-950);
  color: #D4E1EA;
  margin-top: auto;
}

/* A. Pre-Footer CTA */
.ht-pre-footer-cta {
  position: relative;
  background-color: var(--ht-navy-900);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: clamp(60px, 7vw, 90px) 0;
  overflow: hidden;
}

.ht-pre-footer-cta__bg {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  z-index: 1;
}

.ht-pre-footer-cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ht-pre-footer-cta__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.ht-pre-footer-cta__content {
  max-width: 680px;
}

.ht-pre-footer-cta__content h2 {
  color: var(--ht-white);
  margin-bottom: 16px;
}

.ht-pre-footer-cta__content p {
  color: #B5C6D4;
  font-size: clamp(16px, 1.1vw, 18px);
}

.ht-pre-footer-cta__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* B. Main Footer */
.ht-main-footer {
  padding: clamp(56px, 7vw, 84px) 0 40px;
}

.ht-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: clamp(24px, 4vw, 48px);
}

.ht-footer-col__title {
  color: var(--ht-white);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.ht-footer-col p {
  color: #B5C6D4;
  font-size: 14.5px;
  line-height: var(--ht-line-height-loose);
  margin-bottom: 20px;
}

.ht-footer-logo {
  margin-bottom: 20px;
}

.ht-footer-logo .ht-logo-link {
  display: inline-flex;
  align-items: center;
}

.ht-footer-logo .ht-logo-img {
  max-height: 56px;
  max-width: 270px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
  transition: opacity var(--ht-transition-fast);
}

.ht-footer-logo .ht-logo-link:hover .ht-logo-img {
  opacity: 1;
}

.ht-footer-logo .ht-logo-text {
  color: var(--ht-white);
}

.ht-footer-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ht-footer-social-link {
  width: 38px;
  height: 38px;
  border-radius: var(--ht-radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: #D4E1EA;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--ht-transition-fast);
}

.ht-footer-social-link:hover {
  background: var(--ht-teal-700);
  color: var(--ht-white);
}

.ht-footer-nav__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ht-footer-nav__link {
  color: #B5C6D4;
  font-size: 14.5px;
  transition: color var(--ht-transition-fast);
}

.ht-footer-nav__link:hover {
  color: var(--ht-teal-500);
  padding-left: 2px;
}

.ht-footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ht-footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #B5C6D4;
  font-size: 14px;
  line-height: 1.5;
}

.ht-footer-contact-item svg {
  color: var(--ht-teal-500);
  flex-shrink: 0;
  margin-top: 2px;
}

.ht-footer-contact-item a {
  color: #B5C6D4;
}

.ht-footer-contact-item a:hover {
  color: var(--ht-teal-500);
}

/* C. Bottom Footer */
.ht-bottom-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  font-size: 13.5px;
  color: #8C9EA8;
}

.ht-bottom-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.ht-legal-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.ht-legal-menu a {
  color: #8C9EA8;
}

.ht-legal-menu a:hover {
  color: var(--ht-white);
}

/* ==========================================================================
   10. Generic Page Shell & WordPress Styles
   ========================================================================== */
.ht-page-content {
  padding-top: var(--section-md);
  padding-bottom: var(--section-md);
}

.ht-prose {
  max-width: 820px;
}

.ht-prose p {
  margin-bottom: 1.5em;
}

.ht-prose h2,
.ht-prose h3 {
  margin-top: 1.8em;
  margin-bottom: 0.8em;
}

/* ==========================================================================
   11. Form Controls & Alert Notifications
   ========================================================================== */
.ht-form-group {
  margin-bottom: 20px;
}

.ht-form label,
.ht-booking-form label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--ht-navy-950);
  margin-bottom: 7px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 13px 16px;
  font-size: 15px;
  color: var(--ht-text);
  background-color: var(--ht-white);
  border: 1px solid var(--ht-border);
  border-radius: var(--ht-radius-sm);
  transition: border-color var(--ht-transition-fast), box-shadow var(--ht-transition-fast);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
  border-color: var(--ht-teal-700);
  box-shadow: 0 0 0 3px rgba(7, 103, 122, 0.15);
  outline: none;
}

/* Alert Notifications */
.ht-alert {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 22px;
  border-radius: var(--ht-radius-md);
  margin-bottom: 24px;
  line-height: 1.5;
}

.ht-alert__icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.ht-alert__content {
  flex-grow: 1;
}

.ht-alert--success {
  background-color: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
}

.ht-alert--success .ht-alert__icon svg {
  color: #059669;
}

.ht-alert--error {
  background-color: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
}

.ht-alert--error .ht-alert__icon svg {
  color: #DC2626;
}

.ht-alert--info {
  background-color: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1E40AF;
}

/* Utilities */
.ht-rotate-180 {
  transform: rotate(180deg);
}

.ht-back-link:hover {
  color: var(--ht-white) !important;
}

.ht-vehicle-gallery__thumb img {
  transition: transform var(--ht-transition-fast);
}

.ht-vehicle-gallery__thumb:hover img {
  transform: scale(1.05);
}


/* ==========================================================================
   Generic Scroll-Reveal Engine
   --------------------------------------------------------------------------
   Opt a section in with data-ht-reveal, then mark the element whose children
   should stagger with data-ht-reveal-group. assets/js/theme.js adds
   .ht-animated-ready (the hidden state) and later .ht-in-view.

   The hidden state is applied only by that class, which JS alone can add, so a
   failed or blocked script leaves the content visible rather than stranded at
   opacity: 0.

   Sections that predate this engine (vehicle-categories, trust-features,
   featured-vehicles) ship their own equivalent rules and are unaffected.
   ========================================================================== */

[data-ht-reveal].ht-animated-ready [data-ht-reveal-group] > * {
	opacity: 0;
	transform: translateY(24px);
	transition:
		opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
		transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
	will-change: opacity, transform;
}

[data-ht-reveal].ht-animated-ready.ht-in-view [data-ht-reveal-group] > * {
	opacity: 1;
	transform: none;
}

/* Stagger. 80ms reads as one deliberate sequence; beyond ~10 items the wait
   before the last one starts becomes noticeable, so the ramp stops there. */
[data-ht-reveal].ht-in-view [data-ht-reveal-group] > *:nth-child(1)  { transition-delay: 0.04s; }
[data-ht-reveal].ht-in-view [data-ht-reveal-group] > *:nth-child(2)  { transition-delay: 0.12s; }
[data-ht-reveal].ht-in-view [data-ht-reveal-group] > *:nth-child(3)  { transition-delay: 0.20s; }
[data-ht-reveal].ht-in-view [data-ht-reveal-group] > *:nth-child(4)  { transition-delay: 0.28s; }
[data-ht-reveal].ht-in-view [data-ht-reveal-group] > *:nth-child(5)  { transition-delay: 0.36s; }
[data-ht-reveal].ht-in-view [data-ht-reveal-group] > *:nth-child(6)  { transition-delay: 0.44s; }
[data-ht-reveal].ht-in-view [data-ht-reveal-group] > *:nth-child(7)  { transition-delay: 0.52s; }
[data-ht-reveal].ht-in-view [data-ht-reveal-group] > *:nth-child(8)  { transition-delay: 0.60s; }
[data-ht-reveal].ht-in-view [data-ht-reveal-group] > *:nth-child(9)  { transition-delay: 0.68s; }
[data-ht-reveal].ht-in-view [data-ht-reveal-group] > *:nth-child(n+10) { transition-delay: 0.76s; }

@media (prefers-reduced-motion: reduce) {
	[data-ht-reveal].ht-animated-ready [data-ht-reveal-group] > * {
		opacity: 1;
		transform: none;
		transition: none;
		will-change: auto;
	}
}
