/* ============================================================
   EARU — European Amateur Radio Union
   Grav / Quark 2
   ============================================================ */

:root {
    --earu-navy: #0f2742;
    --earu-blue: #1768b2;
    --earu-blue-dark: #0f4f89;

    --earu-text: #34465a;
    --earu-muted: #6d7d8f;

    --earu-bg: #ffffff;
    --earu-soft: #f7f9fc;
    --earu-border: #e1e7ee;

    --earu-width: 1140px;
}


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

html,
body {
    margin: 0;
    padding: 0;
    background: var(--earu-bg) !important;
}

body {
    color: var(--earu-text);

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif !important;

    font-size: 16px;
    line-height: 1.65;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif !important;

    color: var(--earu-navy);
}

a {
    color: var(--earu-blue);
}


/* ============================================================
   REMOVE QUARK PAGE WRAPPER
   ============================================================ */

main#start,
#body-wrapper,
#body-wrapper.section,
#body-wrapper > .container {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    background: #ffffff !important;

    border: 0 !important;
    border-radius: 0 !important;

    box-shadow: none !important;
}


/* ============================================================
   HEADER
   ============================================================ */

#header {
    background: rgba(255, 255, 255, 0.98) !important;

    border-bottom: 1px solid var(--earu-border) !important;

    box-shadow: none !important;
}

#header .navbar {
    position: relative;

    width: 100%;
    max-width: var(--earu-width);

    min-height: 82px;

    margin: 0 auto !important;
    padding: 0 24px !important;
}


/* ============================================================
   BRAND
   ============================================================ */

/*
   Důležité:
   celý brand je posunut doprava tak, aby začátek textu
   "European Amateur Radio Union" odpovídal levému okraji
   obsahu hero.
*/

/* ============================================================
   BRAND
   ============================================================ */

.earu-brand {
    position: relative;

    display: flex;
    align-items: center;

    min-width: 390px;

    text-decoration: none !important;

    transform: none !important;
    margin: 0 !important;
}

.earu-brand-mark {
    position: relative;

    margin: 0 !important;

    color: var(--earu-navy);

    font-family:
        Inter,
        system-ui,
        sans-serif !important;

    font-size: 1.75rem;
    font-weight: 850;
    line-height: 1;

    letter-spacing: -0.045em;

    transform: none !important;
}

.earu-brand-name {
    position: absolute;

    /*
       Začátek tohoto textu je posunut doprava
       vůči začátku EARU.
    */
    left: 120px;

    margin: 0;
    padding-left: 16px;

    border-left: 2px solid var(--earu-blue);

    color: var(--earu-navy);

    font-family:
        Inter,
        system-ui,
        sans-serif !important;

    font-size: 0.95rem;
    font-weight: 650;
    line-height: 1.2;

    letter-spacing: -0.01em;

    white-space: nowrap;

    transform: none !important;
}


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

#header ul.navigation {
    display: flex;
    align-items: center;

    gap: 2px;

    margin: 0;
}

#header ul.navigation li {
    margin: 0 !important;
}

#header ul.navigation a {
    display: block;

    padding: 8px 10px !important;

    background: transparent !important;

    border: 0 !important;
    border-radius: 5px !important;

    color: var(--earu-text) !important;

    font-family:
        Inter,
        system-ui,
        sans-serif !important;

    font-size: 0.88rem !important;
    font-weight: 550 !important;

    line-height: 1.3;

    text-decoration: none !important;
    white-space: nowrap;
}

#header ul.navigation a:hover {
    background: var(--earu-soft) !important;
    color: var(--earu-blue) !important;
}

#header ul.navigation li.active > a,
#header ul.navigation a.active,
#header ul.navigation .selected > a {
    background: transparent !important;

    color: var(--earu-blue) !important;

    font-weight: 650 !important;
}


/* ============================================================
   HEADER ANIMATION
   ============================================================ */

#header,
#header .navbar,
.earu-brand-mark,
.earu-brand-name {
    transition:
        min-height 0.2s ease,
        font-size 0.2s ease,
        padding 0.2s ease;
}


/* hide Quark theme toggle */

#header .theme-toggle,
.theme-toggle {
    display: none !important;
}


/* ============================================================
   HERO
   ============================================================ */

.hero-earu {
    width: 100%;

    margin: 0 !important;

    background:
        radial-gradient(
            circle at 85% 50%,
            rgba(23, 104, 178, 0.08),
            transparent 35%
        ),
        #f7f9fc;

    border-bottom: 1px solid var(--earu-border);
}

.hero-earu-inner {
    width: 100%;
    max-width: var(--earu-width);

    margin: 0 auto;

    padding: 42px 24px 54px;
}

.hero-earu-kicker {
    margin: 0 0 12px;

    color: var(--earu-blue);

    font-size: 0.75rem;
    font-weight: 700;

    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-earu h1 {
    max-width: 760px;

    margin: 0 0 16px;

    color: var(--earu-navy);

    font-family:
        Inter,
        system-ui,
        sans-serif !important;

    font-size: clamp(2.65rem, 4.3vw, 4rem) !important;
    font-weight: 650 !important;

    line-height: 1.08 !important;
    letter-spacing: -0.035em !important;
}

.hero-earu p {
    max-width: 720px;

    margin: 0;

    color: var(--earu-muted);

    font-size: 1.12rem;
    line-height: 1.72;
}


/* ============================================================
   BUTTONS
   ============================================================ */

.earu-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;

    margin-top: 22px;
}

.earu-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 46px;

    padding: 0 18px;

    border-radius: 6px;

    font-size: 0.9rem;
    font-weight: 600;

    text-decoration: none !important;
}

