/*
Theme Name: CTA Custom Truck Accessories
Theme URI: https://customtruckaccessories.com
Author: Red Moon Media
Author URI: https://redmoonmedia.com
Description: Custom WordPress theme for Custom Truck Accessories — Northern Nevada's trusted truck accessory destination since 1983. Dark, rugged-premium aesthetic with teal accent.
Version: 2.7.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: proprietary
Text Domain: cta-theme
*/

/* ═══════════════════════════════════════════
   CSS VARIABLES & RESET
   ═══════════════════════════════════════════ */
:root {
  --black: #ffffff;
  --dark: #f8f8f7;
  --charcoal: #f1f0ee;
  --gunmetal: #e8e6e2;
  --steel: #d0cec9;
  --ash: #6b6b6b;
  --silver: #555555;
  --offwhite: #2a2a2a;
  --white: #1a1a1a;
  --accent: #2ba89e;
  --accent-bright: #1e8a81;
  --accent-dark: #1e7a72;
  --gold: #c9a84c;
  --font-display: 'Oswald', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
  --nav-height: 80px;
  --section-padding: 100px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); background: var(--black); color: var(--offwhite); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }

/* ═══════════ UTILITY ═══════════ */
.container { max-width: 1320px; margin: 0 auto; padding: 0 40px; }
.section-label { font-family: var(--font-display); font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--accent); font-weight: 500; margin-bottom: 16px; }
.section-title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; text-transform: uppercase; line-height: 1.1; color: var(--white); }
.section-subtitle { font-size: 1.1rem; color: var(--ash); line-height: 1.7; max-width: 560px; font-weight: 300; }

.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; padding: 16px 36px; border: none; cursor: pointer; transition: all 0.3s ease; position: relative; overflow: hidden; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-bright); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(43, 168, 158, 0.3); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid var(--steel); }
.btn-outline:hover { border-color: var(--white); background: rgba(0,0,0,0.04); }
.btn-arrow::after { content: '→'; transition: transform 0.3s ease; }
.btn-arrow:hover::after { transform: translateX(4px); }

/* ═══════════ TOP BAR ═══════════ */
.top-bar { background: var(--accent-dark); padding: 8px 0; font-size: 0.78rem; letter-spacing: 0.04em; position: relative; z-index: 100; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar-left { display: flex; gap: 28px; color: rgba(255,255,255,0.9); }
.top-bar-left a { display: flex; align-items: center; gap: 6px; transition: color 0.2s; }
.top-bar-left a:hover { color: #fff; }
.top-bar-right { display: flex; gap: 20px; align-items: center; color: rgba(255,255,255,0.95); font-weight: 500; }
.top-bar-icon { width: 14px; height: 14px; opacity: 0.8; }

/* ═══════════ NAVIGATION ═══════════ */
.nav { position: sticky; top: 0; z-index: 99; background: rgba(255,255,255,0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(0,0,0,0.08); height: var(--nav-height); transition: all 0.3s ease; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.nav .container { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.nav-logo { display: flex; align-items: center; gap: 14px; }
.nav-logo img, .nav-logo .custom-logo { max-width: 125px; height: auto; }
.footer-logo-img { max-width: 125px; height: auto; }
.logo-mark { width: 48px; height: 48px; background: var(--accent); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: #fff; letter-spacing: -0.02em; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text-top { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--white); }
.logo-text-bottom { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ash); font-weight: 400; }

.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a, .nav-links li a { font-family: var(--font-display); font-size: 0.82rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--silver); transition: color 0.25s; position: relative; }
.nav-links a::after, .nav-links li a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--accent); transition: width 0.3s ease; }
.nav-links a:hover, .nav-links li a:hover { color: var(--white); }
.nav-links a:hover::after, .nav-links li a:hover::after { width: 100%; }
.nav-links .current-menu-item a, .nav-links .current_page_item a { color: var(--white); }
.nav-links .current-menu-item a::after, .nav-links .current_page_item a::after { width: 100%; }
.nav-cta { font-family: var(--font-display); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; background: var(--accent); color: #fff; padding: 12px 28px; border: none; cursor: pointer; transition: all 0.3s ease; }
.nav-cta:hover { background: var(--accent-bright); transform: translateY(-1px); }

/* Mobile menu toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: all 0.3s; }

/* ═══════════ HERO ═══════════ */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; background: var(--dark); }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.6) 40%, rgba(255,255,255,0.5) 70%, rgba(255,255,255,0.3) 100%); }
.hero-bg::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px); background-size: 60px 60px; }
.hero-bg::after { content: ''; position: absolute; top: -200px; right: -100px; width: 800px; height: 800px; background: radial-gradient(circle, rgba(43,168,158,0.12) 0%, transparent 70%); pointer-events: none; }
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; padding-top: 40px; padding-bottom: 40px; }
.hero-content { animation: fadeInUp 0.8s ease forwards; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.hero-badge { display: inline-flex; align-items: center; gap: 10px; background: rgba(43,168,158,0.12); border: 1px solid rgba(43,168,158,0.25); padding: 8px 18px; margin-bottom: 28px; font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-bright); font-weight: 500; }
.hero-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero h1 { font-family: var(--font-display); font-size: clamp(2.8rem, 5.5vw, 4.8rem); font-weight: 700; text-transform: uppercase; line-height: 1.0; color: var(--white); margin-bottom: 24px; }
.hero h1 span { display: block; color: var(--accent); }
.hero-text { font-size: 1.15rem; line-height: 1.75; color: var(--ash); max-width: 480px; margin-bottom: 40px; font-weight: 300; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 60px; }
.hero-stats { display: flex; gap: 48px; padding-top: 40px; border-top: 1px solid rgba(0,0,0,0.1); }
.hero-stat-number { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--white); line-height: 1; margin-bottom: 6px; }
.hero-stat-number .accent { color: var(--accent); }
.hero-stat-label { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ash); font-weight: 500; }

