/* ==========================
   Global Styles & Resets
   ========================== */
@font-face {
    font-family: 'Crimson Text';
    src: url('fonts/crimson-text/CrimsonText-Regular.ttf');
    font-display: swap;
}

@font-face {
    font-family: "Nobel";
    src: url("https://use.typekit.net/af/9e0ad7/00000000000000003b9ae84c/27/l?primer=7cdcb44be4a7db...");
    font-display: swap;
}

:root {
    --font-nobel: "Nobel", sans-serif;
    --font-crimson: "Crimson Text", sans-serif;
    --grey-light: #F5F3F3;
    --grey-dark: #282828;
    --hc-red-dark: #5a1d2b;
    --hc-blue-light: #9EB4C2;
    --hc-white: white;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
    overflow-x: hidden;
    width: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}


body {
    font-family: var(--font-crimson);
    font-size: 18px;
    color: var(--grey-dark);
    background-color: var(--hc-red-dark);
    margin-bottom: 60px;
    width: 100%;
    padding-bottom: 0;
    overflow-x: hidden;
}

main {
    /*display: block;*/
    /*width: 100%;*/
    margin: 0 auto;
    padding: 0 15px;
    max-width: 100%;
    box-sizing: border-box;
}



body, h1, h2, h3, h4, h5, h6, p {
    font-family: var(--font-crimson);
}



.site {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.site-content {
    
    position: relative;
    z-index: 0;
    width: 100%;
    margin: auto;
    padding: 0;
    padding-bottom: 2rem;
    flex: 1 0 auto;
}

    .site-content > section:last-child {
        margin-bottom: 40px;
    }


/* ===== Header enligt mockup ===== */
.site-header {
    position: relative;
    z-index: 999;
}

/* Övre bildfält med logga + mönster */
.brand-hero {
    background: #781538 url('/logo/BMAHCCLogo_fabc76_on_background.png') center/cover no-repeat;
    height: 180px; /* justera 160–220px vid behov */
    margin: 12px 12px 12px; /* liten luft mot kanter */
    border: 2px solid rgba(255,255,255,0.25); /* tunn ram som i bilden */
    border-radius: 2px;
}

    .brand-hero .brand-link {
        display: block;
        width: 100%;
        height: 100%;
        text-indent: -9999px; /* hela ytan klickbar till /Index */
    }

/* Menyrad under i beige */
.main-nav {
    background-color: #FCEADC;
    box-shadow: none;
    border: 0;
    padding: 0; /* vi styr spacing via länkarna */
}

/* Menylänkar — versaler, bokstavsavstånd, jämn fördelning */
.main-menu .nav-link {
    color: #781538 !important;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 18px 14px; /* vertikal/horisontell luft */
    text-align: center;
}

    .main-menu .nav-link:hover,
    .main-menu .nav-link:focus {
        text-decoration: none;
        opacity: 0.8;
    }

/* Ta bort bootstrap-brand i denna layout (vi använder hero-bilden) */
.navbar-brand {
    display: none !important;
}

/* Toggler (mobil) – tre streck, mörkröda */
.custom-toggler {
    border: 0;
    padding: 12px 8px;
}

    .custom-toggler:focus {
        box-shadow: none;
    }

    .custom-toggler .toggler-bar {
        display: block;
        width: 26px;
        height: 2px;
        background: #781538;
        margin: 5px 0;
    }

/* Responsiv höjd på hero-bilden */
@media (min-width: 768px) {
    .brand-hero {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .brand-hero {
        height: 150px;
    }

    .main-menu .nav-link {
        letter-spacing: 0.18em;
        font-size: 0.9rem;
    }
}
/* ===== Header end ===== */


.btn:focus, 
.btn:active:focus, 
.btn-link.nav-link:focus, 
.form-control:focus, 
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}


@media (max-width: 768px) {
    .popup-content {
        width: 80%;
    }
}


#scrollToTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    background-color: white;
    color: #5a1d2b;
    padding: 12px 16px;
    font-size: 25px;
    border: none;
    border-radius: 50%;
    text-decoration: none;
    display: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
}

    #scrollToTopBtn:hover {
        background-color: #ddd;
    }




/* Anpassad Cookiebot-banner */
#CybotCookiebotDialog {
    bottom: 0 !important;
    top: auto !important;
    background-color: #ffffff !important;
    color: #000000 !important;
    border-top: 1px solid #ccc;
    font-family: 'Segoe UI', sans-serif;
    z-index: 99999;
}

/* Header och titel */
#CybotCookiebotDialogHeader,
#CybotCookiebotDialogBodyContentTitle {
    color: #000000 !important;
    font-weight: 600;
}

/* Knappar – liknande din stil (svart bakgrund, vit text, rundade hörn) */
#CybotCookiebotDialogBodyButtonAccept,
#CybotCookiebotDialogBodyButtonDecline,
#CybotCookiebotDialogBodyButtonCustomize {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 20px;
    padding: 10px 20px;
    margin: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    #CybotCookiebotDialogBodyButtonAccept:hover,
    #CybotCookiebotDialogBodyButtonDecline:hover,
    #CybotCookiebotDialogBodyButtonCustomize:hover {
        background-color: #333333 !important;
    }

/* Länkar i texten */
#CybotCookiebotDialogBody a {
    color: #000000 !important;
    text-decoration: underline;
}
