:root {
    --primary-blue: #00205b;
    /* Corporate Navy Blue */
    --secondary-red: #d6001c;
    /* Corporate Red */

    /* Mapping existing vars to new corporate colors */
    --primary-color: var(--primary-blue);
    --secondary-color: var(--secondary-red);

    --text-color: #1f2937;
    --light-text: #6b7280;
    --background-color: #ffffff;
    --footer-bg: #111827;
    --footer-text: #d1d5db;
    --nav-height: 100px;
    /* Increased height for larger logo */
}

/* Utilities */
.visually-hidden,
.seo-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Breadcrumb */
/* Breadcrumb */
.breadcrumb-section {
    width: 100%;
    background-color: var(--primary-blue);
    /* Corporate Navy Blue */
    padding: 1.5rem 0;
    /* Increased padding */
    margin-top: var(--nav-height);
    /* Below header */
    border-bottom: 4px solid var(--secondary-red);
    /* Thicker Corporate Accent */
    color: white;
    /* Enforce white text */
}

.breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5rem;
    /* Match header container padding */
    font-size: 1rem;
    color: white;
    display: flex;
    align-items: center;
}

.breadcrumb-container a {
    color: #e5e7eb;
    /* Light gray-white */
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 400;
}

.breadcrumb-container a:hover {
    color: white;
    text-decoration: underline;
}

.breadcrumb-active {
    color: white;
    font-weight: 700;
    /* Bolder */
    margin-left: 5px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-color);
    line-height: 1.5;
    background-color: var(--background-color);
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    height: var(--nav-height);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 100%;
    /* Full width to spread logo and menu */
    margin: 0;
    padding: 0 5rem;
    /* Wide padding to align logo far left */
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    /* Centers image if text is removed */
    align-items: center;
}

.header-logo-img {
    height: 80px;
    /* Desktop logo height */
    width: auto;
    object-fit: contain;
    vertical-align: middle;
    transition: height 0.3s ease;
}

.nav-links {
    display: flex;
    gap: 3rem;
    /* Increased gap for better spacing */
    list-style: none;
    align-items: center;
    /* Ensure vertical alignment */
}

/* Main Menu Items (Excluding Buttons) */
.nav-links>li>a:not(.nav-btn-cta):not(.nav-btn-shop):not(.cta-button) {
    text-decoration: none;
    color: var(--primary-blue);
    /* Corporate Dark Navy */
    font-weight: 700;
    /* Bold */
    font-size: 17px;
    /* Increased font size */
    transition: color 0.3s;
    position: relative;
    /* For pseudo-element absolute positioning */
    padding-bottom: 5px;
    /* Space for the underline */
}

/* Modern Underline Effect */
.nav-links>li>a:not(.nav-btn-cta):not(.nav-btn-shop):not(.cta-button)::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-red);
    /* Corporate Red */
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.nav-links>li>a:not(.nav-btn-cta):not(.nav-btn-shop):not(.cta-button):hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.nav-links>li>a:not(.nav-btn-cta):not(.nav-btn-shop):not(.cta-button):hover {
    color: var(--primary-blue);
    /* Keep color consistent or darken */
}

/* CTA Button (Forced Styles) */
/* CTA Button (Forced Styles) */
.cta-button,
.nav-btn-cta {
    background-color: var(--primary-blue) !important;
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center;
    transition: 0.3s all ease !important;
    text-decoration: none !important;
}

.cta-button:hover,
.nav-btn-cta:hover {
    background-color: #003366 !important;
    /* Slightly lighter navy or custom hover */
    transform: translateY(-2px);
    color: white !important;
}

