/* 
   -------------------------------------------------
   DESIGN SYSTEM & VARIABLES (ALTO GUSTO THEME)
   -------------------------------------------------
*/
:root {
    /* Colors */
    --color-bg-dark: #0c0e0c;
    /* Rich Black */
    --color-bg-card: #151815;
    /* Darker Card */
    --color-primary: #c05621;
    /* Rust / Terracotta */
    --color-primary-dark: #a04519;
    --color-accent: #8a9a5b;
    /* Olive Green */
    --color-text-main: #f0f0f0;
    --color-text-muted: #9ca3af;
    --color-border: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Spacing & Layout */
    --container-width: 1200px;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Animation */
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 
   -------------------------------------------------
   RESET & GLOBAL STYLES 
   -------------------------------------------------
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img,
video {
    max-width: 100%;
    display: block;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    font-weight: 400;
}

/* 
   -------------------------------------------------
   UTILITIES 
   -------------------------------------------------
*/
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-accent {
    color: var(--color-accent);
    font-style: italic;
}

.text-primary {
    color: var(--color-primary);
}

.uppercase-tracking {
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.75rem;
    font-weight: 700;
}

/* 
   -------------------------------------------------
   COMPONENTS: BUTTONS 
   -------------------------------------------------
*/
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 32px;
    border-radius: 9999px;
    /* Full pill */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-fast);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

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

.btn-outline {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: white;
}

/* 
   -------------------------------------------------
   LOADER 
   -------------------------------------------------
*/
#loader {
    position: fixed;
    inset: 0;
    background: #0f1210;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease;
}

.loader-spinner {
    width: 3rem;
    height: 3rem;
    border: 2px solid var(--color-primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 
   -------------------------------------------------
   NAVBAR 
   -------------------------------------------------
*/
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition-fast);
}

.navbar.scrolled {
    background-color: rgba(12, 14, 12, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(138, 154, 91, 0.2);
    padding: 10px 0;
}

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

.brand {
    text-align: center;
    cursor: pointer;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    display: block;
}

.brand-tagline {
    font-family: var(--font-body);
    font-size: 0.6rem;
    letter-spacing: 0.4em;
    color: var(--color-accent);
    text-transform: uppercase;
    display: block;
    margin-top: -4px;
}

/* 
   -------------------------------------------------
   LOGO & BRANDING 
   -------------------------------------------------
*/
.brand-logo {
    height: 90px;
    width: auto;
    /* 
       Optimized for a Black-on-White or White-on-White JPG. 
       If it's a white square with black text: invert(1) makes it black square with white text,
       then mix-blend-mode: screen drops the black text.
       
       Adjusting strategy for the user's likely B/W logo:
       Assuming it is Black Text on White BG:
       filter: invert(1) -> White Text on Black BG
       mix-blend-mode: lighten -> Black BG becomes transparent on Dark theme
    */
    filter: invert(1);
    mix-blend-mode: screen;
    opacity: 0.9;
    display: block;
}

/* 
   -------------------------------------------------
   REGION SECTION (FRIULI) 
   -------------------------------------------------
*/
.region-content {
    display: flex;
    gap: 60px;
    align-items: center;
}

.region-text {
    flex: 1;
}

.region-stats {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
}

.stat-item h5 {
    font-size: 2rem;
    color: var(--color-primary);
    font-family: var(--font-heading);
    line-height: 1;
}

.stat-item p {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
}

.region-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.region-badge {
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    padding: 5px 12px;
    font-size: 0.7rem;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@media (max-width: 900px) {
    .region-content {
        flex-direction: column;
    }
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.25em;
}

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

.mobile-toggle {
    display: none;
    color: white;
    cursor: pointer;
}

/* 
   -------------------------------------------------
   HERO SECTION & VIDEO 
   -------------------------------------------------
*/
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.video-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    filter: contrast(110%);
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(12, 14, 12, 0.5) 100%),
        linear-gradient(to bottom, rgba(12, 14, 12, 0.2), #0c0e0c);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(192, 86, 33, 0.3);
    color: var(--color-primary);
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background-color: var(--color-primary);
    opacity: 0.5;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.hero-title {
    font-size: 5rem;
    line-height: 0.95;
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    font-weight: 300;
    margin-bottom: 3rem;
    max-width: 600px;
}

/* 
   -------------------------------------------------
   PHILOSOPHY / B2B GRID 
   -------------------------------------------------
*/
.section {
    padding: var(--spacing-xl) 0;
}

.bg-dark {
    background-color: var(--color-bg-dark);
}

.grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.feature-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    padding: 40px;
    border-radius: 24px;
    transition: var(--transition-fast);
}

.feature-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.feature-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    color: white;
}

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