.hero-visual { position: relative; animation: fadeInUp 0.8s 0.2s ease forwards; opacity: 0; }
.hero-truck-frame { width: 100%; aspect-ratio: 4/3; background: linear-gradient(145deg, var(--charcoal) 0%, var(--dark) 100%); border: 1px solid rgba(0,0,0,0.08); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hero-truck-frame::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--gold), var(--accent)); }
.truck-placeholder { text-align: center; padding: 40px; }
.truck-placeholder-icon { font-size: 6rem; margin-bottom: 16px; opacity: 0.4; filter: grayscale(100%); }
.truck-placeholder-text { font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--steel); }
.hero-truck-tag { position: absolute; bottom: 20px; right: 20px; background: rgba(255,255,255,0.9); backdrop-filter: blur(10px); padding: 12px 20px; border: 1px solid rgba(0,0,0,0.1); }
.hero-truck-tag-label { font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ash); }
.hero-truck-tag-value { font-family: var(--font-display); font-size: 0.85rem; font-weight: 600; color: var(--white); letter-spacing: 0.05em; }

/* ═══════════ BRAND BAR ═══════════ */
.brand-bar { background: var(--charcoal); border-top: 1px solid rgba(0,0,0,0.06); border-bottom: 1px solid rgba(0,0,0,0.06); padding: 36px 0; }
.brand-bar-inner { display: flex; align-items: center; justify-content: center; gap: 64px; flex-wrap: wrap; }
.brand-logo-item { font-family: var(--font-display); font-size: 1rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--steel); white-space: nowrap; transition: color 0.3s; padding: 0 24px; }
.brand-logo-item::after { content: '·'; margin-left: 24px; color: var(--gunmetal); }
.brand-logo-item:hover { color: var(--ash); }