/* Online Shop Button */
.nav-btn-shop {
    background-color: var(--secondary-red) !important;
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    /* Space between text and icon */
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.nav-btn-shop:hover {
    background-color: var(--primary-blue) !important;
    /* Navy Blue on hover */
    color: white !important;
    transform: scale(1.05) !important;
    /* Scale up effect */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Button Group Container */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    /* Requested 10-15px gap */
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .nav-actions {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .nav-btn-shop,
    .nav-btn-cta {
        width: 100%;
        justify-content: center;
    }
}

/* Hamburger Menu Button */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 2.4rem;
    /* Larger size ~38px */
    color: var(--secondary-red) !important;
    /* Corporate Red */
    padding: 15px;
    /* Larger clickable area */
}

/* Hero Section */
.hero {
    margin-top: var(--nav-height);
    height: 700px;
    /* Fixed height as requested */
    width: 100%;
    background: #e5e7eb;
    /* Fallback */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
    /* Remove padding to ensure full bleed */
    position: relative;
    overflow: hidden;
    margin-bottom: 60px;
    /* Standardized 60px Spacing */
}

/* Mobile Hero Height Override */
@media (max-width: 768px) {
    .hero {
        height: 100vh;
        /* Better for mobile perception, but requesting specific logic */
        min-height: 1000px;
        /* As requested: Mobil Ölçü Standardı: Yükseklik 1000px */
        margin-bottom: 30px;
        /* Mobile spacing */
    }
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ffffff !important;
    /* Enforced White */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-content p {
    color: #ffffff !important;
    /* Enforced White */
    font-size: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/* Brands Grid (Client Side) */
.brands-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 4rem;
    margin-top: 0;
    /* Reset, flow handles it */
}

/* 4 Columns default */
.brands-grid-page {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.brand-card-page {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.brand-card-page:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.15);
    /* More prominent hover */
    border-color: var(--primary-blue);
    /* Optional highlight */
}

/* Image Wrapper (Fixed Box) */
.brand-logo-wrapper {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.brand-logo-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.brand-card-page:hover .brand-logo-wrapper img {
    transform: scale(1.05);
}

.brand-card-page h3 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

/* Link/Button Text */
.brand-link-text {
    color: var(--primary-blue);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    margin-top: auto;
    /* Push to bottom */
    display: inline-block;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

.brand-link-text:hover {
    border-bottom-color: var(--secondary-red);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .brands-grid-page {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .brands-grid-page {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .brand-logo-wrapper {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .brands-grid-page {
        grid-template-columns: 1fr;
        /* Single column on very small screens */
    }
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 4rem 0 2rem !important;
    /* Restored vertical padding for layout health */
}

.footer-content {
    max-width: 100%;
    margin: 0;
    padding: 0 5rem;
    /* Wide padding (approx px-20) */
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    /* Exact 3 columns */
    gap: 2rem;
    align-items: start;
}

.footer-col {
    margin-bottom: 2rem;
}

/* Left Column: Logo & About */
.footer-col:first-child {
    justify-self: start;
    text-align: left;
    max-width: 350px;
}

#footer-brand {
    /* margin-top: 0 !important; REMOVED per user request to fix layout */
    margin-bottom: 28px;
    /* Increased spacing (25px-30px) */
    display: flex;
    justify-content: flex-start;
}

#footer-brand h3 {
    margin-bottom: 0;
    /* Remove default h3 margin to controlled wrapper margin */
}

#footer-brand img,
.footer-logo {
    display: block;
    margin-bottom: 0;
    /* Controlled by wrapper */
}

#footer-about {
    line-height: 1.6;
    text-align: left;
    margin-top: 0;
}

/* Center Column: Quick Menu */
.footer-col:nth-child(2) {
    justify-self: center;
    text-align: center;
}

/* Right Column: Contact */
.footer-col:last-child {
    justify-self: end;
    /* Block is pushed to right, but text flows left-to-right */
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Keep items aligned to start of the flex container */
}

/* Override social links alignment for the right column */
.footer-col:last-child .social-links {
    justify-content: flex-start;
}

.footer-col h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: white;
}

/* Contact Info Spacing */
.footer-contact-item {
    margin-bottom: 1rem;
    /* mb-4 equivalent */
    display: block;
}

.social-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

.social-icon {
    color: var(--secondary-red);
    /* Corporate Red */
    transition: transform 0.2s, opacity 0.2s;
    display: inline-flex;
}

.social-icon svg {
    width: 32px;
    /* text-2xl equivalent ~24px-32px, making it bold */
    height: 32px;
}

.social-icon:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: block;
        order: -1;
        font-size: 3rem !important;
        /* Increased by ~30% from 2.4rem */
        padding: 10px;
    }

    /* Header auto height for mobile to fit larger logo */
    header {
        height: auto !important;
        min-height: 80px;
    }

    .header-container {
        padding: 15px 10px;
        /* Padding reduced to 10px on sides as requested */
        display: flex !important;
        justify-content: flex-start !important;
        /* Start alignment to pull logo left */
        gap: 20px;
        /* Space between hamburger and logo */
        align-items: center !important;
        width: 100% !important;
        flex-direction: row !important;
    }

    .nav-links {
        position: fixed;
        /* Fixed to viewport */
        top: var(--nav-height);
        /* Below header */
        left: 0;
        right: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;

        display: flex;
        /* Always flex layout-wise, but hidden visually */

        /* Initial State: Hidden via Opacity/Pointer-Events as requested */
        opacity: 0;
        pointer-events: none;

        transform: translateY(-20px);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        z-index: 10000;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    /* Active State: Force Visible */
    .nav-links.active {
        display: flex !important;
        transform: translateY(0) !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: all !important;
        /* Re-enable clicks */
        z-index: 10000 !important;
    }

    /* Footer Mobile Adjustments */
    .footer-content {
        grid-template-columns: 1fr;
        /* Stack vertically */
        padding: 0 2rem;
        gap: 2rem;
        text-align: left !important;
    }

    /* Reset all columns to left align on mobile as requested */
    .footer-col:first-child,
    .footer-col:nth-child(2),
    .footer-col:last-child {
        justify-self: start !important;
        text-align: left !important;
        align-items: flex-start !important;
        max-width: 100%;
    }

    .footer-col:last-child .social-links {
        justify-content: flex-start !important;
    }

    /* Mobile Logo Adjustment */
    .header-logo-img {
        max-width: 300px;
        /* Allow width to scale */
        width: auto;
        height: 65px !important;
        /* User Request: 65px Height */
        object-fit: contain;
        padding-left: 0;
        /* Container has 15px padding, so this is total 15px from edge */
    }
}

/* Quote Form (Teklif Al) */
/* Quote Form (Teklif Al) - Refactored for Centering */
.quote-form-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    margin: 0;
    background: transparent;
    box-shadow: none;
    border: none;
}

#quote-form {
    width: 100%;
    max-width: 800px !important;
    margin: 0 auto !important;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 44px 10px rgba(0, 0, 0, 0.1);
    border-top: 5px solid var(--secondary-red);
}

