/* ============================================
   manalbernoussi.com — Design System CSS
   Shared across all pages (desktop + mobile)
   Palette: warm tones from MB_Hero.webp
   ============================================ */

/* --- Design Tokens --- */
:root {
    --color-deep: #1B1525;
    --color-dark: #2D2233;
    --color-brown: #3A2A20;
    --color-bronze: #C4956A;
    --color-blush: #D4A08A;
    --color-warm-bg: #FAF7F4;
    --color-light-bg: #F3EDE8;
    --color-text: #2D2233;
    --color-muted: #7A6E65;
    --color-border: #E8E0D8;
    --color-on-dark: #F5EDE8;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-warm-bg);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6,
.font-headline,
.nav-item {
    font-family: 'Montserrat', sans-serif;
}

h1 { font-size: 48px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: 36px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: 24px; font-weight: 700; line-height: 1.3; }

@media (max-width: 767px) {
    h1 { font-size: 32px; }
    h2 { font-size: 24px; }
    h3 { font-size: 20px; }
}

/* --- Material Symbols --- */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
}

/* --- Header / Navigation --- */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    background: rgba(250, 247, 244, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 1px 3px rgba(27, 21, 37, 0.04);
    transition: box-shadow 0.3s ease;
}

/* Header transparent on hero pages */
.site-header.header-hero {
    background: transparent;
    border-bottom: none;
    box-shadow: none;
}

.site-header.header-hero.scrolled {
    background: rgba(27, 21, 37, 0.92);
    border-bottom: 1px solid rgba(196, 149, 106, 0.15);
    box-shadow: 0 4px 12px rgba(27, 21, 37, 0.2);
}

.site-header .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 80px;
    height: 80px;
}

@media (max-width: 767px) {
    .site-header .header-inner {
        padding: 0 20px;
        height: 64px;
    }
}

.site-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--color-text);
    text-decoration: none;
}

.header-hero .site-logo {
    color: var(--color-on-dark);
}

.header-hero.scrolled .site-logo {
    color: var(--color-on-dark);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

@media (max-width: 767px) {
    .site-nav { display: none; }
    .mobile-menu-btn { display: block; }
}

@media (min-width: 768px) {
    .mobile-menu-btn { display: none; }
}

.site-nav a {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--color-muted);
    text-decoration: none;
    transition: color 0.2s ease;
    padding-bottom: 4px;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--color-text);
}

.site-nav a.active {
    font-weight: 700;
    border-bottom: 2px solid var(--color-bronze);
}

/* Header hero nav colors */
.header-hero .site-nav a {
    color: rgba(245, 237, 232, 0.6);
}

.header-hero .site-nav a:hover,
.header-hero .site-nav a.active {
    color: var(--color-on-dark);
}

.header-hero .site-nav a.active {
    border-bottom-color: var(--color-bronze);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.lang-switch {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--color-muted);
}

.lang-switch .lang-active {
    color: var(--color-text);
}

.header-hero .lang-switch {
    color: rgba(245, 237, 232, 0.5);
}

.header-hero .lang-switch .lang-active {
    color: var(--color-on-dark);
}

@media (max-width: 767px) {
    .lang-switch { display: none; }
}

/* --- Hero Section --- */
.hero-fullpage {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-fullpage .hero-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.hero-fullpage .hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left top;
}

/* Light overlay — gradient is already baked into hero_main.jpg */
.hero-fullpage .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to top,
        rgba(27, 21, 37, 0.5) 0%,
        transparent 40%
    );
}

.hero-fullpage .hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 80px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hero-fullpage .hero-text {
    max-width: 480px;
    text-align: left;
}

.hero-fullpage .hero-text h1 {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.hero-fullpage .hero-text .hero-subtitle {
    font-size: 17px;
    font-weight: 400;
    color: rgba(245, 237, 232, 0.85);
    letter-spacing: 0.04em;
    margin-bottom: 36px;
    line-height: 1.6;
}

.hero-fullpage .hero-text .hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--color-bronze);
    color: var(--color-deep);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 18px 42px;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.1s ease;
}