/* ═══════════ PRODUCT GRID ═══════════ */
.products { padding: var(--section-padding) 0; background: var(--black); }
.products-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 60px; flex-wrap: wrap; gap: 24px; }
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.product-card { position: relative; aspect-ratio: 1; background: var(--charcoal); overflow: hidden; cursor: pointer; }
.product-card-bg { position: absolute; inset: 0; background: linear-gradient(145deg, var(--gunmetal) 0%, var(--charcoal) 100%); background-size: cover; background-position: center; transition: transform 0.6s ease; }
.product-card:hover .product-card-bg { transform: scale(1.05); }
.product-card-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,0.7) 100%); z-index: 1; }
.product-card-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -60%); font-size: 3.5rem; opacity: 0.2; z-index: 0; transition: all 0.4s ease; }
.product-card:hover .product-card-icon { opacity: 0.35; transform: translate(-50%, -65%) scale(1.1); }
.product-card-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 32px; z-index: 2; }
.product-card-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: #fff; margin-bottom: 8px; }
.product-card-desc { font-size: 0.85rem; color: rgba(255,255,255,0.75); line-height: 1.5; font-weight: 300; max-height: 0; overflow: hidden; opacity: 0; transition: all 0.4s ease; }
.product-card:hover .product-card-desc { max-height: 60px; opacity: 1; margin-bottom: 16px; }
.product-card-link { font-family: var(--font-display); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); display: flex; align-items: center; gap: 8px; opacity: 0; transform: translateY(10px); transition: all 0.4s ease; }
.product-card:hover .product-card-link { opacity: 1; transform: translateY(0); }
.product-card-link::after { content: '→'; transition: transform 0.2s; }
.product-card.featured { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.product-card.featured .product-card-icon { font-size: 6rem; }
.product-card.featured .product-card-title { font-size: 1.8rem; color: #fff; }
.product-card.featured .product-card-desc { max-height: 80px; opacity: 1; font-size: 0.95rem; color: rgba(255,255,255,0.75); }
.product-card::before { content: ''; position: absolute; top: 0; left: 0; width: 0; height: 3px; background: var(--accent); z-index: 3; transition: width 0.4s ease; }
.product-card:hover::before { width: 100%; }

/* ═══════════ WHY CTA ═══════════ */
.why-cta { padding: var(--section-padding) 0; background: var(--charcoal); position: relative; overflow: hidden; }
.why-cta::before { content: ''; position: absolute; top: 0; right: 0; width: 50%; height: 100%; background: linear-gradient(180deg, rgba(43,168,158,0.04) 0%, transparent 50%), linear-gradient(90deg, transparent 0%, rgba(43,168,158,0.02) 100%); pointer-events: none; }
.why-cta .container { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.why-cta-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.pillar { padding: 32px; border: 1px solid rgba(0,0,0,0.08); background: rgba(255,255,255,0.5); transition: all 0.3s ease; }
.pillar:hover { border-color: rgba(43,168,158,0.3); background: rgba(43,168,158,0.04); transform: translateY(-4px); }
.pillar-number { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; color: var(--accent); opacity: 0.3; line-height: 1; margin-bottom: 16px; }
.pillar-title { font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--white); margin-bottom: 10px; }
.pillar-text { font-size: 0.85rem; line-height: 1.6; color: var(--ash); font-weight: 300; }

/* ═══════════ GALLERY ═══════════ */
.gallery-section { padding: var(--section-padding) 0; background: var(--black); }
.gallery-header { text-align: center; margin-bottom: 60px; }
.gallery-header .section-subtitle { margin: 16px auto 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 280px 280px; gap: 4px; }
.gallery-item { position: relative; overflow: hidden; cursor: pointer; background: var(--gunmetal); }
.gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-item-inner { position: absolute; inset: 0; background: linear-gradient(145deg, var(--gunmetal) 0%, var(--charcoal) 100%); display: flex; align-items: center; justify-content: center; transition: transform 0.6s ease; }
.gallery-item:hover .gallery-item-inner { transform: scale(1.08); }
.gallery-item-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.7) 100%); z-index: 1; opacity: 0; transition: opacity 0.3s ease; }
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-placeholder-icon { font-size: 3rem; opacity: 0.15; }
.gallery-item:first-child .gallery-placeholder-icon { font-size: 5rem; }
.gallery-item-label { position: absolute; bottom: 20px; left: 20px; z-index: 2; font-family: var(--font-display); font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: #fff; opacity: 0; transform: translateY(10px); transition: all 0.3s ease; }
.gallery-item:hover .gallery-item-label { opacity: 1; transform: translateY(0); }

/* ═══════════ LOCATIONS ═══════════ */
.locations { padding: var(--section-padding) 0; background: var(--charcoal); }
.locations-header { margin-bottom: 60px; }
.locations-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.location-card { background: var(--dark); border: 1px solid rgba(0,0,0,0.08); padding: 40px 36px; position: relative; overflow: hidden; transition: all 0.3s ease; }
.location-card:hover { border-color: rgba(43,168,158,0.3); transform: translateY(-4px); }
.location-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease; }
.location-card:hover::before { transform: scaleX(1); }
.location-card-city { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--white); margin-bottom: 6px; }
.location-card-state { font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); font-weight: 500; margin-bottom: 24px; }
.location-card-detail { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; font-size: 0.9rem; color: var(--silver); line-height: 1.5; }
.location-card-detail-icon { flex-shrink: 0; width: 16px; height: 16px; margin-top: 3px; color: var(--ash); }
.location-card-actions { display: flex; gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(0,0,0,0.08); }
.location-btn { flex: 1; text-align: center; padding: 12px 16px; font-family: var(--font-display); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; border: 1px solid rgba(0,0,0,0.1); color: var(--silver); transition: all 0.2s; }
.location-btn:hover { border-color: var(--accent); color: var(--white); background: rgba(43,168,158,0.08); }
.location-btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.location-btn-primary:hover { background: var(--accent-bright); border-color: var(--accent-bright); }

