/*
Theme Name: Absolute Fire
Theme URI: https://absolutefire.com
Author: Stash Designs
Description: Custom theme for Absolute Fire Protection
Version: 1.0.0
License: Private
Text Domain: absolute-fire
*/

/* =========================================================
   DESIGN TOKENS
   ========================================================= */
:root {
    --red:         #cc0000;
    --red-dark:    #a30000;
    --dark:        #1c1c1c;
    --dark-alt:    #2a2a2a;
    --white:       #ffffff;
    --light:       #f5f5f5;
    --mid:         #e0e0e0;
    --text:        #2d2d2d;
    --text-muted:  #666666;
    --font-head:   'Oswald', sans-serif;
    --font-body:   'Open Sans', sans-serif;
    --container:   1200px;
    --nav-h:       72px;
    --radius:      4px;
    --transition:  0.2s ease;
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red-dark); }

ul { list-style: none; }

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 16px;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* =========================================================
   LAYOUT
   ========================================================= */
.container {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 48px;
}

.section {
    padding-block: 72px;
}

.section--light { background: var(--light); }
.section--dark  { background: var(--dark); color: var(--white); }
.section--red   { background: var(--red);  color: var(--white); }

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

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

.section-header .section-divider {
    width: 60px;
    height: 4px;
    background: var(--red);
    margin-inline: auto;
    margin-top: 12px;
}

.section-header p {
    max-width: 640px;
    margin-inline: auto;
    color: var(--text-muted);
    margin-top: 16px;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 12px 28px;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}
.btn-primary:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    color: var(--white);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}
.btn-outline-white:hover {
    background: var(--white);
    color: var(--red);
}

.btn-dark {
    background: var(--dark);
    color: var(--white);
    border-color: var(--dark);
}
.btn-dark:hover {
    background: var(--dark-alt);
    color: var(--white);
}

/* =========================================================
   HEADER & NAVIGATION
   ========================================================= */
#site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--dark);
    height: var(--nav-h);
    display: flex;
    align-items: center;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.site-logo img {
    height: 52px;
    width: auto;
}

.site-logo a {
    display: flex;
    align-items: center;
}

#primary-nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
}

#primary-nav > ul > li {
    position: relative;
}

#primary-nav > ul > li > a {
    display: block;
    color: var(--white);
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 12px;
    border-radius: var(--radius);
    transition: color var(--transition), background var(--transition);
}

#primary-nav > ul > li > a:hover,
#primary-nav > ul > li.current-menu-item > a,
#primary-nav > ul > li.current-menu-ancestor > a {
    color: var(--red);
}

/* Dropdown */
#primary-nav .sub-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: var(--dark-alt);
    border-top: 3px solid var(--red);
    border-radius: 0 0 var(--radius) var(--radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition);
    z-index: 100;
}

#primary-nav li:hover > .sub-menu,
#primary-nav li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#primary-nav .sub-menu li a {
    display: block;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 10px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background var(--transition), color var(--transition);
}

#primary-nav .sub-menu li:last-child a {
    border-bottom: none;
}

#primary-nav .sub-menu li a:hover {
    background: var(--red);
    color: var(--white);
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--white);
    transition: all var(--transition);
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   PAGE HERO
   ========================================================= */
.page-hero {
    position: relative;
    background: var(--dark);
    background-size: cover;
    background-position: center;
    padding-block: 80px;
    display: flex;
    align-items: center;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.82) 40%, rgba(0,0,0,0.5) 100%);
}

.page-hero .container { position: relative; }

.page-hero h1 {
    color: var(--white);
    margin-bottom: 12px;
}

.page-hero p {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    max-width: 560px;
}

/* =========================================================
   HOMEPAGE HERO SLIDER
   ========================================================= */
.hero-slider {
    position: relative;
    background: var(--dark);
    overflow: hidden;
    min-height: 480px;
    display: flex;
    align-items: center;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.6s ease;
    display: flex;
    align-items: center;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.75) 35%, rgba(0,0,0,0.3) 100%);
}

.hero-slide.is-active { opacity: 1; }

.hero-slide .container {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: center;
    width: 100%;
}

