/* =========================================================
   Valley of Boston Membership Committee
   Production Website Styles
   ========================================================= */

:root {
    --black: #111111;
    --black-soft: #1d1d1d;
    --charcoal: #2d2d2d;
    --red: #8a1218;
    --red-dark: #5f0c10;
    --gold: #c4a052;
    --gold-light: #e7d3a4;
    --cream: #f4efe5;
    --cream-light: #fbf9f4;
    --white: #ffffff;
    --gray: #6a6a6a;
    --border: #ded8cd;
    --shadow: 0 18px 45px rgba(18, 18, 18, 0.10);

    --heading-font: Georgia, "Times New Roman", serif;
    --body-font: Arial, Helvetica, sans-serif;
    --container: 1180px;
    --radius: 10px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cream-light);
    color: var(--charcoal);
    font-family: var(--body-font);
    font-size: 1rem;
    line-height: 1.65;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--red);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

a:hover,
a:focus {
    color: var(--red-dark);
}

button,
input,
textarea,
select {
    font: inherit;
}

.container {
    width: min(calc(100% - 2rem), var(--container));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 1000;
    padding: 0.7rem 1rem;
    border-radius: 0 0 6px 6px;
    background: var(--gold);
    color: var(--black);
    font-weight: 700;
}

.skip-link:focus {
    top: 0;
}

/* Header */

