/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */

.section-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 3.5rem) 0 4.5rem;
  background-color: var(--color-navy-950);
  color: var(--color-white);
  overflow: hidden;
}

.hero-bg-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg-video,
.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.50;
  filter: saturate(1.15) contrast(1.1);
  transform: scale(1.02);
  transition: transform 1.2s var(--ease-precision);
  pointer-events: none;
}

.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 75% 30%,
      rgba(40, 56, 107, 0.25) 0%,
      transparent 65%
    ),
    linear-gradient(
      180deg,
      rgba(10, 15, 30, 0.35) 0%,
      rgba(10, 15, 30, 0.20) 40%,
      rgba(10, 15, 30, 0.65) 100%
    );
  z-index: 2;
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background-image:
    linear-gradient(
      to right,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px
    );
  background-size:
    clamp(40px, 6vw, 80px)
    clamp(40px, 6vw, 80px);
}

.hero-content {
  position: relative;
  z-index: 4;
  max-width: 980px;
}

.hero-dealership-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 1.15rem;
  background-color: rgba(20, 31, 60, 0.8);
  border: 1px solid rgba(236, 109, 44, 0.4);
  border-radius: var(--radius-xs);
  margin-bottom: var(--space-xl);
  backdrop-filter: blur(10px);
}

.hero-dealership-pill .brand-callout {
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: 0.08em;
}

.hero-headline {
  font-size: var(--type-display-hero);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--color-white);
  margin-bottom: var(--space-lg);
  text-wrap: balance;
}

.hero-headline .text-gradient-orange {
  color: var(--color-accent-orange);
  background: linear-gradient(
    135deg,
    #FF9A52 0%,
    #FF6B1A 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: clamp(1.15rem, 1.45vw, 1.4rem);
  line-height: 1.7;
  color: var(--text-inverse-muted);
  max-width: 760px;
  margin-bottom: var(--space-2xl);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: var(--space-3xl);
}

/* Hero Technical Metric Bar */
.hero-metrics-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xs);
  backdrop-filter: blur(8px);
}

.hero-metric-item {
  background-color: rgba(15, 23, 46, 0.7);
  padding: 1.25rem 1.75rem;
}

.hero-metric-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-inverse-muted);
  margin-bottom: 0.25rem;
}

.hero-metric-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-white);
}

@media (max-width: 768px) {

  .section-hero {
    min-height: calc(100vh - var(--nav-height-mobile));
    min-height: calc(100dvh - var(--nav-height-mobile));
    padding: calc(var(--nav-height-mobile) + 1.5rem) 0 2.5rem;
  }

  .hero-dealership-pill {
    margin-bottom: 1.25rem;
    padding: 0.35rem 0.85rem;
  }

  .hero-headline {
    font-size: clamp(2.15rem, 8vw, 3.25rem);
    line-height: 1.1;
    margin-bottom: 1rem;
  }

  .hero-lead {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.85rem;
    margin-bottom: 2rem;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 48px;
  }

  .hero-metrics-bar {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .hero-metric-item {
    padding: 0.85rem 1.25rem;
  }
}
/* ==========================================================================
   2. TAS INTRODUCTION SECTION
   ========================================================================== */

.section-intro {
  padding: clamp(4.5rem, 8vw, 8rem) 0;
  background-color: var(--bg-body);
  border-bottom: 1px solid var(--border-light);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 5vw, 6rem);
  align-items: start;
}

.intro-lead-statement {
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.035em;
  color: var(--color-navy-900);
}

.intro-body-copy {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.intro-body-copy p strong {
  color: var(--color-navy-900);
}

@media (max-width: 900px) {
  .intro-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   3. SECTION 03 — MIRANDA AUTHORISED DEALER (FLAGSHIP HERO SECTION)
   ========================================================================== */

.section-dealer {
  padding: clamp(5rem, 9vw, 9rem) 0;
  background-color: var(--color-navy-900);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}

.dealer-header-card {
  position: relative;
  background: linear-gradient(135deg, rgba(27, 41, 78, 0.8) 0%, rgba(15, 23, 46, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  padding: clamp(2.5rem, 5vw, 5rem);
  margin-bottom: clamp(2.5rem, 4vw, 4rem);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.dealer-header-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.dealer-badge-large {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  background-color: var(--color-accent-orange);
  color: var(--color-white);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: var(--radius-xs);
  margin-bottom: 1.5rem;
}

.dealer-miranda-svg-logo {
  max-width: 420px;
  width: 100%;
  height: auto;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  filter: brightness(0) invert(1) drop-shadow(0 4px 18px rgba(0, 0, 0, 0.4));
  display: block;
}

.dealer-statement {
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-white);
  margin-bottom: 1.25rem;
}

.dealer-subtext {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-inverse-muted);
  margin-bottom: 1.5rem;
}

.dealer-showcase-visual {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xs);
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.dealer-showcase-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-precision);
}

.dealer-showcase-visual:hover img {
  transform: scale(1.04);
}

/* Compact Technical Pillar Strip */
.dealer-pillars-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.dealer-pillar-compact {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-xs);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.dealer-pillar-compact .pillar-tag {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--color-accent-orange-bright);
  letter-spacing: 0.08em;
}

