/*
Theme Name: Norrecup Custom
Author: Tecweb21
Version: 1.0
Text Domain: norrecup-custom
*/

html, body {
    margin: 0 !important;
    padding: 0 !important;
}

body {
    overflow-x: hidden;
}

.norrecup-hero-slider {
    position: relative;
    min-height: 94vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.norrecup-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: norrecupSlider 24s infinite;
    transform: scale(1.04);
}

.norrecup-slide:nth-child(1) { animation-delay: 0s; }
.norrecup-slide:nth-child(2) { animation-delay: 6s; }
.norrecup-slide:nth-child(3) { animation-delay: 12s; }
.norrecup-slide:nth-child(4) { animation-delay: 18s; }

@keyframes norrecupSlider {
    0% { opacity: 0; transform: scale(1.04); }
    8% { opacity: 1; }
    25% { opacity: 1; transform: scale(1); }
    33% { opacity: 0; transform: scale(1); }
    100% { opacity: 0; }
}

.norrecup-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.45), rgba(0,0,0,.2));
    z-index: 1;
}

.norrecup-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: auto;
    padding: 90px 30px;
    color: #fff;
}

.norrecup-hero-content h1 {
    font-size: 76px;
    line-height: 1.05;
    margin: 0 0 30px;
    font-weight: 900;
}

@media (max-width: 800px) {
    .norrecup-hero-content h1 {
        font-size: 44px;
    }

    .norrecup-hero-slider {
        min-height: 82vh;
    }
}


/* RESPONSIVE FIXES */

* {
    box-sizing: border-box;
}

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

header {
    width: 100%;
}

header > div {
    flex-wrap: wrap !important;
    gap: 18px !important;
}

header nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

header nav a {
    margin-left: 0 !important;
    font-size: 14px;
}

@media (max-width: 900px) {

    header {
        position: relative !important;
        padding: 18px 20px !important;
    }

    header > div {
        display: block !important;
        text-align: center;
    }

    header a {
        display: inline-block;
        margin-bottom: 14px;
    }

    header nav {
        justify-content: center;
        gap: 12px;
    }

    .norrecup-hero-slider {
        min-height: 78vh;
    }

    .norrecup-hero-content {
        padding: 70px 22px;
        text-align: left;
    }

    .norrecup-hero-content h1 {
        font-size: 38px !important;
        line-height: 1.12 !important;
    }

    .norrecup-hero-content p {
        font-size: 17px !important;
    }

    section div[style*="grid-template-columns:repeat(3,1fr)"],
    section div[style*="grid-template-columns:1fr 1fr"],
    section div[style*="grid-template-columns:repeat(4,1fr)"] {
        grid-template-columns: 1fr !important;
    }

    section {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    h1 {
        font-size: 38px !important;
    }

    h2 {
        font-size: 34px !important;
        line-height: 1.15 !important;
    }

    h3 {
        font-size: 24px !important;
    }

    p {
        font-size: 16px !important;
    }

    a {
        max-width: 100%;
    }

    footer p {
        line-height: 1.8;
    }
}

@media (max-width: 520px) {

    body {
        width: 100%;
        overflow-x: hidden;
    }

    #wpadminbar {
        position: fixed !important;
    }

    header nav {
        flex-direction: column;
        align-items: center;
    }

    .norrecup-hero-slider {
        min-height: 72vh;
    }

    .norrecup-hero-content {
        padding: 55px 18px;
    }

    .norrecup-hero-content h1 {
        font-size: 32px !important;
    }

    .norrecup-hero-content a,
    section a {
        display: inline-block;
        width: 100%;
        text-align: center;
    }

    img[style*="height:520px"],
    img[style*="height:240px"],
    img[style*="height:210px"] {
        height: auto !important;
    }
}


/* HEADER + MOBILE MENU */

.norrecup-header {
    background:#080808;
    padding:22px 34px;
    position:sticky;
    top:0;
    z-index:9999;
}

.admin-bar .norrecup-header {
    top:32px;
}