/* ═══════════ CTA BANNER ═══════════ */
.cta-banner { padding: 80px 0; background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 50%, var(--accent-dark) 100%); position: relative; overflow: hidden; text-align: center; }
.cta-banner::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px); background-size: 40px 40px; }
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.cta-banner p { font-size: 1.1rem; color: rgba(255,255,255,0.95); margin-bottom: 36px; font-weight: 300; }
.cta-banner .btn-outline { border-color: rgba(255,255,255,0.5); color: #fff; }
.cta-banner .btn-outline:hover { border-color: #fff; background: rgba(0,0,0,0.1); }

/* ═══════════ PAGE HERO ═══════════ */
.page-hero { padding: 80px 0 60px; background: var(--dark); border-bottom: 1px solid rgba(0,0,0,0.06); position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; top: -100px; right: -50px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(43,168,158,0.08) 0%, transparent 70%); pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb { font-size: 0.8rem; color: var(--ash); margin-bottom: 20px; }
.breadcrumb a { color: var(--accent); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent-bright); }
.breadcrumb span { margin: 0 8px; opacity: 0.4; }

/* ═══════════ FOOTER ═══════════ */
.footer { background: var(--dark); padding: 80px 0 0; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; padding-bottom: 60px; border-bottom: 1px solid rgba(0,0,0,0.08); }
.footer-brand p { font-size: 0.9rem; color: var(--ash); line-height: 1.7; margin-top: 20px; max-width: 320px; font-weight: 300; }
.footer-col-title { font-family: var(--font-display); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--white); margin-bottom: 20px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 0.88rem; color: var(--ash); transition: color 0.2s; font-weight: 300; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 28px 0; font-size: 0.78rem; color: var(--steel); }
.footer-dolan-badge { font-family: var(--font-display); font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; padding: 4px 10px; border: 1px solid rgba(0,0,0,0.1); color: var(--ash); }

/* ═══════════ FORMS ═══════════ */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-family: var(--font-display); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--silver); margin-bottom: 8px; }
.form-input, .form-select, .form-textarea { width: 100%; padding: 14px 18px; background: var(--charcoal); border: 1px solid rgba(0,0,0,0.1); color: var(--white); font-family: var(--font-body); font-size: 0.95rem; transition: border-color 0.2s; outline: none; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--accent); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--steel); }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; cursor: pointer; }
.form-select option { background: #fff; color: #333; }
.form-textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ═══════════ ANIMATIONS ═══════════ */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ═══════════ NOISE OVERLAY ═══════════ */
body::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 9999; opacity: 0.025; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E"); background-repeat: repeat; background-size: 256px 256px; }

/* ═══════════ PRODUCT HOVER CARDS (Homepage) ═══════════ */
.product-hover-card { transition: transform 0.3s ease; }
.product-hover-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.product-hover-card:hover div:first-child { background: linear-gradient(180deg, transparent 10%, rgba(0,0,0,0.85) 100%) !important; }
.product-hover-card:hover .card-cta { opacity: 1 !important; }

/* ═══════════ RESPONSIVE GRID UTILITIES ═══════════ */
/* These classes replace inline grid-template-columns so grids stack on mobile */
.grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.grid-2col-center { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.grid-2col-64 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.grid-2col-60 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.grid-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; align-items: center; }
.grid-2x2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4col-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; text-align: center; }

