/*
Theme Name: Hamid Car Rentals
Theme URI: https://hamidcarrentals.example
Author: Hamid Car Rentals
Author URI: https://hamidcarrentals.example
Description: Brand-specific frontend theme for Hamid Car Rentals, a Zanzibar car rental company. Presentation only — all booking, pricing and availability logic lives in the rental-engine plugin (see ARCHITECTURE.md). This theme consumes the plugin's shortcodes and the rental_vehicle_type / rental_testimonial custom post types.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: hamid-car-rentals
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* =============================================================================
   HAMID CAR RENTALS — THEME STYLESHEET
   =============================================================================
   Table of contents:
     1. CSS custom properties (design tokens)
     2. Reset / base
     3. Typography
     4. Layout helpers
     5. Buttons
     6. Forms
     7. Header / nav
     8. Hero + search panel
     9. Trust strip
    10. Cards (vehicle, blog, feature, step, destination, testimonial)
    11. Sections (generic band, CTA, how-it-works)
    12. Footer
    13. Page header band (page.php)
    14. Blog (single/archive/category)
    15. Vehicle single template
    16. Plugin shortcode output hooks (rental-engine templates)
    17. Utilities
    18. Responsive breakpoints reference

   FONT NOTE: This build ships with a system-font stack only, because this
   environment has no internet access to fetch a webfont at build time. To
   swap in a Google Font later (e.g. "Plus Jakarta Sans" / "Inter"), add a
   <link> for it in header.php (or an @import here) and prepend the family
   name to --font-sans below. Everything else is already sized/spaced to
   accommodate a webfont swap without further changes.

   PLUGIN INTEGRATION CONTRACT: the rental-engine plugin's shortcode
   templates ([rental_search], [rental_vehicle_list], [rental_booking],
   [rental_checkout], [rental_confirmation], [rental_customer_account]) are
   free to output whatever markup they like, but are asked (per the shared
   contract with the theme) to use these class names so this stylesheet can
   style them on-brand without the theme knowing their internal structure:
     .rental-search-panel     - wraps a [rental_search] / [rental_vehicle_list] filter form
     .rental-vehicle-card     - one vehicle result/listing card
     .rental-vehicle-grid     - the grid/list wrapping multiple .rental-vehicle-card
     .rental-booking-summary  - the price/summary box on booking & checkout screens
     .rental-booking-steps    - a step indicator (Vehicle > Extras > Details > Pay)
     .rental-form-row         - a labeled form field wrapper
     .rental-cta-button       - primary call-to-action button inside plugin templates
     .rental-badge            - small status/label pill (e.g. "Available", "Confirmed")
     .rental-alert            - inline notice/error/success box
     .rental-table            - tabular data (e.g. My Booking details)
   These are styled generically below (section 16) so any markup using them
   inherits the Hamid look automatically.
   ============================================================================= */

/* -----------------------------------------------------------------------
   1. CSS CUSTOM PROPERTIES
   ----------------------------------------------------------------------- */