.norrecup-header-inner {
    max-width:1200px;
    margin:auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.norrecup-logo {
    color:#fff;
    text-decoration:none;
    display:flex;
    flex-direction:column;
    line-height:1.1;
}

.norrecup-logo span {
    font-size:30px;
    font-weight:900;
    letter-spacing:.5px;
}

.norrecup-logo small {
    margin-top:5px;
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:.8px;
    color:#ddd;
}

.norrecup-nav {
    display:flex;
    align-items:center;
    gap:30px;
}

.norrecup-nav a {
    color:#fff;
    text-decoration:none;
    font-size:15px;
    font-weight:600;
}

.norrecup-menu-toggle {
    display:none;
    width:44px;
    height:36px;
    background:transparent;
    border:0;
    cursor:pointer;
    padding:0;
}

.norrecup-menu-toggle span {
    display:block;
    height:4px;
    background:#fff;
    margin:7px 0;
    border-radius:3px;
}

/* HERO MOBILE CENTER FIX */

@media (max-width: 800px) {

    .admin-bar .norrecup-header {
        top:46px;
    }

    .norrecup-header {
        padding:18px 22px !important;
    }

    .norrecup-header-inner {
        display:flex !important;
        align-items:center;
        justify-content:space-between;
    }

    .norrecup-logo {
        margin:0 !important;
        text-align:left !important;
    }

    .norrecup-logo span {
        font-size:27px;
    }

    .norrecup-logo small {
        font-size:10px;
    }

    .norrecup-menu-toggle {
        display:block;
    }

    .norrecup-nav {
        display:none;
        position:absolute;
        left:0;
        right:0;
        top:100%;
        background:#080808;
        padding:25px 20px 35px;
        flex-direction:column;
        gap:24px;
        text-align:center;
        border-top:1px solid rgba(255,255,255,.08);
    }

    .norrecup-nav.is-open {
        display:flex;
    }

    .norrecup-nav a {
        font-size:24px;
        margin:0 !important;
    }

    .norrecup-hero-slider {
        min-height:calc(100vh - 86px) !important;
        align-items:center !important;
    }

    .norrecup-hero-content {
        width:100%;
        max-width:100%;
        padding:40px 24px !important;
        text-align:center !important;
        margin:auto !important;
    }

    .norrecup-hero-content h1 {
        font-size:38px !important;
        line-height:1.16 !important;
        max-width:100%;
        margin-left:auto !important;
        margin-right:auto !important;
    }

    .norrecup-hero-content p {
        max-width:100%;
        margin-left:auto !important;
        margin-right:auto !important;
        font-size:18px !important;
        line-height:1.65 !important;
    }

    .norrecup-hero-content a {
        width:auto !important;
        min-width:230px;
        text-align:center;
        margin:auto;
    }

    .norrecup-hero-overlay {
        background:rgba(0,0,0,.56) !important;
    }
}

@media (max-width: 420px) {

    .norrecup-hero-content h1 {
        font-size:33px !important;
    }

    .norrecup-hero-content p {
        font-size:17px !important;
    }

    .norrecup-nav a {
        font-size:22px;
    }
}


/* HERO MOBILE FINAL ALIGNMENT */

@media (max-width: 768px) {

    .norrecup-hero-slider {
        min-height: calc(100vh - 130px) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .norrecup-hero-overlay {
        background: rgba(0,0,0,.55) !important;
    }

    .norrecup-hero-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 40px 24px !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .norrecup-hero-content h1 {
        max-width: 92vw !important;
        margin: 0 auto 24px auto !important;
        font-size: 40px !important;
        line-height: 1.12 !important;
        text-align: center !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
    }

    .norrecup-hero-content p {
        max-width: 88vw !important;
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
        line-height: 1.55 !important;
    }

    .norrecup-hero-content a {
        width: auto !important;
        min-width: 240px !important;
        max-width: 90vw !important;
        text-align: center !important;
        margin: 18px auto 0 auto !important;
    }
}

@media (max-width: 420px) {

    .norrecup-hero-content h1 {
        font-size: 36px !important;
    }

    .norrecup-hero-content p {
        font-size: 18px !important;
    }
}


/* HERO MOBILE CENTER FIX */

.norrecup-hero-content {
    text-align: center;
    width: 100%;
    max-width: 980px;
}

.norrecup-hero-content h1,
.norrecup-hero-content p {
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 700px) {

    .norrecup-hero-content {
        max-width: 100%;
        padding-left: 22px !important;
        padding-right: 22px !important;
        text-align: center !important;
    }

    .norrecup-hero-content h1 {
        max-width: 340px !important;
        font-size: 42px !important;
        line-height: 1.15 !important;
        letter-spacing: -0.5px;
        overflow-wrap: normal;
        word-break: normal;
    }

    .norrecup-hero-content p {
        max-width: 330px !important;
        font-size: 21px !important;
        line-height: 1.55 !important;
    }

    .norrecup-hero-content a {
        width: auto !important;
        min-width: 260px;
        max-width: 92%;
    }
}

@media (max-width: 390px) {

    .norrecup-hero-content h1 {
        max-width: 320px !important;
        font-size: 38px !important;
    }

    .norrecup-hero-content p {
        max-width: 310px !important;
        font-size: 19px !important;
    }
}


/* FORCE HERO MOBILE TEXT FIX - FINAL */

@media screen and (max-width: 700px) {

    .norrecup-hero-content {
        width: 100% !important;
        max-width: 100% !important;
        padding: 48px 20px !important;
        margin: 0 auto !important;
        text-align: center !important;
        overflow: hidden !important;
    }

    .norrecup-hero-content h1 {
        display: block !important;
        width: 100% !important;
        max-width: 315px !important;
        margin: 0 auto 28px auto !important;
        padding: 0 !important;
        font-size: 34px !important;
        line-height: 1.15 !important;
        letter-spacing: 0 !important;
        text-align: center !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        word-break: normal !important;
    }

    .norrecup-hero-content p {
        display: block !important;
        width: 100% !important;
        max-width: 315px !important;
        margin: 0 auto 34px auto !important;
        font-size: 18px !important;
        line-height: 1.55 !important;
        text-align: center !important;
    }

    .norrecup-hero-content a {
        width: auto !important;
        min-width: 240px !important;
        max-width: 315px !important;
        margin: 0 auto !important;
        text-align: center !important;
    }
}

@media screen and (max-width: 380px) {
    .norrecup-hero-content h1 {
        max-width: 285px !important;
        font-size: 31px !important;
    }

    .norrecup-hero-content p {
        max-width: 285px !important;
        font-size: 17px !important;
    }
}


/* HERO MOBILE FINAL FIX */

@media (max-width: 768px) {

    .norrecup-hero-content {
        width: 100%;
        max-width: 100% !important;
        padding: 40px 24px 70px !important;
        text-align: center !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .norrecup-hero-content h1 {
        width: 100%;
        max-width: 100%;
        font-size: 58px !important;
        line-height: 1.08 !important;
        text-align: center !important;

        word-break: normal !important;
        overflow-wrap: normal !important;
        hyphens: none !important;

        margin-left: auto !important;
        margin-right: auto !important;
    }

    .norrecup-hero-content p {
        max-width: 95% !important;
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .norrecup-hero-content a {
        width: auto !important;
        min-width: 260px;
    }
}

@media (max-width: 520px) {

    .norrecup-hero-content h1 {
        font-size: 42px !important;
        line-height: 1.12 !important;
        letter-spacing: -.5px;
    }

}


/* FIX FINAL HERO MOBILE */

@media (max-width: 768px) {

    .norrecup-hero-content h1 {

        font-size: 28px !important;
        line-height: 1.18 !important;

        max-width: 100% !important;
        width: 100% !important;

        padding: 0 10px !important;
        margin: 0 auto 28px auto !important;

        text-align: center !important;

        word-break: keep-all !important;
        overflow-wrap: normal !important;
        white-space: normal !important;
        hyphens: none !important;

    }

}