.hero-content h2 {
    color: var(--white);
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 16px;
}

.hero-content p {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    margin-bottom: 28px;
    max-width: 520px;
}

.hero-panel {
    background: rgba(204, 0, 0, 0.92);
    padding: 24px;
    border-radius: var(--radius);
    color: var(--white);
}

.hero-panel .panel-label {
    font-family: var(--font-head);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 8px;
}

.hero-panel h3 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.hero-panel p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.slider-controls {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 10;
}

.slider-arrow {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.5);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.slider-arrow:hover {
    background: var(--red);
    border-color: var(--red);
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: background var(--transition);
    border: none;
}

.slider-dot.is-active { background: var(--white); }

/* =========================================================
   BRAND LOGOS
   ========================================================= */
.brand-logos {
    padding-block: 40px;
    border-bottom: 1px solid var(--mid);
}

.brand-logos .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.brand-logo img {
    height: 48px;
    width: auto;
    transition: all var(--transition);
}

.brand-logo img:hover {
    filter: grayscale(100%);
    opacity: 0.7;
}

/* =========================================================
   REQUEST FOR SERVICE (CTA BAR)
   ========================================================= */
.cta-service {
    background: var(--light);
    padding-block: 40px;
    text-align: center;
}

.cta-service .cta-icon {
    width: 64px;
    height: 64px;
    background: var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-inline: auto;
    margin-bottom: 16px;
}

.cta-service .cta-icon svg,
.cta-service .cta-icon img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}

.cta-service h3 {
    margin-bottom: 8px;
}

.cta-service p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* =========================================================
   ICON FEATURE CARDS
   ========================================================= */
.feature-card {
    text-align: center;
    padding: 32px 20px;
}

.feature-icon {
    width: 72px;
    height: 72px;
    background: var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-inline: auto;
    margin-bottom: 20px;
}

.feature-icon svg,
.feature-icon img {
    width: 36px;
    height: 36px;
    filter: brightness(0) invert(1);
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* =========================================================
   TRUCK / CONTENT CARDS
   ========================================================= */
.truck-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform var(--transition), box-shadow var(--transition);
}

.truck-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.14);
}

.truck-card-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--dark);
}

.truck-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.truck-card:hover .truck-card-image img {
    transform: scale(1.04);
}

.truck-card-body {
    padding: 18px 20px;
}

.truck-card-body h3 {
    font-size: 1rem;
    margin-bottom: 6px;
    text-transform: none;
    letter-spacing: 0;
}

.truck-card-body .truck-model {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.truck-card-body .truck-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.truck-card-body .btn {
    margin-top: 14px;
    font-size: 0.82rem;
    padding: 8px 18px;
}

/* =========================================================
   ABOUT PAGE
   ========================================================= */
.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-intro-image img {
    border-radius: var(--radius);
}

.about-values {
    background: var(--red);
    padding-block: 72px;
    color: var(--white);
}

.about-values .section-header h2,
.about-values .feature-card h3 {
    color: var(--white);
}

.about-values .feature-card p {
    color: rgba(255,255,255,0.85);
}

.about-values .feature-icon {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.4);
}

.about-pride {
    background: var(--dark);
    padding-block: 48px;
    text-align: center;
    color: var(--white);
}

.about-pride h3 {
    color: var(--white);
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.about-pride p {
    color: var(--red);
    font-family: var(--font-head);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    gap: 48px;
}

.contact-info-block h3 {
    font-size: 1rem;
    color: var(--red);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--mid);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.contact-info-item svg {
    flex-shrink: 0;
    color: var(--red);
    margin-top: 2px;
}

.contact-form label {
    display: block;
    font-family: var(--font-head);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
    color: var(--text);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--mid);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--white);
    transition: border-color var(--transition);
    margin-bottom: 16px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--red);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.contact-map iframe {
    width: 100%;
    height: 280px;
    border: 0;
    border-radius: var(--radius);
}

/* =========================================================
   SERVICE PAGE
   ========================================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.emergency-cta {
    background: var(--dark);
    padding-block: 48px;
    text-align: center;
    color: var(--white);
}

.emergency-cta h3 {
    color: var(--white);
}

.emergency-cta .phone {
    font-family: var(--font-head);
    font-size: 2rem;
    color: var(--red);
    letter-spacing: 0.04em;
}

/* =========================================================
   PARTS / PRODUCTS PAGE
   ========================================================= */
