/*
Theme Name: MaxBedini Engineering
Theme URI: http://maxbedini.com
Author: Antigravity AI
Description: Un tema modern, responsive i lleuger per a MaxBedini Engineering.
Version: 1.0
Text Domain: maxbedini
*/

/* Custom CSS variables */
:root {
    --primary-color: #0036A5; /* The classic blue */
    --text-color: #333333;
    --bg-color: #f4f6f9; /* Un tò intermedi i elegant */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Honeycomb Pattern (SVG) - L'equilibri perfecte */
    --honeycomb-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%230036A5' stroke-width='1.2' stroke-opacity='0.12'/%3E%3C/svg%3E");
    --honeycomb-pattern-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%23ffffff' stroke-width='1.2' stroke-opacity='0.25'/%3E%3C/svg%3E");
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    background-image: var(--honeycomb-pattern);
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 600;
}

/* Header */
.site-header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.site-header.header-hidden {
    transform: translateY(-100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.site-logo {
    max-height: 50px;
    width: auto;
}

.custom-logo-link img {
    max-height: 80px;
    width: auto;
    max-width: 100%;
}

.site-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.main-navigation a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    color: #ffffff;
    text-align: center;
    padding: 100px 20px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    max-width: 800px;
    margin: 0 auto 30px;
}

.btn-primary {
    display: inline-block;
    background-color: #ffffff;
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s, background-color 0.3s;
}

.btn-primary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

/* Footer */
.site-footer {
    background-color: #222222;
    color: #ffffff;
    padding: 40px 20px;
    text-align: center;
    margin-top: 50px;
}

.site-footer a {
    color: #4da6ff;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.footer-info p {
    margin: 5px 0;
}

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

.hamburger-line {
    display: block;
    width: 26px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger animation when open */
.menu-toggle.is-active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.menu-toggle.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
}
.menu-toggle.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: row;
        flex-wrap: wrap;
        height: auto;
        padding: 12px 0;
        align-items: center;
        justify-content: space-between;
    }

    .menu-toggle {
        display: flex;
    }

    .header-right {
        display: none !important;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 0 !important;
        padding: 15px 0 5px;
        border-top: 1px solid #eee;
        margin-top: 12px;
    }

    .header-right.menu-open {
        display: flex !important;
    }

    .main-navigation ul {
        flex-direction: column;
        align-items: center;
        gap: 0;
        margin: 0;
        padding: 0;
        width: 100%;
    }

    .main-navigation li {
        width: 100%;
        text-align: center;
    }

    .main-navigation a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid #f0f0f0;
        font-size: 1rem;
    }

    .lang-switcher {
        margin-top: 10px;
        padding-top: 10px;
        justify-content: center;
    }

    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
}


.project-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important; } 
.btn-primary:hover { background: #002266 !important; } 
.btn-secondary:hover { background: #0036A5 !important; color: #fff !important; } 
.btn-read-more:hover { text-decoration: underline !important; }


body { display: flex; flex-direction: column; min-height: 100vh; } 
.site-main { flex-grow: 1; }