/* RV brand page styles */
.rv-notice { padding: 20px 28px; background: rgba(43,168,158,0.08); border: 1px solid rgba(43,168,158,0.2); margin-bottom: 40px; display: flex; align-items: center; gap: 16px; }
.rv-notice-icon { font-size: 1.4rem; flex-shrink: 0; }
.rv-notice-text { font-size: 0.95rem; color: var(--silver); line-height: 1.6; }
.rv-notice-text a { color: var(--accent); font-weight: 500; }
.rv-notice-text a:hover { color: var(--accent-bright); text-decoration: underline; }

.brand-page-hero { padding: 80px 0 60px; background: var(--dark); border-bottom: 1px solid rgba(0,0,0,0.06); position: relative; overflow: hidden; }
.brand-page-hero::before { content: ''; position: absolute; top: -100px; right: -50px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(43,168,158,0.08) 0%, transparent 70%); pointer-events: none; }
.brand-highlights { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 32px; }
.brand-highlight { display: flex; align-items: center; gap: 10px; padding: 12px 18px; background: rgba(43,168,158,0.08); border: 1px solid rgba(43,168,158,0.15); font-size: 0.85rem; font-weight: 500; color: var(--accent-bright); }
.brand-highlight-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.brand-cta-sidebar { padding: 40px; background: var(--dark); border: 1px solid rgba(0,0,0,0.08); }
.brand-models-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.brand-model-card { padding: 32px; background: var(--charcoal); border: 1px solid rgba(0,0,0,0.08); transition: all 0.3s; }
.brand-model-card:hover { border-color: rgba(43,168,158,0.3); transform: translateY(-2px); }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .product-card.featured { grid-column: span 2; grid-row: span 1; aspect-ratio: 2/1; }
  .why-cta .container { grid-template-columns: 1fr; gap: 48px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .gallery-item:first-child { grid-column: span 2; }
  .locations-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  /* Utility grids */
  .grid-2col, .grid-2col-center, .grid-2col-64, .grid-2col-60, .grid-1-2 { grid-template-columns: 1fr; gap: 40px; }
  .grid-4col-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 768px) {
  :root { --section-padding: 64px; --nav-height: 64px; }
  .container { padding: 0 20px; }
  .top-bar { display: none; }
  .nav-links { display: none; position: fixed; top: var(--nav-height); left: 0; right: 0; background: var(--dark); flex-direction: column; padding: 24px 40px; gap: 20px; border-bottom: 1px solid rgba(0,0,0,0.08); z-index: 100; }
  .nav-links.active { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .products-grid { grid-template-columns: 1fr; }
  .product-card.featured { grid-column: span 1; }
  .product-card { aspect-ratio: 16/9; }
  .why-cta-pillars { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 200px 200px; }
  .gallery-item:first-child { grid-column: span 2; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { text-align: center; justify-content: center; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  /* Utility grids */
  .grid-2col, .grid-2col-center, .grid-2col-64, .grid-2col-60, .grid-1-2 { grid-template-columns: 1fr; gap: 32px; }
  .grid-2x2 { gap: 12px; }
  .grid-3col { grid-template-columns: 1fr; gap: 16px; }
  .grid-4col-stats { grid-template-columns: 1fr 1fr; gap: 20px; }
  /* Brand bar scroll */
  .brand-bar-inner { gap: 24px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 0 20px; flex-wrap: nowrap; }
  .brand-bar { padding: 24px 0; }
  /* Homepage product grid */
  .hp-products-grid { grid-template-columns: 1fr !important; }
  /* CTA banner */
  .cta-banner { padding: 60px 0; }
  .cta-banner h2 { font-size: clamp(1.4rem, 5vw, 2rem); }
  /* Page hero */
  .page-hero { padding: 48px 0 36px; }
  /* Product page sections */
  .product-section-grid { grid-template-columns: 1fr !important; direction: ltr !important; }
  .product-section-grid > * { direction: ltr !important; }
  .product-section-image { aspect-ratio: 16/9 !important; }
  /* Quick nav scroll */
  .quick-nav-inner { -webkit-overflow-scrolling: touch; }
  /* Brand page */
  .brand-highlights { grid-template-columns: 1fr 1fr; }
  .brand-cta-sidebar { margin-top: 0; }
  .brand-models-grid { grid-template-columns: 1fr; }
  /* RV notice */
  .rv-notice { flex-direction: column; text-align: center; padding: 16px 20px; }
}

@media (max-width: 480px) {
  .grid-2x2 { grid-template-columns: 1fr; }
  .grid-4col-stats { grid-template-columns: 1fr; gap: 16px; }
  .btn { padding: 14px 24px; font-size: 0.8rem; }
  .section-title { font-size: clamp(1.6rem, 5vw, 2.4rem); }
  .brand-highlights { grid-template-columns: 1fr; }
}

/* ═══════════ WP DEFAULTS OVERRIDE ═══════════ */
.wp-block-post-content { background: var(--black); color: var(--offwhite); }
.entry-content p { font-size: 1rem; line-height: 1.75; color: var(--ash); font-weight: 300; margin-bottom: 20px; }
.entry-content h2 { font-family: var(--font-display); color: var(--white); text-transform: uppercase; margin-bottom: 16px; }
.entry-content h3 { font-family: var(--font-display); color: var(--white); margin-bottom: 12px; }

/* ═══════════════════════════════════════════
   SEO CONTENT PAGES
   ═══════════════════════════════════════════ */

/* Hero */
.seo-hero {
  position: relative;
  padding: 100px 0 60px;
  background: var(--dark);
  overflow: hidden;
  border-bottom: 3px solid var(--accent);
}
.seo-hero-bg {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover; background-position: center;
  opacity: 0.1;
}
.seo-hero-inner { position: relative; z-index: 1; }

/* Breadcrumb */
.seo-breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  font-family: var(--font-display); margin-bottom: 20px;
}
.seo-breadcrumb a { color: var(--ash); transition: color 0.2s; }
.seo-breadcrumb a:hover { color: var(--accent); }
.seo-breadcrumb span { color: var(--steel); }
.seo-breadcrumb .current { color: var(--white); font-weight: 600; }

/* H1 */
.seo-h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--white);
  max-width: 800px;
}

