:root {
    --navy: #001e3a;
    --navy-light: #103d62;
    --gold: #efb544;
    --gold-dark: #825b16;
    --text: #20374c;
    --muted: #526476;
    --border: #dfe5eb;
    --surface: #f6f8fa;
    --white: #fff;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-padding-top: 24px;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background: var(--white);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

main {
    flex: 1;
    min-width: 0;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
    text-underline-offset: 4px;
}

a:hover {
    text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 5px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2 {
    color: var(--navy);
    font-family: Georgia, 'Times New Roman', serif;
}

section[id],
footer[id] {
    scroll-margin-top: 24px;
}

.skip-link {
    position: fixed;
    top: -100px;
    left: 12px;
    z-index: 100;
    padding: 12px 18px;
    background: var(--white);
    color: var(--navy);
    font-weight: 700;
}

.skip-link:focus {
    top: 12px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.eyebrow {
    margin-bottom: 10px;
    color: var(--gold-dark);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.5;
    text-transform: uppercase;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 48px;
    padding: 13px 24px;
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
}

.button:hover {
    text-decoration: none;
}

.button-gold {
    background: var(--gold);
    color: var(--navy);
}

.button-gold:hover {
    background: #f6c55f;
}

.button span {
    font-size: 1.3rem;
    line-height: 1;
}

.site-header {
    width: 100%;
    background: var(--navy);
    border-bottom: 3px solid var(--gold);
}


.mobile-brand {
    display: none;
}

.site-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 4%;
    border-top: 1px solid #ffffff20;
}

.primary-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 30px;
}

.primary-nav a {
    padding: 10px 0;
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.primary-nav a:hover {
    color: var(--gold);
}

.header-donate {
    flex-shrink: 0;
}

.tagline {
    display: block;
    margin-top: 10px;
    color: var(--gold);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    line-height: 1.7;
    text-transform: uppercase;
}

.home-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--navy);
}

.home-hero-image {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        90deg,
        rgb(0 20 40 / 94%) 0%,
        rgb(0 20 40 / 80%) 28%,
        rgb(0 20 40 / 35%) 55%,
        rgb(0 20 40 / 5%) 100%
    );
}

.home-hero-inner {
    display: flex;
    align-items: center;
    min-height: 540px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 64px 4%;
}

.home-hero-copy {
    max-width: 560px;
}

.home-hero .eyebrow {
    margin-bottom: 18px;
    color: var(--gold);
}

.home-hero h1 {
    margin-bottom: 0;
    color: var(--white);
    font-size: clamp(2.5rem, 4vw, 4rem);
    line-height: 1.08;
    text-wrap: balance;
}

.hero-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 180px;
    margin: 25px 0;
    color: var(--gold);
}

.hero-divider span {
    flex: 1;
    height: 2px;
    background: currentColor;
}

.hero-divider svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.hero-description {
    max-width: 490px;
    margin-bottom: 28px;
    color: var(--white);
    font-size: 1.1rem;
    line-height: 1.75;
}

.home-content {
    padding: 40px 4% 48px;
    background: var(--white);
}

.home-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 32px;
    max-width: 1500px;
    margin: 0 auto;
}