.parts-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.parts-category {
    background: var(--white);
    border: 1px solid var(--mid);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.parts-category:hover {
    border-color: var(--red);
    box-shadow: 0 4px 16px rgba(204,0,0,0.1);
}

.parts-category .cat-icon {
    width: 48px;
    height: 48px;
    background: var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.parts-category .cat-icon svg {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.parts-category h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.parts-category ul {
    list-style: none;
    padding: 0;
}

.parts-category ul li {
    font-size: 0.88rem;
    color: var(--text-muted);
    padding: 3px 0;
    border-bottom: 1px solid var(--mid);
}

.parts-category ul li:last-child { border-bottom: none; }

/* =========================================================
   APPARATUS / E-ONE PAGE
   ========================================================= */
/* Apparatus hero — logo alongside title */
.apparatus-hero-inner {
    display: flex;
    align-items: center;
    gap: 32px;
}

.apparatus-hero-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.apparatus-hero-logo img {
    height: 56px;
    width: auto;
}

@media (max-width: 600px) {
    .apparatus-hero-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}

.apparatus-intro {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--mid);
}

.apparatus-intro .brand-logo-large img {
    height: 80px;
    width: auto;
}

.apparatus-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.apparatus-type-group {
    margin-bottom: 56px;
}

.apparatus-type-group:last-child {
    margin-bottom: 0;
}

.apparatus-type-heading {
    font-size: 1.3rem;
    color: var(--text);
    border-bottom: 3px solid var(--red);
    padding-bottom: 10px;
    padding-left: 16px;
    margin-bottom: 24px;
}

.apparatus-notice {
    background: var(--light);
    border-left: 4px solid var(--red);
    padding: 16px 20px;
    margin-top: 40px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* =========================================================
   WARRANTY PAGE
   ========================================================= */
.warranty-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.warranty-card {
    text-align: center;
    padding: 32px 16px;
    background: var(--white);
    border: 1px solid var(--mid);
    border-radius: var(--radius);
    border-top: 4px solid var(--red);
}

.warranty-card .warranty-icon {
    width: 60px;
    height: 60px;
    background: var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-inline: auto;
    margin-bottom: 16px;
}

.warranty-card .warranty-icon svg {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
}

.warranty-card h3 { font-size: 0.95rem; margin-bottom: 6px; }
.warranty-card .warranty-term {
    font-family: var(--font-head);
    font-size: 1.4rem;
    color: var(--red);
    margin-bottom: 8px;
}
.warranty-card p { font-size: 0.85rem; color: var(--text-muted); }

.warranty-additional {
    background: var(--light);
    border-radius: var(--radius);
    padding: 32px;
    margin-top: 48px;
}

/* =========================================================
   SALESMAN CONTACT PAGE
   ========================================================= */
.rep-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.rep-card {
    text-align: center;
    padding: 32px 20px;
    background: var(--white);
    border: 1px solid var(--mid);
    border-radius: var(--radius);
    transition: box-shadow var(--transition);
}

.rep-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.rep-card .rep-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-inline: auto;
    margin-bottom: 16px;
    background: var(--mid);
}

.rep-card .rep-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rep-card h3 { font-size: 1rem; margin-bottom: 4px; }
.rep-card .rep-territory {
    font-size: 0.88rem;
    color: var(--red);
    font-weight: 600;
    margin-bottom: 6px;
}
.rep-card .rep-counties {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.rep-general-cta {
    background: var(--light);
    padding: 32px;
    text-align: center;
    border-radius: var(--radius);
    margin-top: 48px;
}

/* =========================================================
   COOPERATIVE PURCHASING PAGE
   ========================================================= */
.coop-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.coop-card {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    align-items: center;
    gap: 40px;
    padding: 32px 40px;
    background: var(--white);
    border: 1px solid var(--mid);
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.coop-logo img {
    max-height: 60px;
    width: auto;
}

.coop-info h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.coop-info .contract-number {
    font-size: 0.9rem;
    color: var(--red);
    font-weight: 600;
    margin-bottom: 8px;
}

.coop-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* =========================================================
   FINANCING / PRE-PAYMENTS PAGE
   ========================================================= */
.financing-partners {
    display: flex;
    gap: 48px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--mid);
}

.financing-partners img {
    height: 60px;
    width: auto;
}

.financing-benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 64px;
}

.financing-benefit {
    padding: 28px 20px;
    background: var(--white);
    border: 1px solid var(--mid);
    border-radius: var(--radius);
    border-top: 4px solid var(--red);
}

.financing-benefit h3 {
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.financing-benefit p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.financing-process h2 {
    text-align: center;
    margin-bottom: 40px;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 36px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--mid);
    z-index: 0;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 72px;
    height: 72px;
    background: var(--red);
    color: var(--white);
    font-family: var(--font-head);
    font-size: 1.4rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-inline: auto;
    margin-bottom: 14px;
}

.process-step h4 {
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.process-step p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* =========================================================
   FOOTER
   ========================================================= */
#site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.8);
    padding-top: 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.footer-col p,
.footer-col a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.8;
}

.footer-col a:hover { color: var(--red); }

.footer-col .footer-icon-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 6px;
}

.footer-col svg {
    color: var(--red);
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-block: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
    margin: 0;
}

.footer-legal-links {
    display: flex;
    gap: 20px;
}

.footer-legal-links a {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
}

.footer-legal-links a:hover { color: var(--white); }

/* =========================================================
   SOCIAL / NEWS CARDS
   ========================================================= */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    border: 1px solid var(--mid);
    border-radius: var(--radius);
    overflow: hidden;
}

