/* === BEK AGENCY - GLOBAL THEME === */
/* Source of Truth for Design Tokens, Typography, Navbar, Footer, and Common Components */

:root {
    /* === COLORS === */
    /* Bases */
    --bg-dark: #121212;
    --bg-light: #F4F2ED;
    /* Warm studio beige */
    --bg-white: #ffffff;

    /* Text */
    --text-white: #ffffff;
    --text-dark: #1a1a1a;
    --text-muted: #888888;
    --text-muted-light: rgba(255, 255, 255, 0.63);

    /* Accents */
    --accent: #E5E5E5;
    --primary: #1a1a1a;
    /* Default primary usually dark */
    --border-light: rgba(255, 255, 255, 0.1);
    --border-dark: rgba(0, 0, 0, 0.1);

    /* === COMPATIBILITY COLORS (Tailwind-like) === */
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-900: #111827;
    --color-primary: #1a1a1a;

    /* === FONTS === */
    /* Headings: Inter or SF Pro Display */
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    /* Body: SF Pro Text / System */
    --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    /* Menu: Switzer (as requested in style.css comments) or SF Pro */
    --font-menu: 'Switzer', -apple-system, BlinkMacSystemFont, sans-serif;

    /* === SPACING & LAYOUT === */
    --container-width: 1400px;
    --padding-page: 5vw;
    --header-height: 100px;
}

/* === RESET === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    line-height: 1.5;
}

/* === TYPOGRAPHY === */
h1,
h2,
h3,
h4,
h5,
h6,
a {
    font-family: var(--font-heading);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* === NAVBAR (ORIGINAL REVERTED) === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: transparent;
    border-bottom: none;
}

.logo img {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    flex: 1;
    display: flex;
    justify-content: center;
    position: static;
    transform: none;
    background: transparent;
    border: none;
    padding: 0;
}

.nav-links ul {
    display: flex;
    justify-content: space-evenly;
    width: 95%;
    list-style: none;
    align-items: center;
    gap: 0;
    backdrop-filter: blur(24px);
    background-color: rgba(255, 255, 255, 0.02);
    opacity: 1;
    padding: 14px;
    /* Re-adding border-radius if it was implicitly desired, but user said 'comme avant'. 
       Original CSS trace didn't show it, but 'pill-shaped' implies it. 
       I will ADD it because glassmorphism usually needs it, 
       but I will respect the 100% strict revert if it looks wrong. 
       Let's stick to strict revert for now based on file read. */
}

.nav-links a {
    text-decoration: none;
    font-family: var(--font-menu);
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 1;
}

.menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 101;
}

.menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: white;
    transition: 0.3s;
}

/* === RESPONSIVE NAVBAR === */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        display: none;
        /* Hide desktop menu on mobile */
    }

    .logo img {
        height: 50px;
        /* Smaller logo on mobile */
    }

    :root {
        --padding-page: 1.5rem;
        /* Smaller side padding */
    }
}

/* === HERO BASE (Restored for all pages) === */
.hero {
    /* Base hero styles needed for services/contact pages */
    position: relative;
    /* Animated Gradient Background */
    background: linear-gradient(-45deg, #1a1a1a, #000000, #222222, #121212);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    /* Dimensions might vary per page but background is shared */
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* === MENU OVERLAY === */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-white);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    padding: 2rem var(--padding-page);
    transform: translateY(-100%);
    transition: transform 0.8s cubic-bezier(0.85, 0, 0.15, 1);
    color: var(--text-dark);
}

.menu-overlay.active {
    transform: translateY(0);
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.menu-logo img {
    height: 70px;
    width: auto;
}

.close-btn {
    width: 30px;
    height: 30px;
    position: relative;
    cursor: pointer;
}

.close-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-dark);
    position: absolute;
    top: 50%;
    left: 0;
    transition: 0.3s;
}

.close-btn span:first-child {
    transform: rotate(45deg);
}

.close-btn span:last-child {
    transform: rotate(-45deg);
}

.menu-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.menu-label {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.menu-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.menu-links li a {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 300;
    color: var(--text-dark);
    line-height: 1.1;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: block;
}

.menu-links li a:hover {
    opacity: 0.5;
    transform: skewX(-5deg);
}

.menu-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
}

.menu-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.menu-email {
    font-size: 1.5rem;
    color: var(--text-dark);
    font-weight: 400;
}

.menu-phone {
    font-size: 1rem;
    color: var(--text-muted);
}

.menu-socials {
    display: flex;
    gap: 1rem;
}

.social-pill {
    padding: 8px 16px;
    border: 1px solid #eee;
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.social-pill:hover {
    background-color: var(--text-dark);
    color: var(--text-white);
    border-color: var(--text-dark);
}

/* === FOOTER (Merged) === */
.main-footer {
    background-color: #000000;
    color: var(--text-white);
    padding: 10rem var(--padding-page) 4rem;
    position: relative;
    z-index: 10;
}

.footer-quote {
    margin-bottom: 8rem;
    max-width: 1000px;
}

.footer-quote h2 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -3px;
    color: var(--text-white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: 6rem;
    border-bottom: 1px solid var(--border-light);
}

.footer-brand .footer-logo {
    height: 70px;
    margin-bottom: 2rem;
}

.footer-brand p {
    font-size: 1.1rem;
    opacity: 0.6;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-col ul li {
    margin-bottom: 1rem;
}

.footer-col ul li a {
    color: var(--text-white);
    font-size: 1rem;
    transition: opacity 0.3s ease;
}

.footer-col ul li a:hover {
    opacity: 0.6;
}

.footer-bottom {
    padding-top: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a:hover {
    color: var(--text-white);
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .main-footer {
        padding: 6rem 1.5rem 3rem;
    }

    .footer-quote {
        margin-bottom: 5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-bottom {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 2rem;
    }

    .footer-legal {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    /* Responsive Menu Overlay */
    .menu-links li a {
        font-size: 3.5rem;
    }
}

/* === BUTTONS & CTAS === */
.hero-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    color: var(--text-white);
    /* Default to white, might need dark override */
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 100px;
    overflow: hidden;
    transition: border-color 0.4s ease, color 0.4s ease;
    background: transparent;
    z-index: 1;
    cursor: pointer;
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-white);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.hero-cta:hover {
    color: var(--text-dark);
    border-color: var(--bg-white);
}

.hero-cta:hover::before {
    transform: scaleX(1);
}

/* Variant for light backgrounds if needed */
.hero-cta.dark-mode {
    color: var(--text-dark);
    border-color: rgba(0, 0, 0, 0.3);
}

.hero-cta.dark-mode::before {
    background: var(--text-dark);
}

.hero-cta.dark-mode:hover {
    color: var(--text-white);
}

/* === COMMON UTILITIES === */
.slide-up,
.fade-in,
.scale-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-up.visible,
.fade-in.visible,
.scale-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    ::before,
    ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}