/**
 * ==============================================================================
 * STATE REMOVALISTS SECTION - MODERN, CREATIVE & PREMIUM REDESIGN
 * File: assets/css/state-removalists-redesign.css
 * Target: "Find Professional Removalists In Every Australian State" (.tr-states-section)
 * Scope: Inner Pages State/Territory Directory Section
 * Requirements: 100% CSS-only redesign, HTML/content locked, no new images/HTML.
 * ==============================================================================
 *
 * TABLE OF CONTENTS:
 *  01. Design Tokens & Color System
 *  02. Section Container & Ambient Backdrop
 *  03. Premium Section Heading & Eyebrow
 *  04. Responsive Grid Layout (4-col Desktop, 2-col Tablet, 1-col Mobile)
 *  05. State Cards Base Surface & Architectural Pillar
 *  06. State Map Emblem Badge (.tr-state-badge & .tr-state-map-img)
 *  07. State Typography & Abbreviation Emphasis (.tr-state-code & .tr-state-name)
 *  08. Right Circular Micro-Action Arrow (.tr-state-arrow)
 *  09. State Card Hover & Interactive Dynamics
 *  10. Subtle Visual Variations (nth-child Accents)
 *  11. Focus States & Accessibility
 *  12. Tablet Responsive Breakpoints (768px - 1024px)
 *  13. Mobile Responsive Breakpoints (360px - 767px)
 *  14. Ultra-Compact Mobile (<360px)
 *  15. Reduced Motion Compliance
 * ==============================================================================
 */

/* ==============================================================================
   01. DESIGN TOKENS & COLOR SYSTEM
   ============================================================================== */
:root {
  --state-primary: #8b181b;
  --state-primary-bright: #c93a28;
  --state-primary-hover: #a31d2e;
  --state-primary-dark: #5e0b0e;
  --state-accent: #c93a28;
  --state-accent-light: rgba(139, 24, 27, 0.05);
  --state-accent-glow: rgba(139, 24, 27, 0.16);
  --state-gold: #f59e0b;

  --state-heading: #0f172a;
  --state-text: #1e293b;
  --state-muted: #64748b;
  --state-subtle: #94a3b8;

  --state-card-bg: #ffffff;
  --state-card-border: #e2e8f0;
  --state-card-border-hover: rgba(139, 24, 27, 0.32);

  --state-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  --state-shadow-card: 0 4px 18px -2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.03);
  --state-shadow-hover: 0 18px 38px -6px rgba(139, 24, 27, 0.15), 0 4px 12px -2px rgba(15, 23, 42, 0.04);

  --state-radius-sm: 10px;
  --state-radius-md: 18px;
  --state-radius-lg: 24px;
  --state-radius-pill: 9999px;

  --state-font-heading: 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --state-font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --state-ease-bounce: cubic-bezier(0.16, 1, 0.3, 1);
  --state-ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==============================================================================
   02. SECTION CONTAINER & AMBIENT BACKDROP
   ============================================================================== */
.tr-states-section {
  position: relative !important;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(139, 24, 27, 0.045) 0%, transparent 68%),
    radial-gradient(circle at 100% 100%, rgba(201, 58, 40, 0.035) 0%, transparent 50%),
    #f8fafc !important;
  padding: clamp(65px, 6.5vw, 95px) 0 clamp(75px, 7.5vw, 105px) !important;
  overflow: hidden !important;
  border-top: 1px solid rgba(226, 232, 240, 0.8) !important;
  font-family: var(--state-font-body) !important;
}

/* Background Accents */
.tr-states-bg-decor {
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  z-index: 0 !important;
  overflow: hidden !important;
}

.tr-states-wave-top {
  position: absolute !important;
  top: -80px !important;
  right: -80px !important;
  left: auto !important;
  width: 450px !important;
  height: 350px !important;
  background: radial-gradient(circle, rgba(201, 58, 40, 0.06) 0%, rgba(139, 24, 27, 0.02) 60%, transparent 80%) !important;
  border-radius: 50% !important;
  filter: blur(20px) !important;
}

/* Clean, modern fade replaces the old harsh bottom wedge */
.tr-states-wave-bottom {
  display: none !important;
}

/* Dot Matrix Grid */
.tr-states-dots {
  position: absolute !important;
  top: 30% !important;
  left: 2.5% !important;
  width: 80px !important;
  height: 55px !important;
  opacity: 0.18 !important;
}

/* Australia Watermark */
.tr-states-aus-watermark {
  position: absolute !important;
  top: 20px !important;
  right: 2% !important;
  width: 240px !important;
  max-width: 22% !important;
  color: var(--state-primary) !important;
  opacity: 0.05 !important;
  pointer-events: none !important;
}