:root {
  /* Brand palette */
  --hcr-navy: #0B1F3A;
  --hcr-navy-700: #132a4d;
  --hcr-navy-600: #1b3660;
  --hcr-navy-soft: #10294a;
  --hcr-white: #FFFFFF;
  --hcr-accent: #2F6FED;
  --hcr-accent-600: #2559c4;
  --hcr-accent-100: #e7f0ff;
  --hcr-accent-50: #f3f8ff;

  /* Neutrals */
  --hcr-bg: #F6F8FB;
  --hcr-bg-alt: #EEF2F8;
  --hcr-surface: #FFFFFF;
  --hcr-text: #16233B;
  --hcr-text-muted: #5B6B85;
  --hcr-text-faint: #8493AB;
  --hcr-border: #E3E9F2;
  --hcr-border-strong: #CBD5E5;

  /* Feedback colors */
  --hcr-success: #1E8E5A;
  --hcr-success-bg: #E7F6EE;
  --hcr-warning: #B4740E;
  --hcr-warning-bg: #FBF1DE;
  --hcr-danger: #C23A3A;
  --hcr-danger-bg: #FBEAEA;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;
  --fs-2xl: 2.25rem;
  --fs-3xl: 2.875rem;
  --fs-4xl: 3.5rem;
  --lh-tight: 1.15;
  --lh-snug: 1.35;
  --lh-normal: 1.6;

  /* Spacing scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 2.5rem;
  --sp-8: 3rem;
  --sp-9: 4rem;
  --sp-10: 5.5rem;

  /* Radius scale */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(11, 31, 58, 0.06), 0 1px 1px rgba(11, 31, 58, 0.04);
  --shadow-md: 0 8px 24px rgba(11, 31, 58, 0.10);
  --shadow-lg: 0 20px 48px rgba(11, 31, 58, 0.16);
  --shadow-focus: 0 0 0 3px rgba(47, 111, 237, 0.28);

  /* Layout */
  --container-width: 1240px;
  --container-pad: 1.25rem;
  --header-height: 76px;
}

/* -----------------------------------------------------------------------
   2. RESET / BASE
   ----------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--hcr-text);
  background: var(--hcr-bg);
  -webkit-font-smoothing: antialiased;
}

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

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--sp-4);
  line-height: var(--lh-tight);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--hcr-navy);
}

p {
  margin: 0 0 var(--sp-4);
  color: var(--hcr-text-muted);
}

*:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: var(--radius-sm);
}

/* -----------------------------------------------------------------------
   3. TYPOGRAPHY
   ----------------------------------------------------------------------- */
.h-display { font-size: var(--fs-3xl); line-height: var(--lh-tight); }
.h-1 { font-size: var(--fs-2xl); }
.h-2 { font-size: var(--fs-xl); }
.h-3 { font-size: var(--fs-lg); }
.eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hcr-accent);
  margin-bottom: var(--sp-3);
}
.lede {
  font-size: var(--fs-md);
  color: var(--hcr-text-muted);
  line-height: var(--lh-normal);
}

/* -----------------------------------------------------------------------
   4. LAYOUT HELPERS
   ----------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--sp-9);
}

.section-header {
  max-width: 720px;
  margin-bottom: var(--sp-7);
}
.section-header.center {
  margin-inline: auto;
  text-align: center;
}

.grid {
  display: grid;
  gap: var(--sp-6);
}

.bg-navy { background: var(--hcr-navy); color: var(--hcr-white); }
.bg-navy h2, .bg-navy h3, .bg-navy h4 { color: var(--hcr-white); }
.bg-alt { background: var(--hcr-bg-alt); }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--hcr-accent);
  color: var(--hcr-white);
  padding: var(--sp-3) var(--sp-4);
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

/* -----------------------------------------------------------------------
   5. BUTTONS
   ----------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  min-height: 48px;
  line-height: 1.1;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary,
.rental-cta-button {
  background: var(--hcr-accent);
  color: var(--hcr-white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover,
.rental-cta-button:hover {
  background: var(--hcr-accent-600);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--hcr-white);
  color: var(--hcr-navy);
  border-color: var(--hcr-border-strong);
}
.btn-secondary:hover {
  border-color: var(--hcr-accent);
  color: var(--hcr-accent);
}

.btn-ghost-light {
  background: transparent;
  color: var(--hcr-white);
  border-color: rgba(255,255,255,0.35);
}
.btn-ghost-light:hover {
  border-color: var(--hcr-white);
  background: rgba(255,255,255,0.08);
}

.btn-block { width: 100%; }
.btn-lg { padding: 1.1rem 2rem; font-size: var(--fs-md); min-height: 56px; }

/* -----------------------------------------------------------------------
   6. FORMS
   ----------------------------------------------------------------------- */
