:root {
    --navy: #14283D;
    --gold: #D9B66D;
    --dustyBlue: #839CAF;
    --white: #F1F3F5;
    --text: #F1F3F5;
    --muted: #B8C6D2;
    --rule: #526F89;
    --background: #14283D;

    --display: Georgia, serif;
    --body: 'Poppins', sans-serif;
    --pageWidth: 1200px;
}

/* GLOBAL STYLING */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-height, 90px) + 20px);
}

body {
    margin: 0;
    background-color: var(--background);
    color: var(--text);
    font-family: var(--body);
    line-height: 1.6;
}

/* PARAGRAPH STYLING */

p {
    font-family: var(--body);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.8;
}

h1, h2, h3 {
    font-family: var(--display);
    line-height: 1.2;
}
/* MAIN SECTION HEADINGS */

main section > h2,
main section > .sectionContent > h2 {
    color: var(--gold);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}
/* HEADER & NAVIGATION */

header {
    background-color: var(--navy);
    border-bottom: 2px solid var(--gold);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header nav {
    max-width: var(--pageWidth);
    margin: 0 auto;
    padding: 1rem 2rem;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    transform: translateX(-130px);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--gold);
}

.logo img {
    width: 100px;
    height: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.4rem;
    transition: color 0.3s ease;
}

/* MAIN CONTENT ALIGNMENT */

main section h2,
main section h3,
main section p {
    max-width: var(--pageWidth);
    margin-left: auto;
    margin-right: auto;
}

/* SECTION CONTENT CONTAINER */

.sectionContent {
    width: 100%;
    max-width: var(--pageWidth);
    margin: 0 auto;
}


/* Animated gold underline */

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-links a:hover::after {
    width: 100%;
}

/* RESOURCE CARDS */

.Resource-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: var(--pageWidth);
    margin: 2rem auto;
}

.Resource-cards-link {
    display: block;
    height: 100%;
}

