/* DISENA Website - Main Stylesheet */
/* Dark theme with gray on black color scheme */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-black: #000000;
    --primary-gray: #2a2a2a;
    --light-gray: #4a4a4a;
    --lighter-gray: #888888;
    --white: #ffffff;
    --primary-gold: #C6A15A;
    --accent-gold: #C6A15A;
    --hover-gray: #3a3a3a;
    --dark-gold: #B8860B;
    --light-gold: #F4E4BC;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--primary-black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Icon spacing override (applies after vendor CSS like Font Awesome) */
.fa-solid,
.fas {
    margin-right: 0.5rem; /* adjust as needed */
}

/* Ensure all images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 2px;
}

/* Ensure logo image aligns correctly on desktop: cancel inline float and negative margin */
.logo img {
    display: block;
    float: none !important;
    margin-right: 0 !important;
    height: auto; /* keep inline height unless overridden by media queries */
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--lighter-gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-gold);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Language Switcher */
.language-switcher {
    background: var(--primary-gold);
    color: var(--primary-black);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-left: 1rem;
    font-family: 'Cairo', sans-serif;
}

.language-switcher:hover {
    background: var(--dark-gold);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(198, 161, 90, 0.3);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Main Content */
.main-content {
    margin-top: 60px;
}

/* Hero Section */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/4.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23333" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Floating cards overlay (hidden by default to preserve desktop) */
.hero-floating-cards {
    display: none; /* shown only on mobile */
    position: absolute;
    z-index: 2;
}

.hero-floating-card {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    color: var(--white);
}
 .hero-floating-card span { font-weight: 600; font-size: 0.95rem; color: var(--lighter-gray); }

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: white;
}

.hero-content .subtitle {
    font-size: 1.2rem;
    color: var(--lighter-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background: var(--primary-gold);
    color: var(--primary-black);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-gold);
}

.cta-button:hover {
    background: transparent;
    color: var(--primary-gold);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(198, 161, 90, 0.3);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-placeholder {
    width: 400px;
    height: 400px;
    background: var(--primary-gray);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--lighter-gray);
    border: 2px solid var(--light-gray);
}

/* Section Styles */
.section {
    padding: 5rem 0;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--white);
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    color: var(--lighter-gray);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.card {
    background: var(--primary-gray);
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid var(--light-gray);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-gold);
}

.card:hover img {
    transform: scale(1.05);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.card p {
    color: var(--lighter-gray);
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--primary-gray);
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--light-gray);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--lighter-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-gold);
}

.footer-bottom {
    border-top: 1px solid var(--light-gray);
    padding-top: 1rem;
    color: var(--lighter-gray);
    font-size: 0.9rem;
}

/* Materials Grid Styles */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.materials-grid > div:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(198, 161, 90, 0.1);
}

.materials-grid img {
    transition: transform 0.3s ease;
}

.materials-grid > div:hover img {
    transform: scale(1.05);
}

/* Materials Section - New Layout Styles */
.materials-section .fade-in > div:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(198, 161, 90, 0.1);
}

.materials-section img {
    transition: transform 0.3s ease;
}

.materials-section .fade-in:hover img {
    transform: scale(1.05);
}

/* ===== COMPREHENSIVE MOBILE RESPONSIVE DESIGN ===== */

/* Laptops: mild scaling and header fixes */
@media (max-width: 1366px) {
    .nav-container {
        padding: 0 1.25rem;
    }
    /* Override inline negative margins on logo image */
    .logo img {
        margin-right: 0 !important;
        height: 100px !important;
        max-width: 280px !important;
    }
    .hero-container {
        gap: 3rem;
    }
    .hero-content h1 {
        font-size: 3.2rem;
    }
}

/* Tablets (landscape and medium screens) */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 1rem;
    }
    .logo img {
        margin-right: 0 !important;
        height: 90px !important;
        max-width: 240px !important;
    }
    .hero-container {
        gap: 2rem;
    }
    .hero-content h1 {
        font-size: 2.7rem;
    }
    .section-title {
        font-size: 2.1rem;
    }
}

/* Critical Mobile Fixes - Prevent Zoom and Overflow Issues */
@media (max-width: 768px) {
    /* Prevent horizontal scrolling and zoom issues */
    html {
        font-size: 14px; /* Reduce base font size for mobile */
    }
    
    body {
        overflow-x: hidden;
        -webkit-text-size-adjust: 100%; /* Prevent iOS text scaling */
        -ms-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    
    /* Fix all fixed width elements */
    * {
        max-width: 100% !important;
    }
    
    /* Ensure containers don't exceed viewport */
    .nav-container,
    .hero-container,
    .section-container,
    .footer-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Fix logo positioning that causes overflow */
    .logo img {
        height: 60px !important;
        margin-right: 0 !important;
        max-width: 150px !important;
    }
    
    /* Responsive images */
    img {
        max-width: 100% !important;
        height: auto !important;
        width: auto !important;
    }
    
    /* Fix grid layouts */
    .cards-grid,
    .materials-grid,
    .partners-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* Fix inline styles that cause mobile issues */
    div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* Fix text sizes */
    h1, .hero-title {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
    }
    
    h2, .section-title {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }
    
    h3 {
        font-size: 1.2rem !important;
    }
    
    p, .subtitle {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }
    
    /* Fix button sizes */
    .cta-button {
        padding: 0.8rem 1.2rem !important;
        font-size: 0.9rem !important;
        margin: 0.5rem !important;
        display: inline-block !important;
        width: auto !important;
    }
    
    /* Fix navigation */
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        color: var(--white);
        font-size: 1.5rem;
        cursor: pointer;
    }
}