.field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}
.field label,
.rental-form-row label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--hcr-navy);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="number"],
input[type="search"],
select,
textarea,
.rental-form-row input,
.rental-form-row select,
.rental-form-row textarea {
  width: 100%;
  font-size: var(--fs-base);
  font-family: inherit;
  padding: 0.85rem 1rem;
  min-height: 52px;
  border: 2px solid var(--hcr-border);
  border-radius: var(--radius-sm);
  background: var(--hcr-white);
  color: var(--hcr-text);
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

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

select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6B85' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 18px;
  padding-right: 2.75rem;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--hcr-accent);
  box-shadow: var(--shadow-focus);
}

::placeholder { color: var(--hcr-text-faint); }

.form-grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
}

/* -----------------------------------------------------------------------
   7. HEADER / NAV
   ----------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--hcr-navy);
  color: var(--hcr-white);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: var(--header-height);
}

.site-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: var(--hcr-white);
}
.site-wordmark .wm-accent { color: var(--hcr-accent); }
.site-wordmark small {
  margin-top: 4px;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.primary-nav {
  display: none;
}
.primary-nav ul {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}
.primary-nav a {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: rgba(255,255,255,0.82);
  padding: var(--sp-2) 0;
  position: relative;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a {
  color: var(--hcr-white);
}
.primary-nav .current-menu-item > a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--hcr-accent);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.header-link {
  display: none;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--hcr-white);
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 2px solid rgba(255,255,255,0.25);
}
.header-link:hover { border-color: var(--hcr-white); }
.header-link svg { width: 18px; height: 18px; }

.header-link-booking {
  background: var(--hcr-accent);
  border-color: var(--hcr-accent);
}
.header-link-booking:hover { background: var(--hcr-accent-600); border-color: var(--hcr-accent-600); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-sm);
  color: var(--hcr-white);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--hcr-navy-700);
  border-top: 1px solid rgba(255,255,255,0.12);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav .container { padding-block: var(--sp-4); }
.mobile-nav ul { display: flex; flex-direction: column; gap: var(--sp-1); }
.mobile-nav a {
  display: block;
  padding: var(--sp-3) var(--sp-2);
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  border-radius: var(--radius-sm);
}
.mobile-nav a:hover { background: rgba(255,255,255,0.06); color: var(--hcr-white); }
.mobile-nav .mobile-actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-top: var(--sp-3);
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(255,255,255,0.12);
}

/* -----------------------------------------------------------------------
   8. HERO + SEARCH PANEL
   ----------------------------------------------------------------------- */
.hero {
  background: linear-gradient(180deg, var(--hcr-navy) 0%, var(--hcr-navy-600) 100%);
  color: var(--hcr-white);
  padding-block: var(--sp-8) var(--sp-9);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: var(--sp-8);
  align-items: start;
}