.home-giving {
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.giving-header h2 {
    margin-bottom: 18px;
    font-size: clamp(1.85rem, 2.5vw, 2.5rem);
    line-height: 1.15;
}

.home-giving {
    overflow: hidden;
    background: var(--surface);
}

.giving-header {
    padding: 32px;
}

.giving-header > p:last-child {
    margin-bottom: 0;
    line-height: 1.75;
}

.donation-form {
    margin: 0 16px;
/*    border: 1px solid var(--border);*/
/*    border-radius: 6px;*/
    overflow: hidden;
    background: var(--white);
}

.donation-form iframe {
    display: block;
    width: 100%;
    height: 1300px;
    border: 0;
    background: var(--white);
}

.form-fallback {
    margin: 0;
    padding: 18px 24px 24px;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.7;
    text-align: center;
    overflow-wrap: anywhere;
}

.form-fallback a {
    color: var(--navy-light);
}

.site-footer {
    width: 100%;
    border-top: 3px solid var(--gold);
    background: linear-gradient(
        115deg,
        #001c36,
        #002443 55%,
        #001c36
    );
    color: #fff;
}

.footer-inner {
    display: grid;
    grid-template-columns:
        minmax(0, 1.7fr)
        minmax(0, 1fr)
        minmax(0, 1.15fr);
    align-items: center;
    gap: 26px;
    width: 100%;
    margin: 0 auto;
    padding: 24px 4% 16px;
}

.footer-inner::after {
    content: "";
    grid-column: 1 / -1;
    height: 1px;
    background: var(--gold);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 22px;
    min-width: 0;
    text-decoration: none;
}

.footer-brand:hover {
    text-decoration: none;
}

.footer-brand img {
    flex-shrink: 0;
    width: clamp(100px, 10vw, 160px);
    height: auto;
}

.footer-brand-copy {
    min-width: 0;
    padding: 18px 0 18px 24px;
    border-left: 1px solid var(--gold);
}

.footer-name {
    display: block;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(22px, 2vw, 32px);
    line-height: 1.2;
}

.footer-brand .tagline {
    display: block;
    margin-top: 12px;
    color: var(--gold);
    font-size: 12px;
    letter-spacing: 0.3em;
    line-height: 1.7;
    text-transform: uppercase;
}

.footer-contact {
    padding: 0 26px;
    border-left: 1px solid var(--gold);
    border-right: 1px solid var(--gold);
}

.footer-contact h2 {
    margin: 0 0 8px;
    color: var(--gold);
    font-family: 'Arial Narrow', Arial, sans-serif;
    font-size: 22px;
    line-height: 1.3;
    text-transform: uppercase;
}

.footer-contact address {
    font-style: normal;
}

.contact {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 10px;
    font-size: 16px;
    line-height: 1.5;
}

.contact > span:last-child {
    min-width: 0;
}

.contact a {
    display: block;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.contact a:hover {
    text-decoration: underline;
}

.envelope {
    flex-shrink: 0;
    color: var(--gold);
    font-size: 30px;
    line-height: 1;
}

.footer-legal {
    padding: 0;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

.footer-legal nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-legal nav a {
    text-decoration: none;
}

.footer-legal nav a:hover {
    text-decoration: underline;
}

.footer-legal nav span {
    color: var(--gold);
}

.footer-legal p {
    margin: 16px 0 0;
    color: #fff;
}

.policy-page {
    max-width: 1000px;
    min-height: 400px;
    margin: 0 auto;
    padding: 28px 24px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.policy-page h1 {
    margin-bottom: 20px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
}

.policy-page h2 {
    margin-top: 32px;
    margin-bottom: 12px;
    font-size: 1.45rem;
    line-height: 1.3;
}

.policy-page p {
    margin-bottom: 18px;
}

.privacy-policy {
    max-width: 960px;
    margin-inline: auto;
    overflow-wrap: anywhere;
}

.container {
    width: 100%;
    margin-inline: auto;
}

.py-5 {
    padding-top: 48px;
    padding-bottom: 48px;
}

.mb-4 {
    margin-bottom: 24px;
}

.desktop-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;

    width: 100%;
    height: 130px;
    padding: 10px 24px;

    background-color: var(--navy);
    background-image:
        linear-gradient(
            90deg,
            rgb(0 30 58 / 95%),
            rgb(0 30 58 / 65%) 60%,
            rgb(0 30 58 / 15%)
        ),
        url('../images/flag.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    text-decoration: none;
}

.desktop-brand:hover {
    text-decoration: none;
}

.desktop-brand img {
    display: block;
    flex: 0 0 auto;
    width: 108px;
    height: 108px;
    margin: 0;
    object-fit: contain;
}

.desktop-brand-copy {
    min-width: 0;
    text-align: center;
}

.desktop-brand-name {
    display: block;
    color: var(--white);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.5rem, 2.5vw, 2.5rem);
    line-height: 1.2;
}

.desktop-brand-copy .tagline {
    margin-top: 10px;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
}

/* Tablet */

@media (max-width: 1100px) {
    .site-navigation {
        gap: 16px;
        padding-inline: 24px;
    }

    .primary-nav {
        gap: 8px 20px;
    }

    .home-hero-inner {
        min-height: 500px;
    }

    .home-hero-copy {
        max-width: 500px;
    }

    .home-columns {
        gap: 24px;
    }

    .giving-header {
        padding: 26px;
    }

    .footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        justify-content: center;
    }

    .footer-brand img {
        width: 120px;
    }

    .footer-contact {
        border-left: 0;
    }

    .footer-legal {
        grid-column: auto;
        padding: 16px;
        border-top: 0;
    }
}

/* Small tablets */

@media (max-width: 900px) {
    .site-navigation {
        flex-direction: column;
        gap: 12px;
    }

    .primary-nav {
        justify-content: center;
    }

    .header-donate {
        min-height: 42px;
        padding: 10px 20px;
    }

    .home-columns {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-content {
        padding: 28px 24px 36px;
    }

    .home-giving {
        width: 100%;
    }
}

/* Mobile */

@media (max-width: 640px) {
    .desktop-brand {
        display: none;
    }

    .mobile-brand {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 16px;
        padding: 20px 16px;
        text-decoration: none;
    }

    .mobile-brand img {
        flex-shrink: 0;
        width: 76px;
        height: 76px;
        object-fit: contain;
    }

    .mobile-name {
        display: block;
        color: var(--white);
        font-family: Georgia, 'Times New Roman', serif;
        font-size: 1.4rem;
        line-height: 1.2;
    }

    .mobile-brand .tagline {
        margin-top: 8px;
        font-size: 0.55rem;
        letter-spacing: 0.1em;
    }

    .site-navigation {
        padding: 12px 16px 16px;
    }

    .primary-nav {
        gap: 4px 16px;
    }

    .primary-nav a {
        padding: 6px 0;
        font-size: 0.68rem;
        letter-spacing: 0.04em;
    }

    .header-donate {
        width: 100%;
    }

    .home-hero-image {
        object-position: 65% center;
    }

    .home-hero::before {
        background: linear-gradient(
            90deg,
            rgb(0 20 40 / 92%),
            rgb(0 20 40 / 65%)
        );
    }

    .home-hero-inner {
        min-height: 500px;
        padding: 40px 24px;
    }

    .home-hero h1 {
        font-size: clamp(2.35rem, 8vw, 3rem);
    }

    .hero-description {
        font-size: 1rem;
        line-height: 1.75;
    }

    .home-hero .button {
        width: 100%;
    }

    .home-content {
        padding: 20px 12px 28px;
    }

    .giving-header {
        padding: 24px 20px;
    }

    .donation-form {
        margin-inline: 8px;
    }

    .footer-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        padding: 28px 20px 16px;
    }

    .footer-brand {
        grid-column: auto;
        flex-direction: column;
        gap: 14px;
        text-align: center;
    }

    .footer-brand img {
        width: 110px;
    }

    .footer-brand-copy {
        padding: 0;
        border-left: 0;
    }

    .footer-name {
        font-size: 24px;
    }

    .footer-brand .tagline {
        font-size: 10px;
        letter-spacing: 0.2em;
    }

    .footer-contact {
        padding: 22px 0;
        border: 0;
        border-top: 1px solid var(--gold);
        border-bottom: 1px solid var(--gold);
    }

    .footer-contact h2 {
        text-align: center;
    }

    .contact {
        max-width: 300px;
        margin: 12px auto 0;
    }

    .footer-legal {
        padding: 0;
    }

    .footer-legal nav {
        gap: 12px;
    }

    .policy-page {
        margin: 20px auto;
        padding: 20px;
    }
}

/* Left column: program tiles, compact values, and navy vision */

.organization-panel.tile-story {
    display: grid;
    gap: 30px;
    min-width: 0;
    padding: 20px 0 0;
    border: 0;
    border-radius: 0;
    background: var(--white);
}

.tile-story .tile-section-label {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 20px;
    color: var(--navy);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.5;
    text-transform: uppercase;
}

.tile-section-label::before {
    content: "";
    flex: 0 0 28px;
    height: 3px;
    background: var(--gold);
}

.tile-mission p {
    margin: 0;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.75;
}

.tile-mission .tile-mission-lead {
    margin-bottom: 18px;
    color: var(--navy);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.35rem, 1.7vw, 1.7rem);
    font-weight: 700;
    line-height: 1.4;
}

.program-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.program-tile {
    min-width: 0;
    padding: 22px;
    border-radius: 8px;
    background: #eaf3fb;
}

.program-tile header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.program-tile svg {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    fill: none;
    stroke: var(--navy);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.program-tile h3 {
    margin: 0;
    color: var(--navy);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.15rem;
    line-height: 1.35;
}

.program-tile p {
    margin: 0;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.7;
}

.program-tile:last-child {
    grid-column: 1 / -1;
}

.tile-value-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tile-value-list li {
    flex: 1 1 110px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #eaf3fb;
    color: var(--navy);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

.tile-value-list li:last-child {
    flex-basis: 180px;
}

.tile-vision {
    padding: 26px;
    border-radius: 8px;
    background: var(--navy);
    color: var(--white);
}

.tile-story .tile-vision .tile-section-label {
    color: var(--white);
}

.tile-vision-body {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
    gap: 22px;
}

.tile-vision-body svg {
    width: 64px;
    height: 64px;
    fill: none;
    stroke: var(--gold);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tile-vision-body p {
    margin: 0;
    color: var(--white);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.1rem;
    line-height: 1.65;
}

@media (max-width: 640px) {
    .organization-panel.tile-story {
        gap: 26px;
        padding: 12px 0 0;
    }

    .program-tiles {
        grid-template-columns: minmax(0, 1fr);
    }

    .program-tile {
        padding: 22px 20px;
    }

    .program-tile:last-child {
        grid-column: auto;
    }

    .tile-vision {
        padding: 24px 20px;
    }

    .tile-vision-body {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 16px;
    }

    .tile-vision-body svg {
        width: 44px;
        height: 44px;
    }

    .tile-vision-body p {
        font-size: 1rem;
    }
}


/* Compact navigation */

.site-navigation {
    padding-top: 6px;
    padding-bottom: 6px;
}

.primary-nav a {
    padding-top: 6px;
    padding-bottom: 6px;
}

.header-donate {
    min-height: 40px;
    padding: 8px 20px;
}

/* Compact mobile branding */

@media (max-width: 640px) {
    .mobile-brand {
        padding: 12px 16px;
    }

    .mobile-brand img {
        width: 60px;
        height: 60px;
    }

    .site-navigation {
        gap: 8px;
        padding: 8px 16px;
    }
}

/* Full-width header background */

.club-masthead {
    display: block;
    width: 100%;
    height: 130px;
    margin: 0;
    padding: 0;

    background-color: var(--navy);
    background-image: url('../images/header-background.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    color: var(--white);
    text-decoration: none;
}

.club-masthead:hover {
    text-decoration: none;
}

/* Branding overlay */

.club-masthead-inner {
    display: flex;
    align-items: center;
    gap: 24px;

    width: 100%;
    max-width: 1536px;
    height: 100%;
    margin: 0 auto;
    padding: 10px 4%;
}

.club-masthead-logo {
    display: block;
    flex: 0 0 auto;

    width: 108px;
    height: 108px;
    margin: 0;

    object-fit: contain;
}

.club-masthead-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.club-masthead-name {
    display: block;

    color: var(--white);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.4rem, 2.6vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;

    text-shadow: 0 2px 4px rgb(0 0 0 / 35%);
}

/* Gold slogan with decorative lines */

.club-masthead-slogan {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;

    width: 100%;
    margin-top: 12px;

    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    line-height: 1.5;
    text-align: center;
    text-transform: uppercase;
}

.club-masthead-slogan::before,
.club-masthead-slogan::after {
    content: "";
    flex: 1 1 24px;

    max-width: 54px;
    height: 1px;

    background: var(--gold);
}

/* Mobile header */

@media (max-width: 640px) {
    .club-masthead {
        height: 110px;
    }

    .club-masthead-inner {
        gap: 14px;
        padding: 12px 16px;
    }

    .club-masthead-logo {
        width: 72px;
        height: 72px;
    }

    .club-masthead-copy {
        align-items: flex-start;
    }

    .club-masthead-name {
        font-size: clamp(1.1rem, 4.5vw, 1.55rem);
        line-height: 1.2;
    }

    .club-masthead-slogan {
        justify-content: flex-start;
        gap: 0;
        margin-top: 8px;

        font-size: 0.53rem;
        letter-spacing: 0.1em;
        text-align: left;
    }

    .club-masthead-slogan::before,
    .club-masthead-slogan::after {
        display: none;
    }
}

/* Single-row header matching the bottom reference */

.site-header.club-header-compact {
    position: relative;
    background-color: var(--navy);
    background-image: url('../images/header-background.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-bottom: 3px solid var(--gold);
}

.club-header-compact .club-masthead {
    background: none;
}

.club-header-compact .club-masthead-slogan::before,
.club-header-compact .club-masthead-slogan::after {
    display: none;
}

.club-header-compact .header-donate {
    position: absolute;
    right: 4%;
    bottom: 8px;
    width: auto;
    min-height: 40px;
    margin: 0;
    padding: 8px 20px;
}

/* Stack the button beneath the branding on smaller screens. */

@media (max-width: 1100px) {
    .site-header.club-header-compact {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        padding-bottom: 8px;
    }

    .club-header-compact .header-donate {
        position: static;
        margin-right: 4%;
    }
}

@media (max-width: 640px) {
    .club-header-compact .club-masthead {
        height: auto;
        min-height: 110px;
    }

    .club-header-compact .club-masthead-inner {
        min-height: 110px;
    }

    .club-header-compact .header-donate {
        margin-right: 16px;
    }
}