/* ==============================================================================
   03. PREMIUM SECTION HEADING & EYEBROW
   ============================================================================== */
.tr-states-header {
  position: relative !important;
  z-index: 1 !important;
  text-align: center !important;
  margin-bottom: clamp(38px, 4vw, 55px) !important;
}

/* Eyebrow Pill Badge */
.tr-states-eyebrow {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  margin-bottom: 16px !important;
  padding: 6px 18px !important;
  border-radius: var(--state-radius-pill) !important;
  background: linear-gradient(135deg, rgba(139, 24, 27, 0.07) 0%, rgba(201, 58, 40, 0.03) 100%) !important;
  border: 1px solid rgba(139, 24, 27, 0.15) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
}

.tr-states-eyebrow-line {
  width: 16px !important;
  height: 2px !important;
  background: var(--state-primary-bright) !important;
  border-radius: var(--state-radius-pill) !important;
}

.tr-states-eyebrow-text {
  font-family: var(--state-font-body) !important;
  font-size: 0.76rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--state-primary) !important;
}

/* Main Heading Title */
.tr-states-title {
  margin: 0 !important;
  font-family: var(--state-font-heading) !important;
  line-height: 1.2 !important;
  text-align: center !important;
}

.tr-states-title-dark {
  display: block !important;
  font-size: clamp(1.85rem, 1.45rem + 1.8vw, 2.75rem) !important;
  font-weight: 900 !important;
  color: var(--state-heading) !important;
  letter-spacing: -0.025em !important;
}

.tr-states-title-crimson {
  display: block !important;
  font-size: clamp(1.85rem, 1.45rem + 1.8vw, 2.75rem) !important;
  font-weight: 900 !important;
  letter-spacing: -0.025em !important;
  margin-top: 4px !important;
  background: var(--tr-cta-gradient) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* Subtitle Tagline Accent */
.tr-states-header::after {
  content: "Australia-Wide Moving Network • Verified Local & Interstate Removalists Across Every State & Territory" !important;
  display: block !important;
  font-family: var(--state-font-body) !important;
  font-size: clamp(0.85rem, 0.78rem + 0.22vw, 0.98rem) !important;
  font-weight: 600 !important;
  color: var(--state-muted) !important;
  margin-top: 14px !important;
  max-width: 680px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  line-height: 1.5 !important;
  letter-spacing: 0.01em !important;
}

/* ==============================================================================
   04. RESPONSIVE GRID LAYOUT
   Desktop: 4 cards per row
   Tablet: 2 cards per row
   Mobile: 1 card per row
   ============================================================================== */
.tr-states-grid {
  position: relative !important;
  z-index: 1 !important;
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: clamp(16px, 1.6vw, 22px) !important;
}

/* ==============================================================================
   05. STATE CARDS BASE SURFACE & ARCHITECTURAL PILLAR
   Design: Modern Australian Location Directory Card
   - Pure crisp white surface (#ffffff)
   - 18px border radius with subtle multi-stop elevation
   - Bold architectural left brand pillar (border-left: 4.5px solid var(--state-primary))
   - Smooth animated top indicator light line (::before)
   - Generous clickable area through existing <a> tag
   ============================================================================== */
.tr-state-card {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: #ffffff !important;
  border-radius: var(--state-radius-md) !important;
  min-height: clamp(80px, 7.5vw, 88px) !important;
  padding: clamp(12px, 1.2vw, 16px) clamp(14px, 1.5vw, 20px) !important;
  border: 1px solid var(--state-card-border) !important;
  border-left: 4.5px solid var(--state-primary) !important;
  box-shadow:
    0 2px 8px -2px rgba(15, 23, 42, 0.04),
    0 1px 3px rgba(15, 23, 42, 0.02),
    inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
  text-decoration: none !important;
  overflow: hidden !important;
  cursor: pointer !important;
  transition:
    transform 0.35s var(--state-ease-bounce),
    box-shadow 0.35s var(--state-ease-bounce),
    border-color 0.28s ease,
    background 0.28s ease !important;
}

/* Top Animated Brand Accent Line (Pure CSS) */
.tr-state-card::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 0 !important;
  height: 3px !important;
  background: linear-gradient(90deg, var(--state-primary-bright) 0%, var(--state-primary) 100%) !important;
  border-radius: 18px 18px 0 0 !important;
  transition: width 0.35s var(--state-ease-bounce) !important;
  z-index: 2 !important;
}

/* ==============================================================================
   06. STATE MAP EMBLEM BADGE (.tr-state-badge & .tr-state-map-img)
   - Eliminates old clipped polygon wedge
   - Clean, sculpted rounded squircle container
   - Soft ambient background with subtle map drop shadow
   ============================================================================== */