.hero-copy .eyebrow { color: #8FB4FF; }
.hero-copy h1 {
  color: var(--hcr-white);
  font-size: var(--fs-3xl);
  margin-bottom: var(--sp-5);
}
.hero-copy p.lede {
  color: rgba(255,255,255,0.78);
  max-width: 46ch;
  margin-bottom: var(--sp-6);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-6);
  margin-top: var(--sp-7);
}
.hero-stat strong {
  display: block;
  font-size: var(--fs-xl);
  color: var(--hcr-white);
}
.hero-stat span {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-illustration {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #16345f 0%, #2453a0 55%, #2F6FED 100%);
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.hero-illustration svg { width: 100%; height: auto; display: block; }

.search-panel {
  background: var(--hcr-white);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-lg);
  color: var(--hcr-text);
}
.search-panel h2 {
  font-size: var(--fs-md);
  margin-bottom: var(--sp-4);
}
.search-panel .form-grid {
  grid-template-columns: 1fr;
  gap: var(--sp-3);
}
.search-panel .field { margin-bottom: 0; }
.search-panel .field label { color: var(--hcr-text-muted); }
.search-panel .btn { margin-top: var(--sp-2); }

/* -----------------------------------------------------------------------
   9. TRUST STRIP
   ----------------------------------------------------------------------- */
.trust-strip {
  background: var(--hcr-white);
  border-bottom: 1px solid var(--hcr-border);
}
.trust-strip .container {
  padding-block: var(--sp-6);
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: 1fr;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.trust-item .icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--hcr-accent-100);
  color: var(--hcr-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.trust-item .icon svg { width: 22px; height: 22px; }
.trust-item strong {
  display: block;
  font-size: var(--fs-sm);
  color: var(--hcr-navy);
}
.trust-item span {
  font-size: var(--fs-xs);
  color: var(--hcr-text-muted);
}

/* -----------------------------------------------------------------------
   10. CARDS
   ----------------------------------------------------------------------- */
.card {
  background: var(--hcr-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--hcr-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* Vehicle card */
.vehicle-card,
.rental-vehicle-card {
  background: var(--hcr-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--hcr-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.vehicle-card:hover,
.rental-vehicle-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.vehicle-card-media {
  aspect-ratio: 16 / 10;
  background: var(--hcr-bg-alt);
  position: relative;
  overflow: hidden;
}
.vehicle-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.vehicle-card-media.placeholder {
  background: linear-gradient(135deg, var(--hcr-navy) 0%, var(--hcr-accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.vehicle-card-media.placeholder svg { width: 46%; height: auto; opacity: 0.9; }

.vehicle-card-body {
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  flex: 1;
}
.vehicle-card-category {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hcr-accent);
}
.vehicle-card-body h3 {
  font-size: var(--fs-md);
  margin: 0;
}
.vehicle-specs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  font-size: var(--fs-xs);
  color: var(--hcr-text-muted);
}
.vehicle-specs li,
.vehicle-specs span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.vehicle-specs svg { width: 16px; height: 16px; color: var(--hcr-accent); }

.vehicle-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--hcr-border);
}
.vehicle-price strong {
  font-size: var(--fs-lg);
  color: var(--hcr-navy);
}
.vehicle-price span {
  font-size: var(--fs-xs);
  color: var(--hcr-text-muted);
}

/* Feature / step / destination cards */
.feature-card {
  padding: var(--sp-6);
  text-align: left;
}
.feature-card .icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: var(--hcr-accent-100);
  color: var(--hcr-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-4);
}
.feature-card .icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: var(--fs-md); }
.feature-card p { margin-bottom: 0; }

.step-card {
  position: relative;
  padding: var(--sp-6) var(--sp-5);
  text-align: left;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--hcr-navy);
  color: var(--hcr-white);
  font-weight: 700;
  margin-bottom: var(--sp-4);
}
.step-card h3 { font-size: var(--fs-md); }
.step-card p { margin-bottom: 0; }

.destination-card {
  overflow: hidden;
}
.destination-media {
  aspect-ratio: 4 / 3;
  position: relative;
}
.destination-media svg { width: 100%; height: 100%; }
.destination-body { padding: var(--sp-5); }
.destination-body h3 { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.destination-body p { margin-bottom: var(--sp-3); font-size: var(--fs-sm); }
.destination-link {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--hcr-accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Testimonials */
.testimonial-card {
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.testimonial-quote-icon { color: var(--hcr-accent-100); width: 36px; height: 36px; }
.testimonial-body { color: var(--hcr-text); font-size: var(--fs-sm); flex: 1; }
.testimonial-author { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.testimonial-author-name { font-weight: 700; color: var(--hcr-navy); font-size: var(--fs-sm); }
.testimonial-author-role { font-size: var(--fs-xs); color: var(--hcr-text-muted); }
.demo-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--hcr-text-faint);
  background: var(--hcr-bg-alt);
  border: 1px solid var(--hcr-border);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

/* Blog cards */
.blog-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.blog-card-media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--hcr-navy) 0%, var(--hcr-accent) 100%);
  overflow: hidden;
}
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.blog-card-cat {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--hcr-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.blog-card-body h3 { font-size: var(--fs-md); margin: 0; }
.blog-card-meta { font-size: var(--fs-xs); color: var(--hcr-text-faint); }
.blog-card-excerpt { font-size: var(--fs-sm); margin: 0; }

/* -----------------------------------------------------------------------
   11. SECTIONS
   ----------------------------------------------------------------------- */
.why-choose-grid,
.how-it-works-grid,
.destinations-grid,
.testimonials-grid,
.blog-grid,
.vehicle-grid,
.rental-vehicle-grid {
  grid-template-columns: 1fr;
}

.cta-band {
  background: linear-gradient(120deg, var(--hcr-navy) 0%, #163258 60%, var(--hcr-accent) 140%);
  color: var(--hcr-white);
  text-align: center;
  padding-block: var(--sp-9);
}
.cta-band h2 { color: var(--hcr-white); font-size: var(--fs-2xl); }
.cta-band p { color: rgba(255,255,255,0.78); max-width: 56ch; margin-inline: auto; margin-bottom: var(--sp-6); }
.cta-actions { display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; }

/* -----------------------------------------------------------------------
   12. FOOTER
   ----------------------------------------------------------------------- */
.site-footer {
  background: var(--hcr-navy);
  color: rgba(255,255,255,0.75);
  padding-block: var(--sp-9) var(--sp-6);
}
.footer-grid {
  display: grid;
  gap: var(--sp-7);
  grid-template-columns: 1fr;
  margin-bottom: var(--sp-8);
}
.footer-brand .site-wordmark { color: var(--hcr-white); margin-bottom: var(--sp-3); }
.footer-brand p { color: rgba(255,255,255,0.6); max-width: 42ch; }
.footer-heading {
  color: var(--hcr-white);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--sp-4);
}
.footer-links li { margin-bottom: var(--sp-2); }
.footer-links a { color: rgba(255,255,255,0.7); font-size: var(--fs-sm); }
.footer-links a:hover { color: var(--hcr-white); }
.footer-contact li { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-3); font-size: var(--fs-sm); }
.footer-contact svg { width: 18px; height: 18px; color: var(--hcr-accent); flex-shrink: 0; }
.footer-social { display: flex; gap: var(--sp-3); margin-top: var(--sp-4); }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { border-color: var(--hcr-white); background: rgba(255,255,255,0.08); }
.footer-social svg { width: 17px; height: 17px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.55);
}
.footer-bottom-links { display: flex; gap: var(--sp-4); flex-wrap: wrap; }
.footer-bottom-links a { color: rgba(255,255,255,0.55); }
.footer-bottom-links a:hover { color: var(--hcr-white); }
.footer-widgets { margin-top: var(--sp-2); }

/* -----------------------------------------------------------------------
   13. PAGE HEADER BAND
   ----------------------------------------------------------------------- */
.page-header-band {
  background: var(--hcr-navy);
  color: var(--hcr-white);
  padding-block: var(--sp-8) var(--sp-7);
}
.page-header-band h1 { color: var(--hcr-white); margin-bottom: var(--sp-2); }
.page-header-band .breadcrumb { font-size: var(--fs-xs); color: rgba(255,255,255,0.6); }
.page-header-band .breadcrumb a { color: rgba(255,255,255,0.75); }
.page-header-band .breadcrumb a:hover { color: var(--hcr-white); }

.page-content-wrap {
  padding-block: var(--sp-8);
}
.page-prose {
  max-width: 780px;
  background: var(--hcr-surface);
  border: 1px solid var(--hcr-border);
  border-radius: var(--radius-md);
  padding: var(--sp-7);
  box-shadow: var(--shadow-sm);
}
.page-prose h2, .page-prose h3 { margin-top: var(--sp-6); }
.page-prose ul, .page-prose ol { padding-left: 1.25rem; margin-bottom: var(--sp-4); list-style: disc; }
.page-prose ol { list-style: decimal; }
.page-prose li { color: var(--hcr-text-muted); margin-bottom: var(--sp-2); }
.page-prose a { color: var(--hcr-accent); text-decoration: underline; }
.page-prose img { border-radius: var(--radius-sm); margin-block: var(--sp-4); }

/* This wrapper is what plugin shortcode page templates render inside of —
   keeps [rental_search] / [rental_booking] / [rental_checkout] etc. on the
   same canvas/width as the rest of the site. */
.shortcode-page-wrap {
  max-width: var(--container-width);
}

/* -----------------------------------------------------------------------
   14. BLOG (single / archive / category)
   ----------------------------------------------------------------------- */
.blog-header { text-align: center; max-width: 700px; margin-inline: auto; }

.single-post-wrap {
  max-width: 780px;
  margin-inline: auto;
}
.single-post-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--sp-6);
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--hcr-navy), var(--hcr-accent));
}
.single-post-media img { width: 100%; height: 100%; object-fit: cover; }
.post-meta-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  font-size: var(--fs-xs);
  color: var(--hcr-text-faint);
  margin-bottom: var(--sp-3);
}
.post-cat-badge {
  background: var(--hcr-accent-100);
  color: var(--hcr-accent-600);
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.6875rem;
}
.single-post-title { font-size: var(--fs-2xl); }
.entry-content {
  font-size: var(--fs-base);
  color: var(--hcr-text);
}
.entry-content p { color: var(--hcr-text); margin-bottom: var(--sp-5); }
.entry-content h2 { font-size: var(--fs-lg); margin-top: var(--sp-7); }
.entry-content h3 { font-size: var(--fs-md); margin-top: var(--sp-6); }
.entry-content ul, .entry-content ol { padding-left: 1.25rem; margin-bottom: var(--sp-5); list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content img { border-radius: var(--radius-md); }
.entry-content blockquote {
  border-left: 4px solid var(--hcr-accent);
  margin: var(--sp-6) 0;
  padding: var(--sp-2) 0 var(--sp-2) var(--sp-5);
  font-style: italic;
  color: var(--hcr-navy);
}

.related-posts {
  margin-top: var(--sp-9);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--hcr-border);
}