.site-header {
    position: relative;
    z-index: 20;
    background: var(--black);
    color: var(--white);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

.top-rule {
    height: 4px;
    background: linear-gradient(90deg, var(--red-dark), var(--red), var(--gold), var(--red));
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 96px;
    gap: 2rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: var(--white);
    text-decoration: none;
}

.brand:hover,
.brand:focus {
    color: var(--white);
}

.brand-logo {
    width: 170px;
}

.brand-divider {
    width: 1px;
    height: 48px;
    background: rgba(196, 160, 82, 0.75);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.08;
}

.brand-title {
    color: var(--gold-light);
    font-family: var(--heading-font);
    font-size: clamp(1.25rem, 2vw, 1.7rem);
    font-weight: 700;
}

.brand-subtitle {
    margin-top: 0.28rem;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.primary-navigation ul {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-navigation a {
    display: block;
    padding: 0.72rem 0.72rem;
    border-radius: 5px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.primary-navigation a:hover,
.primary-navigation a:focus,
.primary-navigation a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.08);
    color: var(--gold-light);
}

.primary-navigation .official-link {
    margin-left: 0.35rem;
    border: 1px solid rgba(196, 160, 82, 0.55);
    color: var(--gold-light);
}

.menu-toggle {
    display: none;
    padding: 0.55rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 5px;
    background: transparent;
    color: var(--white);
    cursor: pointer;
}

/* Hero */

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(4rem, 8vw, 7.5rem) 0;
    background:
        radial-gradient(circle at 80% 10%, rgba(196, 160, 82, 0.25), transparent 31%),
        linear-gradient(120deg, rgba(17, 17, 17, 0.99), rgba(41, 15, 17, 0.97));
    color: var(--white);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
    background-size: 34px 34px;
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -160px;
    width: 500px;
    height: 500px;
    border: 1px solid rgba(196, 160, 82, 0.22);
    border-radius: 50%;
    box-shadow:
        0 0 0 48px rgba(196, 160, 82, 0.04),
        0 0 0 96px rgba(196, 160, 82, 0.025);
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
}

.eyebrow {
    margin: 0 0 0.85rem;
    color: var(--gold-light);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow.dark {
    color: var(--red);
}

.hero h1 {
    max-width: 850px;
    margin: 0;
    color: var(--white);
    font-family: var(--heading-font);
    font-size: clamp(2.65rem, 6vw, 5.35rem);
    font-weight: 700;
    line-height: 0.98;
}

.hero-intro {
    max-width: 760px;
    margin: 1.45rem 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-panel {
    padding: clamp(1.5rem, 3vw, 2.2rem);
    border: 1px solid rgba(196, 160, 82, 0.38);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.055);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(4px);
}

.panel-kicker {
    margin: 0 0 0.7rem;
    color: var(--gold-light);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-panel h2 {
    margin: 0;
    color: var(--white);
    font-family: var(--heading-font);
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    line-height: 1.12;
}

.hero-panel p {
    color: rgba(255, 255, 255, 0.74);
}

.text-link {
    display: inline-block;
    margin-top: 0.35rem;
    color: var(--gold-light);
    font-weight: 700;
    text-decoration: none;
}

.text-link:hover,
.text-link:focus {
    color: var(--white);
}

/* Buttons */

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.76rem 1.2rem;
    border: 2px solid transparent;
    border-radius: 6px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition:
        transform 140ms ease,
        box-shadow 140ms ease,
        background-color 140ms ease,
        border-color 140ms ease;
}

.button:hover,
.button:focus {
    transform: translateY(-1px);
}

.button-primary {
    background: var(--red);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(138, 18, 24, 0.3);
}

.button-primary:hover,
.button-primary:focus {
    background: var(--red-dark);
    color: var(--white);
}

.button-secondary {
    border-color: rgba(231, 211, 164, 0.7);
    background: transparent;
    color: var(--gold-light);
}

.button-secondary:hover,
.button-secondary:focus {
    border-color: var(--gold-light);
    background: rgba(255, 255, 255, 0.07);
    color: var(--white);
}

.button-light {
    border-color: var(--white);
    background: var(--white);
    color: var(--red-dark);
}

.button-light:hover,
.button-light:focus {
    background: var(--cream);
    color: var(--red-dark);
}

/* Resources */

.resource-section {
    padding: clamp(4rem, 7vw, 6.5rem) 0;
    background: var(--cream-light);
}

.section-heading {
    max-width: 780px;
    margin-bottom: 2.4rem;
}

.section-heading h2 {
    margin: 0;
    color: var(--black-soft);
    font-family: var(--heading-font);
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.08;
}

.section-heading p:last-child {
    margin: 1rem 0 0;
    color: var(--gray);
    font-size: 1.08rem;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
}

.resource-card {
    position: relative;
    min-height: 290px;
    padding: 1.7rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.resource-card.featured {
    border-top: 5px solid var(--red);
}

.card-label {
    margin: 0 0 0.65rem;
    color: var(--red);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.resource-card h3 {
    margin: 0;
    color: var(--black-soft);
    font-family: var(--heading-font);
    font-size: 1.7rem;
}

.resource-card p:not(.card-label) {
    color: var(--gray);
}

.card-link {
    display: inline-block;
    margin-top: 0.35rem;
    color: var(--red);
    font-weight: 700;
    text-decoration: none;
}

.card-link:hover,
.card-link:focus {
    color: var(--red-dark);
}

/* About strip */

.about-strip {
    padding: 3rem 0;
    background: var(--red-dark);
    color: var(--white);
}

.about-strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.about-strip h2 {
    margin: 0;
    font-family: var(--heading-font);
    font-size: clamp(1.75rem, 3vw, 2.6rem);
}

/* Footer */

.site-footer {
    padding: 3.2rem 0 1.25rem;
    background: var(--black);
    color: rgba(255, 255, 255, 0.72);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr) minmax(180px, 0.45fr);
    gap: 2rem;
    padding-bottom: 2.3rem;
}

.footer-logo {
    width: 150px;
}

.footer-description {
    max-width: 480px;
}

.site-footer h2 {
    margin: 0 0 0.7rem;
    color: var(--gold-light);
    font-family: var(--heading-font);
    font-size: 1.12rem;
}

.site-footer p {
    margin: 0.35rem 0 0;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.82);
}

.site-footer a:hover,
.site-footer a:focus {
    color: var(--gold-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.84rem;
}

/* Responsive */

@media (max-width: 980px) {
    .header-inner {
        position: relative;
        min-height: 86px;
    }

    .menu-toggle {
        display: inline-block;
    }

    .primary-navigation {
        display: none;
        position: absolute;
        top: calc(100% - 1px);
        right: 1rem;
        left: 1rem;
        padding: 0.8rem;
        border: 1px solid rgba(196, 160, 82, 0.35);
        border-radius: 0 0 8px 8px;
        background: var(--black-soft);
        box-shadow: var(--shadow);
    }

    .primary-navigation.is-open {
        display: block;
    }

    .primary-navigation ul {
        display: block;
    }

    .primary-navigation a {
        padding: 0.82rem;
    }

    .primary-navigation .official-link {
        margin: 0.4rem 0 0;
    }

    .hero-grid,
    .resource-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        max-width: 650px;
    }
}

@media (max-width: 700px) {
    .brand-logo {
        width: 135px;
    }

    .brand-divider {
        height: 40px;
    }

    .brand-title {
        font-size: 1.16rem;
    }

    .brand-subtitle {
        font-size: 0.7rem;
    }

    .about-strip-inner,
    .footer-bottom {
        display: block;
    }

    .about-strip .button {
        margin-top: 1.2rem;
    }
}

@media (max-width: 520px) {
    .container {
        width: min(calc(100% - 1.25rem), var(--container));
    }

    .brand {
        gap: 0.65rem;
    }

    .brand-logo {
        width: 112px;
    }

    .brand-divider {
        display: none;
    }

    .brand-title {
        font-size: 1.02rem;
    }

    .brand-subtitle {
        font-size: 0.62rem;
    }

    .hero {
        padding: 3.5rem 0;
    }

    .button-row,
    .button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