.dealer-pillar-compact .pillar-text {
  font-size: 0.9375rem;
  color: var(--text-inverse-muted);
  line-height: 1.5;
}

@media (max-width: 991px) {
  .dealer-header-card {
    padding: 1.75rem 1.25rem;
  }

  .dealer-header-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .dealer-badge-large {
    margin-bottom: 1rem;
    font-size: 0.75rem;
  }

  .dealer-miranda-svg-logo {
    margin-bottom: 1.25rem;
    max-width: 320px;
  }

  .dealer-statement {
    font-size: 1.15rem;
    line-height: 1.4;
    margin-bottom: 0.85rem;
  }

  .dealer-header-grid .btn {
    width: 100%;
    min-height: 48px;
  }

  .dealer-pillars-strip {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .dealer-pillar-compact {
    padding: 1rem 1.15rem;
  }
}

/* ==========================================================================
   4. SECTION 04 — MIRANDA PRODUCTS SHOWCASE
   ========================================================================== */

.section-products {
  padding: clamp(4.5rem, 8vw, 8rem) 0;
  background-color: var(--bg-surface);
}

.section-head-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 4vw, 4rem);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1100px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .section-head-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   5. SECTION 05 — WHY TAS (GENUINE SERVICE CAPABILITIES)
   ========================================================================== */

.section-why {
  padding: clamp(4.5rem, 8vw, 7.5rem) 0;
  background-color: var(--bg-body);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.why-card {
  padding: 2.25rem;
  border: 1px solid var(--border-light);
  background-color: var(--bg-surface-elevated);
  transition: transform var(--transition-medium), border-color var(--transition-fast), box-shadow var(--transition-medium);
}

.why-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary-navy);
  box-shadow: var(--shadow-md);
}

.why-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(40, 56, 107, 0.08);
  border: 1px solid rgba(40, 56, 107, 0.16);
  color: var(--color-primary-navy);
  border-radius: var(--radius-xs);
  margin-bottom: 1.5rem;
}

.why-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-navy-900);
  margin-bottom: 0.75rem;
}

.why-card-desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   6. SECTION 06 — ABOUT TAS
   ========================================================================== */