.archive-header { text-align: center; }

/* -----------------------------------------------------------------------
   15. VEHICLE SINGLE TEMPLATE
   ----------------------------------------------------------------------- */
.vehicle-single-grid {
  display: grid;
  gap: var(--sp-8);
  grid-template-columns: 1fr;
  align-items: start;
}
.vehicle-gallery-main {
  aspect-ratio: 16/10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--hcr-navy) 0%, var(--hcr-accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}
.vehicle-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.vehicle-gallery-main svg { width: 40%; opacity: 0.9; }
.vehicle-gallery-thumbs {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
  flex-wrap: wrap;
}
.vehicle-gallery-thumbs img {
  width: 84px; height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid var(--hcr-border);
}

.vehicle-header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; }
.vehicle-title-block h1 { font-size: var(--fs-2xl); margin-bottom: var(--sp-2); }
.vehicle-price-block {
  text-align: right;
  flex-shrink: 0;
}
.vehicle-price-block strong { font-size: var(--fs-2xl); color: var(--hcr-navy); display: block; }
.vehicle-price-block span { font-size: var(--fs-xs); color: var(--hcr-text-muted); }

.spec-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
  margin-block: var(--sp-6);
  padding: var(--sp-5);
  background: var(--hcr-white);
  border: 1px solid var(--hcr-border);
  border-radius: var(--radius-md);
}
.spec-list-item { display: flex; align-items: center; gap: var(--sp-3); }
.spec-list-item .icon {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: var(--hcr-accent-100);
  color: var(--hcr-accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.spec-list-item .icon svg { width: 20px; height: 20px; }
.spec-list-item strong { display: block; font-size: var(--fs-sm); color: var(--hcr-navy); }
.spec-list-item span { font-size: var(--fs-xs); color: var(--hcr-text-muted); }

.feature-tag-list { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-block: var(--sp-5); }
.feature-tag {
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--hcr-bg-alt);
  color: var(--hcr-text-muted);
  border: 1px solid var(--hcr-border);
}

.vehicle-booking-anchor { margin-top: var(--sp-7); }

/* -----------------------------------------------------------------------
   16. PLUGIN SHORTCODE OUTPUT HOOKS
   ----------------------------------------------------------------------- */
.rental-search-panel {
  background: var(--hcr-white);
  border: 1px solid var(--hcr-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--sp-7);
}

.rental-booking-summary {
  background: var(--hcr-bg-alt);
  border: 1px solid var(--hcr-border);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
}

.rental-booking-steps {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}

.rental-badge {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--hcr-accent-100);
  color: var(--hcr-accent-600);
}