.quote-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
    font-weight: 300;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 32, 91, 0.1);
}

.file-upload-wrapper {
    margin-bottom: 1.5rem;
}

.file-upload-area {
    border: 2px dashed #ccc;
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
    background: #f9fafb;
    position: relative;
}

.file-upload-area:hover {
    border-color: var(--primary-blue);
    background: #f0f7ff;
}

.file-upload-area p {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.file-upload-area small {
    color: var(--light-text);
}

.file-list {
    margin-top: 1rem;
    list-style: none;
    padding: 0;
}

.file-item {
    background: #f3f4f6;
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.progress-bar-container {
    width: 100%;
    background-color: #e5e7eb;
    border-radius: 4px;
    height: 10px;
    margin-top: 10px;
    overflow: hidden;
    display: none;
}

.progress-bar {
    height: 100%;
    background-color: var(--secondary-red);
    width: 0%;
    transition: width 0.3s ease;
}

.btn-submit {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 6px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    width: 100%;
    font-weight: 700;
    margin-top: 1rem;
}

.btn-submit:hover {
    background-color: #001540;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .quote-form-row {
        grid-template-columns: 1fr;
    }
}

/* Intro Section (Corporate Area) */
.intro-section {
    display: flex;
    width: 100%;
    /* min-height removed per request */
    height: auto;
    /* Allow growth if content is larger */
    /* Increased height */
    background-color: #f9fafb;
    /* Very light gray for breathing room */
    margin-top: 3rem;
    /* Breathing space from slider */
    margin-bottom: 0 !important;
    padding-bottom: 20px !important;
    /* User Request: 20px padding */
    overflow: hidden;
    display: flow-root;
    /* Fix margin collapse */
}

.intro-content p:last-child {
    margin-bottom: 0;
}

.intro-text-block {
    flex: 1;
    padding: 0 5rem;
    /* Align with container padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.intro-text-block h2,
.intro-text-block h3 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    /* Increased spacing */
    color: var(--primary-blue);
    /* Corporate Navy Blue */
    font-weight: 700;
}

.intro-text-block .intro-content {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #000000;
}

.intro-text-block .intro-content strong {
    color: var(--primary-blue);
    font-weight: 700;
}

.intro-image-block {
    flex: 1;
    height: 100%;
    position: relative;
}

.intro-image-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Centered for balance in taller view */
    display: block;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .intro-section {
        flex-direction: column;
        /* Stack vertically */
        height: auto;
        /* Release fixed height */
        margin-top: 1rem;
        margin-bottom: 2rem;
    }

    .intro-text-block {
        padding: 2rem;
        order: 1;
        /* Text on top */
        height: auto;
    }

    .intro-image-block {
        order: 2;
        /* Image on bottom */
        width: 100%;
        height: 300px;
        /* Fixed height for visual consistency on mobile */
    }
}