.section-about {
  padding: clamp(4.5rem, 8vw, 8rem) 0;
  background-color: var(--bg-surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(3rem, 5vw, 6rem);
  align-items: center;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.about-specs-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.about-spec-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
}

.about-spec-item strong {
  color: var(--color-navy-900);
  font-weight: 700;
}

.about-visual-card {
  position: relative;
  background: var(--color-navy-950);
  border: 1px solid var(--border-light);
  padding: clamp(2rem, 3.5vw, 3rem);
  border-radius: var(--radius-sm);
  color: var(--color-white);
}

.about-visual-logo {
  max-width: 220px;
  filter: brightness(0) invert(1);
  margin-bottom: 2rem;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   7. SECTION 07 — ENQUIRY CONVERSION SECTION
   ========================================================================== */

.section-enquiry {
  padding: clamp(5rem, 9vw, 9rem) 0;
  background-color: var(--color-navy-950);
  color: var(--color-white);
  position: relative;
  border-top: 1px solid var(--border-dark);
}

.enquiry-container-box {
  background-color: var(--color-navy-900);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

.enquiry-split-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
}

.enquiry-info-panel {
  padding: clamp(2.5rem, 5vw, 4.5rem);
  background: linear-gradient(145deg, rgba(35, 52, 97, 0.4) 0%, rgba(15, 23, 46, 0.8) 100%);
  border-right: 1px solid var(--border-dark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.enquiry-info-head {
  margin-bottom: 2.5rem;
}

.enquiry-contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.enquiry-contact-item {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.enquiry-contact-icon {
  width: 44px;
  height: 44px;
  background-color: rgba(236, 109, 44, 0.12);
  border: 1px solid rgba(236, 109, 44, 0.3);
  color: var(--color-accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  flex-shrink: 0;
}

.enquiry-contact-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.enquiry-contact-meta .contact-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-inverse-muted);
  margin-bottom: 0.2rem;
  line-height: 1.2;
}

.enquiry-contact-meta .contact-value {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-white);
  line-height: 1.45;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.enquiry-contact-meta a.contact-value:hover {
  color: var(--color-accent-orange);
}

.enquiry-form-panel {
  padding: clamp(2.5rem, 5vw, 4.5rem);
  background-color: var(--bg-dark-card);
}

@media (max-width: 900px) {
  .enquiry-split-grid {
    grid-template-columns: 1fr;
  }

  .enquiry-info-panel {
    border-right: none;
    border-bottom: 1px solid var(--border-dark);
  }
}

/* ==========================================================================
   TAS FOOTER — MOBILE LAYOUT
   ========================================================================== */

@media (max-width: 640px) {

  .site-footer {
    width: 100%;
    overflow: hidden;
  }

  /* Main footer container */
  .site-footer .footer-top {
    width: 100%;
    padding-top: 48px;
    padding-bottom: 48px;
  }

  /* Stack footer sections */
  .site-footer .footer-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
  }

  /* Brand */
  .site-footer .footer-brand-logo {
    width: 120px;
    height: auto;
  }

  .site-footer .footer-brand-logo-wrap {
    margin-bottom: 16px;
  }

  .site-footer .footer-brand-text {
    max-width: 320px;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.55;
  }

  /* Footer headings */
  .site-footer .footer-col-title {
    margin-bottom: 16px;
    font-size: 11px;
    line-height: 1.4;
    letter-spacing: 0.12em;
  }

  /* Footer links */
  .site-footer .footer-links {
    display: flex;
    flex-direction: column;
    gap: 11px;
  }

  .site-footer .footer-link {
    font-size: 14px;
    line-height: 1.5;
  }

  /* The fourth column adds unnecessary density on small screens */
  .site-footer .footer-grid>div:nth-child(4) {
    display: none;
  }

  /* Bottom bar */
  .site-footer .footer-bottom {
    padding-top: 20px;
    padding-bottom: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    text-align: left;
  }

  .site-footer .footer-bottom-links {
    gap: 0;
  }
}

/* ==========================================================================
   PRODUCT CATALOGUE FILTER + SEARCH
   Clean responsive layout for desktop and mobile
   ========================================================================== */

.catalog-toolbar {
  width: 100%;
  background-color: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-light);
  position: static;
}

.catalog-toolbar-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem 0;
}

/* --------------------------------------------------------------------------
   FILTER BUTTONS & SCROLL CONTAINER
   -------------------------------------------------------------------------- */

.filter-buttons-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.filter-scroll-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-xs);
  background-color: var(--color-navy-900);
  border: 1px solid var(--color-navy-700);
  color: var(--color-white);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  user-select: none;
  z-index: 5;
  box-shadow: var(--shadow-sm);
  padding: 0;
}

.filter-scroll-btn:hover {
  background-color: var(--color-accent-orange);
  border-color: var(--color-accent-orange);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--color-accent-orange-glow);
}

.filter-scroll-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.filter-buttons {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;

  width: 100%;

  overflow-x: auto;
  overflow-y: hidden;

  padding: 4px 2px 6px;

  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.filter-buttons::-webkit-scrollbar {
  display: none;
}

.filter-buttons .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* Keep filter buttons comfortable */
.filter-buttons .btn--small {
  min-height: 44px;
  padding: 0.65rem 1.15rem;
  font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   SEARCH
   -------------------------------------------------------------------------- */

.catalog-search {
  width: 100%;
  max-width: 420px;
}

.catalog-search input {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
}


/* ==========================================================================
   DESKTOP
   ========================================================================== */

@media (min-width: 769px) {

  .catalog-toolbar-inner {
    gap: 1rem;
  }

  /*
   * Keep filter buttons on one clean scrollable horizontal row with arrows
   */
  .filter-buttons {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .catalog-search {
    width: 320px;
    max-width: 320px;
    margin-left: auto;
  }
}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 768px) {

  .catalog-toolbar-inner {
    padding-top: 1rem;
    padding-bottom: 1rem;
    gap: 0.75rem;
  }

  /*
   * On mobile, filters remain on one horizontal row.
   * The user can swipe horizontally instead of creating
   * a cramped multi-row wall of buttons.
   */
  .filter-buttons {
    width: 100%;
    max-width: none;

    gap: 0.5rem;

    overflow-x: auto;
    overflow-y: hidden;

    padding-bottom: 4px;
  }

  .filter-buttons .btn--small {
    min-height: 44px;
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: 0.875rem;
  }

  .catalog-search {
    width: 100%;
    max-width: none;
  }

  .catalog-search input {
    min-height: 48px;
    font-size: 0.9375rem;
  }
}


/* ==========================================================================
   SMALL PHONES
   ========================================================================== */

@media (max-width: 390px) {

  .catalog-toolbar-inner {
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
  }

  .filter-buttons {
    gap: 0.45rem;
  }

  .filter-buttons .btn--small {
    min-height: 44px;
    padding-left: 0.9rem;
    padding-right: 0.9rem;
    font-size: 0.8125rem;
  }
}