.rental-alert {
  border-radius: var(--radius-sm);
  padding: var(--sp-4);
  font-size: var(--fs-sm);
  border: 1px solid var(--hcr-border);
  margin-bottom: var(--sp-5);
}
.rental-alert.success { background: var(--hcr-success-bg); color: var(--hcr-success); border-color: transparent; }
.rental-alert.warning { background: var(--hcr-warning-bg); color: var(--hcr-warning); border-color: transparent; }
.rental-alert.error { background: var(--hcr-danger-bg); color: var(--hcr-danger); border-color: transparent; }

.rental-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.rental-table th,
.rental-table td {
  text-align: left;
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--hcr-border);
}
.rental-table th { color: var(--hcr-text-muted); font-weight: 600; }

.footer-blog-categories {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin-top: var(--sp-7);
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-kicker {
  display: block;
  margin-bottom: var(--sp-1);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--hcr-accent-100);
}

.footer-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.footer-category-pills a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.07);
  color: var(--hcr-white);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.footer-category-pills a:hover,
.footer-category-pills a:focus {
  background: var(--hcr-accent);
  border-color: var(--hcr-accent);
  color: var(--hcr-white);
}

/* -----------------------------------------------------------------------
   17. UTILITIES
   ----------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.overflow-x-auto { overflow-x: auto; }

.no-results-card {
  padding: var(--sp-8);
  text-align: center;
  background: var(--hcr-white);
  border: 1px dashed var(--hcr-border-strong);
  border-radius: var(--radius-md);
  color: var(--hcr-text-muted);
}

/* =============================================================================
   18. RESPONSIVE BREAKPOINTS (mobile-first: base styles above target 360px+)
   ============================================================================= */