/* Content wrapper — readable width */
.seo-content-wrap {
  max-width: 820px;
}

/* Intro */
.seo-intro {
  padding: 64px 0 48px;
  background: var(--black);
}
.seo-intro p {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--ash);
  font-weight: 300;
  margin-bottom: 20px;
}
.seo-intro p:last-child { margin-bottom: 0; }

/* Content Sections */
.seo-section {
  padding: 56px 0;
  background: var(--black);
}
.seo-section-alt {
  background: var(--dark);
}

/* H2 */
.seo-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

/* Body content */
.seo-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ash);
  font-weight: 300;
  margin-bottom: 20px;
}
.seo-body p:last-child { margin-bottom: 0; }

.seo-body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  margin: 36px 0 12px;
}
.seo-body h3:first-child { margin-top: 0; }

/* FAQ Section */
.seo-faq-section {
  background: var(--dark);
  padding: 64px 0 80px;
}
.seo-faq-list {
  margin-top: 8px;
}
.seo-faq-item {
  border-bottom: 1px solid var(--gunmetal);
}
.seo-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  cursor: pointer;
  list-style: none;
  letter-spacing: 0.02em;
}
.seo-faq-q::-webkit-details-marker { display: none; }
.seo-faq-q::marker { content: ''; }
.seo-faq-chevron {
  width: 20px; height: 20px; flex-shrink: 0;
  color: var(--accent);
  transition: transform 0.3s ease;
}
details[open] .seo-faq-chevron { transform: rotate(180deg); }
.seo-faq-a {
  padding: 0 0 24px;
}
.seo-faq-a p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--ash);
  font-weight: 300;
  margin: 0;
}