.feature-card.darker {
    background: rgba(255, 255, 255, 0.02);
}

/* 
   -------------------------------------------------
   MODAL 
   -------------------------------------------------
*/
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    z-index: 2000;
    display: none;
    /* Toggled via JS */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s;
}

.modal.open {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--color-bg-card);
    width: 100%;
    max-width: 500px;
    padding: 60px;
    border-radius: 40px;
    border: 1px solid var(--color-border);
    position: relative;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
}

.modal-close svg {
    width: 32px;
    height: 32px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 8px;
    margin-left: 10px;
}

.form-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
    padding: 16px 20px;
    border-radius: 16px;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
}

.form-input:focus {
    border-color: var(--color-primary);
}

/* 
   -------------------------------------------------
   RESPONSIVE 
   -------------------------------------------------
*/
@media (max-width: 900px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }

    .grid-2x2 {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 20px;
    }

    .nav-links {
        display: none;
    }

    /* Simplified for now */
    .mobile-toggle {
        display: block;
    }

    /* Fix logo overlap on mobile */
    .brand-logo {
        height: 50px !important;
        margin: 0;
    }

    /* Fix navbar to prevent overlap */
    .navbar {
        padding: 10px 0;
    }

    .navbar.scrolled {
        padding: 8px 0;
    }

    /* Adjust hero section for mobile - increase height to prevent cropping */
    .hero {
        min-height: 600px !important;
        height: auto !important;
        padding: 100px 0 40px 0;
    }

    /* Adjust hero content for mobile */
    .hero-content {
        padding-top: 0;
        margin-top: 0;
    }

    .badge {
        font-size: 0.65rem;
        margin-bottom: 1.5rem;
        padding: 8px 16px;
    }

    .hero-desc {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    /* Ensure button is visible */
    .btn {
        padding: 14px 28px;
        font-size: 0.75rem;
    }

    /* Footer adjustments */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-contact {
        text-align: center !important;
    }
}

/* 
   -------------------------------------------------
   FOOTER 
   -------------------------------------------------
*/
.footer {
    background-color: black;
    border-top: 1px solid var(--color-border);
    padding: 40px 0;
    margin-top: 80px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-link {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--color-primary);
}

.footer-contact {
    text-align: right;
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-contact {
        text-align: center;
    }
}

/* 
   -------------------------------------------------
   COOKIE BANNER 
   -------------------------------------------------
*/
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-bg-card);
    border-top: 1px solid var(--color-primary);
    padding: 20px 0;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.5s ease-out;
    display: none;
    /* hidden by default, JS toggles class */
}

.cookie-banner.visible {
    display: block;
    transform: translateY(0);
}

.cookie-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

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

.cookie-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-link {
    background: none;
    border: none;
    color: var(--color-text-muted);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.85rem;
}

.btn-link:hover {
    color: white;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

/* 
   -------------------------------------------------
   TOAST NOTIFICATION 
   -------------------------------------------------
*/
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-accent);
    padding: 15px 25px;
    border-radius: 12px;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(100px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10000;
}

.toast.show {
    transform: translateY(0);
}

/* 
   -------------------------------------------------
   NOTRE HISTOIRE PAGE STYLES
   -------------------------------------------------
*/
.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.w-100 {
    width: 100%;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.founders-container {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    margin-top: 40px;
}

.founders-image {
    flex: 1;
    position: sticky;
    top: 100px;
}

.founders-bios {
    flex: 1.2;
}

.founder-card {
    margin-bottom: 40px;
}

.founder-name {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.founder-role {
    color: var(--color-accent);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    font-weight: 700;
    margin-bottom: 1rem;
}

.founder-desc {
    color: var(--color-text-muted);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.step-card {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid transparent;
    transition: var(--transition-fast);
}

.step-card:hover {
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.05);
}

.step-icon {
    width: 60px;
    height: 60px;
    background: var(--color-bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    color: var(--color-primary);
    border: 1px solid var(--color-border);
}

.check-list {
    margin-top: 20px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--color-text-main);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.bg-card {
    background-color: var(--color-bg-card);
}

.p-5 {
    padding: 3rem;
}

.rounded {
    border-radius: 24px;
}

.small {
    font-size: 0.85rem;
}

@media (max-width: 900px) {

    .founders-container,
    .grid-2 {
        flex-direction: column;
    }

    .founders-image {
        position: static;
        margin-bottom: 40px;
    }
}