:root {
    /* Sanz Brand Palette */
    --navy: #0B1D2E;
    --navy-deep: #06111B;
    --gold: #C19A5B;
    --gold-light: #D4B07A;
    --cream: #F4EDE4;
    --cream-dark: #E8DFD3;
    --charcoal: #2C3039;
    --slate: #6B7280;
    --white: #FEFCF9;

    /* Semantic Mappings */
    --bg-body: var(--white);
    --text-body: var(--charcoal);
    --text-muted: var(--slate);
    --primary: var(--gold);
    --secondary: var(--navy);
    --accent: var(--gold-light);

    /* Utilities */
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --section-padding: 5rem 2rem;
    /* Brand Guide rule: 5rem 2rem */
    --container-width: 1200px;
    --border-radius: 12px;
    /* Brand Guide rule: 12px */
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--white) !important;
    color: var(--charcoal) !important;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.serif {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    /* Regular weight as per guide */
    color: var(--navy);
    line-height: 1.2;
}

h1 {
    font-weight: 300;
    letter-spacing: 0.05em;
}

h2 {
    font-weight: 400;
}

p {
    font-weight: 300;
    /* Light/Regular body weight */
}

/* Reusable Components */
.tag {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 1rem;
    display: block;
}

.btn {
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 600;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: inline-block;
    border-radius: 2px;
    /* Slightly sharper for buttons than cards */
}

.btn-primary,
.btn-gold {
    background: var(--gold);
    color: var(--white);
    border: 1px solid var(--gold);
}

.btn-primary:hover,
.btn-gold:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(193, 154, 91, 0.2);
}

.btn-outline,
.btn-secondary {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
}

.btn-outline:hover,
.btn-secondary:hover {
    background: var(--gold);
    color: var(--white);
    transform: translateY(-2px);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-smooth);
    background: transparent;
    /* Transparent by default */
}

nav.scrolled {
    background: rgba(11, 29, 46, 0.95);
    /* Navy background */
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

nav.scrolled .nav-links a {
    color: var(--cream);
}



.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    /* Ensure vertical alignment */
}

.nav-links a {
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white);
    /* Default white for transparency on hero */
    font-weight: 500;
    transition: var(--transition-smooth);
}

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

.lang-switch {
    border: 1px solid currentColor;
    padding: 0.25rem 0.5rem;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-color: var(--navy);
    padding: var(--section-padding);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: grayscale(100%) contrast(120%);
    /* Increased contrast, b&w */
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

.hero h1 {
    font-size: 4rem;
    color: var(--cream);
    margin-bottom: 2rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.1rem;
    color: var(--cream-dark);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-badge {
    margin-top: 3rem;
    padding: 1.25rem 2rem;
    border-left: 2px solid var(--gold);
    background: rgba(11, 29, 46, 0.6);
    backdrop-filter: blur(8px);
    display: inline-block;
    border-radius: 0 4px 4px 0;
}

.hero-badge p {
    font-size: 0.9rem;
    color: var(--gold-light);
    margin: 0;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* Sections */
.section {
    padding: var(--section-padding);
    max-width: var(--container-width);
    margin: 0 auto;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Fallback for elements to be visible if JS fails or observer doesn't fire */
.no-js .reveal,
.reveal.animate-in {
    opacity: 1;
    transform: translateY(0);
}


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

.modern-card {
    padding: 2.5rem;
    background: var(--white);
    border: 1px solid var(--cream-dark);
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
}

.modern-card:hover {
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(11, 29, 46, 0.05);
    transform: translateY(-5px);
}

.modern-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    color: var(--navy);
    margin: 1rem 0;
}

.modern-card p {
    font-size: 0.95rem;
    color: var(--slate);
    margin-bottom: 2rem;
}

/* Split Layouts (Logistics & ESG) */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.split.rev {
    direction: rtl;
    /* Quick hack for reversing grid, reset text direction on children */
}

.split.rev>* {
    direction: ltr;
}

.split-text h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.split-img img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Sourcing Mandate & Focus Styles */
.mandate-focus {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.focus-item h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--navy);
}

.focus-item p {
    font-size: 0.9rem;
    color: var(--slate);
}

.dark-mandate {
    background: var(--navy) !important;
    color: var(--cream) !important;
    padding: 3rem !important;
    border: none !important;
}

.dark-mandate h3 {
    color: var(--gold-light) !important;
    margin-bottom: 1.5rem;
}

.spec {
    font-size: 0.75rem;
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(193, 154, 91, 0.2);
}

/* Why Producers Styles */
.bg-light {
    background: #f8f9fa;
    max-width: none !important;
    padding: 8rem 5%;
}

.bg-light h2 {
    color: var(--navy) !important;
}

.bg-light p,
.bg-light .modern-card p {
    color: var(--charcoal) !important;
}

.bg-light .modern-card h3 {
    color: var(--navy) !important;
}

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

.card-icon {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    color: var(--gold-light);
    margin-bottom: 1.5rem;
    opacity: 0.8;
    /* Increased for better visibility */
}

/* Argentina Corridor Styles */
.check-list {
    list-style: none;
    margin-top: 2rem;
}

.check-list li {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--navy) !important;
    font-weight: 500 !important;
}

.check-list li::before {
    content: "•";
    color: var(--gold);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* PDAC Section Styles */
.pdac-block {
    padding: 8rem 2rem;
    background: var(--navy);
    /* Added background for contrast */
}

.pdac-card {
    background: rgba(255, 255, 255, 0.05);
    /* Subtle card background */
    border: 1px solid rgba(193, 154, 91, 0.2);
    /* Added border for definition */
    border-radius: var(--border-radius);
    display: grid;
    grid-template-columns: 2fr 1fr;
    overflow: hidden;
    max-width: var(--container-width);
    margin: 0 auto;
}

.pdac-content {
    padding: 5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.pdac-content h2 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 2rem;
}

.pdac-content p {
    color: var(--cream-dark);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 500px;
}

.pdac-info {
    padding: 5rem;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3rem;
}

.info-item h4 {
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.info-item p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--cream);
}

/* Contact Section */
.footer-contact {
    background: var(--navy);
    color: var(--cream);
    padding: 0;
}

.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 5%;
}