.news-card-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--dark);
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-body {
    padding: 18px;
}

.news-card-body h4 {
    font-size: 0.95rem;
    margin-bottom: 6px;
    text-transform: none;
    letter-spacing: 0;
}

.news-card-body p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
    .apparatus-grid    { grid-template-columns: repeat(3, 1fr); }
    .warranty-grid     { grid-template-columns: repeat(3, 1fr); }
    .process-steps     { grid-template-columns: repeat(3, 1fr); }
    .process-steps::before { display: none; }
    .financing-benefits { grid-template-columns: repeat(2, 1fr); }
    .contact-grid      { grid-template-columns: 1fr; }
    .coop-card         { grid-template-columns: 140px 1fr; }
    .coop-card .btn    { grid-column: span 2; }
    .footer-grid       { grid-template-columns: repeat(2, 1fr); }
    .rep-grid          { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root { --nav-h: 60px; }

    .nav-toggle { display: flex; }

    #primary-nav {
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        background: var(--dark-alt);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    #primary-nav.is-open { max-height: 100vh; overflow-y: auto; }

    #primary-nav ul { flex-direction: column; gap: 0; padding: 16px 0; }

    #primary-nav > ul > li > a { padding: 12px 24px; }

    #primary-nav .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        border-top: none;
        border-left: 3px solid var(--red);
        margin-left: 24px;
        display: none;
    }

    #primary-nav li.is-open > .sub-menu { display: block; }

    .hero-slide .container { grid-template-columns: 1fr; }
    .hero-panel { display: none; }

    .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
    .apparatus-grid    { grid-template-columns: repeat(2, 1fr); }
    .warranty-grid     { grid-template-columns: repeat(2, 1fr); }
    .parts-category-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid     { grid-template-columns: 1fr; }
    .about-intro       { grid-template-columns: 1fr; }
    .coop-card         { grid-template-columns: 1fr; gap: 16px; padding: 24px; }
    .footer-grid       { grid-template-columns: 1fr; }
    .rep-grid          { grid-template-columns: 1fr; }
    .footer-bottom     { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .apparatus-grid    { grid-template-columns: 1fr; }
    .warranty-grid     { grid-template-columns: 1fr; }
    .parts-category-grid { grid-template-columns: 1fr; }
    .process-steps     { grid-template-columns: 1fr; }
    .financing-benefits { grid-template-columns: 1fr; }
    .grid-2            { grid-template-columns: 1fr; }
}
