
/* ============================================
   XMATHEMATICS.COM
   ALGEMENE STYLESHEET
   /stylesheets/style.css
   ============================================ */

/* BASISKLEUREN */

:root {
    --navy: #082b4d;
    --navy-dark: #05233e;
    --blue: #0879c7;
    --blue-light: #dcefff;
    --text: #102441;
    --muted: #4e6178;
    --border: #c9dcef;
    --background: #f5f9fd;
    --white: #ffffff;

    --green: #1d7654;
    --gold: #b88728;
    --purple: #6454a5;
    --teal: #168d93;

    --radius: 15px;
    --shadow: 0 4px 12px rgba(10, 48, 85, .12);
}

/* ALGEMEEN */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: linear-gradient(
        180deg,
        #eef6ff 0%,
        #ffffff 52%,
        #f3f9ff 100%
    );
    line-height: 1.45;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid #f2bc57;
    outline-offset: 3px;
}

.container {
    width: min(1660px, 96%);
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   NAVIGATIEBALK
   ============================================ */

.site-header {
    position: relative;
    z-index: 20;
    background: linear-gradient(
        180deg,
        #e4f1fd,
        #f8fbff
    );
    border-bottom: 2px solid #d4e3f3;
}

.header-inner {
    max-width: 1660px;
    width: 96%;
    min-height: 65px;
    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* LOGO BOVENAAN */

.brand {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;

    font-size: clamp(19px, 1.5vw, 29px);
    font-weight: 800;
    letter-spacing: -.7px;
}

.brand-x {
    display: inline-block;
    margin-right: 7px;

    font-size: 1.85em;
    font-weight: 900;
    font-style: italic;
    line-height: .9;

    letter-spacing: -5px;
    padding-right: 5px;

    background: linear-gradient(
        135deg,
        #10b4e9 15%,
        #0875c7 85%
    );

    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-name {
    color: #092849;
}

.brand-name span {
    font-size: .78em;
}

/* MENU */

.main-nav {
    display: flex;
    align-items: center;
    gap: clamp(5px, 1.7vw, 25px);
}

.main-nav a {
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 10px;
    transition: .2s ease;
}

.main-nav a:hover {
    background: #dcecfb;
    color: #07518e;
}

.main-nav a.active {
    color: #ffffff;
    background: linear-gradient(
        180deg,
        #178cda,
        #075392
    );
    box-shadow: var(--shadow);
}

.menu-toggle,
.menu-button {
    display: none;
}

/* ============================================
   BLAUWE WISKUNDE HEADER
   ============================================ */

.hero {
    position: relative;
    overflow: hidden;
    color: white;

    background:
        radial-gradient(
            ellipse at 50% 120%,
            #166aa8 0%,
            transparent 60%
        ),
        linear-gradient(
            115deg,
            #07345b,
            #063665 48%,
            #073254
        );

    border-bottom: 4px solid #69b9e6;
}

/* SUBTIELE DECORATIE */

.hero::before,
.hero::after {
    content: "";
    position: absolute;

    width: 40%;
    height: 110px;
    bottom: -75px;

    border-radius: 50%;
    opacity: .25;
    pointer-events: none;
}

.hero::before {
    left: -12%;
    background: #39add9;
}

.hero::after {
    right: -15%;
    background: #2677ae;
}

.hero-inner {
    width: min(1660px, 96%);
    min-height: 205px;
    margin: auto;

    display: grid;
    grid-template-columns: 1fr 2.5fr 1fr;
    align-items: center;
    gap: 20px;

    position: relative;
    z-index: 1;
}

.hero-center {
    text-align: center;
    padding: 20px 0 25px;
    min-width: 0;
}

/* GROOT LOGO */

.hero-logo {
    font-size: clamp(32px, 3.35vw, 64px);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.2;
    white-space: nowrap;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;
}

.hero-x {
    font-size: 1.6em;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -9px;
    padding-right: 14px;

    background: linear-gradient(
        135deg,
        #18c1f3,
        #1d89e0
    );

    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-dot {
    font-size: .75em;
}

/* SLOGAN */

.hero-slogan {
    margin: -3px 0 19px;

    font-size: clamp(13px, 1.55vw, 25px);
    letter-spacing: 1px;
    color: #d7eefe;
}

/* ZOEKBALK */

.search-form {
    max-width: 840px;
    margin: auto;
    padding: 5px;

    display: flex;
    align-items: center;
    gap: 10px;

    background: white;
    border-radius: 28px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .2);
}

.search-icon {
    color: #19436e;
    font-size: 35px;
    padding-left: 13px;
    line-height: 1;
}

.search-form input {
    min-width: 0;
    flex: 1;

    border: 0;
    background: transparent;
    outline: none;

    font-size: 15px;
    color: #173655;
}

.search-form button {
    border: 0;
    border-radius: 22px;
    padding: 11px 28px;

    font-weight: 700;
    color: white;

    background: linear-gradient(
        180deg,
        #0c90df,
        #075091
    );

    cursor: pointer;
}

.search-form button:hover {
    background: #075b9c;
}

/* WISKUNDIGE FIGUREN */

.hero-math {
    opacity: .9;
    text-align: center;
}

.hero-math svg {
    width: min(100%, 210px);
    height: auto;
}

.pi-symbol {
    display: block;
    color: #9ddfeb;

    font: italic 43px Georgia, serif;
    margin-top: -25px;
}

.hero-equation {
    font: italic 24px Georgia, serif;
    margin-bottom: 4px;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    position: relative;
    margin-top: 50px;
    padding: 30px 0 24px;

    color: #dceeff;
    background: linear-gradient(
        110deg,
        #0a3a67,
        #064777
    );

    border-top: 4px solid #8fc4e6;
}

/* ZEER SUBTIELE GOLF */

.site-footer::before {
    content: "";
    position: absolute;

    left: 0;
    right: 0;
    top: -35px;
    height: 35px;

    background: #aacfe9;

    clip-path: polygon(
        0 70%,
        20% 82%,
        45% 100%,
        70% 75%,
        100% 45%,
        100% 100%,
        0 100%
    );

    opacity: .6;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;

    font-size: 13px;
}

.footer-inner p {
    margin: 0;
}

/* ============================================
   TABLET
   ============================================ */

@media (max-width: 1050px) {

    .hero-inner {
        grid-template-columns: .6fr 3fr .6fr;
    }

    .hero-math {
        opacity: .4;
    }

    .main-nav {
        gap: 3px;
    }

    .main-nav a {
        padding: 9px;
        font-size: 13px;
    }
}

/* ============================================
   MOBIEL
   ============================================ */

@media (max-width: 700px) {

    .container,
    .header-inner,
    .hero-inner {
        width: 94%;
    }

    /* NAVIGATIE */

    .header-inner {
        min-height: 62px;
        flex-wrap: wrap;
        gap: 0;
    }

    .brand {
        font-size: 20px;
    }

    .menu-button {
        width: 42px;
        height: 39px;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;

        margin-left: auto;
        cursor: pointer;

        border-radius: 8px;
        background: #e0eefc;
        border: 1px solid #c0d9ee;
    }

    .menu-button > span {
        height: 3px;
        width: 22px;
        background: #0b487a;
        border-radius: 3px;
    }

    .main-nav {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
        padding: 10px 0 15px;
    }

    .menu-toggle:checked ~ .main-nav {
        display: flex;
    }

    .main-nav a {
        display: block;
        padding: 12px 15px;
        font-size: 15px;
    }

    /* BLAUWE HEADER */

    .hero-inner {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .hero-math {
        display: none;
    }

    .hero-center {
        padding: 27px 0 32px;
    }

    .hero-logo {
        font-size: clamp(25px, 6.5vw, 39px);
        letter-spacing: -1px;
    }

    .hero-x {
        padding-right: 10px;
        letter-spacing: -5px;
    }

    .hero-slogan {
        margin: 5px 0 22px;
        font-size: 14px;
    }

    /* ZOEKBALK */

    .search-form {
        border-radius: 14px;
        padding: 5px;
    }

    .search-icon {
        font-size: 26px;
        padding-left: 5px;
    }

    .search-form input {
        font-size: 13px;
    }

    .search-form button {
        padding: 11px 13px;
        border-radius: 10px;
        font-size: 13px;
    }

    /* FOOTER */

    .footer-inner {
        justify-content: center;
        text-align: center;
    }
}

/* ============================================
   KLEINE TELEFOONS
   ============================================ */

@media (max-width: 380px) {

    .brand {
        font-size: 17px;
    }

    .hero-logo {
        font-size: 24px;
    }

    .hero-slogan {
        font-size: 13px;
    }
}