/* Service Banner */
/* Service Banner */
.service-banner {
    width: 100%;
    height: 500px !important;
    /* Forced height as requested */
    min-height: 500px !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    clear: both;
    /* Ensure separation from floats if any */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    color: white;
    margin-bottom: 60px;
    /* Standardized 60px Spacing */
    position: relative;
    overflow: hidden;
    /* Ensure content stays within 500px */
}

.service-banner h2 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-divider {
    width: 80px;
    height: 4px;
    background: white;
    margin: 1.5rem auto;
    border: none;
    border-radius: 2px;
}

.service-banner p {
    font-size: 1.3rem;
    font-weight: 400;
    font-style: italic;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Banner Icons Grid */
.banner-icons-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    /* Safe for mobile */
    margin-top: 1rem;
    width: 100%;
    max-width: 1200px;
}

.banner-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.icon-circle {
    width: 60px;
    height: 60px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.banner-icon-item:hover .icon-circle {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    border-color: white;
}

.banner-icon-item span {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
    .service-banner {
        /* Mobile height adjustments */
        height: auto !important;
        min-height: 400px !important; /* Slightly reduced min-height for mobile focus */
        padding: 50px 0;
        
        /* Mobile Image Focus */
        background-position: center center !important; 
        background-attachment: scroll !important; /* Disable parallax on mobile for performance/consistency */
    }

    /* Reduce Overlay Opacity on Mobile */
    .service-banner::before {
        background: rgba(0, 0, 0, 0.15) !important; /* Lighter overlay (15%) */
    }

    .service-banner h2 {
        font-size: 2rem;
        color: #ffffff !important;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9) !important; /* Strong shadow for readability */
    }

    .service-banner p {
        font-size: 1rem;
        padding: 0 1rem;
        color: #ffffff !important;
        text-shadow: 1px 1px 5px rgba(0, 0, 0, 1) !important;
    }

    /* Icons Text Shadow */
    .banner-icon-item span {
        color: #ffffff !important;
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 1) !important;
    }

    .banner-icons-grid {
        gap: 1.5rem;
    }

    .banner-icon-item {
        width: 130px; /* Slightly wider for better touch targets */
    }
}

/* Service Banner Restoration - User Request (Global) */
#service-banner,
.service-banner {
    /* Fallback image removed - JS will handle dynamic URL */
    /* background-image: url('/assets/banner/service-bg.png'); */
    height: 500px !important;
    min-height: 500px !important;

    /* Parallax Effect */
    background-attachment: fixed !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;

    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    position: relative;
    /* Needed for z-index context */
}

/* Ensure content is above background */
#service-banner>*,
.service-banner>* {
    z-index: 2;
    position: relative;
    /* User request: Text and Icon Contrast */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
}

/* Optional Overlay if needed for readability */
#service-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* User request: Overlay Opacity Increased */
    background: rgba(0, 0, 0, 0.5);
    /* 50% Black Overlay */
    z-index: 1;
}

/* Contact Page Cards - User Request Enhancement */
/* Contact Page Cards - User Request Enhancement */
/* Contact Page Cards - Simplified & Fixed */
.contact-info-grid {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 30px !important;
    max-width: 1200px;
    margin: 0 auto 50px;
    position: relative;
    z-index: 10;
}

.contact-card-item {
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    border: 1px solid #f0f0f0;
}

.contact-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.contact-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.contact-card-text {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
}

.contact-icon-wrapper {
    width: auto;
    height: auto;
    background: transparent;
    border-radius: 0;
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-blue);
    display: block;
}


.contact-card-text a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-card-text a:hover {
    color: var(--secondary-red);
}

@media (max-width: 1280px) {

    /* Break to 2 columns earlier for wider cards */
    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 850px) {

    /* Break to 1 column earlier (tablet portrait) */
    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .contact-card-item {
        padding: 3rem 2rem;
        /* Reduce padding slightly on mobile */
        min-height: auto;
    }
}

