/* ============================================================
   Share50 site stylesheet
   File suggestion: /css/share50-site.css
   Requires: Bootstrap 5.3+
   ============================================================ */

/* ------------------------------
   Base tokens
   ------------------------------ */

:root {
    --s50-blue: #0153A3;
    --s50-blue-dark: #01396f;
    --s50-blue-soft: rgba(1, 83, 163, .08);
    --s50-ink: #07111f;
    --s50-muted: #657287;
    --s50-soft: #f4f7fb;
    --s50-line: rgba(7, 17, 31, .12);
    --s50-white-line: rgba(255, 255, 255, .14);
    --s50-radius: 28px;
    --s50-radius-sm: 18px;
    --s50-shadow: 0 28px 80px rgba(7, 17, 31, .08);
    --s50-shadow-soft: 0 18px 55px rgba(7, 17, 31, .06);
    --s50-nav-height: 78px;

    /*
       Override per page like:
       <header class="hero" style="--hero-image: url('https://www.share50.no/images/sd/grass.jpg');">
    */
    --hero-image: url('https://www.share50.no/images/sd/grass.jpg');
    --hero-position: center center;
    --hero-overlay-start: rgba(7, 17, 31, .94);
    --hero-overlay-mid: rgba(7, 17, 31, .82);
    --hero-overlay-end: rgba(7, 17, 31, .50);
    --grass-image: url('https://www.share50.no/images/sd/grass.jpg');
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--s50-ink);
    background: #ffffff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

.fw-black {
    font-weight: 950;
}

.text-s50-blue {
    color: var(--s50-blue);
}

.text-s50-muted {
    color: var(--s50-muted);
}

.bg-s50-soft {
    background: var(--s50-soft);
}

/* ------------------------------
   Navigation
   ------------------------------ */

.site-nav {
    position: fixed;
    z-index: 30;
    top: 0;
    left: 0;
    right: 0;
    min-height: var(--s50-nav-height);
    border-bottom: 1px solid var(--s50-white-line);
    background: rgba(7, 17, 31, .72);
    backdrop-filter: blur(18px);
}

.site-nav .navbar-brand img,
.site-logo {
    width: 138px;
    height: auto;
}

.site-nav .nav-link {
    color: rgba(255, 255, 255, .78) !important;
    font-weight: 650;
    font-size: .95rem;
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active {
    color: #ffffff !important;
}

.site-nav .navbar-toggler {
    border: 0;
}

.site-nav .navbar-toggler-icon {
    filter: invert(1);
}

/* ------------------------------
   Buttons
   ------------------------------ */

.btn-s50 {
    border: 0;
    border-radius: 999px;
    padding: .85rem 1.2rem;
    background: var(--s50-blue);
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 18px 38px rgba(1, 83, 163, .25);
    transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}

.btn-s50:hover,
.btn-s50:focus {
    background: var(--s50-blue-dark);
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-outline-s50 {
    border: 1px solid rgba(7, 17, 31, .18);
    border-radius: 999px;
    padding: .85rem 1.2rem;
    color: var(--s50-ink);
    font-weight: 800;
    background: #ffffff;
    transition: transform .15s ease, border-color .15s ease, color .15s ease;
}

.btn-outline-s50:hover,
.btn-outline-s50:focus {
    border-color: var(--s50-blue);
    color: var(--s50-blue);
    transform: translateY(-1px);
}

.btn-ghost {
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    padding: .85rem 1.2rem;
    color: #ffffff;
    font-weight: 800;
    background: rgba(255, 255, 255, .08);
    transition: transform .15s ease, background-color .15s ease, color .15s ease;
}

.btn-ghost:hover,
.btn-ghost:focus {
    background: rgba(255, 255, 255, .16);
    color: #ffffff;
    transform: translateY(-1px);
}

/* ------------------------------
   Hero sections
   ------------------------------ */

.hero {
    min-height: 58vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4.5rem;
    color: #ffffff;
    background:
        radial-gradient(circle at 12% 22%, rgba(1, 83, 163, .48), transparent 28%),
        linear-gradient(100deg, var(--hero-overlay-start) 0%, var(--hero-overlay-mid) 48%, var(--hero-overlay-end) 100%),
        var(--hero-image) var(--hero-position) / cover no-repeat;
}

.hero.hero-large {
    min-height: 86vh;
    padding: 8rem 0 5rem;
}

.hero.hero-split {
    overflow: hidden;
    position: relative;
}

.hero.hero-large.hero-split::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 140px;
    background: linear-gradient(to bottom, transparent, rgba(7, 17, 31, .55));
    pointer-events: none;
}

.hero h1 {
    max-width: 900px;
    margin: 0 0 1.35rem;
    font-size: clamp(3rem, 7vw, 6.2rem);
    line-height: .92;
    letter-spacing: -.065em;
    font-weight: 950;
}

.hero.hero-large h1 {
    font-size: clamp(3rem, 8vw, 6.8rem);
    line-height: .9;
    letter-spacing: -.07em;
}

.hero .lead {
    max-width: 730px;
    color: rgba(255, 255, 255, .86);
    font-size: clamp(1.12rem, 2vw, 1.38rem);
    line-height: 1.55;
}

.hero-card {
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--s50-radius);
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(18px);
    padding: 1.2rem;
    box-shadow: 0 35px 90px rgba(0, 0, 0, .28);
}

