/* =========================================
   BC-Global — style.css
   ========================================= */

/* === Web Fonts (self-hosted, latin subset) === */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/roboto-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Roboto Slab';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/roboto-slab-700-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* === Variables === */
:root {
    --primary-color: #053365;
    --accent-color:  #F5A623;
    --text-color:    #053365;
    --bg-light:      #e0dcd1;
    --white:         #ffffff;
    --max-width:     1200px;
    --header-height: 80px;
}

/* === Reset & Base === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    font-size: 1rem;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === Container === */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2.5rem;
}

/* =========================================
   Scroll Reveal
   ========================================= */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

[data-reveal="delay-1"] { transition-delay: 0.12s; }
[data-reveal="delay-2"] { transition-delay: 0.24s; }
[data-reveal="delay-3"] { transition-delay: 0.36s; }
[data-reveal="delay-4"] { transition-delay: 0.48s; }

/* =========================================
   Header
   ========================================= */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-height);
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

/* Transparent over the hero */
#site-header:not(.scrolled) {
    background: transparent;
}

/* Solid once scrolled */
#site-header.scrolled {
    background: var(--white);
    box-shadow: 0 2px 16px rgba(5, 51, 101, 0.09);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2.5rem;
}

.logo img {
    height: 48px;
    width: auto;
    transition: filter 0.4s ease;
}

/* Invert logo to white on transparent header */
#site-header:not(.scrolled) .logo img {
    filter: brightness(0) invert(1);
}

/* === Navigation === */
nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

nav a {
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    position: relative;
    transition: color 0.2s;
}

/* Animated underline on hover */
nav a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.25s ease;
}

nav a:hover::after {
    width: 100%;
}

#site-header:not(.scrolled) nav a {
    color: rgba(255, 255, 255, 0.9);
}

#site-header:not(.scrolled) nav a:hover {
    color: var(--white);
}

#site-header.scrolled nav a:hover {
    color: var(--accent-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.4rem;
    padding: 0.25rem;
    transition: color 0.4s;
}

#site-header:not(.scrolled) .menu-toggle { color: var(--white); }
#site-header.scrolled .menu-toggle { color: var(--primary-color); }

/* =========================================
   Hero Section
   ========================================= */
#hero {
    min-height: 85vh;
    background: url('../img/bc_global_nl_cover.webp') center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /* Diagonal bottom edge */
    clip-path: polygon(0 0, 100% 0, 100% 93%, 0 100%);
}

/* Gradient overlay — darker on left for text contrast */
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(5, 51, 101, 0.72) 0%,
        rgba(5, 51, 101, 0.42) 100%
    );
}

.hero-content {
    position: relative;
    text-align: center;
    color: var(--white);
    padding: 2rem 2.5rem;
    max-width: 860px;
}

/* === Hero animations === */
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: none; }
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    opacity: 0.65;
    margin-bottom: 1.25rem;
    animation: heroFadeUp 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s both;
}

.hero-content h1 {
    font-family: 'Roboto Slab', Georgia, serif;
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 2.5rem;
    animation: heroFadeUp 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s both;
}

/* === Button === */
.btn {
    display: inline-block;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.6);
    padding: 0.9rem 2.75rem;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: border-color 0.25s, background 0.25s, transform 0.2s;
    animation: heroFadeUp 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.65s both;
}

.btn:hover {
    border-color: var(--accent-color);
    background: var(--accent-color);
    transform: translateY(-3px);
}

/* =========================================
   About Section
   ========================================= */
#about {
    padding: 7rem 0 6rem;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 6rem;
    align-items: start;
}

#about h2 {
    font-family: 'Roboto Slab', Georgia, serif;
    font-size: 2.25rem;
    margin-bottom: 1.75rem;
    line-height: 1.15;
}

.about-text p + p {
    margin-top: 1.25rem;
}

/* Decorative aside */
.about-aside {
    padding-top: 1rem;
    border-top: 3px solid var(--accent-color);
}

.about-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    margin-bottom: 1.5rem;
}