/* Large Tablets and Small Desktops */
@media (max-width: 1024px) {
    .materials-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.2rem;
    }
    
    .nav-container {
        padding: 0 1.5rem;
    }
    
    .hero-container {
        padding: 0 1.5rem;
        gap: 3rem;
    }
    
    .section-container {
        padding: 0 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

/* Tablets and Large Mobile */
@media (max-width: 768px) {
    /* Prevent horizontal scrolling */
    body {
        overflow-x: hidden;
    }
    
    /* Navigation fixes */
    .nav-container {
        padding: 0 1rem;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: center; /* center baseline; elements are absolutely positioned */
        position: relative; /* anchor for absolute children */
        min-height: 64px;
    }
    /* Pin elements like the screenshot: burger (far-left), EN beside it, logo on far-right */
    .mobile-menu-toggle {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 12;
    }
    .language-switcher {
        position: absolute;
        left: 44px; /* just to the right of hamburger (closer) */
        top: 50%;
        transform: translateY(-50%);
        z-index: 11;
        margin-left: 0;
    }
    .logo {
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        margin-left: 0;
    }
    
    .logo img {
        height: 80px !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        display: block;
        max-width: 60vw !important;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-black);
        flex-direction: column;
        padding: 1rem 2rem;
        gap: 1rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        color: var(--white);
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
    }
    
    .nav-actions {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    .mobile-menu-toggle { order: 1; }
    .language-switcher {
        order: 2;
        margin-left: 0.25rem;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        position: static; /* flexible, no fixed offset */
        left: auto;
        top: auto;
        transform: none;
    }
    
    /* Hero section fixes */
    .hero {
        min-height: 60vh;
        background-attachment: scroll !important; /* Fix parallax on mobile */
        background-position: center 65% !important; /* Lower the focal point on mobile */
        background-size: cover !important;
        padding-top: calc(7rem + env(safe-area-inset-top, 0px)); /* Push text/buttons below header + notch */
        padding-bottom: 2.5rem;
    }
    
    /* Fix background images on all pages for mobile */
    section[style*="background-attachment: fixed"] {
        background-attachment: scroll !important;
        background-position: center 65% !important;
    }
    
    /* Optimize background images for mobile performance */
    .hero {
        background-size: cover !important;
        background-repeat: no-repeat !important;
        will-change: auto; /* Disable hardware acceleration on mobile for better performance */
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.25rem;
        padding: 0 0.75rem;
        align-items: start;
        position: static; /* allow absolute children to position relative to .hero */
    }

    .hero-content { margin-top: 1.25rem; }

    /* Disable floating cards on main website (moved to contact form site) */
    .hero-floating-cards {
        display: none !important;
    }

    /* Triangular arrangement: one top-center, two bottom corners */
    .hero-floating-cards .hero-floating-card:nth-child(1) {
        top: 0;
        left: 50%;
        transform: translateX(-50%);
    }
    .hero-floating-cards .hero-floating-card:nth-child(2) {
        bottom: 0;
        left: 8px;
    }
    .hero-floating-cards .hero-floating-card:nth-child(3) {
        bottom: 0;
        right: 8px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-content .subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Section fixes */
    .section {
        padding: 2.25rem 0;
    }
    
    .section-container {
        padding: 0 0.75rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    /* Cards grid fixes */
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.1rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .card h3 {
        font-size: 1.3rem;
    }
    
    .card p {
        font-size: 0.9rem;
    }
    
    /* Materials grid fixes */
    .materials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* Materials Section Mobile Responsive */
    .section-container div[style*="grid-template-columns: 1fr auto 1fr"],
    .section-container div[style*="grid-template-columns: 1fr 1fr"],
    .section-container div[style*="display: grid; grid-template-columns:"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        max-width: 100% !important;
        margin: 1.25rem 0 !important;
    }
    
    .section-container img[style*="height:"],
    .section-container img[style*="width:"] {
        height: auto !important;
        width: 100% !important;
        object-fit: cover !important;
    }
    
    .section-container div[style*="max-width: 800px"] {
        margin: 2rem 0 !important;
        padding: 1rem !important;
    }
    
    .section-container div[style*="max-width: 800px"] h3 {
        font-size: 1.3rem !important;
    }
    
    .section-container div[style*="max-width: 800px"] p {
        font-size: 0.9rem !important;
    }
    
    /* Process section fixes */
    .section-container div[style*="display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr))"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .section-container div[style*="display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr))"] > div {
        padding: 1.5rem !important;
    }
    
    .section-container div[style*="display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr))"] h3 {
        font-size: 1.2rem !important;
    }
    
    .section-container div[style*="display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr))"] p {
        font-size: 0.9rem !important;
    }
    
    /* Footer fixes */
    .footer-links {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-content {
        padding: 0 1rem;
    }
    
    /* Partners section fixes */
    .partners-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .partner-logo {
        max-width: 100px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    /* Navigation fixes */
    .nav-container {
        padding: 0 0.5rem;
    }
    
    .logo img {
        height: 54px !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        max-width: 65vw !important;
    }
    
    .language-switcher {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
        margin-right: 240px;
    }
    
    /* Hero section fixes */
    .hero {
        min-height: 55vh;
        background-attachment: scroll !important; /* Fix parallax on mobile */
        background-position: center 70% !important; /* Lower focal point on very small screens */
        padding-top: calc(8rem + env(safe-area-inset-top, 0px));
        padding-bottom: 2.75rem;
    }

    /* Ensure disabled on extra small as well */
    .hero-floating-cards { display: none !important; }
    /* Fix background images on all pages for mobile */
    section[style*="background-attachment: fixed"] {
        background-attachment: scroll !important;
        background-position: center 70% !important; /* Lower focal point on very small screens */
    }
    
    .hero-container {
        padding: 0 0.5rem;
        gap: 1rem;
    }

    .hero-content { margin-top: 1.5rem; }
    
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .hero-content .subtitle {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 0.7rem 1.2rem;
        font-size: 0.8rem;
    }
    
    /* Section fixes */
    .section { padding: 1.75rem 0; }
    
    .section-container { padding: 0 0.5rem; }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    /* Cards fixes */
    .card {
        padding: 1rem;
    }
    
    .card h3 {
        font-size: 1.2rem;
    }
    
    .card p {
        font-size: 0.85rem;
    }
    
    /* Materials grid fixes */
    .materials-grid { grid-template-columns: 1fr; gap: 0.75rem; }
    
    /* Materials Section Mobile Responsive */
    .section-container div[style*="grid-template-columns: 1fr auto 1fr"],
    .section-container div[style*="display: grid; grid-template-columns:"] {
        gap: 0.75rem !important;
        margin: 1rem 0 !important;
    }
    
    .section-container div[style*="max-width: 800px"] {
        margin: 1.5rem 0 !important;
        padding: 0.8rem !important;
    }
    
    .section-container div[style*="max-width: 800px"] h3 {
        font-size: 1.1rem !important;
    }
    
    .section-container div[style*="max-width: 800px"] p {
        font-size: 0.85rem !important;
    }
    
    /* Process section fixes */
    .section-container div[style*="display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr))"] > div {
        padding: 1rem !important;
    }
    
    .section-container div[style*="display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr))"] h3 {
        font-size: 1.1rem !important;
    }
    
    .section-container div[style*="display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr))"] p {
        font-size: 0.85rem !important;
    }
    
    /* Partners section fixes */
    .partners-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    
    .partner-logo {
        max-width: 80px;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .section-header p {
        font-size: 0.9rem;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 360px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .card {
        padding: 0.8rem;
    }
    
    .card h3 {
        font-size: 1.1rem;
    }
    
    .card p {
        font-size: 0.8rem;
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
    }
    
    .partner-logo {
        max-width: 60px;
    }
}

/* Mobile menu functionality will be handled by JavaScript */

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

 /* Reset and base styles (override unintended padding) */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Arial', sans-serif;
            line-height: 1.6;
            color: #888888;
            padding: 0; /* remove outer gutter causing blank space on mobile */
        }
        
        .partners-section {
            max-width: 1200px;
            margin: 0 auto;
            padding: 40px 20px;
        }
        
        .section-header {
            text-align: center;
            margin-bottom: 40px;
        }
        
        .section-header h2 {
            font-size: 2.5rem;
            color: #ffffff;
            margin-bottom: 15px;
        }
        
        .section-header p {
            font-size: 1.1rem;
            color: #888888;
            max-width: 700px;
            margin: 0 auto;
        }
        
        .partners-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 30px;
            align-items: center;
            justify-items: center;
        }
        
        /* Partner logo card + caption */
        .partner-card {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            text-align: center;
        }
        .partner-caption {
            color: var(--lighter-gray);
            font-size: 0.95rem;
            margin-bottom: 0.5rem;
        }
        
        .partner-logo {
            max-width: 160px;
            height: auto;
            filter: grayscale(100%);
            opacity: 0.7;
            transition: all 0.3s ease;
        }
        
        .partner-logo:hover {
            filter: grayscale(0);
            opacity: 1;
            transform: scale(1.05);
        }
        
        /* Responsive adjustments */
        @media (max-width: 768px) {
            .partners-grid {
                grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
                gap: 20px;
            }
            
            .partner-logo {
                max-width: 120px;
            }
            
            .section-header h2 {
                font-size: 2rem;
            }
        }
        
        @media (max-width: 480px) {
            .partners-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .section-header h2 {
                font-size: 1.8rem;
            }
        }