.hero-card strong {
    display: block;
    margin-bottom: .25rem;
    font-size: 1.1rem;
    color: #ffffff;
}

.hero-card p {
    margin: 0;
    color: rgba(255, 255, 255, .78);
}

/* ------------------------------
   Eyebrow / labels
   ------------------------------ */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: 1.2rem;
    padding: .45rem .75rem;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .88);
    font-weight: 800;
    font-size: .82rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: .55rem;
    height: .55rem;
    border-radius: 50%;
    background: #65d2ff;
    box-shadow: 0 0 0 6px rgba(101, 210, 255, .16);
}

.kicker {
    color: var(--s50-blue);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .82rem;
}

/* ------------------------------
   Sections
   ------------------------------ */

.section {
    padding: 5.5rem 0;
}

.section-tight {
    padding: 4rem 0;
}

.section-soft {
    background: var(--s50-soft);
}

.section-dark {
    background: var(--s50-ink);
    color: #ffffff;
}

.section-title {
    max-width: 780px;
    margin-bottom: 2rem;
}

.section-title h2 {
    font-size: clamp(2rem, 4vw, 3.8rem);
    line-height: .98;
    letter-spacing: -.055em;
    font-weight: 950;
    margin: .65rem 0 1rem;
}

.section-title p {
    color: var(--s50-muted);
    font-size: 1.12rem;
    line-height: 1.65;
}

.section-dark .section-title p {
    color: rgba(255, 255, 255, .76);
}

/* ------------------------------
   Generic cards
   ------------------------------ */

.quick-card,
.content-card,
.contact-card,
.summary-box,
.link-card {
    border: 1px solid var(--s50-line);
    background: #ffffff;
    box-shadow: var(--s50-shadow-soft);
}

.quick-card,
.content-card {
    height: 100%;
    border-radius: 24px;
    padding: 1.4rem;
}

.quick-card .number,
.content-card .number {
    color: var(--s50-blue);
    font-size: .82rem;
    font-weight: 950;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.quick-card h3,
.content-card h3 {
    margin: .7rem 0 .55rem;
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: -.02em;
}

.quick-card p,
.content-card p {
    color: var(--s50-muted);
    line-height: 1.65;
    margin: 0;
}

/* ------------------------------
   Accordions: FAQ / terms
   ------------------------------ */

.faq-shell,
.terms-shell,
.accordion-shell {
    border: 1px solid var(--s50-line);
    border-radius: var(--s50-radius);
    overflow: hidden;
    background: #ffffff;
    box-shadow: var(--s50-shadow);
}

.accordion-item {
    border-color: var(--s50-line);
}

.accordion-button {
    padding: 1.35rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: -.015em;
    color: var(--s50-ink);
}

.accordion-button:not(.collapsed) {
    color: var(--s50-blue);
    background: rgba(1, 83, 163, .06);
    box-shadow: none;
}

.accordion-button:focus {
    border-color: rgba(1, 83, 163, .25);
    box-shadow: 0 0 0 .25rem rgba(1, 83, 163, .12);
}

.accordion-body {
    color: var(--s50-muted);
    line-height: 1.75;
    padding: .55rem 1.5rem 1.55rem;
    font-size: 1rem;
}

.accordion-body a {
    color: var(--s50-blue);
    font-weight: 850;
    text-decoration: none;
}

.accordion-body a:hover {
    text-decoration: underline;
}

/* ------------------------------
   CTA panels
   ------------------------------ */

.small-cta,
.notice-box,
.address-panel,
.info-panel {
    border-radius: var(--s50-radius);
    background: var(--s50-ink);
    color: #ffffff;
    padding: clamp(1.5rem, 4vw, 2.6rem);
    box-shadow: 0 28px 80px rgba(7, 17, 31, .16);
}

.small-cta h2,
.notice-box h2,
.address-panel h2,
.info-panel h2,
.info-panel h3 {
    font-size: clamp(1.7rem, 3vw, 2.8rem);
    line-height: 1;
    letter-spacing: -.045em;
    font-weight: 950;
    margin-bottom: .75rem;
}

.info-panel h3 {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
}

.small-cta p,
.notice-box p,
.address-panel p,
.info-panel p {
    max-width: 760px;
    color: rgba(255, 255, 255, .76);
    line-height: 1.65;
    margin-bottom: 0;
}

.grass-cta {
    color: #ffffff;
    border-radius: 34px;
    overflow: hidden;
    min-height: 360px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(7, 17, 31, .92), rgba(7, 17, 31, .64), rgba(7, 17, 31, .25)),
        var(--grass-image) center center / cover no-repeat;
    box-shadow: 0 35px 95px rgba(7, 17, 31, .24);
}