.about-pull {
    font-family: 'Roboto Slab', Georgia, serif;
    font-size: 1.25rem;
    line-height: 1.55;
    font-style: italic;
    color: var(--primary-color);
}

/* =========================================
   Products Section
   ========================================= */
#products {
    padding: 6rem 0 7rem;
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

/* Large faint watermark */
#products::after {
    content: 'Products';
    position: absolute;
    bottom: -1.5rem;
    right: 1rem;
    font-family: 'Roboto Slab', Georgia, serif;
    font-size: 11rem;
    font-weight: 700;
    color: rgba(5, 51, 101, 0.05);
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
    line-height: 1;
}

.section-header {
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-family: 'Roboto Slab', Georgia, serif;
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
}

.section-header p {
    max-width: 580px;
    font-size: 1.05rem;
    color: rgba(5, 51, 101, 0.7);
    line-height: 1.65;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.product-card {
    background: var(--white);
    padding: 2rem 1.5rem 1.75rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Bottom accent bar that grows on hover */
.product-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent-color);
    transition: width 0.35s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(5, 51, 101, 0.11);
}

.product-card:hover::after {
    width: 100%;
}

.product-num {
    display: block;
    font-family: 'Roboto Slab', Georgia, serif;
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1;
    color: var(--bg-light);
    margin-bottom: 0.75rem;
    user-select: none;
}

.product-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    margin-bottom: 1rem;
}

.product-card h3 {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--primary-color);
    line-height: 1.3;
}

/* =========================================
   Mission Section
   ========================================= */
#mission {
    padding: 9rem 2.5rem 8rem;
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    position: relative;
    /* Diagonal top edge cuts into the products section */
    clip-path: polygon(0 6%, 100% 0, 100% 100%, 0 100%);
    margin-top: -4rem;
}

.mission-inner {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.mission-quote-mark {
    display: block;
    font-family: 'Roboto Slab', Georgia, serif;
    font-size: 9rem;
    line-height: 0.75;
    color: rgba(245, 166, 35, 0.25);
    margin-bottom: -1rem;
    user-select: none;
}

#mission blockquote {
    font-family: 'Roboto Slab', Georgia, serif;
    font-size: clamp(1.2rem, 2.6vw, 1.75rem);
    line-height: 1.65;
    font-style: italic;
}

/* =========================================
   Contact Section
   ========================================= */
#contact {
    padding: 6rem 0;
    background: var(--white);
}

#contact h2 {
    font-family: 'Roboto Slab', Georgia, serif;
    font-size: 2.25rem;
    margin-bottom: 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

address {
    font-style: normal;
}

.contact-item {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.contact-item i {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-top: 0.25rem;
    width: 1.25rem;
    text-align: center;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(5, 51, 101, 0.45);
    margin-bottom: 0.3rem;
}

.contact-item p {
    margin: 0;
    line-height: 1.6;
    font-size: 1.05rem;
}

.contact-item a {
    text-decoration: none;
    transition: color 0.2s;
}

.contact-item a:hover {
    color: var(--accent-color);
}

/* Map image */
.map-image {
    width: 100%;
}

/* =========================================
   Footer
   ========================================= */
footer {
    background: var(--primary-color);
    color: rgba(255, 255, 255, 0.45);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
}

/* =========================================
   Media Queries — Mobile (≤ 768px)
   ========================================= */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        gap: 0;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 4px 16px rgba(5, 51, 101, 0.12);
        padding: 0.5rem 0;
    }

    nav ul.open {
        display: flex;
    }

    nav ul li a {
        display: block;
        padding: 0.9rem 2.5rem;
        color: var(--primary-color) !important;
    }

    nav ul li a::after {
        display: none;
    }

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

    .about-aside {
        display: none;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #mission {
        clip-path: polygon(0 3%, 100% 0, 100% 100%, 0 100%);
        padding: 6rem 1.5rem 5rem;
    }

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

/* =========================================
   Tablet (768px – 1024px)
   ========================================= */
@media (min-width: 769px) and (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr 220px;
        gap: 3rem;
    }
}
