/* ==========================================================================
   Bi'Com - Main Stylesheet
   Header, Footer, Base styles. Content sections handled by Elementor.
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
    --color-purple-dark: #301A52;
    --color-purple: #4A287C;
    --color-purple-light: #F1EEF6;
    --color-purple-border: rgba(74, 40, 124, 0.15);
    --color-purple-shadow: rgba(74, 40, 124, 0.30);
    --color-yellow: #F5B417;
    --color-pink: #F24080;
    --color-white: #FFFFFF;
    --color-text: #333333;
    --color-text-light: #666666;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-poppins: 'Poppins', var(--font-family);
    --max-width: 1200px;
    --header-height: 81px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul {
    list-style: none;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    border-radius: 0;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 14px;
    line-height: 1.2;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

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

.btn--pink:hover {
    background-color: #d93670;
}

.btn--yellow {
    background-color: var(--color-yellow);
    color: var(--color-purple);
    font-family: var(--font-poppins);
}

.btn--yellow:hover {
    background-color: #e0a410;
}

.btn__arrow {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--color-purple-dark);
    height: var(--header-height);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 100%;
    padding: 0 32px;
    gap: 64px;
}

/* Logo */
.site-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0;
}

.site-logo__img {
    height: 49px;
    width: auto;
}

.site-logo__text {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-white);
    letter-spacing: 0.5px;
}

.site-logo__icon {
    width: 28px;
    height: 28px;
}

.site-logo__tagline {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: var(--color-white);
    opacity: 0.8;
    letter-spacing: 0.3px;
    margin-top: 2px;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

.main-nav__list {
    display: flex;
    align-items: center;
    gap: 24px;
}

.main-nav__link {
    display: inline-block;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0;
    color: var(--color-white);
    border-radius: 0;
    transition: background-color 0.2s ease;
}

.main-nav__link:hover,
.main-nav__link--active {
    background-color: var(--color-yellow);
    color: var(--color-white);
}

.header-social {
    display: flex;
    align-items: center;
}

.header-social__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.header-social__link svg {
    width: 15px;
    height: 15px;
}

.header-social__link:hover {
    opacity: 0.8;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--color-white);
}

.menu-toggle svg {
    width: 24px;
    height: 24px;
}

/* ==========================================================================
   ELEMENTOR OVERRIDES
   ========================================================================== */

/* Ensure Elementor content sits below sticky header */
.site-main {
    min-height: 50vh;
}

/* Make Elementor inherit the theme font */
.elementor-widget-heading .elementor-heading-title,
.elementor-widget-text-editor,
.elementor-widget-button .elementor-button {
    font-family: var(--font-family);
}

/* Remove default Elementor paragraph margins inside text-editor widgets */
.elementor-widget-text-editor p:last-child {
    margin-bottom: 0;
}

/* Bi'/Com explanation block */
.bicom-explain {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.bicom-explain__row {
    display: flex;
    align-items: center;
    gap: 34px;
}

.bicom-explain__icon {
    width: 82px;
    height: 78px;
    flex-shrink: 0;
}

.bicom-explain__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Founder section dark shape overlay (right 57%, #301A52 at 23% opacity) */
.elementor-section.bicom-founder {
    position: relative;
}

.elementor-section.bicom-founder > .elementor-container {
    position: relative;
    z-index: 2;
}

.elementor-section.bicom-founder::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 57%;
    height: 100%;
    background-color: #301A52;
    opacity: 0.23;
    z-index: 1;
    pointer-events: none;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background-color: var(--color-purple-dark);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
    padding: 97px 0 60px;
}

.site-footer .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 250px 1fr auto;
    gap: 40px;
    align-items: start;
    max-width: 1440px;
    padding: 0 97px;
}

/* Footer mosaic decoration */
.footer-mosaic {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 391px;
    height: 235px;
    z-index: 1;
    opacity: 0.06;
    display: grid;
    grid-template-columns: repeat(11, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 0;
}

.footer-mosaic::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(48, 26, 82, 0) 0%, rgba(48, 26, 82, 1) 100%);
    z-index: 1;
}

.footer-mosaic__cell {
    width: 100%;
    height: 100%;
}

/* Footer left - branding */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.footer-brand__logo {
    height: 66px;
    width: auto;
}

.footer-brand__tagline {
    font-size: 16px;
    font-weight: 400;
    color: var(--color-white);
    margin-top: -18px;
}

.footer-brand__btn {
    font-family: var(--font-poppins);
    font-weight: 500;
    font-size: 14px;
    background-color: var(--color-yellow);
    color: var(--color-purple);
    padding: 18px 20px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s ease;
}

.footer-brand__btn:hover {
    background-color: #e0a410;
}

.footer-brand__btn .btn__arrow {
    stroke: var(--color-white);
}

.footer-brand__address {
    font-family: var(--font-poppins);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--color-white);
}

/* Footer center - links */
.footer-links {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: repeat(4, auto);
    grid-auto-flow: column;
    gap: 18px 66px;
    padding-top: 17px;
}

.footer-links a {
    font-family: var(--font-poppins);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-white);
    transition: opacity 0.2s ease;
}

.footer-links a:hover {
    opacity: 0.8;
    color: var(--color-yellow);
}

/* Footer right - certifications */
.footer-certs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-certs__badge {
    max-width: 220px;
    height: auto;
}

.footer-certs__badge--fc {
    max-width: 180px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
    .site-header .container {
        padding: 0 16px;
        gap: 24px;
    }

    .main-nav__list {
        gap: 12px;
    }

    .main-nav__link {
        padding: 8px 10px;
        font-size: 13px;
    }

    .site-footer .container {
        grid-template-columns: 1fr 1fr;
        padding: 0 40px;
    }

    .footer-certs {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .main-nav,
    .header-social {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    /* Mobile menu open */
    .site-header.menu-open .main-nav {
        display: flex;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-purple-dark);
        padding: 16px 24px 24px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .site-header.menu-open .main-nav__list {
        flex-direction: column;
        width: 100%;
        gap: 4px;
    }

    .site-header.menu-open .main-nav__link {
        display: block;
        width: 100%;
        text-align: center;
    }

    .site-footer {
        padding: 60px 0 40px;
    }

    .site-footer .container {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 0 24px;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-links {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .footer-certs {
        align-items: center;
    }

    .footer-mosaic {
        display: none;
    }
}