.hero-fullpage .hero-text .hero-cta:hover {
    background: var(--color-blush);
}

.hero-fullpage .hero-text .hero-cta:active {
    transform: scale(0.98);
}

/* Hero variant: text on left */
.hero-fullpage.hero-left .hero-content {
    justify-content: flex-start;
}

/* Hero mobile */
@media (max-width: 767px) {
    .hero-fullpage {
        min-height: 100vh;
        align-items: flex-end;
    }

    /* Disable parallax on mobile for performance */
    .hero-fullpage .hero-bg {
        position: absolute;
    }

    .hero-fullpage .hero-bg img {
        object-position: 25% center;
    }

    .hero-fullpage .hero-overlay {
        background: linear-gradient(
            to top,
            rgba(27, 21, 37, 0.85) 0%,
            rgba(27, 21, 37, 0.4) 35%,
            transparent 60%
        );
    }

    .hero-fullpage .hero-content {
        padding: 0 20px 48px;
        justify-content: flex-start;
    }

    .hero-fullpage .hero-text {
        max-width: 100%;
    }

    .hero-fullpage .hero-text h1 {
        font-size: 36px;
    }

    .hero-fullpage .hero-text .hero-subtitle {
        font-size: 14px;
    }

    .hero-fullpage .hero-text .hero-cta {
        width: 100%;
        justify-content: center;
        padding: 18px 24px;
    }
}

/* --- Mobile Menu Overlay --- */
.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-warm-bg);
    z-index: 49;
    padding: 40px 20px;
    flex-direction: column;
    gap: 24px;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--color-muted);
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
}

.mobile-menu a.active {
    color: var(--color-text);
    font-weight: 700;
}

/* --- Footer --- */
.site-footer {
    background: var(--color-deep);
    color: var(--color-on-dark);
    width: 100%;
    padding: 80px 0 40px;
}

.site-footer .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 80px;
}

@media (max-width: 767px) {
    .site-footer {
        padding: 48px 0 32px;
    }
    .site-footer .footer-inner {
        padding: 0 20px;
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
}

@media (max-width: 767px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
}

.footer-brand {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(245, 237, 232, 0.6);
}

.footer-heading {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-bronze);
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(245, 237, 232, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--color-on-dark);
}

.footer-social {
    display: flex;
    gap: 16px;
}

@media (max-width: 767px) {
    .footer-social { justify-content: center; }
}

.footer-social a {
    font-size: 14px;
    color: rgba(245, 237, 232, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-social a:hover {
    color: var(--color-on-dark);
}

.footer-bottom {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(196, 149, 106, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 767px) {
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

.footer-bottom p,
.footer-bottom a {
    font-size: 12px;
    color: var(--color-muted);
}

.footer-bottom a {
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom a:hover {
    color: var(--color-on-dark);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-deep);
    color: var(--color-on-dark);
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 16px 32px;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.1s ease;
}

.btn-primary:hover {
    background: var(--color-dark);
}

.btn-primary:active {
    transform: scale(0.98);
}

@media (max-width: 767px) {
    .btn-primary {
        width: 100%;
        justify-content: center;
        padding: 18px 24px;
    }
}

.btn-bronze {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-bronze);
    color: var(--color-deep);
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 16px 32px;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.1s ease;
}

.btn-bronze:hover {
    background: var(--color-blush);
}

.btn-bronze:active {
    transform: scale(0.98);
}

/* --- Parallax: content after hero scrolls over the fixed bg --- */
.hero-fullpage + section,
.hero-fullpage ~ section,
.hero-fullpage ~ footer,
.site-footer {
    position: relative;
    z-index: 2;
}

/* --- Utility --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 80px;
}

@media (max-width: 767px) {
    .container {
        padding: 0 20px;
    }
}

.section-spacing {
    padding: 96px 0;
}

@media (max-width: 767px) {
    .section-spacing {
        padding: 64px 0;
    }
}

/* --- Images --- */
img {
    max-width: 100%;
    height: auto;
}