/* Locations CTA */
.seo-locations-cta {
  padding: 80px 0;
  background: var(--charcoal);
}
.seo-locations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.seo-location-card {
  background: var(--black);
  border: 1px solid var(--gunmetal);
  padding: 40px;
  transition: border-color 0.3s;
}
.seo-location-card:hover { border-color: var(--accent); }
.seo-location-label {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 12px;
}
.seo-location-address {
  font-size: 0.95rem;
  color: var(--ash);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 12px;
}
.seo-location-phone {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: 8px;
}
.seo-location-phone:hover { color: var(--accent-bright); }
.seo-location-hours {
  font-size: 0.82rem;
  color: var(--steel);
  letter-spacing: 0.04em;
}

/* SEO Responsive */
@media (max-width: 768px) {
  .seo-hero { padding: 80px 0 40px; }
  .seo-h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); }
  .seo-intro { padding: 48px 0 32px; }
  .seo-section { padding: 40px 0; }
  .seo-locations-grid { grid-template-columns: 1fr; gap: 20px; }
  .seo-location-card { padding: 28px; }
  .seo-faq-q { font-size: 0.92rem; padding: 16px 0; }
  .seo-location-nap-grid { grid-template-columns: 1fr; }
  .seo-location-map iframe { height: 300px; }
}

/* ─── Location Page: NAP & Map ─── */
.seo-location-nap-section { padding: 64px 0 80px; }
.seo-location-nap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.seo-nap-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}
.seo-nap-address,
.seo-nap-phone,
.seo-nap-hours {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ash);
  font-weight: 300;
}
.seo-nap-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}
.seo-nap-phone a {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
.seo-nap-phone a:hover { color: var(--accent-bright); }
.seo-nap-hours div {
  font-size: 0.92rem;
  color: var(--ash);
  line-height: 1.7;
}
.seo-location-map {
  overflow: hidden;
  border: 1px solid var(--gunmetal);
}
.seo-location-map iframe {
  display: block;
  width: 100%;
  height: 400px;
}
.seo-serving-area {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--gunmetal);
}
.seo-serving-heading {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 12px;
}
.seo-serving-area p {
  font-size: 0.95rem;
  color: var(--ash);
  font-weight: 300;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   CROSS-LINKING: Deep Dive Banner + Sidebar CTA
   ═══════════════════════════════════════════ */

/* ─── Product Detail: Deep Dive Banner ─── */
.product-deepdive-banner {
  padding: 0;
  background: var(--dark);
  border-top: 1px solid var(--gunmetal);
  border-bottom: 1px solid var(--gunmetal);
}
.deepdive-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 28px 0;
}
.deepdive-content {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
}
.deepdive-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(43,168,158,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.deepdive-icon svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}
.deepdive-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 4px;
}
.deepdive-text {
  font-size: 0.92rem;
  color: var(--ash);
  font-weight: 300;
  line-height: 1.6;
  margin: 0;
}
.deepdive-btn {
  white-space: nowrap;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .deepdive-inner { flex-direction: column; align-items: flex-start; padding: 24px 0; }
  .deepdive-btn { width: 100%; justify-content: center; }
}

/* ─── SEO Pages: Intro Layout with Sidebar CTA ─── */
.seo-intro-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 960px) {
  .seo-intro-layout { grid-template-columns: 1fr; gap: 32px; }
}

/* Sidebar CTA Card */
.seo-sidebar-cta {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}
.seo-sidebar-card {
  background: var(--dark);
  border: 1px solid var(--gunmetal);
  padding: 28px;
  border-top: 3px solid var(--accent);
}
.seo-sidebar-nudge {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 20px;
}
.seo-sidebar-btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 20px;
}
.seo-sidebar-phones {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--gunmetal);
}
.seo-sidebar-phone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  padding: 8px 0;
  transition: color 0.2s;
}
.seo-sidebar-phone:hover .seo-sidebar-phone-num { color: var(--accent); }
.seo-sidebar-phone-loc {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--steel);
}
.seo-sidebar-phone-num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ash);
  transition: color 0.2s;
}