.grass-cta .inner {
    max-width: 760px;
    padding: clamp(2rem, 5vw, 4rem);
}

.grass-cta h2 {
    font-size: clamp(2rem, 4vw, 4.4rem);
    line-height: .95;
    letter-spacing: -.055em;
    font-weight: 950;
}

.grass-cta p {
    max-width: 620px;
    color: rgba(255, 255, 255, .82);
    line-height: 1.65;
    font-size: 1.1rem;
}

/* ------------------------------
   Pills / activity cloud
   ------------------------------ */

.pill-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}

.activity-pill {
    padding: .65rem .9rem;
    border-radius: 999px;
    border: 1px solid var(--s50-line);
    background: #ffffff;
    font-weight: 800;
    color: var(--s50-ink);
    box-shadow: 0 12px 32px rgba(7, 17, 31, .04);
}

/* ------------------------------
   Contact page
   ------------------------------ */

.contact-card {
    height: 100%;
    border-radius: var(--s50-radius);
    padding: 1.5rem;
}

.avatar {
    width: 68px;
    height: 68px;
    border-radius: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(1, 83, 163, .1);
    color: var(--s50-blue);
    font-weight: 950;
    font-size: 1.35rem;
    margin-bottom: 1.1rem;
}

.contact-card h3 {
    font-size: 1.3rem;
    font-weight: 950;
    letter-spacing: -.025em;
    margin-bottom: .2rem;
}

.contact-role {
    color: var(--s50-muted);
    font-weight: 750;
    margin-bottom: 1.1rem;
}

.contact-line {
    display: block;
    color: var(--s50-ink);
    text-decoration: none;
    font-weight: 800;
    margin-bottom: .45rem;
    overflow-wrap: anywhere;
}

.contact-line:hover {
    color: var(--s50-blue);
}

.link-card {
    border-radius: 24px;
    padding: 1.35rem;
    height: 100%;
    text-decoration: none;
    display: block;
}

.link-card:hover {
    border-color: rgba(1, 83, 163, .35);
    color: var(--s50-blue);
}

.link-card strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 950;
    margin-bottom: .3rem;
}

.link-card span {
    color: var(--s50-muted);
}

/* ------------------------------
   Payout page
   ------------------------------ */

.period-card {
    border: 1px solid var(--s50-line);
    border-radius: var(--s50-radius);
    background: #ffffff;
    padding: 1.1rem;
    box-shadow: 0 22px 60px rgba(7, 17, 31, .07);
}

.period-list {
    display: grid;
    gap: .55rem;
}

.period-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    width: 100%;
    border: 1px solid var(--s50-line);
    border-radius: 18px;
    padding: .9rem 1rem;
    background: #ffffff;
    text-decoration: none;
    color: var(--s50-ink);
    font-weight: 850;
    text-align: left;
    cursor: pointer;
}

.period-link:hover {
    border-color: rgba(1, 83, 163, .35);
    color: var(--s50-blue);
}

.period-link.active {
    color: #ffffff;
    background: var(--s50-blue);
    border-color: var(--s50-blue);
    box-shadow: 0 16px 38px rgba(1, 83, 163, .24);
}

.period-link span {
    color: inherit;
    opacity: .78;
    font-size: .85rem;
    font-weight: 800;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.summary-box {
    border-radius: 22px;
    padding: 1rem;
}

.summary-box .label {
    color: var(--s50-muted);
    font-size: .82rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .35rem;
}

.summary-box .value {
    font-size: clamp(1.15rem, 2vw, 1.65rem);
    font-weight: 950;
    letter-spacing: -.035em;
}

.table-shell {
    border: 1px solid var(--s50-line);
    border-radius: var(--s50-radius);
    background: #ffffff;
    overflow: hidden;
    box-shadow: var(--s50-shadow);
}

.payout-title-bar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.35rem 1.5rem;
    border-bottom: 1px solid var(--s50-line);
    background: #ffffff;
}

