/* ============================================
   CSS CUSTOM PROPERTIES & ROOT STYLES
   ============================================ */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --accent: #f59e0b;
    
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --border: #e2e8f0;
    --placeholder-bg: #e0e7ff;
    
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
img { display: block; border: none; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background-image: url(Images/DarkTire.jpeg); color: var(--text-dark); line-height: 1.6; overflow-x: clip; }

.top-banner { width: 100%; padding: 0; background: var(--bg-white); }
.banner-img { 
    width: 100%; 
    min-height: 15vw; 
    background-image: url(Images/banner-notext.png); 
    background-size: cover; 
    background-position: center;
    display: flex; 
    align-items: center;
    justify-content: center; 
    border: none; 
    outline: none; 
    position: relative;
}

.banner-img::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(100%, 960px);
    max-width: min(960px, 80vw);
    height: 100%;
    background-image: url(Images/banner-onlytext.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.header { position: sticky; top: 0; z-index: 100; background: linear-gradient(135deg, rgba(100, 100, 100, 0.9) 0%, rgba(150, 150, 150, 0.8) 25%, rgba(120, 120, 120, 0.85) 50%, rgba(140, 140, 140, 0.8) 75%, rgba(110, 110, 110, 0.9) 100%); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-sm); background-attachment: fixed; display: flex; flex-direction: column; width: 100%; }
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(200, 200, 200, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(180, 180, 180, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(220, 220, 220, 0.35) 0%, transparent 50%),
        radial-gradient(circle at 60% 60%, rgba(160, 160, 160, 0.3) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}
.header-container { 
    max-width: 100%;
    margin: 0; 
    padding: 0.75rem var(--space-lg); 
    display: flex; 
    align-items: center; 
    height: auto;
    position: relative; 
    z-index: 1;
    width: 100%;
}

/* Logo: far left */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-image { 
    width: 60px; 
    height: 60px; 
    object-fit: contain; 
    display: block;
    flex-shrink: 0;
}

/* Company name: takes all remaining space, centered */
.company-name { 
    flex: 1;
    text-align: center;
    font-weight: 900; 
    font-size: 1.75rem; 
    background: linear-gradient(135deg, red 0%, maroon 50%, red 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.08em; 
    text-shadow: 3px 3px 0px rgba(99, 102, 241, 0.3);
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
    font-style: italic;
    animation: wordArtPulse 3s ease-in-out infinite;
    line-height: 1.2;
}

@keyframes wordArtPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.nav-menu { 
    position: static; 
    display: flex; 
    align-items: center;
    flex-shrink: 0;
}
.dropdown-btn { display: none; }
.dropdown-content { 
    position: fixed; 
    top: var(--dropdown-top, 100%);
    left: 50%;
    transform: translateX(-50%);
    width: 1200px;
    max-width: 100%;
    background: rgba(0, 0, 0, 0.8);
    border: none; 
    border-radius: 0; 
    min-width: unset; 
    box-shadow: none; 
    max-height: 0; 
    overflow: hidden;
    transition: max-height 250ms ease, opacity 250ms ease; 
    opacity: 0; 
    margin-top: 0;
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    pointer-events: none;
}

.dropdown-content.active { 
    max-height: 500px; 
    opacity: 1;
    pointer-events: auto;
    overflow-y: auto;
}

.dropdown-content a { 
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 2rem; 
    color: #ffffff; 
    text-decoration: none; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
    transition: all 150ms ease;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, rgba(80, 80, 80, 0.8) 0%, rgba(120, 120, 120, 0.75) 50%, rgba(80, 80, 80, 0.8) 100%);
    width: 100%;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    pointer-events: auto;
    letter-spacing: 0.5px;
    min-height: 100px;
}

.dropdown-content a:hover {
    background: linear-gradient(135deg, rgba(100, 100, 100, 0.95) 0%, rgba(140, 140, 140, 0.9) 50%, rgba(100, 100, 100, 0.95) 100%);
    color: #ffff00;
}

.dropdown-content a span {
    position: relative;
    z-index: 1;
}

.hamburger { 
    display: flex; 
    flex-direction: column; 
    gap: 6px; 
    background: none; 
    border: none; 
    cursor: pointer; 
    padding: 0.5rem; 
    flex-shrink: 0;
    width: 40px; 
    height: 40px; 
    position: relative;
    align-items: center;
    justify-content: center;
}

.hamburger span { 
    width: 24px; 
    height: 2px; 
    background: var(--text-dark); 
    display: block; 
    transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -12px;
    margin-top: -1px;
}

.hamburger span:nth-child(1) { top: 8px; }
.hamburger span:nth-child(2) { top: 50%; margin-top: -1px; }
.hamburger span:nth-child(3) { top: auto; bottom: 8px; }

/* Animate to tire (circle) when menu is open */
.hamburger.active span {
    background: #000;
    width: 28px;
    height: 2px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 6px #000, inset 0 0 0 8px #000;
}

.hamburger.active span:nth-child(1) { 
    top: 50%;
    transform: rotate(0deg);
    width: 28px;
    height: 28px;
    margin-top: -14px;
    background: transparent;
}

.hamburger.active span:nth-child(2) { 
    opacity: 0;
}

.hamburger.active span:nth-child(3) { 
    top: 50%;
    bottom: auto;
    transform: rotate(0deg);
    width: 28px;
    height: 28px;
    margin-top: -14px;
    background: transparent;
}

.main-content { 
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.container {
    width: 100%;
    margin: 0 auto;
}

/* ============================================
   HERO SECTION — image left, text right, flush side by side
   ============================================ */
.hero-section {
    background-color: rgba(0,0,0,.5);
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    padding: 4% 0;
    height: 100%;
}

/* Image takes up the left 60% */
.hero-left {
    flex: 0 0 60%;
    overflow: hidden;
}

.hero-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Fallback for .img-placeholder if still used */
.hero-left .img-placeholder {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border-radius: 0;
    border: none;
    
}

/* Text box fills the right 40%, same height as the image */
.hero-right {
    flex: 1;
    display: flex;
    flex-direction: column;

}

.hero-right .text-content {
    flex: 1;
    border-radius: 0;
    border: none;
    border-left: none;
    min-height: unset;
    padding: var(--space-xl) var(--space-lg);
    background-color: rgba(255, 255, 255, 0.5);
    color: black;
    font-weight: 600;
}

/* ============================================
   Bottom SECTION — text left, img right, flush side by side
   ============================================ */
.bottom-content-section {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    padding: 4% 0;
    margin: 0;
    gap: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Text fills the left 40% */
.bottom-content-left {
    flex: 0 0 40%;
    display: flex;
    flex-direction: column;
}

.bottom-content-left .text-content {
    flex: 1;
    border-radius: 0;
    border: none;
    box-shadow: none;
    margin: 0;
    min-height: unset;
    padding: var(--space-xl) var(--space-lg);
    background-color: rgba(255, 255, 255, 0.5);
    color: black;
    font-weight: 600;
}

/* Image takes up the right 60% */
.bottom-content-right {
    flex: 0 0 60%;
    overflow: hidden;
}

.bottom-content-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================
   TEXT BOXES
   ============================================ */
.text-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    font-size: 0.95rem;
    color: var(--bg-white);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    min-height: 200px;
    box-shadow: var(--shadow-lg);
}

.text-content.footer-text { min-height: 150px; }

/* Read More / Find Out More — large blue with sliding arrow */
.read-more-btn,
.find-out-more {
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
    font-size: 1.4rem;
    margin-top: var(--space-md);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: color 150ms ease, gap 200ms ease;
}

.read-more-btn::after,
.find-out-more::after {
    content: '→';
    display: inline-block;
}

.read-more-btn:hover,
.find-out-more:hover {
    color: var(--primary-dark);
    gap: 14px;
}

/* Background image and text section */
.b-image-section {
    background-image: url('Images/coolTruck.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 40vw;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
}

/* Full-width image section */
.full-image-section {
    max-width: 100%;
    padding: 0;
    margin-bottom: 0;
    overflow: hidden;
    width: 100%;
}

.full-image-section .img-placeholder {
    width: 100%;
    height: 400px;
    border-radius: 0;
    margin: 0;
}

/* Full-width text section spanning entire screen */
.full-width-text-section {
    width: 100%;
    margin-top: 0;
    padding: var(--space-xl) var(--space-lg);
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 10vw;
}

.full-width-text-section .text-content {
    background: transparent;
    border: none;
    color: var(--bg-white);
    max-width: 1200px;
    margin: 0 auto;
    min-height: auto;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

.full-width-text-section .text-content,
.full-width-text-section .read-more-btn {
    color: var(--bg-white);
}

.full-width-text-section .read-more-btn:hover {
    color: var(--accent);
}

.content-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); padding: var(--space-xl) var(--space-lg); }
.content-left { display: flex; flex-direction: column; }
.content-right { display: flex; align-items: stretch; }
.content-right .img-placeholder { width: 100%; }

.bottom-content-section .img-placeholder { width: 100%; align-self: stretch; }
.text-area { display: flex; flex-direction: column; }

/* Generic image placeholder (non-hero) */
.img-placeholder { background: var(--placeholder-bg); border: 2px solid var(--text-dark); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--text-dark); font-size: 1.25rem; min-height: 250px; width: 100%; }

.footer { 
    background-image: url("Images/krzysztof-kowalik-ciyfSzBmaKU-unsplash.jpg"); 
    background-color: rgba(0, 0, 0, 0.67); 
    background-blend-mode: multiply; 
    background-size: cover;
    background-attachment: fixed;
    border-top: 2px solid var(--border); 
    padding: var(--space-xl) var(--space-lg); 
    margin-top: var(--space-xl);
    width: 100%;
}
.footer-content { 
    max-width: 1200px; 
    margin: 0 auto; 
    display: flex; 
    flex-direction: column; 
    gap: var(--space-md); 
}

/* Top shelf — map left, text right, side by side */
.footer-top-shelf { 
    display: flex; 
    flex-direction: row; 
    gap: var(--space-lg); 
    align-items: stretch; 
    width: 100%;
}

.footer-left { 
    flex: 0 0 50%; 
    display: flex; 
    min-height: 300px;
}
.footer-left iframe { 
    width: 100%; 
    height: 100%; 
    min-height: 300px; 
    display: block; 
    border: none; 
}

.footer-center { 
    flex: 1; 
    display: flex;
}
.footer-center .text-content { 
    width: 100%; 
    min-height: unset; 
}

/* Bottom shelf — info box full width */
.footer-right { 
    width: 100%; 
    display: flex;
}
.info-box { 
    width: 100%; 
    background: rgba(255, 255, 255, 0.1); 
    border: 1px solid rgba(255, 255, 255, 0.2); 
    border-radius: var(--radius-lg); 
    padding: var(--space-lg); 
    font-weight: 600; 
    color: var(--bg-white); 
    min-height: unset; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

@media (max-width: 768px) {
    .header-container { padding: var(--space-md); height: auto; }
    .company-name { font-size: 5vw; letter-spacing: 0.02em; }
    .nav-menu { position: static; }
    .dropdown-content {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 0;
        border: none;
        margin-top: 0;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.85);
        max-height: 0;
        overflow: hidden;
        transition: max-height 250ms ease, opacity 250ms ease;
        opacity: 0;
        z-index: 99;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        pointer-events: none;
    }
    
    .dropdown-content.active {
        max-height: calc(100vh - 80px);
        opacity: 1;
        pointer-events: auto;
        overflow-y: auto;
    }

    .dropdown-content a {
        padding: 1.2rem 1rem;
        font-size: 1.2rem;
        min-height: 80px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .dropdown-content::before,
    .dropdown-content::after {
        display: none;
    }
    
    /* Stack hero vertically on mobile */
    .hero-section {
        flex-direction: column;
    }

    .hero-left {
        flex: none;
        width: 100%;
    }

    .hero-right {
        flex: none;
        width: 100%;
    }

    .hero-right .text-content {
        border-left: 2px solid var(--border);
        border-top: none;
        padding: var(--space-lg) var(--space-md);
        
    }

    .content-row { grid-template-columns: 1fr; gap: var(--space-md); padding: var(--space-lg) var(--space-md); }

    /* Stack bottom section: image on top, text below on mobile */
    .bottom-content-section {
        flex-direction: column;
        padding: 4% 0;
        margin: 0;
        gap: 0;
    }

    .bottom-content-right {
        flex: none;
        width: 100%;
        height: 60vw;
        min-height: unset;
        order: 1;
        margin: 0;
        padding: 0;
    }

    .bottom-content-right img {
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
    }

    .bottom-content-left {
        flex: none;
        width: 100%;
        order: 2;
        margin: 0;
        padding: 0;
    }

    .bottom-content-left .text-content {
        border: none;
        border-radius: 0;
        box-shadow: none;
        margin: 0;
        padding: var(--space-lg) var(--space-md);
    }
    .footer-content { gap: var(--space-sm); }
    .footer-top-shelf { flex-direction: column; }
    .footer-left { flex: none; width: 100%; min-height: 250px; }
    .footer-left iframe { min-height: 250px; }
    .footer-center { flex: none; width: 100%; }
    .full-image-section { padding: 0; margin-bottom: 0; }
    .full-image-section .img-placeholder { height: 250px; width: 100%; }
    .full-width-text-section { padding: var(--space-lg) var(--space-md); margin-top: 0; min-height: 250px; height: auto; }
    .hero-left, .content-left, .content-right, .footer-left, .footer-center, .footer-right { display: flex; flex-direction: column; }
    .img-placeholder { min-height: 200px; }
    .text-content { min-height: 150px; }
    .info-box { min-height: 120px; }
}

@media (max-width: 480px) {
    .header-container { padding: var(--space-sm) var(--space-md); }
    .logo { font-size: 1rem; padding: var(--space-xs) var(--space-sm); min-width: 60px; }
    .full-image-section .img-placeholder { height: 200px; }
    .full-width-text-section { padding: var(--space-lg) var(--space-md); min-height: 200px; }
    .footer { padding: var(--space-lg) var(--space-md); }
    .img-placeholder { min-height: 150px; font-size: 1rem; }
    .text-content { padding: var(--space-md); font-size: 0.85rem; min-height: 120px; }
    .info-box { padding: var(--space-md); min-height: 100px; }
    .read-more-btn, .find-out-more { font-size: 1.1rem; }
}

@media (min-width: 961px) {
    .header-container {
        max-width: 1200px;
        margin: 0 auto;
    }

    .main-content {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 var(--space-lg);
    }

    .hero-section {
        max-width: 1200px;
        margin: 0 auto;
    }

    .bottom-content-section {
        max-width: 1200px;
        margin: 0 auto;
    }

    .b-image-section {
        max-width: 1200px;
        margin: 0 auto;
    }

    .full-width-text-section {
        max-width: 1200px;
        margin: 0 auto;
    }
}