/* =========================================
   BAGHEERASDREAM - GLOBAL STYLES
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');


/* =========================================
   CSS VARIABLES
   ========================================= */

:root {
    --color-background: #F8F5EF;
    --color-secondary: #EAE3D8;
    --color-text: #292724;
    --color-muted: #77736D;
    --color-gold: #B49A70;
    --color-blue: #8996A3;
    --color-white: #FFFFFF;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'DM Sans', sans-serif;
    --container-width: 1280px;
}


/* =========================================
   RESET
   ========================================= */

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

html {
    scroll-behavior: smooth;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}


/* =========================================
   MAIN LAYOUT
   ========================================= */

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
    width: 100%;
}


/* =========================================
   NAVBAR
   ========================================= */

.site-header {
    width: 100%;
    height: 100px;
    background-color: var(--color-background);
    display: flex;
    align-items: center;
    position: relative;
    z-index: 100;
    border-bottom: 1px solid rgba(41, 39, 36, 0.08);
}

.navbar-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* BRAND */

.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color-text);
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 27px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.brand-subtitle {
    font-size: 9px;
    letter-spacing: 3px;
    color: var(--color-gold);
    font-weight: 600;
    margin-top: 2px;
}


/* NAVIGATION */

.main-navigation {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}

.nav-link {
    white-space: nowrap;
    font-size: 12px;
}

.nav-link {
    position: relative;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--color-text);
    transition: color 0.3s ease;
}

    .nav-link::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -8px;
        width: 0;
        height: 1px;
        background-color: var(--color-gold);
        transition: width 0.3s ease;
    }

    .nav-link:hover,
    .nav-link.active {
        color: var(--color-gold);
    }

        .nav-link:hover::after,
        .nav-link.active::after {
            width: 100%;
        }


/* =========================================
   MOBILE NAVIGATION
   ========================================= */

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
}

@media (max-width: 850px) {

    .site-header {
        height: 85px;
    }

    .navbar-container {
        padding: 0 24px;
    }

    .brand-name {
        font-size: 23px;
    }

    .nav-toggle-label {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

        .nav-toggle-label span {
            display: block;
            width: 25px;
            height: 2px;
            background-color: var(--color-text);
            transition: 0.3s ease;
        }

    .main-navigation {
        position: absolute;
        top: 85px;
        left: 0;
        width: 100%;
        background-color: var(--color-background);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 25px;
        padding: 30px 20px;
        border-bottom: 1px solid var(--color-secondary);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }

    .nav-toggle:checked ~ .main-navigation {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}


/* =========================================
   LANGUAGE SELECTOR
   ========================================= */

.language-selector {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--color-muted);
}

.language-link {
    color: var(--color-muted);
    transition: color 0.3s ease;
}

    .language-link:hover,
    .language-link.active {
        color: var(--color-gold);
    }

/* =========================================
   GLOBAL ELEMENTS
   ========================================= */

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 500;
}

button {
    cursor: pointer;
}


/* =========================================
   BLAZOR ERROR UI
   ========================================= */

#blazor-error-ui {
    background: #fff4ce;
    color: #292724;
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 25px;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        float: right;
    }


/* =========================================
   FORM VALIDATION
   ========================================= */

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}


/* =========================================
   ACCESSIBILITY
   ========================================= */

:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 4px;
}