.Resource-card {
    background-color: var(--white);
    color: var(--navy);
    padding: 2rem;
    height: 100%;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.Resource-card:hover {
    transform: translateY(-5px);
}

.Resource-cards-link:first-child .Resource-card {
    background-color: var(--gold);
}

.Resource-cards-link:last-child .Resource-card {
    background-color: var(--dustyBlue);
}

.Resource-card img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

@media (max-width: 800px) {
    .Resource-cards {
        grid-template-columns: 1fr;
    }
}

/* WHY THIS MATTERS STATS */

.why-issue {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: var(--pageWidth);
    margin: 2rem auto 3rem;
    gap: 0;
}

.statItem {
    padding: 0.5rem 2rem;
    text-align: center;
}

.statItem + .statItem {
    border-left: 1px solid var(--rule);
}

.statNumber {
    display: block;
    color: var(--gold);
    font-family: var(--display);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.statItem p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0.75rem 0 0;
}

/* MOBILE */

@media (max-width: 700px) {
    .why-issue {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .statItem + .statItem {
        border-left: none;
        border-top: 1px solid var(--rule);
        padding-top: 1.5rem;
    }
}
/* LEAGUE TABLE */

.leagueTableWrap {
    overflow-x: auto;
    margin-top: 1.5rem;
}

.leagueTable {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

.leagueTable th {
    font: 500 0.75rem/1 var(--mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    text-align: left;
    padding: 0 0.75rem 0.6rem 0;
    border-bottom: 2px solid var(--ink);
}

.leagueTable td {
    padding: 0.7rem 0.75rem 0.7rem 0;
    border-bottom: 1px solid var(--rule);
    vertical-align: middle;
}

.leagueTable .rank {
    font: 900 1.4rem/1 var(--display);
    color: var(--muted);
    width: 3rem;
}

.leagueTable .company {
    font-weight: 600;
    min-width: 9rem;
}

.leagueTable .company small {
    display: block;
    font: 500 0.75rem var(--mono);
    color: var(--muted);
}

.leagueTable .years {
    width: 45%;
}
.leagueTable th:last-child {
    text-align: right;
}
.yearBar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 3rem;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.bar {
    display: block;
    height: 0.9rem;
    width: var(--barWidth);
    background: var(--gold);
    border-radius: 1px;
}

.yearBar b {
    font: 900 1.5rem/1 var(--display);
    min-width: 2ch;
    text-align: right;
    color: var(--white);
}

/* Highlight the leading company */
.leagueTable tbody tr:first-child .bar {
    background: var(--dustyBlue);
}

/* Mobile layout */
@media (max-width: 560px) {
    .leagueTable .years {
        width: auto;
        min-width: 8rem;
    }
}
/* WHAT WE ASK CARDS */

.ask-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    max-width: var(--pageWidth);
    margin: 2rem auto;
}

.ask-point {
    background-color: #233B51;
    border-top: 4px solid var(--gold);
    border-radius: 6px;
    padding: 2rem;
    transition: transform 0.3s ease;
}

.ask-point:hover {
    transform: translateY(-5px);
}

.ask-point h3 {
    color: var(--gold);
    font-size: 1.4rem;
    margin-top: 0;
}

.ask-point p {
    color: var(--white);
    line-height: 1.7;
    margin-bottom: 0;
}

/* MOBILE LAYOUT */

@media (max-width: 800px) {
    .ask-points {
        grid-template-columns: 1fr;
    }
}

/* WHAT YOU CAN DO */

.mpGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.mp {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    border: 1px solid var(--rule);
    border-radius: 6px;
}

.mp h3 {
    color: var(--white);
    margin-top: 0;
}

.mp p {
    color: var(--muted);
    flex-grow: 1;
}

.contact-button {
    display: inline-block;
    align-self: flex-start;
    padding: 0.75rem 1.5rem;
    background-color: var(--gold);
    color: var(--navy);
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact-button:hover {
    background-color: var(--white);
    transform: translateY(-3px);
}

/* RESOURCES BANNER */

.check-out {
    margin-top: 3rem;
    padding: 2.5rem;
    background-color: var(--dustyBlue);
    color: var(--navy);
    text-align: center;
    border-radius: 6px;
}

.check-out h3 {
    color: var(--navy);
    margin-top: 0;
}

.check-out p {
    color: var(--navy);
    margin-bottom: 1.5rem;
}

.check-out a {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    background-color: var(--gold);
    color: var(--navy);
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.check-out a:hover {
    background-color: var(--white);
}

/* MOBILE */

@media (max-width: 700px) {
    .mpGrid {
        grid-template-columns: 1fr;
    }
}

/* CONTACT & SOCIAL LINKS */

.social-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
    border: 1px solid var(--rule);
    border-radius: 6px;
    color: var(--white);
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease,
                color 0.3s ease,
                transform 0.3s ease;
}

.social-link:hover {
    background-color: var(--gold);
    color: var(--navy);
    transform: translateY(-3px);
}

/* TABLET */

@media (max-width: 800px) {
    .social-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* MOBILE */

@media (max-width: 480px) {
    .social-links {
        grid-template-columns: 1fr;
    }
}

/* DONATE SECTION */

.donateGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.donateMethod {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    border: 1px solid var(--rule);
    border-radius: 6px;
}

.donateMethod h3 {
    color: var(--white);
    margin-top: 0;
}

.donateMethod p {
    margin: 0 0 0.75rem;
}

.donateLabel {
    color: var(--muted);
    font-size: 0.8rem;
    margin-bottom: 0.2rem !important;
}

.donateButton {
    display: inline-block;
    align-self: flex-start;
    margin-top: auto;
    padding: 0.85rem 1.5rem;
    background-color: var(--dustyBlue);
    color: var(--navy);
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.donateButton:hover {
    background-color: var(--white);
    transform: translateY(-3px);
}

@media (max-width: 700px) {
    .donateGrid {
        grid-template-columns: 1fr;
    }
}

/* SIDE NAVIGATION */

.side-nav-open {
    position: fixed;
    top: 200px;
    left: 0;
    transform: translateY(-50%);
    z-index: 999;
    background: var(--dustyBlue);
    color: var(--navy);
    border: none;
    border-radius: 0 6px 6px 0;
    padding: 1rem;
    font-family: var(--body);
    font-weight: 600;
    cursor: pointer;
}

.side-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 350px;
    max-width: 100%;
    height: 100dvh;
    padding: 2rem;
    background: var(--navy);
    border-right: 1px solid var(--rule);
    z-index: 1001;
    overflow-y: auto;

    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.35s ease, visibility 0.35s;
}

.side-nav.is-open {
    transform: translateX(0);
    visibility: visible;
}

.side-nav h2 {
    color: var(--gold);
    font-size: 1.8rem;
    margin: 2rem 0;
}

.side-nav-close {
    display: block;
    margin-left: auto;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
}

.side-nav-group {
    border-bottom: 1px solid var(--rule);
}

.side-nav-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1rem 0;
    background: none;
    border: none;
    color: var(--white);
    font-family: var(--body);
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
}

.side-nav-toggle::after {
    content: "+";
    color: var(--gold);
    font-size: 1.5rem;
}

.side-nav-toggle[aria-expanded="true"]::after {
    content: "−";
}

.side-nav-links {
    list-style: none;
    padding: 0 0 1rem 1rem;
    margin: 0;
}

.side-nav-links[hidden] {
    display: none;
}

.side-nav-links a {
    display: block;
    padding: 0.4rem 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.side-nav-links a:hover {
    color: var(--gold);
}

@media (max-width: 600px) {
    .side-nav {
        width: 100%;
        border-right: none;
    }
}



/* FOOTER */

footer {
    background-color: #0D1D2D;
    padding: 3rem 2rem 1.5rem;
    border-top: 1px solid var(--rule);
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    list-style: none;
    padding: 0 0 2rem;
    margin: 0;
    border-bottom: 1px solid var(--rule);
}

.footer-links a {
    color: var(--muted);
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--gold);
}

footer > p {
    color: var(--muted);
    font-size: 0.8rem;
    margin: 1.5rem 0 0;
}

/* MOBILE FOOTER */

@media (max-width: 600px) {
    footer {
        padding: 2rem 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* PARLIAMENTARY INVITATION */

.invitationContent {
    max-width: 900px;
    margin: 2rem auto;
}

.invitationImage {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.invitationAudio {
    margin-top: 2rem;
    padding: 1.5rem;
    border: 1px solid var(--rule);
    border-radius: 6px;
}

.invitationAudio h2 {
    color: var(--white);
    font-size: 1.5rem;
}

.invitationAudio audio {
    display: block;
    width: 100%;
    margin-top: 1rem;
}

/* CAMPAIGN VIDEOS */

.videos-section {
    padding: 4rem 1.5rem;
}

.videos-section h1 {
    color: var(--gold);
    margin-bottom: 1rem;
}

.videoGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.videoCard {
    min-width: 0;
    padding: 1.5rem;
    border: 1px solid var(--rule);
    border-radius: 8px;
    background: var(--navy);
}

.videoCard h2 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.videoCard iframe,
.videoCard video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: 6px;
    background: #000;
}

.videos-section .videoCard img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

@media (max-width: 700px) {
    .videoGrid {
        grid-template-columns: 1fr;
    }

    .videos-section {
        padding: 2rem 1rem;
    }
}

/* DOWNLOAD RESOURCES - HANDOUT */

.downloads-section {
    padding: 4rem 1.5rem;
}

.downloads-section h1 {
    color: var(--gold);
    margin-bottom: 1rem;
}

.handoutPages {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 1100px;
    margin: 2rem auto;
}

.handoutPage {
    padding: 1.5rem;
    border: 1px solid var(--rule);
    border-radius: 8px;
    text-align: center;
}

.handoutPage img {
    display: block;
    width: 100%;
    max-width: 1000px;
    height: auto;
    margin: 0 auto 2rem;
    border-radius: 4px;
}

.handoutPage h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.handoutPage img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

@media (max-width: 800px) {
    .handoutPages {
        grid-template-columns: 1fr;
    }
}
.handoutPage .downloadButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    font-family: var(--body);
    font-size: 1.25rem;
    font-weight: 600;
    background: var(--dustyBlue);
    color: var(--navy);
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.handoutPage .downloadButton:hover {
    background: var(--gold);
}

.handoutPage .downloadIcon {
    width: 28px;
    height: 28px;
    margin: 0;
    object-fit: contain;
}

/* UNDER CONSTRUCTION PAGE */

.constructionPage {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    background: var(--navy);
}

.constructionContent {
    max-width: 700px;
    text-align: center;
}

.constructionLogo {
    width: 110px;
    max-width: 100%;
    height: auto;
    margin-bottom: 2rem;
}

.constructionContent h1 {
    color: var(--gold);
    font-family: var(--display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
}

.constructionContent p {
    color: var(--white);
    font-family: var(--body);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.constructionButtons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
}

.constructionButton,
.constructionBack {
    display: inline-block;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    font-family: var(--body);
    font-weight: 600;
    text-decoration: none;
}

.constructionButton {
    background: var(--dustyBlue);
    color: var(--navy);
}

.constructionButton:hover {
    background: var(--gold);
}

.constructionBack {
    border: 1px solid var(--rule);
    color: var(--white);
}

.constructionBack:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.constructionGuy {
    display: block;
    width: 180px;
    max-width: 60%;
    height: auto;
    margin: 0 auto 1.5rem;
    object-fit: contain;
}


/* LEGAL TERMS */

.legalContent h3 {
    color: var(--gold);
    font-size: 1.2rem;
    margin: 2rem 0 1.5rem;
}

.legalTerms {
    padding-left: 2rem;
    margin-top: 1.5rem;
}

.legalTerms li {
    color: var(--white);
    font-family: var(--body);
    line-height: 1.9;
    padding-left: 0.75rem;
    margin-bottom: 1.5rem;
}

.legalTerms li::marker {
    color: var(--gold);
    font-weight: 600;
}

@media (max-width: 700px) {
    .legalTerms {
        padding-left: 1.5rem;
    }
}