.tr-state-badge {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  border-radius: 14px !important;
  /* background: linear-gradient(135deg, rgba(139, 24, 27, 0.06) 0%, rgba(201, 58, 40, 0.02) 100%) !important; */
  border: 1px solid rgba(139, 24, 27, 0.12) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-right: 14px !important;
  flex-shrink: 0 !important;
  clip-path: none !important;
  padding: 0 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
  transition:
    transform 0.35s var(--state-ease-bounce),
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.35s var(--state-ease-bounce) !important;
}

.tr-state-map-img {
  width: 34px !important;
  height: 34px !important;
  object-fit: contain !important;
  display: block !important;
  filter: drop-shadow(0 2px 4px rgba(139, 24, 27, 0.18)) !important;
  transition: transform 0.35s var(--state-ease-bounce) !important;
}

/* ==============================================================================
   07. STATE TYPOGRAPHY & ABBREVIATION EMPHASIS
   - State Abbreviation (.tr-state-code): Bold 900 Mulish heading
   - Service Title (.tr-state-name): Muted crimson secondary tag with AU prefix
   ============================================================================== */
.tr-state-info {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  padding-left: 0 !important;
}

/* State Abbreviation (.tr-state-code: ACT, NT, SA, VIC, NSW, QLD, TAS, WA) */
.tr-state-code {
  font-family: var(--state-font-heading) !important;
  font-size: clamp(1.15rem, 1.08rem + 0.25vw, 1.32rem) !important;
  font-weight: 900 !important;
  color: var(--state-heading) !important;
  line-height: 1.15 !important;
  letter-spacing: -0.015em !important;
  /* text-transform: uppercase !important; */
  transition: color 0.25s ease !important;
}

/* State Name / Service Subtitle (.tr-state-name) */
.tr-state-name {
  display: flex !important;
  align-items: center !important;
  gap: 3px !important;
  font-family: var(--state-font-body) !important;
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  color: var(--state-primary) !important;
  margin-top: 3px !important;
  line-height: 1.2 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  transition: color 0.25s ease !important;
}

/* Location-Inspired Australian Tag Indicator */
.tr-state-name::before {
  content: "AU • " !important;
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  opacity: 0.75 !important;
  letter-spacing: 0.04em !important;
}

/* ==============================================================================
   08. RIGHT CIRCULAR MICRO-ACTION ARROW (.tr-state-arrow)
   - Clean circular action button
   - Transitions to vibrant crimson gradient with white icon on hover
   ============================================================================== */
.tr-state-arrow {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  border-radius: var(--state-radius-pill) !important;
  background: #f8fafc !important;
  border: 1px solid var(--state-card-border) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--state-muted) !important;
  font-size: 13px !important;
  margin-left: 10px !important;
  flex-shrink: 0 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
  transition:
    transform 0.3s var(--state-ease-bounce),
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.3s ease !important;
}

/* ==============================================================================
   09. STATE CARD HOVER & INTERACTIVE DYNAMICS
   - Smooth elevation lift (-5px)
   - Multi-layered depth shadow
   - Top light bar sweeps across card
   - Left brand pillar illuminates
   - Emblem badge scales and brightens
   - Action arrow fills with crimson gradient and glides right
   ============================================================================== */
.tr-state-card:hover {
  transform: translateY(-5px) !important;
  border-color: rgba(139, 24, 27, 0.28) !important;
  border-left-color: var(--state-primary-bright) !important;
  box-shadow: var(--state-shadow-hover) !important;
  background: radial-gradient(circle at 100% 0%, rgba(139, 24, 27, 0.035) 0%, transparent 60%), #ffffff !important;
}

.tr-state-card:hover::before {
  width: 100% !important;
}

.tr-state-card:hover .tr-state-badge {
  transform: scale(1.06) !important;
  background: linear-gradient(135deg, rgba(139, 24, 27, 0.12) 0%, rgba(201, 58, 40, 0.06) 100%) !important;
  border-color: rgba(139, 24, 27, 0.25) !important;
  box-shadow: 0 4px 12px rgba(139, 24, 27, 0.15) !important;
}

.tr-state-card:hover .tr-state-map-img {
  transform: scale(1.12) !important;
}

.tr-state-card:hover .tr-state-code {
  color: var(--state-primary) !important;
}

.tr-state-card:hover .tr-state-name {
  color: var(--state-primary-bright) !important;
}

.tr-state-card:hover .tr-state-arrow {
  transform: translateX(4px) scale(1.08) !important;
  background: linear-gradient(135deg, var(--state-primary-bright) 0%, var(--state-primary) 100%) !important;
  color: #ffffff !important;
  border-color: var(--state-primary) !important;
  box-shadow: 0 4px 12px rgba(139, 24, 27, 0.35) !important;
}