/* Principal Box Styles */
.principal-box {
    margin-top: 4rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.avatar-circle {
    font-family: 'Cormorant Garamond';
    font-size: 1.8rem;
    color: var(--gold);
    border: 1px solid var(--gold);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.principal-box .name {
    color: var(--gold);
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
    font-weight: 500;
}

.principal-box .role {
    color: var(--cream-dark);
    font-size: 0.8rem;
    font-weight: 300;
}

.contact-grid {
    display: grid;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-email {
    display: block;
    font-size: 0.85rem;
    color: var(--gold-light);
    text-decoration: none;
    margin-top: 0.5rem;
    font-weight: 400;
    transition: var(--transition-smooth);
}

.contact-email:hover {
    color: var(--white);
    transform: translateX(5px);
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1rem;
}

.form-footer {
    font-size: 0.75rem;
    color: var(--slate);
    text-align: center;
    margin-top: 1.5rem;
}

.contact-bio {
    padding: 5rem 3rem 5rem 0;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form {
    padding: 5rem 0 5rem 3rem;
}

.contact-bio h2 {
    color: var(--cream);
    font-size: 2.5rem;
}

.field {
    margin-bottom: 2rem;
}

.field label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(244, 237, 228, 0.2);
    color: var(--cream);
    padding: 1rem 0;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-bottom-color: var(--gold);
}

/* Footer Bottom */
.footer-bottom {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 4rem 0;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 2rem;
}

.footer-col h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: var(--cream-dark);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 300;
    transition: color 0.3s;
}

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

.footer-end {
    background: var(--navy-deep);
    text-align: center;
    padding: 1.5rem;
    font-size: 0.75rem;
    color: var(--slate);
    letter-spacing: 0.05em;
}

.footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--cream);
    font-weight: 600;
}

.footer-logo span {
    color: var(--gold);
}

/* Responsive */
@media (max-width: 900px) {
    :root {
        --section-padding: 3rem 1.5rem;
    }

    .grid-3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .split,
    .split.rev,
    .contact-wrap,
    .footer-bottom {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-bio {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 3rem 0;
    }

    .contact-form {
        padding: 3rem 0;
    }

    .nav-links {
        display: none;
    }

    .hero {
        min-height: 80vh;
        /* Shorter for mobile to ensure CTA visibility */
        padding-top: 6rem;
    }

    .hero h1 {
        font-size: 2.4rem;
        margin-bottom: 1.5rem;
    }

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

    .cta-group {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
        padding: 1.2rem 2rem;
        text-align: center;
    }

    .pdac-card {
        grid-template-columns: 1fr;
    }

    .pdac-content,
    .pdac-info {
        padding: 3rem 2rem;
        border-right: none;
    }

    .pdac-info {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .pdac-content h2 {
        font-size: 2.5rem;
    }

    .field-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Floating Connect Button for Mobile */
.mobile-fab {
    display: none;
}

@media (max-width: 768px) {
    .mobile-fab {
        display: flex;
        position: fixed;
        bottom: 2rem;
        right: 1.5rem;
        background: var(--gold);
        color: var(--navy);
        width: 60px;
        height: 60px;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
        z-index: 999;
        text-decoration: none;
        transition: var(--transition-smooth);
    }

    .mobile-fab:active {
        transform: scale(0.9);
    }

    .mobile-fab svg {
        width: 24px;
        height: 24px;
    }
}

/* Modal System */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 29, 46, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--navy);
    border: 1px solid rgba(193, 154, 91, 0.3);
    border-radius: var(--border-radius);
    width: 94%;
    max-width: 600px;
    position: relative;
    padding: 3.5rem 2.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: var(--transition-smooth);
    max-height: 90vh;
    overflow-y: auto;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--gold-light);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-smooth);
}

.close-modal:hover {
    color: var(--white);
    transform: rotate(90deg);
}

.modal-body h2 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 2.2rem;
}

.modal-body p {
    color: var(--cream-dark);
    margin-bottom: 2rem;
}

/* Scheduling Specific Styles */
.schedule-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.time-slot {
    padding: 0.5rem;
    border: 1px solid rgba(193, 154, 91, 0.2);
    border-radius: 4px;
    color: var(--cream);
    font-size: 0.8rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.time-slot:hover,
.time-slot.selected {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
}

.modal-icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
    text-align: center;
}

@media (max-width: 600px) {
    .modal-content {
        padding: 3rem 1.5rem 2rem;
        width: 96%;
    }

    .modal-body h2 {
        font-size: 1.8rem;
    }

    .schedule-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Stacked Layout for Value Section */
.stacked-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.stacked-card {
    background: var(--white);
    padding: 3rem;
    border: 1px solid var(--cream-dark);
    display: flex;
    gap: 3rem;
    align-items: center;
    transition: var(--transition-smooth);
}

.stacked-card:hover {
    border-color: var(--gold-light);
    transform: translateX(10px);
}

.stacked-card .card-icon {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    color: var(--gold-light);
    opacity: 0.5;
    flex-shrink: 0;
}

.stacked-card .card-text h3 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    color: var(--navy);
}

.stacked-card .card-text p {
    color: var(--charcoal);
    font-weight: 300;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .stacked-card {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem;
        text-align: center;
    }

    .stacked-card .card-icon {
        font-size: 2.5rem;
    }
}