/* HIDE EMPTY CONTAINERS */
#page-content:empty,
main:empty,
.dynamic-page:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    /* DEBUG TEST */
}

/* Footer has no top margin to dock with Intro */
footer {
    position: relative;
    z-index: 10;
    margin-top: -10px !important;
}

main>div:empty,
section:empty {
    display: none !important;
}

/* Mobile Service Banner Fix - Overriding Global Rules */
@media (max-width: 768px) {

    #service-banner,
    .service-banner {
        height: auto !important;
        min-height: 350px !important;
        /* Reduced height to minimize zoom */
        padding: 60px 20px !important;
        background-position: center center !important;
        background-size: cover !important;
        /* With reduced height, zoom is minimized */
        overflow: hidden !important;
    }
}

/* Subpage Layout Fixes */
#page-content {
    /* Ensure visible on subpages with content */
    display: block;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    /* Push Footer Down */
    min-height: 60vh;
    /* Spacing from Breadcrumb/Header */
    padding: 40px 20px;
    /* Prevent overlap */
    position: relative;
    z-index: 5;
}

/* Ensure Home Page still hides it when empty */
#page-content:empty {
    display: none !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 0 !important;
}

/* Home Page Specific Resets */
body.home {
    min-height: auto !important;
    height: auto !important;
}

body.home main,
body.home #page-content,
body.home .main-content,
body.home section:empty {
    min-height: 0 !important;
    height: auto !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    display: none !important;
    /* Ensure empty main is hidden on home */
}

/* Ensure Service Banner has no unexplained padding below on home */
body.home #service-banner {
    padding-bottom: 60px;
    /* Internal padding only */
    margin-bottom: 50px !important;
    /* Fixed distance to footer */
}

/* Force Visibility and Spacing on Subpages (Non-Home) */
/* Force Visibility and Spacing on Subpages (Non-Home) */
/* Force Visibility and Spacing on Subpages (Non-Home) */
body:not(.home) #page-content {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: 600px !important;

    /* Layout & Alignment - Standardized */
    width: 90% !important;
    /* Mobile friendly */
    max-width: 1200px !important;
    margin: 120px auto 80px auto !important;
    /* Menu clearance & Footer gap */

    /* Spacing */
    padding: 0 !important;
    /* Grid handles internal spacing */

    /* Cleanup */
    position: relative !important;
    z-index: 20 !important;
    overflow: visible !important;
    clear: both !important;
    float: none !important;
    /* Remove float */
}

/* Ensure footer clears everything */
footer {
    clear: both !important;
    width: 100%;
    position: relative;
    z-index: 10;
}

/* Header Alignment & Spacing Fixes */
body:not(.home) .contact-header,
body:not(.home) .page-header,
body:not(.home) .dynamic-page>h1,
body:not(.home) .dynamic-page>h2:first-of-type {
    display: block !important;
    margin-top: 80px !important;
    /* 80px to clear breadcrumb */
    margin-bottom: 40px !important;
    max-width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}

body:not(.home) .contact-header h1,
body:not(.home) .contact-header h2 {
    /* Ensure text inside header is visible and spaced */
    display: block;
    width: 100%;
}

/* Brands Page Styling */
.brands-page-container {
    width: 100%;
    margin: 0 auto;
    text-align: center;
    /* Helper for inline content */
}

.brands-grid-page {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    text-align: center !important;
    /* User Request */
    width: 100% !important;
    margin: 0 auto !important;
    padding-bottom: 50px;
}

.brand-card-page {
    width: 250px;
    height: 250px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    margin: 0;
    /* Let flex gap handle spacing */
}

/* Ensure link text is centered and not overlapping */
.brand-link-text {
    display: block;
    width: 100%;
    margin-top: 10px;
    line-height: 1.4;
}

.brand-card-page:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.brand-logo-wrapper {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.brand-logo-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-link-text {
    font-size: 0.9rem;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.brand-link-text:hover {
    text-decoration: underline;
    color: var(--secondary-red);
}



/* Success Modal */
.success-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.success-modal-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-top: 5px solid var(--secondary-red);
}

.success-modal-card h3 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.success-modal-card p {
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-modal-close {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.3s;
}

.btn-modal-close:hover {
    background-color: #001540;
}