.payout-title-bar h2 {
    margin: 0;
    font-size: clamp(1.35rem, 3vw, 2.05rem);
    font-weight: 950;
    letter-spacing: -.04em;
}

.payout-title-bar p {
    color: var(--s50-muted);
    margin: .25rem 0 0;
}

.table {
    margin: 0;
    vertical-align: middle;
}

.table thead th {
    color: var(--s50-muted);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    font-weight: 900;
    background: #fbfcfe;
    border-bottom-color: var(--s50-line);
    padding: 1rem 1.1rem;
    white-space: nowrap;
}

.table tbody td {
    padding: 1rem 1.1rem;
    border-color: var(--s50-line);
}

.org-cell {
    display: flex;
    align-items: center;
    gap: .9rem;
    min-width: 260px;
}

.org-logo {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    object-fit: cover;
    background: #eef2f7;
    border: 1px solid rgba(7, 17, 31, .12);
    flex: 0 0 auto;
}

.org-name {
    font-weight: 900;
    line-height: 1.2;
}

.org-meta {
    color: var(--s50-muted);
    font-size: .86rem;
    margin-top: .2rem;
}

.amount {
    font-weight: 950;
    white-space: nowrap;
}

.term-note {
    display: block;
    margin-top: .3rem;
    color: var(--s50-muted);
    font-size: .78rem;
    line-height: 1.35;
    max-width: 210px;
}

.empty-state {
    border: 1px solid var(--s50-line);
    border-radius: var(--s50-radius);
    padding: 2rem;
    background: #ffffff;
    color: var(--s50-muted);
}

/* ------------------------------
   Progress / competition landing pages
   ------------------------------ */

.progress-status {
    display: grid;
    gap: .35rem;
}

.progress-number {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1;
    letter-spacing: -.055em;
    font-weight: 950;
}

.progress-label {
    color: var(--s50-muted);
    font-weight: 800;
}

.s50-progress {
    height: 12px;
    border-radius: 999px;
    background: rgba(7, 17, 31, .10);
    overflow: hidden;
}

.s50-progress-bar {
    height: 100%;
    border-radius: 999px;
    background: var(--s50-blue);
}

/* ------------------------------
   App store / circular buttons
   ------------------------------ */

.btn-circle {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-right: .75rem;
    margin-top: .75rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    background-color: #000000;
    box-shadow: 0 14px 35px rgba(0, 0, 0, .25);
    text-decoration: none;
}

.btn-circle img {
    width: 65%;
    height: 65%;
    object-fit: contain;
}

/* ------------------------------
   Footer
   ------------------------------ */

.site-footer {
    padding: 3.5rem 0;
    color: rgba(255, 255, 255, .76);
    background: #07111f;
}

.site-footer-logo {
    width: 145px;
    height: auto;
}

.site-footer p {
    color: rgba(255, 255, 255, .76);
    line-height: 1.65;
    margin-bottom: 0;
}

.site-footer h3,
.site-footer h6 {
    margin-bottom: 1rem;
}

.site-footer a {
    color: rgba(255, 255, 255, .82);
    text-decoration: none;
    font-weight: 700;
}

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

.site-footer hr {
    opacity: 1;
}

/* ------------------------------
   Utilities
   ------------------------------ */

.rounded-s50 {
    border-radius: var(--s50-radius);
}

.shadow-s50 {
    box-shadow: var(--s50-shadow);
}

.border-s50 {
    border: 1px solid var(--s50-line);
}

.max-720 {
    max-width: 720px;
}

.max-780 {
    max-width: 780px;
}

.max-900 {
    max-width: 900px;
}

/* ------------------------------
   Responsive
   ------------------------------ */

@media (max-width: 991px) {
    :root {
        --s50-nav-height: 72px;
    }

    .site-nav {
        position: sticky;
    }

    .site-nav .navbar-collapse {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .hero,
    .hero.hero-large {
        min-height: auto;
        padding: 5rem 0 4rem;
        background:
            linear-gradient(100deg, rgba(7, 17, 31, .94) 0%, rgba(7, 17, 31, .84) 62%, rgba(7, 17, 31, .5) 100%),
            var(--hero-image) var(--hero-position) / cover no-repeat;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .payout-title-bar {
        display: block;
    }
}

@media (max-width: 767px) {
    .section {
        padding: 4.25rem 0;
    }

    .section-tight {
        padding: 3rem 0;
    }

    .hero h1 {
        letter-spacing: -.055em;
    }

    .table-shell {
        border-radius: 22px;
    }

    .table-responsive {
        border: 0;
    }

    .org-cell {
        min-width: 220px;
    }

    .btn-circle {
        width: 96px;
        height: 96px;
    }

    .site-footer {
        padding: 3rem 0;
    }
}