/* ---- 480px and up ---- */
@media (min-width: 480px) {
  .trust-strip .container { grid-template-columns: repeat(2, 1fr); }
  .cta-actions { flex-wrap: nowrap; }
}

/* ---- 768px and up ---- */
@media (min-width: 768px) {
  :root { --container-pad: 2rem; }

  .primary-nav { display: block; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
  .header-link { display: inline-flex; }

  .hero-copy h1 { font-size: var(--fs-4xl); }
  .why-choose-grid,
  .how-it-works-grid { grid-template-columns: repeat(2, 1fr); }
  .destinations-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .vehicle-grid,
  .rental-vehicle-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-strip .container { grid-template-columns: repeat(4, 1fr); }

  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }

  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .search-panel .form-grid { grid-template-columns: repeat(2, 1fr); }

  .vehicle-single-grid { grid-template-columns: 1.3fr 1fr; }
  .spec-list { grid-template-columns: repeat(3, 1fr); }
}

/* ---- 1024px and up ---- */
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-illustration { order: 2; min-height: 420px; }
  .hero-copy { order: 1; }

  .why-choose-grid { grid-template-columns: repeat(4, 1fr); }
  .how-it-works-grid { grid-template-columns: repeat(4, 1fr); }
  .destinations-grid { grid-template-columns: repeat(4, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
  .vehicle-grid,
  .rental-vehicle-grid { grid-template-columns: repeat(3, 1fr); }

  .search-panel .form-grid { grid-template-columns: repeat(2, 1fr); }

  .cta-band h2 { font-size: var(--fs-3xl); }
}

/* ---- 1280px and up ---- */
@media (min-width: 1280px) {
  .vehicle-grid,
  .rental-vehicle-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-illustration { min-height: 480px; }
}