.earu-button-primary {
    background: var(--earu-blue);

    border: 1px solid var(--earu-blue);

    color: #ffffff !important;
}

.earu-button-primary:hover {
    background: var(--earu-blue-dark);

    border-color: var(--earu-blue-dark);

    color: #ffffff !important;
}

.earu-button-secondary {
    background: #ffffff;

    border: 1px solid var(--earu-border);

    color: var(--earu-navy) !important;
}

.earu-button-secondary:hover {
    background: var(--earu-soft);
}


/* ============================================================
   CONTENT SECTION
   ============================================================ */

.earu-section {
    width: 100%;
    max-width: var(--earu-width);

    margin: 0 auto;

    padding: 48px 24px 58px;
}

.earu-section h2 {
    max-width: 760px;

    margin: 0 0 20px;

    color: var(--earu-navy);

    font-family:
        Inter,
        system-ui,
        sans-serif !important;

    font-size: clamp(1.95rem, 3vw, 2.7rem) !important;
    font-weight: 600 !important;

    line-height: 1.17 !important;
    letter-spacing: -0.025em !important;
}

.earu-section > p {
    max-width: 740px;

    margin-top: 0;

    color: var(--earu-muted);

    font-size: 1.04rem;
    line-height: 1.75;
}


/* ============================================================
   CARDS
   ============================================================ */

.earu-intro {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 18px;

    margin-top: 28px;
}

.earu-intro-card {
    padding: 22px;

    background: #ffffff;

    border: 1px solid var(--earu-border);
    border-radius: 7px;
}

.earu-intro-card > span {
    display: block;

    margin-bottom: 12px;

    color: var(--earu-blue);

    font-size: 0.72rem;
    font-weight: 700;

    letter-spacing: 0.1em;
}

.earu-intro-card h3 {
    margin: 0 0 10px;

    color: var(--earu-navy);

    font-family:
        Inter,
        system-ui,
        sans-serif !important;

    font-size: 1.18rem !important;
    font-weight: 650 !important;

    line-height: 1.35 !important;
    letter-spacing: -0.015em !important;
}

.earu-intro-card p {
    margin: 0;

    color: var(--earu-muted);

    font-size: 0.96rem;
    line-height: 1.66;
}

.earu-intro-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 850px) {
    .earu-intro-four {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */

@media (max-width: 1080px) {

    .earu-brand {
        margin-left: 40px;
    }

    #header ul.navigation a {
        padding-left: 8px !important;
        padding-right: 8px !important;

        font-size: 0.84rem !important;
    }

}


/* ============================================================
   RESPONSIVE — SMALL TABLET / MOBILE
   ============================================================ */

@media (max-width: 850px) {

    .earu-brand {
        margin-left: 0;
    }

    .earu-brand-name {
        display: none;
    }

    .hero-earu-inner {
        padding: 38px 20px 46px;
    }

    .hero-earu h1 {
        font-size: 2.75rem !important;
    }

    .earu-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .earu-intro {
        grid-template-columns: 1fr;
    }

}


/* ============================================================
   RESPONSIVE — PHONE
   ============================================================ */

@media (max-width: 540px) {

    .hero-earu-inner {
        padding: 34px 18px 42px;
    }

    .hero-earu h1 {
        font-size: 2.3rem !important;
    }

    .hero-earu p {
        font-size: 1rem;
    }

    .earu-actions {
        flex-direction: column;
    }

    .earu-button {
        width: 100%;
    }

    .earu-section {
        padding: 42px 18px 50px;
    }

    .earu-intro-card {
        padding: 22px;
    }

}

/* ============================================================
   FOOTER
   ============================================================ */

.earu-footer {
    width: 100%;

    margin-top: 24px;

    background: var(--earu-navy);
    color: rgba(255, 255, 255, 0.72);
}

.earu-footer-inner {
    width: 100%;
    max-width: var(--earu-width);

    margin: 0 auto;
    padding: 36px 24px 28px;
}

.earu-footer-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 40px;
}

.earu-footer-brand {
    display: flex;
    align-items: baseline;

    gap: 12px;

    white-space: nowrap;
}

.earu-footer-brand strong {
    color: #ffffff;

    font-size: 1.15rem;
    font-weight: 800;

    letter-spacing: -0.03em;
}

.earu-footer-brand span {
    color: rgba(255, 255, 255, 0.72);

    font-size: 0.88rem;
    font-weight: 600;
}

.earu-footer-main p {
    max-width: 520px;

    margin: 0;

    color: rgba(255, 255, 255, 0.62);

    font-size: 0.86rem;
    line-height: 1.6;
}

.earu-footer-meta {
    display: flex;
    align-items: center;

    gap: 9px;

    margin-top: 26px;
    padding-top: 20px;

    border-top: 1px solid rgba(255, 255, 255, 0.12);

    color: rgba(255, 255, 255, 0.48);

    font-size: 0.78rem;
}

.earu-footer-meta a {
    color: rgba(255, 255, 255, 0.68);

    text-decoration: none;
}

.earu-footer-meta a:hover {
    color: #ffffff;
}

.earu-footer-separator {
    opacity: 0.5;
}


@media (max-width: 720px) {

    .earu-footer-main {
        flex-direction: column;

        gap: 18px;
    }

    .earu-footer-brand {
        flex-direction: column;
        gap: 4px;

        white-space: normal;
    }

    .earu-footer-inner {
        padding: 30px 18px 24px;
    }

    .earu-footer-meta {
        flex-wrap: wrap;
    }

}

