/* ==========================================================================
   BulBuy - Enterprise Commercial Sourcing Stylesheet
   ========================================================================== */

/* --- Base Variables --- */
:root {
    --bg-main: #ffffff;
    --bg-alt: #f9fafb;
    --text-dark: #0a0a0a;
    --text-muted: #333333;
    --border-light: #e5e5e5;
    --brand-green: #009B74;
    --brand-red: #D01C1F;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.03em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

/* Keyboard Focus States for Accessibility */
a:focus-visible, 
button:focus-visible {
    outline: 2px solid var(--text-dark);
    outline-offset: 4px;
}

/* --- Header / Unified Logo --- */
header {
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-main);
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.flag-icon {
    display: flex;
    flex-direction: column;
    width: 42px;
    height: 28px;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
}

.flag-icon div { flex: 1; }
.flag-icon .w { background: #ffffff; }
.flag-icon .g { background: var(--brand-green); }
.flag-icon .r { background: var(--brand-red); }

.logo-text {
    font-size: 2.2rem;
    color: var(--text-dark);
    line-height: 1;
    padding-top: 2px;
}

.contact-btn {
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 2px solid var(--text-dark);
    background: transparent;
    padding: 0.75rem 1.5rem;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.contact-btn:hover {
    background: var(--text-dark);
    color: #ffffff;
}

/* --- Hero Section --- */
#hero {
    padding: 8rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

#hero h1 {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    max-width: 1000px;
    color: var(--text-dark);
}

#hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 700px;
    font-weight: 400;
}

/* --- Services / Operations --- */
#operations {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--bg-alt);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.op-card {
    padding: 5rem 10%;
    border-right: 1px solid var(--border-light);
    transition: background-color 0.3s ease;
}

.op-card:hover {
    background-color: #ffffff;
}

.op-card:last-child {
    border-right: none;
}

.op-num {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--brand-red);
    margin-bottom: 1.5rem;
    display: block;
}

.op-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.op-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 400;
}

/* --- Footer --- */
footer {
    padding: 3rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* --- Scroll Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.7s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }

/* --- Modal & Form Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.modal-container {
    background: var(--bg-main);
    padding: 2.5rem;
    width: 90%;
    max-width: 500px;
    border-top: 4px solid var(--brand-green);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    color: var(--text-dark);
}

.modal-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-light);
    background: var(--bg-alt);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--text-dark);
}

.submit-btn {
    width: 100%;
    padding: 0.9rem;
    background: var(--text-dark);
    color: #ffffff;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.submit-btn:hover {
    background: #333333;
}

.submit-btn:disabled {
    background: #888888;
    cursor: not-allowed;
}

.thank-you-state {
    text-align: center;
    padding: 1rem 0;
}

.thank-you-state h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--brand-green);
}

.thank-you-state p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

/* --- Responsive Breakpoints --- */
@media (max-width: 1024px) {
    #operations {
        grid-template-columns: 1fr;
    }
    .op-card {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
        padding: 4rem 5%;
    }
    .op-card:last-child {
        border-bottom: none;
    }
}

@media (max-width: 600px) {
    header {
        padding: 1rem 1.5rem;
    }
    .brand {
        gap: 8px;
    }
    .flag-icon {
        width: 30px;
        height: 20px;
    }
    .logo-text {
        font-size: 1.3rem; 
    }
    .contact-btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem; 
    }
    #hero {
        padding: 5rem 1.5rem;
    }
    footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}