/* ─── Inline SEO Content on Product Detail Pages ─── */
.seo-inline-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ash);
  font-weight: 300;
  margin-bottom: 20px;
}
.seo-inline-body p:last-child { margin-bottom: 0; }
.seo-inline-body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  margin: 36px 0 12px;
}
.seo-inline-body h3:first-child { margin-top: 0; }

/* ─── Brand Marquee ─── */
.brand-marquee { overflow: hidden; }
.brand-marquee-track {
  display: flex;
  animation: marquee-scroll 60s linear infinite;
  width: max-content;
}
.brand-marquee-track:hover { animation-play-state: paused; }
@keyframes marquee-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ─── Nav Search ─── */
.nav-search-toggle:hover svg { color: var(--accent) !important; }

/* ─── Mobile Responsive ─── */
@media (max-width: 768px) {
  .footer-locations { grid-template-columns: 1fr !important; gap: 20px !important; }

  /* Grid overrides — force single column on mobile */
  .grid-2col, .grid-2col-64, .grid-2col-60, .grid-2col-center,
  .grid-1-2 {
    display: block !important;
  }
  .grid-2col > *, .grid-2col-64 > *, .grid-2col-60 > *,
  .grid-2col-center > *, .grid-1-2 > * {
    margin-bottom: 32px;
  }
  .grid-2x2 {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Products overview — stats + intro grid */
  .page-products-overview .container > div[style*="grid-template-columns: 1fr 1fr"] {
    display: block !important;
  }

  /* Force any inline 2-col grids to stack */
  [style*="grid-template-columns: 1fr 1fr;"],
  [style*="grid-template-columns:1fr 1fr;"] {
    grid-template-columns: 1fr !important;
  }

  /* Products overview grid — 1 column on mobile */
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns: repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* Product detail sub-product grid */
  [style*="grid-template-columns:repeat(auto-fill,minmax(300px,1fr))"] {
    grid-template-columns: 1fr !important;
  }

  /* Products & Services page product sections */
  .product-section-grid {
    display: block !important;
    direction: ltr !important;
  }
  .product-section-grid > * {
    direction: ltr !important;
    margin-bottom: 24px;
  }
  .product-section-image {
    aspect-ratio: 16/9 !important;
  }

  /* About page location cards */
  [style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* Homepage hero — show image as faded background on mobile */
  .hp-hero-image-right {
    display: none;
  }

  /* Section padding reduction */
  section { padding-left: 16px !important; padding-right: 16px !important; }
  .container { padding-left: 16px; padding-right: 16px; }

  /* Section titles */
  .section-title { font-size: 1.8rem !important; }

  /* HP products grid — 1 column */
  .hp-products-grid {
    grid-template-columns: 1fr !important;
  }

  /* Quick nav scroll */
  .quick-nav-inner { -webkit-overflow-scrolling: touch; }

  /* Contact page form grid */
  .form-row {
    grid-template-columns: 1fr !important;
    display: block !important;
  }
  .form-row > .form-group { margin-bottom: 16px; }

  /* RV brand grid */
  .brand-models-grid {
    grid-template-columns: 1fr !important;
  }

  /* Locations grid on homepage */
  .locations-grid {
    grid-template-columns: 1fr !important;
  }

  /* Why CTA pillars */
  .why-cta-pillars {
    grid-template-columns: 1fr !important;
  }

  /* Gallery grid */
  .gallery-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .gallery-grid .gallery-item:first-child {
    grid-column: span 2;
  }
}

/* ─── Mobile Hero Image ─── */
@media (max-width: 768px) {
  .hero-bg-image {
    width: 100% !important;
    right: 0 !important;
    left: 0 !important;
    top: auto !important;
    bottom: 0 !important;
    height: 55% !important;
    opacity: 1 !important;
    background-position: center center !important;
    background-size: cover !important;
  }
  .hero-overlay {
    background: linear-gradient(180deg, #ffffff 35%, rgba(255,255,255,0.85) 50%, rgba(255,255,255,0.15) 80%, transparent 100%) !important;
  }
}

/* ─── Small screen tweaks ─── */
@media (max-width: 480px) {
  .section-title { font-size: 1.5rem !important; }
  .pillar { padding: 20px !important; }
  .nav-logo-img { max-height: 40px; }
}