/* Active / Click State */
.tr-state-card:active {
  transform: translateY(-2px) scale(0.99) !important;
  box-shadow: 0 6px 18px -2px rgba(139, 24, 27, 0.15) !important;
}

/* ==============================================================================
   10. SUBTLE VISUAL VARIATIONS (NTH-CHILD ACCENTS)
   Maintains cohesive brand system while adding creative rhythm
   ============================================================================== */
.tr-states-grid .tr-state-card:nth-child(even) {
  border-left-color: rgba(139, 24, 27, 0.85) !important;
}

.tr-states-grid .tr-state-card:nth-child(3n):hover {
  border-left-color: #e11d48 !important;
}

.tr-states-grid .tr-state-card:nth-child(4n):hover {
  border-left-color: #b91c1c !important;
}

/* ==============================================================================
   11. FOCUS STATES & ACCESSIBILITY
   ============================================================================== */
.tr-state-card:focus-visible {
  outline: 3px solid var(--state-primary-bright) !important;
  outline-offset: 3px !important;
}

/* ==============================================================================
   12. TABLET RESPONSIVE BREAKPOINTS (768px - 1024px)
   2 Cards Per Row
   ============================================================================== */
@media (min-width: 768px) and (max-width: 1024px) {
  .tr-states-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }

  .tr-state-card {
    min-height: 80px !important;
    padding: 14px 16px !important;
  }

  .tr-state-badge {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    margin-right: 12px !important;
  }

  .tr-state-map-img {
    width: 30px !important;
    height: 30px !important;
  }

  .tr-state-code {
    font-size: 1.15rem !important;
  }

  .tr-state-name {
    font-size: 0.72rem !important;
  }
}

/* ==============================================================================
   13. MOBILE RESPONSIVE BREAKPOINTS (360px - 767px)
   2 Cards Per Row Grid - No Arrows
   ============================================================================== */
@media (max-width: 767.98px) {
  .tr-states-section {
    padding: 38px 0 48px !important;
  }

  .tr-wrap {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .tr-states-header {
    margin-bottom: 20px !important;
  }

  .tr-states-eyebrow {
    margin-bottom: 10px !important;
    padding: 4px 14px !important;
  }

  .tr-states-eyebrow-text {
    font-size: 11px !important;
  }

  .tr-states-title-dark,
  .tr-states-title-crimson {
    font-size: clamp(1.28rem, 4.8vw, 1.6rem) !important;
    line-height: 1.25 !important;
  }

  .tr-states-header::after {
    font-size: 0.78rem !important;
    margin-top: 6px !important;
  }

  /* 2 Cards Per Row on Mobile */
  .tr-states-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .tr-state-card {
    min-height: 54px !important;
    padding: 7px 8px !important;
    border-radius: 12px !important;
    border-left-width: 3px !important;
    gap: 0 !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
  }

  .tr-state-badge {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    border-radius: 9px !important;
    margin-right: 7px !important;
    padding: 4px !important;
    box-sizing: border-box !important;
  }

  .tr-state-map-img {
    width: 20px !important;
    height: 20px !important;
    object-fit: contain !important;
  }

  .tr-state-info {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .tr-state-code {
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    line-height: 1.18 !important;
    display: block !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }

  .tr-state-name {
    font-size: 0.6rem !important;
    margin-top: 1px !important;
    display: block !important;
  }

  /* Remove / Hide arrow completely on mobile as requested */
  .tr-state-arrow {
    display: none !important;
  }
}

/* ==============================================================================
   14. ULTRA-COMPACT MOBILE (<360px)
   ============================================================================== */
@media (max-width: 359.98px) {
  .tr-wrap {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .tr-states-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
  }

  .tr-state-card {
    padding: 6px 6px !important;
    min-height: 50px !important;
    border-radius: 10px !important;
  }

  .tr-state-badge {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    margin-right: 5px !important;
    padding: 3px !important;
  }

  .tr-state-map-img {
    width: 18px !important;
    height: 18px !important;
  }

  .tr-state-code {
    font-size: 0.7rem !important;
    line-height: 1.15 !important;
  }

  .tr-state-name {
    font-size: 0.58rem !important;
  }

  .tr-state-arrow {
    display: none !important;
  }
}

/* ==============================================================================
   15. REDUCED MOTION ACCESSIBILITY
   ============================================================================== */
@media (prefers-reduced-motion: reduce) {

  .tr-state-card,
  .tr-state-card::before,
  .tr-state-badge,
  .tr-state-map-img,
  .tr-state-code,
  .tr-state-name,
  .tr-state-arrow {
    transition: none !important;
    transform: none !important;
    animation: none !important;
  }
}