/*
Theme Name: VMC Federal
Theme URI: https://www.vmcfederal.com.au/
Author: VMC Federal Chapter
Author URI: https://www.vmcfederal.com.au/
Description: Responsive WordPress theme for Veterans MC Federal Chapter.
Version: 2.5.1
Requires at least: 5.8
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vmc-federal-theme
Tags: custom-logo, custom-menu, featured-images, responsive-layout, static-front-page
*/

/* =========================================================
   FONT / DESIGN TOKENS
   ========================================================= */

@font-face {
    font-family: 'Helltown';
    src:
        url('assets/fonts/helltown.woff2') format('woff2'),
        url('assets/fonts/Helltown.woff2') format('woff2'),
        url('assets/fonts/helltown.woff') format('woff'),
        url('assets/fonts/Helltown.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --vmc-black: #000;
    --vmc-bg: #000;
    --vmc-panel: #090909;
    --vmc-panel-2: #111;
    --vmc-yellow: #f1e803;
    --vmc-yellow-bright: #fff600;
    --vmc-white: #fff;
    --vmc-text: #fff;
    --vmc-muted: #dedede;
    --vmc-border: rgba(241, 232, 3, 0.30);
    --vmc-border-strong: rgba(241, 232, 3, 0.58);
    --vmc-shadow: 0 22px 60px rgba(0, 0, 0, 0.48);
    --vmc-wrap: 1180px;
    --vmc-wide: 1320px;
    --vmc-reading: 840px;
    --vmc-gap: clamp(20px, 3vw, 30px);
    --vmc-section: clamp(52px, 8vw, 88px);
    --vmc-radius: 22px;
    --vmc-radius-small: 12px;
    --font-display: 'Helltown', Impact, Haettenschweiler, 'Arial Black', sans-serif;
    --font-body: Arial, Helvetica, sans-serif;
}

/* =========================================================
   RESET / BASE
   ========================================================= */

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

html {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    width: 100%;
    min-width: 320px;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: var(--vmc-bg);
    color: var(--vmc-text);
    font-family: var(--font-body);
    font-size: clamp(17px, 1vw, 18px);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

main,
.site,
.site-main,
.entry-content,
.editor-content,
.wp-site-blocks,
.wp-block-post-content {
    background: var(--vmc-bg);
    color: var(--vmc-text);
}

img,
picture,
video,
canvas,
svg,
iframe {
    display: block;
    max-width: 100%;
}

img,
picture,
video,
canvas,
svg {
    height: auto;
}

iframe {
    border: 0;
}

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

a {
    color: var(--vmc-yellow);
    text-decoration: none;
    text-underline-offset: 0.2em;
}

a:hover {
    color: var(--vmc-white);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--vmc-yellow);
    outline-offset: 3px;
}

p,
li,
figcaption,
blockquote {
    color: var(--vmc-text);
}

p {
    margin: 0 0 1rem;
}

p:last-child {
    margin-bottom: 0;
}

ul,
ol {
    margin-top: 0;
}

strong {
    color: inherit;
    font-weight: 900;
}

.site-wrap,
.vmc-wrap,
.video-section-wrap,
.video-site-wrap {
    width: min(calc(100% - 32px), var(--vmc-wrap));
    margin-inline: auto;
}

.site-wrap-wide {
    width: min(calc(100% - 32px), var(--vmc-wide));
    margin-inline: auto;
}

.anchor-target {
    display: block;
    position: relative;
    top: -130px;
    visibility: hidden;
}

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

.skip-link:focus {
    position: fixed;
    z-index: 99999;
    top: 12px;
    left: 12px;
    width: auto;
    height: auto;
    padding: 11px 15px;
    clip: auto;
    background: var(--vmc-yellow);
    color: #000;
    border-radius: var(--vmc-radius-small);
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */

h1,
h2 {
    margin: 0 0 18px;
    color: #050505;
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: 0.055em;
    line-height: 0.98;
    text-transform: uppercase;
    text-wrap: balance;
    text-shadow:
        0 0 5px rgba(241, 232, 3, 0.95),
        0 0 14px rgba(241, 232, 3, 0.35);
    -webkit-text-stroke: 1px rgba(241, 232, 3, 0.88);
}

h1 {
    font-size: clamp(2.7rem, 6.5vw, 5.8rem);
}

h2 {
    font-size: clamp(2.05rem, 4.6vw, 4rem);
}

h3,
h4,
h5,
h6 {
    margin: 0 0 12px;
    color: var(--vmc-yellow);
    font-family: var(--font-body);
    font-weight: 900;
    letter-spacing: 0.045em;
    line-height: 1.24;
    text-transform: uppercase;
}

.lead {
    color: var(--vmc-white);
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    line-height: 1.7;
}

.centered,
.section-header.centered,
.centered-story-card,
.feature-story-card,
.image-feature-card {
    margin-inline: auto;
    text-align: center;
}

.eyebrow,
.vmc-eyebrow {
    display: inline-block;
    margin: 0 0 14px;
    color: var(--vmc-yellow);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    line-height: 1.2;
    text-transform: uppercase;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.96);
    border-bottom: 1px solid var(--vmc-border-strong);
    backdrop-filter: blur(12px);
}

.header-shell {
    display: grid;
    justify-items: center;
    gap: 9px;
    padding: 10px 0 9px;
}

.header-logo,
.brand,
.brand a,
.brand-fallback,
.custom-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vmc-yellow);
    text-align: center;
}

.brand {
    display: grid;
    gap: 4px;
}

.brand-logo,
.custom-logo-link img,
.custom-logo {
    width: auto;
    max-width: min(220px, 76vw);
    max-height: 112px;
    margin: 0;
    object-fit: contain;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.brand-copy {
    display: grid;
    gap: 2px;
    text-align: center;
}

.brand-name {
    color: var(--vmc-yellow);
    font-size: clamp(1rem, 1.65vw, 1.28rem);
    font-weight: 900;
    letter-spacing: 0.15em;
    line-height: 1.25;
    text-transform: uppercase;
}

.brand-tagline {
    color: var(--vmc-muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.header-menu-bar,
.site-nav {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-menu-bar {
    gap: 10px;
    min-height: 44px;
}

.nav-menu,
.nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a,
.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.055em;
    line-height: 1.2;
    text-transform: uppercase;
}

.nav-menu a {
    border: 1px solid transparent;
    color: var(--vmc-yellow);
    white-space: nowrap;
    transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.nav-menu > li > a:hover,
.nav-menu > li > a:focus-visible,
.nav-menu > .current-menu-item > a,
.nav-menu > .current_page_item > a,
.nav-menu > .current-menu-ancestor > a {
    background: var(--vmc-yellow);
    color: #000;
    border-color: var(--vmc-yellow);
}

.nav-menu .menu-item-has-children > a::after {
    content: '▾';
    margin-left: 7px;
    font-size: 0.8em;
}

.sub-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    z-index: 1001;
    width: min(310px, calc(100vw - 28px));
    padding: 8px;
    background: #050505;
    border: 1px solid var(--vmc-border-strong);
    border-radius: var(--vmc-radius-small);
    box-shadow: var(--vmc-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 6px);
    transition: opacity 0.14s ease, visibility 0.14s ease, transform 0.14s ease;
}

.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.sub-menu a {
    width: 100%;
    justify-content: flex-start;
    padding: 11px 12px;
    border-radius: 12px;
    white-space: normal;
}

.sub-menu a:hover,
.sub-menu a:focus-visible,
.sub-menu .current-menu-item > a {
    background: var(--vmc-yellow);
    color: #000;
}

.menu-toggle {
    display: none;
    gap: 9px;
    border: 1px solid var(--vmc-border-strong);
    background: #050505;
    color: var(--vmc-yellow);
    cursor: pointer;
}

.menu-toggle-bars {
    display: grid;
    gap: 4px;
}

.menu-toggle-bars span {
    width: 21px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.16s ease, opacity 0.16s ease;
}

.nav-is-open .menu-toggle-bars span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-is-open .menu-toggle-bars span:nth-child(2) {
    opacity: 0;
}

.nav-is-open .menu-toggle-bars span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

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

.hero-title-section {
    padding: clamp(2rem, 3.5vw, 3.6rem) 0 clamp(1.2rem, 2vw, 1.8rem);
    background: var(--vmc-bg);
    text-align: center;
}

.hero-title-header,
.hero-title-above-image {
    width: 100%;
    max-width: 1180px;
    margin-inline: auto;
    text-align: center;
}

.hero-title-header {
    margin-bottom: 0;
}

.hero-title-above-image span {
    display: block;
}

.hero-title-above-image span:first-child {
    margin-bottom: 0.1em;
}

.hero-subtitle {
    margin-top: 0.5em;
    font-size: clamp(1.7rem, 3.6vw, 3rem);
}

.hero-lead-centered {
    max-width: 840px;
    margin: 1rem auto 0;
    font-weight: 700;
    text-align: center;
}

.hero {
    position: relative;
    display: grid;
    align-items: center;
    min-height: clamp(420px, 52vw, 620px);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-bottom: 1px solid var(--vmc-border);
}

.hero-image-only {
    padding: 0;
}

.hero-image-spacer {
    min-height: inherit;
}

/* =========================================================
   FRONT PAGE FEATURE ARTICLES
   ========================================================= */

.hero-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(24px, 3.5vw, 44px);
    align-items: center;
}

.hero-feature-reverse .hero-feature-image-wrap {
    order: 2;
}

.hero-feature-reverse .hero-feature-content {
    order: 1;
}

.hero-feature-content,
.hero-feature-image-wrap {
    min-width: 0;
}

.hero-feature-content > h2 {
    margin-bottom: 22px;
}

.hero-feature-body {
    font-size: clamp(1rem, 1.15vw, 1.08rem);
    line-height: 1.75;
}

.hero-feature-body h3 {
    margin: 1.9rem 0 0.7rem;
    font-size: clamp(1.2rem, 1.8vw, 1.55rem);
}

.hero-feature-body p {
    margin-bottom: 1.1rem;
}

.hero-feature-image {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    object-position: center;
    border: 1px solid var(--vmc-border);
    border-radius: var(--vmc-radius);
    box-shadow: var(--vmc-shadow);
}

.hero-feature-article .hero-feature-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: clamp(26px, 4vw, 46px);
}

.hero-feature-article .hero-feature-image-wrap,
.hero-feature-article .hero-feature-content {
    width: 100%;
    max-width: 960px;
    margin-inline: auto;
    text-align: center;
}

.hero-feature-article .hero-feature-image {
    max-height: 620px;
}

.hero-feature-article .hero-feature-body {
    max-width: 820px;
    margin-inline: auto;
}

.hero-feature-article .hero-feature-body p,
.hero-feature-article .hero-feature-body h3 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.feature-introduction {
    max-width: 800px;
    margin: 0 auto 1.7rem;
    font-size: clamp(1.12rem, 1.8vw, 1.3rem);
    line-height: 1.55;
}

.feature-highlight {
    max-width: 760px;
    margin: 1.7rem auto;
    padding: clamp(15px, 2vw, 22px);
    background: rgba(241, 232, 3, 0.045);
    border: 1px solid var(--vmc-border);
    border-left: 3px solid var(--vmc-yellow);
    border-radius: 16px;
}

.feature-closing {
    max-width: 760px;
    margin: 2.2rem auto 0;
    padding: clamp(20px, 3vw, 30px);
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--vmc-border);
    border-radius: var(--vmc-radius);
}

.feature-closing p {
    margin-bottom: 0.4rem;
}

.feature-motto {
    margin-top: 1.3rem !important;
    color: var(--vmc-yellow) !important;
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

/* =========================================================
   SECTIONS / GRIDS / CARDS
   ========================================================= */

.section,
.page-hero,
.page-content-wrap {
    position: relative;
    padding: var(--vmc-section) 0;
}

.section + .section,
.page-content-wrap + .section {
    border-top: 1px solid var(--vmc-border);
}

.section-dark {
    background: var(--vmc-bg);
}

.section-header {
    max-width: 880px;
    margin-bottom: var(--vmc-gap);
}

.section-header.centered {
    margin-inline: auto;
}

.grid,
.split-section,
.vmc-grid {
    display: grid;
    gap: var(--vmc-gap);
}

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

.grid.two,
.split-section,
.vmc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.card,
.media-card,
.article-card,
.editor-content,
.vmc-card,
.vmc-form-box,
.video-card,
.video-large-card,
.tod-hero-section,
.tod-section,
.tod-booking,
.tod-supporters {
    min-width: 0;
    background: var(--vmc-panel);
    color: var(--vmc-white);
    border: 1px solid var(--vmc-border);
    border-radius: var(--vmc-radius);
    box-shadow: var(--vmc-shadow);
}

.card,
.media-card,
.article-card,
.editor-content,
.vmc-card-content,
.vmc-form-box {
    padding: clamp(22px, 3vw, 32px);
}

.card,
.media-card,
.vmc-card,
.video-card,
.video-large-card {
    transition: border-color 0.16s ease, transform 0.16s ease;
}

.card h3,
.media-card h3,
.vmc-card h3 {
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
}

.card-subtitle {
    color: var(--vmc-yellow) !important;
    font-weight: 900;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.card-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 9px 16px;
    margin-top: 16px;
}

.card-link,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-align: center;
}

.card-link {
    color: var(--vmc-yellow);
}

.card-link:hover,
.card-link:focus-visible {
    color: var(--vmc-white);
    text-decoration: underline;
}

.text-link {
    margin: 9px auto 0;
    padding: 11px 18px;
    color: var(--vmc-yellow);
    border: 1px solid var(--vmc-border-strong);
    border-radius: 999px;
    text-transform: uppercase;
}

.text-link:hover,
.text-link:focus-visible {
    background: var(--vmc-yellow);
    color: #000;
}

.placeholder-box,
.image-placeholder {
    min-height: clamp(150px, 22vw, 230px);
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    background: #050505;
    border: 1px dashed var(--vmc-border-strong);
    border-radius: var(--vmc-radius-small);
    font-weight: 900;
    letter-spacing: 0.095em;
    text-align: center;
    text-transform: uppercase;
}

/* =========================================================
   ARDLETHAN REMEMBRANCE FEATURE
   ========================================================= */

.vmc-remembrance-header {
    max-width: 940px;
    margin-bottom: clamp(28px, 4vw, 44px);
}

.vmc-remembrance-list {
    display: grid;
    gap: clamp(22px, 3vw, 34px);
}

.vmc-remembrance-item {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: clamp(20px, 3vw, 40px);
    align-items: center;
    padding: clamp(18px, 2.5vw, 28px);
    background: var(--vmc-panel);
    border: 1px solid var(--vmc-border);
    border-left: 3px solid var(--vmc-yellow);
    border-radius: var(--vmc-radius);
    box-shadow: var(--vmc-shadow);
}

.vmc-remembrance-item.no-image {
    grid-template-columns: 1fr;
}

.vmc-remembrance-item:nth-child(even) .vmc-remembrance-media {
    order: 2;
}

.vmc-remembrance-item:nth-child(even) .vmc-remembrance-content {
    order: 1;
}

.vmc-remembrance-media,
.vmc-remembrance-content {
    min-width: 0;
}

.vmc-remembrance-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
    border-radius: var(--vmc-radius-small);
    border: 1px solid var(--vmc-border);
}

.vmc-remembrance-content h3 {
    margin-bottom: 12px;
    font-size: clamp(1.3rem, 2vw, 1.8rem);
}

.vmc-remembrance-text {
    font-size: clamp(1rem, 1.15vw, 1.08rem);
    line-height: 1.75;
}

.vmc-about-wrap {
    max-width: 980px;
}

.vmc-about-copy {
    margin-top: 24px;
}

/* =========================================================
   IMAGE CONTROL
   ========================================================= */

figure {
    max-width: 100%;
}

.wp-block-image,
.entry-content figure,
.editor-content figure {
    max-width: 100%;
    margin: 0 auto var(--vmc-gap);
    text-align: center;
}

.entry-content img,
.editor-content img,
.wp-block-post-content img {
    height: auto;
    max-width: 100%;
    margin-inline: auto;
    border-radius: var(--vmc-radius-small);
}

.card-image,
.supporter-card-image,
.image-feature-card-img,
.story-card-image {
    width: 100%;
    height: auto;
    margin: 0 auto 1.1rem;
    object-fit: contain;
    object-position: center;
    background: #050505;
    border: 1px solid var(--vmc-border);
    border-radius: var(--vmc-radius-small);
}

.card-image,
.supporter-card-image {
    max-height: 340px;
}

.story-card-image {
    max-width: 760px;
    max-height: 520px;
}

.story-card-image-bottom {
    margin-top: 1.1rem;
    margin-bottom: 0;
}

.image-feature-card {
    max-width: 880px;
}

.image-feature-card-img {
    max-width: 680px;
    max-height: 420px;
}

.wp-block-cover img.wp-block-cover__image-background,
.wp-block-cover .wp-block-cover__image-background {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    object-fit: cover;
    border-radius: 16px;
}

/* =========================================================
   VIDEO
   ========================================================= */

.video-section {
    background: var(--vmc-bg);
}

.video-card-grid,
.video-large-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--vmc-gap);
}

.video-card,
.video-large-card {
    padding: clamp(14px, 1.8vw, 22px);
}

.video-card-title {
    margin-bottom: 14px;
    text-align: center;
}

.responsive-video-frame,
.youtube-frame-large {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
    border-radius: var(--vmc-radius-small);
}

.responsive-video-frame iframe,
.youtube-frame-large iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* =========================================================
   EDITOR BLOCKS
   ========================================================= */

.editor-content > * + *,
.entry-content > * + * {
    margin-top: 1.05em;
}

.editor-content .wp-block-columns,
.entry-content .wp-block-columns {
    gap: var(--vmc-gap);
}

.wp-block-embed,
.wp-block-video,
.wp-block-gallery,
.wp-block-group,
.wp-block-cover,
.wp-block-table,
.wp-block-buttons,
.wp-block-columns,
.wp-block-media-text {
    margin-top: var(--vmc-gap);
    margin-bottom: var(--vmc-gap);
}

.wp-block-group,
.wp-block-media-text,
.wp-block-cover {
    border-radius: var(--vmc-radius);
}

.wp-block-table {
    max-width: 100%;
    overflow-x: auto;
}

.wp-block-table table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    color: var(--vmc-white);
}

.wp-block-table th,
.wp-block-table td {
    padding: 12px 13px;
    border: 1px solid var(--vmc-border);
    text-align: left;
}

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

.button,
.wp-block-button__link,
input[type='submit'],
.vmc-button,
.vmc-form-box .wpcf7-submit,
.vmc-form-box button[type='submit'],
.tod-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 13px 22px;
    background: var(--vmc-yellow);
    color: #000 !important;
    border: 1px solid var(--vmc-yellow);
    border-radius: 999px;
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(241, 232, 3, 0.16);
    transition: background 0.18s ease, transform 0.18s ease;
}

.button:hover,
.button:focus-visible,
.wp-block-button__link:hover,
.wp-block-button__link:focus-visible,
input[type='submit']:hover,
input[type='submit']:focus-visible,
.vmc-button:hover,
.vmc-button:focus-visible,
.tod-button:hover,
.tod-button:focus-visible {
    background: var(--vmc-yellow-bright);
    color: #000 !important;
    transform: translateY(-1px);
}

.button-secondary,
.vmc-button.secondary {
    background: #000;
    color: var(--vmc-yellow) !important;
}

input[type='text'],
input[type='email'],
input[type='tel'],
input[type='url'],
input[type='search'],
textarea,
select {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    background: #000;
    color: var(--vmc-white);
    border: 1px solid rgba(241, 232, 3, 0.34);
    border-radius: 12px;
    outline: none;
}

textarea {
    min-height: 180px;
    resize: vertical;
}

label {
    display: inline-block;
    margin-bottom: 7px;
    color: var(--vmc-yellow);
    font-weight: 900;
}

/* =========================================================
   CONTACT / CONTACT FORM 7
   ========================================================= */

.vmc-contact-page {
    background: var(--vmc-bg);
    color: var(--vmc-white);
}

.vmc-contact-page .vmc-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(20px, 12vw, 40px);
    background-position: center 38%;
    background-repeat: no-repeat;
    background-size: cover;
    border-bottom: 1px solid var(--vmc-border);
    overflow: hidden;
}

.vmc-contact-page .vmc-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at 18% 16%, rgba(241, 232, 3, 0.11), transparent 31%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.52) 50%, rgba(0, 0, 0, 0.78) 100%);
    pointer-events: none;
}

.vmc-contact-page .vmc-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 920px;
    margin-inline: auto;
    padding: clamp(62px, 7vw, 86px) 0;
}

.vmc-contact-page .vmc-hero p,
.vmc-section-header p {
    max-width: 720px;
    margin: 20px 0 0;
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
}

.vmc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.vmc-section {
    padding: clamp(52px, 8vw, 88px) 0;
}

.vmc-section.alt {
    background:
        linear-gradient(180deg, rgba(241, 232, 3, 0.055), transparent 38%),
        #050505;
    border-top: 1px solid var(--vmc-border);
    border-bottom: 1px solid var(--vmc-border);
}

.vmc-section-header {
    max-width: 820px;
    margin-bottom: 30px;
}

.vmc-card {
    height: 100%;
    overflow: hidden;
}

.vmc-card ul {
    margin: 18px 0 0;
    padding-left: 20px;
}

.vmc-image {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    background: #050505;
    object-fit: cover;
    object-position: center;
}

/* Image-only cards fill the full height of the matching text card. */
.vmc-card > .vmc-image:not(.small) {
    height: 100%;
    min-height: clamp(300px, 38vw, 460px);
}

/* Clubhouse image uses its natural ratio so the full group remains visible. */
.vmc-image.small {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
    background: #000;
}

.vmc-card--map {
    display: flex;
    min-height: 430px;
    height: 100%;
    padding: 0;
}

.vmc-card--map .vmc-map {
    width: 100%;
    height: 100%;
    min-height: 430px;
    flex: 1 1 auto;
    border: 0;
    filter: grayscale(1) contrast(1.05);
}

.vmc-contact-list {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

.vmc-contact-item {
    padding: 18px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--vmc-border);
    border-radius: var(--vmc-radius-small);
}

.vmc-contact-item strong {
    display: block;
    margin-bottom: 4px;
    color: var(--vmc-yellow);
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.vmc-form-box {
    background: #070707;
}

.vmc-form-box p {
    margin-bottom: 16px;
}

.vmc-form-box input:not([type='checkbox']):not([type='radio']):not([type='submit']),
.vmc-form-box textarea,
.vmc-form-box select {
    margin: 7px 0 14px;
    background: #000;
}

.vmc-form-box input:focus,
.vmc-form-box textarea:focus,
.vmc-form-box select:focus {
    border-color: var(--vmc-yellow);
    box-shadow: 0 0 0 3px rgba(241, 232, 3, 0.16);
    outline: 0;
}

.vmc-fieldset,
.vmc-form-box fieldset {
    margin: 0 0 18px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid var(--vmc-border);
    border-radius: var(--vmc-radius-small);
}

.vmc-fieldset legend,
.vmc-form-box fieldset legend {
    padding: 0 7px;
    color: var(--vmc-yellow);
    font-weight: 900;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.vmc-form-box .wpcf7,
.vmc-form-box .wpcf7-form,
.vmc-form-box .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.vmc-form-box .wpcf7-checkbox,
.vmc-form-box .wpcf7-radio {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.vmc-form-box .wpcf7-list-item {
    display: block;
    margin: 0;
}

.vmc-form-box .wpcf7-list-item label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--vmc-white);
    border: 1px solid var(--vmc-border);
    border-radius: var(--vmc-radius-small);
    text-transform: none;
    cursor: pointer;
}

.vmc-form-box input[type='checkbox'],
.vmc-form-box input[type='radio'] {
    width: 18px;
    height: 18px;
    min-height: auto;
    margin: 3px 0 0;
    accent-color: var(--vmc-yellow);
}

.vmc-form-box .wpcf7-not-valid-tip {
    display: block;
    margin: -6px 0 12px;
    color: var(--vmc-yellow);
    font-size: 0.9rem;
    font-weight: 800;
}

.vmc-form-box .wpcf7 form .wpcf7-response-output {
    margin: 16px 0 0;
    padding: 14px 16px;
    background: rgba(241, 232, 3, 0.07);
    color: var(--vmc-white);
    border: 1px solid var(--vmc-border-strong);
    border-radius: var(--vmc-radius-small);
}
.vmc-recaptcha-notice {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.vmc-recaptcha-notice p {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.6;
    opacity: 0.8;
}

.vmc-recaptcha-notice a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.vmc-recaptcha-notice a:hover,
.vmc-recaptcha-notice a:focus-visible {
    text-decoration-thickness: 2px;
}
/* =========================================================
   PAGES / POSTS
   ========================================================= */

.page-hero {
    background: var(--vmc-bg);
    border-bottom: 1px solid var(--vmc-border);
}

.page-hero .site-wrap {
    max-width: 980px;
    margin-inline: auto;
    text-align: center;
}

.page-hero h1,
.page-hero h2 {
    width: 100%;
    margin-inline: auto;
    text-align: center;
}

.article-card {
    max-width: 920px;
    margin-inline: auto;
}

.page-content-wrap {
    background: var(--vmc-bg);
}

.posts-list {
    display: grid;
    gap: var(--vmc-gap);
}

.page-links,
.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: var(--vmc-gap);
}

/* =========================================================
   BATTLE HONOURS PAGE
   Single background, centred title, readable campaign blocks
   ========================================================= */

body:has(.battle-honours-page),
body:has(.battle-honours-page) main,
body:has(.battle-honours-page) .site,
body:has(.battle-honours-page) .site-main,
body:has(.battle-honours-page) .entry-content,
body:has(.battle-honours-page) .editor-content,
body:has(.battle-honours-page) .wp-block-post-content,
body:has(.battle-honours-page) .page-content-wrap {
    background: var(--vmc-bg);
}

body:has(.battle-honours-page) .editor-content,
body:has(.battle-honours-page) .article-card {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

body:has(.battle-honours-page) .page-hero {
    width: 100%;
    min-height: 0;
    padding: clamp(42px, 5vw, 68px) 0;
    background: var(--vmc-bg);
    border-bottom: 1px solid var(--vmc-border);
}

body:has(.battle-honours-page) .page-hero .site-wrap {
    width: min(calc(100% - 40px), 1180px);
    max-width: 1180px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

body:has(.battle-honours-page) .page-hero h1,
body:has(.battle-honours-page) .page-hero h2 {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0;
    text-align: center;
    font-size: clamp(3rem, 5.8vw, 5.2rem);
    line-height: 1;
    letter-spacing: 0.05em;
}

.battle-honours-page {
    width: min(calc(100% - 40px), 1040px);
    margin: 0 auto;
    padding: clamp(44px, 6vw, 72px) 0 clamp(56px, 7vw, 86px);
    background: transparent;
}

.battle-honours-page .wp-block-group {
    margin-top: 0;
    margin-bottom: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.battle-intro {
    width: min(100%, 900px);
    margin: 0 auto;
    padding: 0 0 clamp(44px, 6vw, 62px);
    text-align: center;
}

.battle-intro > h2 {
    max-width: 900px;
    margin: 0 auto 22px;
    text-align: center;
    font-size: clamp(2rem, 3.8vw, 3.3rem);
}

.battle-intro > p {
    width: min(100%, 820px);
    margin: 0 auto 17px;
    color: var(--vmc-text);
    font-size: clamp(1rem, 1.25vw, 1.08rem);
    line-height: 1.8;
    text-align: center;
}

.battle-opening-motto,
.battle-intro > p:first-of-type {
    margin-bottom: 24px !important;
    color: var(--vmc-yellow) !important;
    font-size: clamp(1.08rem, 1.8vw, 1.35rem) !important;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.4 !important;
    text-align: center !important;
    text-transform: uppercase;
}

.battle-segment {
    width: min(100%, 920px);
    margin: 0 auto;
    padding: clamp(44px, 5.5vw, 66px) 0;
    background: transparent;
}

.battle-segment + .battle-segment {
    border-top: 1px solid var(--vmc-border);
}

.battle-segment > h2 {
    width: 100%;
    max-width: 920px;
    margin: 0 auto 11px;
    padding: 0;
    text-align: center;
    font-size: clamp(2.25rem, 4.2vw, 3.8rem);
    line-height: 1;
    letter-spacing: 0.05em;
}

.battle-period {
    width: 100%;
    margin: 0 auto 28px !important;
    color: var(--vmc-yellow) !important;
    font-size: clamp(0.98rem, 1.4vw, 1.12rem);
    font-weight: 900;
    letter-spacing: 0.085em;
    line-height: 1.3;
    text-align: center !important;
}

.battle-segment > p:not(.battle-period):not(.battle-highlight) {
    width: min(100%, 820px);
    margin: 0 auto 17px;
    color: var(--vmc-text);
    font-size: clamp(1rem, 1.15vw, 1.07rem);
    line-height: 1.78;
    text-align: left;
}

.battle-segment > h3 {
    width: min(100%, 820px);
    margin: clamp(30px, 4vw, 42px) auto 13px;
    padding: 0 0 8px;
    color: var(--vmc-yellow);
    font-size: clamp(1.2rem, 1.8vw, 1.5rem);
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 1.25;
    text-align: left;
    text-transform: uppercase;
    border-bottom: 1px solid var(--vmc-border);
}

.battle-highlight {
    width: min(100%, 760px);
    margin: 28px auto !important;
    padding: 18px 22px;
    background: rgba(241, 232, 3, 0.035);
    border: 0;
    border-left: 3px solid var(--vmc-yellow);
    border-radius: 0;
    color: var(--vmc-white);
    font-size: clamp(1rem, 1.2vw, 1.06rem);
    line-height: 1.7;
    text-align: center !important;
}

.battle-highlight strong {
    color: var(--vmc-white);
}

.battle-closing {
    width: min(100%, 860px);
    margin: 0 auto;
    padding: clamp(42px, 5vw, 62px) 20px;
    background: transparent;
    text-align: center;
}

.battle-closing p {
    max-width: 780px;
    margin: 0 auto 11px;
    text-align: center;
    line-height: 1.7;
}

.battle-closing strong {
    color: var(--vmc-yellow);
}

.battle-closing h3 {
    margin: 0 auto 20px;
    text-align: center;
}

.battle-honours-page .wp-block-separator {
    width: min(100%, 900px);
    margin: 0 auto;
    border: 0;
    border-top: 1px solid var(--vmc-border);
}

/* =========================================================
   TOUR OF DUTY
   ========================================================= */

.tod-template {
    width: 100%;
    background: var(--vmc-bg);
    color: var(--vmc-white);
}

.tod-page {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: clamp(32px, 4.5vw, 56px) 0 clamp(64px, 7vw, 96px);
    text-align: center;
}

.tod-content-wrap {
    width: min(900px, 100%);
    margin-inline: auto;
}

.tod-content-wrap-wide {
    width: min(1040px, 100%);
}

.tod-page h1,
.tod-page h2,
.tod-page h3,
.tod-page p {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.tod-title {
    max-width: 980px;
    margin-bottom: 24px !important;
    font-size: clamp(2.6rem, 5.4vw, 4.8rem);
}

.tod-page h2 {
    max-width: 1000px;
    font-size: clamp(2rem, 3.8vw, 3.5rem);
}

.tod-page h3 {
    font-size: clamp(1.05rem, 1.4vw, 1.22rem);
}

.tod-page p,
.tod-page li {
    font-size: clamp(1rem, 1.35vw, 1.08rem);
    line-height: 1.75;
}

.tod-page p {
    max-width: 920px;
}

.tod-hero-section,
.tod-section,
.tod-booking,
.tod-supporters {
    width: 100%;
    margin: clamp(24px, 3.5vw, 38px) auto;
    padding: clamp(24px, 3vw, 40px);
}

.tod-hero-section {
    margin-top: 0;
}

.tod-image-section {
    display: flex;
    justify-content: center;
    margin: clamp(16px, 3vw, 30px) auto clamp(30px, 4vw, 48px);
}

.tod-page .tod-hero-img,
.tod-template .tod-hero-img,
.tod-image-section img.tod-hero-img {
    width: min(330px, 82vw);
    max-width: 330px;
    max-height: 330px;
    margin: 0 auto;
    object-fit: contain;
    background: #000;
    border: 1px solid var(--vmc-border);
    border-radius: var(--vmc-radius);
}

.tod-details-grid,
.tod-supporter-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 26px;
}

.tod-detail-card {
    padding: 22px 18px;
    background: #0b0b0b;
    border: 1px solid var(--vmc-border);
    border-radius: var(--vmc-radius-small);
}

.tod-location-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
    gap: 26px;
    align-items: stretch;
    margin-top: 24px;
}

.tod-location-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tod-location-list {
    display: inline-grid;
    gap: 7px;
    width: fit-content;
    max-width: 100%;
    margin: 18px auto 0;
    padding-left: 22px;
    text-align: left;
}

.tod-map {
    width: 100%;
    min-height: 370px;
    overflow: hidden;
    background: #111;
    border: 1px solid var(--vmc-border);
    border-radius: var(--vmc-radius-small);
}

.tod-map iframe {
    width: 100%;
    height: 100%;
    min-height: 370px;
}

.tod-socials {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 24px;
}

.tod-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 52px;
    padding: 10px 17px;
    background: #0b0b0b;
    color: var(--vmc-yellow) !important;
    border: 1px solid var(--vmc-border);
    border-radius: 999px;
    font-weight: 900;
}

.tod-social-link img,
.tod-social-img {
    width: 32px;
    height: 32px;
    max-width: 32px;
    max-height: 32px;
    margin: 0;
    object-fit: contain;
    border-radius: 12px;
}

.tod-supporter-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 26px;
    max-width: 900px;
    margin: 26px auto 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.tod-supporter-list li {
    position: relative;
    padding-left: 22px;
    text-align: left;
}

.tod-supporter-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--vmc-yellow);
    font-weight: 900;
}

.tod-patch-note {
    margin-top: 30px;
    color: var(--vmc-yellow) !important;
    font-size: 1.22rem;
}

/* =========================================================
   SUPPORTER LOGO BANNER
   Consistent, readable logo cards with seamless scrolling.
   Sized here once, instead of conflicting end-of-file overrides.
   ========================================================= */

.vmc-supporter-logo-banner {
    --vmc-logo-card-width: 230px;
    --vmc-logo-image-height: 108px;
    --vmc-logo-gap: 9px;
    margin-top: 0;
    overflow: hidden;
    background: var(--vmc-bg);
    border-top: 1px solid var(--vmc-yellow);
    border-bottom: 1px solid var(--vmc-border);
}

.vmc-supporter-logo-banner-title {
    padding: 15px 12px 4px;
    color: var(--vmc-yellow);
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-align: center;
    text-transform: uppercase;
}

.vmc-supporter-logo-window {
    width: 100%;
    overflow: hidden;
    padding: 13px 0 22px;
}

.vmc-supporter-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: vmc-scroll-logos 90s linear infinite;
    will-change: transform;
}

.vmc-supporter-logo {
    display: flex;
    flex: 0 0 var(--vmc-logo-card-width);
    align-items: center;
    justify-content: center;
    width: var(--vmc-logo-card-width);
    min-width: 0;
    height: calc(var(--vmc-logo-image-height) + 20px);
    margin: 0 var(--vmc-logo-gap);
    padding: 10px;
    background: #f7f7f7;
    border: 1px solid var(--vmc-border);
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}

.vmc-supporter-logo img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: var(--vmc-logo-image-height);
    max-height: var(--vmc-logo-image-height);
    object-fit: contain;
    object-position: center;
    border: 0;
    border-radius: 0;
}

.vmc-supporter-logo-banner:hover .vmc-supporter-track,
.vmc-supporter-logo-banner:focus-within .vmc-supporter-track {
    animation-play-state: paused;
}

@keyframes vmc-scroll-logos {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (max-width: 680px) {
    .vmc-supporter-logo-banner {
        --vmc-logo-card-width: 177px;
        --vmc-logo-image-height: 78px;
        --vmc-logo-gap: 7px;
    }

    .vmc-supporter-logo-banner-title {
        padding-top: 12px;
        font-size: 0.86rem;
    }

    .vmc-supporter-logo-window {
        padding: 11px 0 17px;
    }
}

/* =========================================================
   SOCIAL ICON SECTION
   ========================================================= */

.vmc-social-section {
    width: 100%;
    padding: clamp(26px, 4vw, 42px) 20px;
    background:
        linear-gradient(180deg, rgba(241, 232, 3, 0.055), transparent 38%),
        #050505;
    border-top: 1px solid var(--vmc-border);
    border-bottom: 1px solid var(--vmc-border);
    text-align: center;
}

.vmc-social-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.vmc-social-section h2 {
    margin: 0 0 7px;
    font-size: clamp(2.2rem, 6vw, 4rem);
}

.vmc-social-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.vmc-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 6px;
    transition: transform 0.16s ease, filter 0.16s ease;
}

.vmc-social-icon img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 5px;
}

.vmc-social-icon:hover,
.vmc-social-icon:focus-visible {
    transform: translateY(-1px) scale(1.04);
    filter: drop-shadow(0 0 7px rgba(241, 232, 3, 0.55));
}

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

#vmc-footer-final,
#vmc-footer-final * {
    box-sizing: border-box;
}

#vmc-footer-final {
    width: 100%;
    padding: clamp(34px, 4.5vw, 48px) 20px 28px;
    background: #000;
    color: #fff;
    border-top: 1px solid var(--vmc-border-strong);
    text-align: center;
}

#vmc-footer-final .vmc-footer-top-row {
    width: min(100%, 820px);
    margin: 0 auto 26px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(28px, 6vw, 72px);
    align-items: center;
}

#vmc-footer-final .vmc-footer-logo-column,
#vmc-footer-final .vmc-footer-menu-column,
#vmc-footer-final .vmc-footer-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#vmc-footer-final .vmc-footer-logo {
    width: auto;
    max-width: 178px;
    max-height: 154px;
    margin: 0 auto;
    object-fit: contain;
}

#vmc-footer-final .vmc-footer-menu-title {
    margin: 0 0 11px;
    color: var(--vmc-yellow);
    font-family: var(--font-body);
    font-size: clamp(1.15rem, 1.8vw, 1.38rem);
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

#vmc-footer-final .vmc-footer-home-link {
    color: #fff;
    font-size: 1.02rem;
    font-weight: 900;
}

#vmc-footer-final .vmc-footer-home-link:hover,
#vmc-footer-final .vmc-footer-home-link:focus-visible {
    color: var(--vmc-yellow);
    text-decoration: underline;
}

#vmc-footer-final .vmc-footer-legal-row {
    width: min(100%, 820px);
    margin: 0 auto;
    padding: 13px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px 24px;
    border-top: 1px solid var(--vmc-border);
    border-bottom: 1px solid var(--vmc-border);
}

#vmc-footer-final .vmc-footer-legal-row a {
    color: var(--vmc-yellow);
    font-size: 0.92rem;
    font-weight: 900;
}

#vmc-footer-final .vmc-footer-credit-row {
    width: min(100%, 820px);
    margin: 18px auto 0;
    display: grid;
    gap: 7px;
}

#vmc-footer-final .vmc-footer-credit-row p {
    margin: 0;
    font-size: 0.92rem;
}


/* =========================================================
   CONTACT-PAGE DESIGN SYSTEM ALIGNMENT
   Shared aliases allow standard pages and standalone layouts to use the
   same visual language without changing their HTML structure.
   ========================================================= */

.wrap {
    width: min(calc(100% - 32px), var(--vmc-wrap));
    margin-inline: auto;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 820px;
    padding: 92px 0;
}

.hero:not(.hero-image-only)::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 20%, rgba(241, 232, 3, 0.12), transparent 32%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.70) 52%, rgba(0, 0, 0, 0.72) 100%);
}

.hero:not(.hero-image-only) > * {
    position: relative;
    z-index: 2;
}

.hero p,
.hero-inner p,
.section-header p,
.page-hero p {
    max-width: 790px;
    color: var(--vmc-white);
    font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.actions,
.vmc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.section.alt,
.page-content-wrap.alt {
    background:
        linear-gradient(180deg, rgba(241, 232, 3, 0.055), transparent 38%),
        #050505;
}

.form-box,
.map-card,
.support-card {
    min-width: 0;
    padding: clamp(22px, 3vw, 32px);
    background: linear-gradient(180deg, rgba(17, 17, 17, 0.97), rgba(7, 7, 7, 0.99));
    color: var(--vmc-white);
    border: 1px solid var(--vmc-border);
    border-radius: var(--vmc-radius);
    box-shadow: var(--vmc-shadow);
}

.map-card {
    min-height: 100%;
    padding: 0;
    overflow: hidden;
}

.map-card iframe {
    width: 100%;
    height: 100%;
    min-height: 430px;
    border: 0;
    filter: grayscale(1) contrast(1.05);
}

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

.field {
    min-width: 0;
}

.field.full {
    grid-column: 1 / -1;
}

.anti-spam-panel {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 0.45fr);
    gap: 18px;
    align-items: end;
    padding: 18px;
    background: rgba(241, 232, 3, 0.045);
    border: 1px solid var(--vmc-border);
    border-radius: 16px;
}

.anti-spam-copy,
.form-note,
.form-status {
    color: var(--vmc-muted);
    font-size: 0.94rem;
}

.anti-spam-copy strong {
    display: block;
    margin-bottom: 4px;
    color: var(--vmc-yellow);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.form-note,
.form-status {
    margin-top: 18px;
}

.form-status {
    min-height: 1.6em;
    color: var(--vmc-yellow);
    font-weight: 800;
}

.honeypot-field,
.vmc-honeypot,
.vmc-honeypot-wrap {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.social-section,
.vmc-social-section {
    width: 100%;
    padding: 42px 20px;
    text-align: center;
    border-top: 1px solid var(--vmc-border);
}

.social-links,
.vmc-social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 20px;
}

.social-link,
.vmc-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 10px 18px;
    background: var(--vmc-panel);
    border: 1px solid var(--vmc-border-strong);
    border-radius: 999px;
    color: var(--vmc-yellow);
    font-weight: 900;
    text-transform: uppercase;
}

.social-link:hover,
.social-link:focus-visible,
.vmc-social-link:hover,
.vmc-social-link:focus-visible {
    background: var(--vmc-yellow);
    color: #000;
    text-decoration: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--vmc-yellow);
    box-shadow: 0 0 0 3px rgba(241, 232, 3, 0.16);
    outline: none;
}

@media (max-width: 840px) {
    .form-grid,
    .anti-spam-panel {
        grid-template-columns: 1fr;
    }

    .field.full {
        grid-column: auto;
    }

    .hero-inner {
        padding: 82px 0;
    }
}

@media (max-width: 560px) {
    .wrap {
        width: min(calc(100% - 22px), var(--vmc-wrap));
    }

    .actions,
    .vmc-actions,
    .social-links,
    .vmc-social-links {
        flex-direction: column;
        align-items: stretch;
    }

    .actions .button,
    .vmc-actions .vmc-button,
    .social-link,
    .vmc-social-link {
        width: 100%;
    }

    .map-card iframe {
        min-height: 340px;
    }
}

/* =========================================================
   HOVER ENHANCEMENTS FOR POINTER DEVICES
   ========================================================= */

@media (hover: hover) and (pointer: fine) {
    .card:hover,
    .media-card:hover,
    .vmc-card:hover,
    .video-card:hover,
    .video-large-card:hover {
        transform: translateY(-2px);
        border-color: var(--vmc-border-strong);
    }
}

/* =========================================================
   RESPONSIVE: LARGE TABLET / SMALL DESKTOP
   ========================================================= */

@media (max-width: 1080px) {
    .grid.three,
    .tod-details-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-wrap,
    .site-wrap-wide,
    .video-section-wrap,
    .video-site-wrap,
    .vmc-wrap {
        width: min(calc(100% - 32px), var(--vmc-wide));
    }
}

/* =========================================================
   RESPONSIVE: TABLET
   ========================================================= */

@media (max-width: 820px) {
    .header-shell {
        padding: 9px 0;
    }

    .brand-logo,
    .custom-logo-link img,
    .custom-logo {
        max-width: min(205px, 76vw);
        max-height: 104px;
    }

    .header-menu-bar {
        display: grid;
        justify-items: center;
        gap: 8px;
    }

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

    .site-nav {
        display: none;
    }

    .nav-is-open .site-nav {
        display: block;
    }

    .nav-menu {
        width: min(100%, 620px);
        display: grid;
        gap: 5px;
        margin-inline: auto;
        padding: 8px;
        background: #030303;
        border: 1px solid var(--vmc-border-strong);
        border-radius: var(--vmc-radius-small);
    }

    .nav-menu li,
    .nav-menu a,
    .sub-menu a {
        width: 100%;
    }

    .nav-menu a,
    .sub-menu a {
        justify-content: flex-start;
        min-height: 46px;
        padding: 12px 13px;
        border-radius: 12px;
        white-space: normal;
    }

    .sub-menu {
        position: static;
        width: 100%;
        margin-top: 6px;
        padding: 6px 0 0 12px;
        background: transparent;
        border: 0;
        border-left: 2px solid var(--vmc-border-strong);
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .hero-feature-grid,
    .split-section,
    .vmc-grid,
    .video-card-grid,
    .video-large-grid,
    .tod-location-grid {
        grid-template-columns: 1fr;
    }

    .grid.two,
    .grid.three,
    .tod-details-grid,
    .tod-supporter-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-feature-reverse .hero-feature-image-wrap,
    .hero-feature-reverse .hero-feature-content {
        order: initial;
    }

    .vmc-remembrance-item {
        grid-template-columns: 1fr;
    }

    .vmc-remembrance-item:nth-child(even) .vmc-remembrance-media,
    .vmc-remembrance-item:nth-child(even) .vmc-remembrance-content {
        order: initial;
    }

    .vmc-remembrance-media {
        order: 1;
    }

    .vmc-remembrance-content {
        order: 2;
    }

    .tod-map,
    .tod-map iframe {
        min-height: 330px;
    }

    body:has(.battle-honours-page) .page-hero {
        padding: 38px 0;
    }

    .battle-honours-page {
        width: min(calc(100% - 30px), 1040px);
        padding-top: 42px;
    }

    .battle-segment {
        padding: 40px 4px;
    }
}

/* =========================================================
   RESPONSIVE: PHONE / SMALL TABLET
   ========================================================= */

@media (max-width: 680px) {
    .site-wrap,
    .site-wrap-wide,
    .video-section-wrap,
    .video-site-wrap,
    .vmc-wrap {
        width: calc(100% - 24px);
    }

    h1 {
        font-size: clamp(2.35rem, 14vw, 3.8rem);
        letter-spacing: 0.045em;
    }

    h2 {
        font-size: clamp(1.95rem, 11vw, 3rem);
        letter-spacing: 0.045em;
    }

    .hero-title-section {
        padding-top: 1.8rem;
    }

    .hero-image-only {
        min-height: 260px;
    }

    .section,
    .page-hero,
    .page-content-wrap,
    .vmc-section {
        padding: 40px 0;
    }

    .grid.two,
    .grid.three,
    .tod-details-grid,
    .tod-supporter-list {
        grid-template-columns: 1fr;
    }

    .vmc-remembrance-item {
        padding: 15px;
        border-left-width: 2px;
    }

    .vmc-remembrance-image {
        aspect-ratio: auto;
    }

    .card,
    .media-card,
    .editor-content,
    .article-card,
    .vmc-card,
    .vmc-form-box,
    .video-card,
    .video-large-card {
        border-radius: var(--vmc-radius);
    }

    .wp-block-button,
    .wp-block-button__link {
        width: 100%;
    }

    .button,
    .wp-block-button__link,
    input[type='submit'],
    .vmc-button,
    .tod-button {
        min-height: 48px;
    }

    .tod-page {
        width: calc(100% - 22px);
        padding-top: 24px;
    }

    .tod-hero-section,
    .tod-section,
    .tod-booking,
    .tod-supporters {
        padding: 22px 15px;
        margin: 22px auto;
        border-radius: var(--vmc-radius);
    }

    .tod-page .tod-hero-img,
    .tod-template .tod-hero-img,
    .tod-image-section img.tod-hero-img {
        width: min(250px, 78vw);
        max-width: 250px;
        max-height: 250px;
    }

    .tod-socials {
        flex-direction: column;
    }

    .tod-social-link {
        width: min(100%, 280px);
    }

    #vmc-footer-final .vmc-footer-top-row {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    #vmc-footer-final .vmc-footer-logo {
        max-width: 150px;
        max-height: 132px;
    }

    body:has(.battle-honours-page) .page-hero {
        padding: 32px 0;
    }

    body:has(.battle-honours-page) .page-hero .site-wrap {
        width: calc(100% - 24px);
    }

    body:has(.battle-honours-page) .page-hero h1,
    body:has(.battle-honours-page) .page-hero h2 {
        font-size: clamp(2.5rem, 13vw, 3.8rem);
        line-height: 0.96;
    }

    .battle-honours-page {
        width: calc(100% - 24px);
        padding: 32px 0 46px;
    }

    .battle-intro {
        padding-bottom: 34px;
    }

    .battle-intro > p:not(.battle-opening-motto) {
        text-align: left;
    }

    .battle-segment {
        padding: 34px 2px;
    }

    .battle-segment > h2 {
        font-size: clamp(2rem, 10vw, 2.8rem);
    }

    .battle-period {
        margin-bottom: 22px !important;
        font-size: 0.94rem;
    }

    .battle-segment > p:not(.battle-period):not(.battle-highlight) {
        font-size: 1rem;
        line-height: 1.7;
    }

    .battle-segment > h3 {
        margin-top: 28px;
        font-size: 1.16rem;
    }

    .battle-highlight {
        margin: 24px auto !important;
        padding: 16px 13px;
    }

    .battle-closing {
        padding: 34px 8px;
    }
}

/* =========================================================
   RESPONSIVE: VERY SMALL PHONES
   ========================================================= */

@media (max-width: 420px) {
    .brand-name {
        font-size: 0.92rem;
        letter-spacing: 0.12em;
    }

    .brand-tagline {
        font-size: 0.72rem;
        letter-spacing: 0.12em;
    }

    .menu-toggle {
        width: 100%;
        max-width: 260px;
    }

    .vmc-social-icon {
        width: 50px;
        height: 50px;
    }

    .vmc-social-icon img {
        width: 39px;
        height: 39px;
    }
}

/* =========================================================
   FRONT PAGE EVENT CARDS
   Anzac Day / Veteran Support / Media Gallery
   ========================================================= */

/* Keep the three event cards visually consistent and centred. */
#events .grid.three {
    align-items: stretch;
}

#events .image-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    text-align: center;
}

#events .image-card .card-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: clamp(190px, 18vw, 240px);
    margin: 0 auto 20px;
    object-fit: cover;
    object-position: center;
    background: #050505;
    border: 1px solid var(--vmc-border);
    border-radius: var(--vmc-radius-small);
}

#events .image-card h3 {
    width: 100%;
    margin: 0 auto 12px;
    color: var(--vmc-yellow);
    font-size: clamp(1.2rem, 1.8vw, 1.5rem);
    line-height: 1.2;
    text-align: center;
}

#events .image-card > p {
    width: 100%;
    max-width: 340px;
    margin: 0 auto 18px;
    color: var(--vmc-white);
    font-size: clamp(1rem, 1.2vw, 1.06rem);
    line-height: 1.65;
    text-align: center;
}

#events .image-card .card-links {
    width: 100%;
    margin-top: auto;
    padding-top: 8px;
    justify-content: center;
    text-align: center;
}

#events .image-card .card-link {
    margin: 0;
    text-align: center;
}

@media (max-width: 1080px) {
    #events .grid.three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #events .image-card .card-image {
        height: clamp(190px, 28vw, 240px);
    }
}

@media (max-width: 680px) {
    #events .grid.three {
        grid-template-columns: 1fr;
    }

    #events .image-card {
        padding: 18px 16px;
    }

    #events .image-card .card-image {
        width: min(100%, 420px);
        height: auto;
        aspect-ratio: 16 / 10;
    }

    #events .image-card > p {
        max-width: 440px;
    }
}


/* Contact-page image, map and hero sizing. */
@media (max-width: 820px) {
    .vmc-contact-page .vmc-hero {
        min-height: 440px;
        background-position: center;
    }

    .vmc-contact-page .vmc-hero-inner {
        padding: 62px 0;
    }

    .vmc-card > .vmc-image:not(.small) {
        height: clamp(280px, 62vw, 420px);
    }

    .vmc-image.small {
        height: auto;
        min-height: 0;
        object-fit: contain;
    }

    .vmc-card--map,
    .vmc-card--map .vmc-map {
        min-height: 360px;
    }
}

@media (max-width: 560px) {
    .vmc-contact-page .vmc-hero {
        min-height: 400px;
    }

    .vmc-contact-page .vmc-hero-inner {
        padding: 54px 0;
    }

    .vmc-card > .vmc-image:not(.small) {
        height: 260px;
        min-height: 260px;
    }

    .vmc-image.small {
        height: auto;
        min-height: 0;
    }

    .vmc-card--map,
    .vmc-card--map .vmc-map {
        min-height: 330px;
    }
}

/* =========================================================
   ACCESSIBILITY / REDUCED MOTION
   ========================================================= */

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

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

    .vmc-supporter-track {
        animation: none;
        transform: none;
        will-change: auto;
    }

    .vmc-supporter-logo-window {
        overflow-x: auto;
        overscroll-behavior-x: contain;
    }
}

/* =========================================================
   CONTACT FORM 7 — FULL-WIDTH CONTACT LAYOUT
   ========================================================= */

.vmc-contact-form-section {
    background:
        radial-gradient(circle at 15% 0%, rgba(241, 232, 3, 0.035), transparent 34%),
        var(--vmc-bg);
}

.vmc-contact-form-header {
    max-width: 860px;
    margin-bottom: 26px;
}

.vmc-contact-form-header .vmc-stacked-heading {
    max-width: 640px;
    margin-bottom: 16px;
}

.vmc-stacked-heading > span {
    display: block;
}

.vmc-contact-form-header p {
    max-width: 810px;
    margin: 0;
    color: var(--vmc-white);
    font-size: clamp(1rem, 1.5vw, 1.12rem);
    line-height: 1.7;
}

.vmc-form-box--wide {
    width: 100%;
    max-width: none;
    padding: clamp(22px, 3vw, 32px);
    overflow: hidden;
    background: linear-gradient(180deg, rgba(17, 17, 17, 0.96), rgba(5, 5, 5, 0.99));
    border: 1px solid var(--vmc-border-strong);
    border-radius: var(--vmc-radius);
    box-shadow: var(--vmc-shadow);
}

.vmc-form-box--wide .wpcf7,
.vmc-form-box--wide .wpcf7-form {
    width: 100%;
    margin: 0;
}

.vmc-cf7-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.vmc-cf7-field {
    min-width: 0;
}

.vmc-cf7-field--full,
.vmc-cf7-antispam,
.vmc-cf7-submit-row {
    grid-column: 1 / -1;
}

.vmc-cf7-field label,
.vmc-cf7-quiz-field .wpcf7-quiz-label {
    display: block;
    margin: 0 0 7px;
    color: var(--vmc-yellow);
    font-size: 0.96rem;
    font-weight: 900;
    line-height: 1.35;
}

.vmc-cf7-field .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.vmc-cf7-field input:not([type='checkbox']):not([type='radio']):not([type='submit']),
.vmc-cf7-field select,
.vmc-cf7-field textarea {
    width: 100%;
    margin: 0;
    padding: 12px 14px;
    background: #000;
    color: var(--vmc-white);
    border: 1px solid rgba(241, 232, 3, 0.56);
    border-radius: var(--vmc-radius-small);
    box-shadow: none;
}

.vmc-cf7-field input:not([type='checkbox']):not([type='radio']):not([type='submit']),
.vmc-cf7-field select {
    min-height: 50px;
}

.vmc-cf7-field textarea {
    min-height: 180px;
    resize: vertical;
}

.vmc-cf7-field input:focus,
.vmc-cf7-field select:focus,
.vmc-cf7-field textarea:focus {
    border-color: var(--vmc-yellow-bright);
    box-shadow: 0 0 0 3px rgba(241, 232, 3, 0.15);
    outline: 0;
}

.vmc-cf7-antispam {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.42fr);
    gap: 22px;
    align-items: center;
    padding: 18px;
    background: rgba(241, 232, 3, 0.035);
    border: 1px solid rgba(241, 232, 3, 0.42);
    border-radius: 16px;
}

.vmc-cf7-antispam-copy {
    display: grid;
    gap: 5px;
    color: var(--vmc-white);
    font-size: 0.9rem;
    line-height: 1.55;
}

.vmc-cf7-antispam-copy strong {
    color: var(--vmc-yellow);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.vmc-cf7-quiz-field .wpcf7-quiz-label {
    line-height: 1.4;
}

.vmc-cf7-submit-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.vmc-cf7-submit-row .vmc-submit,
.vmc-cf7-submit-row input[type='submit'].vmc-submit {
    width: auto;
    min-height: 48px;
    margin: 0;
    padding: 13px 22px;
}

.vmc-cf7-submit-row .wpcf7-spinner {
    margin: 0;
}

.vmc-cf7-form-note {
    flex: 1 1 420px;
    margin: 0;
    color: var(--vmc-white);
    font-size: 0.88rem;
    line-height: 1.55;
}

.vmc-form-box--wide .wpcf7-not-valid-tip {
    display: block;
    margin: 6px 0 0;
}

.vmc-form-box--wide .wpcf7 form .wpcf7-response-output {
    margin: 18px 0 0;
}

.vmc-form-error {
    margin: 0;
    color: var(--vmc-white);
    font-weight: 800;
}

@media (max-width: 760px) {
    .vmc-cf7-grid,
    .vmc-cf7-antispam {
        grid-template-columns: 1fr;
    }

    .vmc-cf7-field,
    .vmc-cf7-field--full,
    .vmc-cf7-antispam,
    .vmc-cf7-submit-row {
        grid-column: 1;
    }

    .vmc-cf7-submit-row {
        align-items: stretch;
    }

    .vmc-cf7-submit-row .vmc-submit,
    .vmc-cf7-submit-row input[type='submit'].vmc-submit {
        width: 100%;
    }
}

/* =========================================================
   CONTACT PAGE — CENTRED HERO
   ========================================================= */

.vmc-contact-page .vmc-hero-inner--centered {
    max-width: 920px;
    margin-inline: auto;
    text-align: center;
}

.vmc-contact-page .vmc-hero-inner--centered h1 {
    max-width: 100px;
    margin-inline: auto;
}

.vmc-contact-page .vmc-hero-inner--centered p {
    max-width: 720px;
    margin: 24px auto 0;
    color: var(--vmc-white);
    line-height: 1.7;
}

/* =========================================================
   COFFEE BUNKER PAGE
   Purpose-built responsive layout for page-the-coffee-bunker.php
   ========================================================= */

.coffee-bunker-page {
    --cb-bg: #000;
    --cb-panel: #0b0b0b;
    --cb-panel-deep: #070707;
    --cb-copy: #e7e7e7;
    --cb-muted: #cfcfcf;
    --cb-soft-yellow: rgba(241, 232, 3, 0.09);
    --cb-line: rgba(241, 232, 3, 0.20);
    --cb-line-strong: rgba(241, 232, 3, 0.48);
    width: 100%;
    background: var(--cb-bg);
    overflow-x: clip;
}

.coffee-bunker-page [id] {
    scroll-margin-top: 132px;
}

.coffee-bunker-page .site-wrap {
    width: min(calc(100% - 40px), 1180px);
    margin-inline: auto;
}


/* ---------------------------------------------------------
   TYPOGRAPHY
   --------------------------------------------------------- */

.coffee-bunker-page h1,
.coffee-bunker-page h2 {
    color: var(--vmc-white);
    text-shadow: none;
    -webkit-text-stroke: 0;
}

.coffee-bunker-page h2 {
    margin: 0 0 18px;
    font-size: clamp(2.25rem, 4.4vw, 4.15rem);
    line-height: 0.98;
}

.coffee-bunker-page h3 {
    margin: 0 0 10px;
    color: var(--vmc-white);
    font-size: clamp(1.16rem, 1.8vw, 1.45rem);
    letter-spacing: 0.035em;
}

.coffee-bunker-page p,
.coffee-bunker-page li,
.coffee-bunker-page dd {
    color: var(--cb-copy);
}

.coffee-bunker-eyebrow,
.coffee-bunker-panel-label {
    display: block;
    margin: 0 0 13px;
    color: var(--vmc-yellow);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    line-height: 1.3;
    text-transform: uppercase;
}

.coffee-bunker-lead,
.coffee-bunker-hero-lead {
    color: var(--vmc-white) !important;
    font-size: clamp(1.08rem, 1.55vw, 1.25rem);
    line-height: 1.65;
}


/* ---------------------------------------------------------
   COMPACT SITE HEADER ON THIS PAGE
   --------------------------------------------------------- */

body:has(.coffee-bunker-page) .header-shell {
    gap: 5px;
    padding-top: 7px;
    padding-bottom: 7px;
}

body:has(.coffee-bunker-page) .brand-logo,
body:has(.coffee-bunker-page) .custom-logo-link img,
body:has(.coffee-bunker-page) .custom-logo {
    max-height: 86px;
}

body:has(.coffee-bunker-page) .brand-name {
    font-size: 1rem;
}

body:has(.coffee-bunker-page) .header-menu-bar {
    min-height: 38px;
}


/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */

.coffee-bunker-hero {
    position: relative;
    padding: clamp(56px, 6.5vw, 88px) 0;
    background:
        radial-gradient(circle at 82% 15%, rgba(241, 232, 3, 0.10), transparent 27%),
        radial-gradient(circle at 12% 76%, rgba(241, 232, 3, 0.045), transparent 29%),
        #000;
    border-bottom: 1px solid var(--cb-line);
}

.coffee-bunker-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    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: 38px 38px;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .55), transparent 76%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .55), transparent 76%);
}

.coffee-bunker-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(350px, 0.72fr);
    gap: clamp(34px, 5.5vw, 72px);
    align-items: center;
}

.coffee-bunker-hero-copy {
    min-width: 0;
    max-width: 760px;
}

.coffee-bunker-hero h1 {
    margin: 0 0 24px;
    max-width: 780px;
    color: var(--vmc-white);
    font-size: clamp(3.55rem, 6.7vw, 6.75rem);
    letter-spacing: 0.035em;
    line-height: 0.84;
    text-align: left;
    text-wrap: balance;
}

.coffee-bunker-hero h1 span {
    display: block;
    margin-top: 0.08em;
    color: var(--vmc-yellow);
}

.coffee-bunker-hero-lead {
    max-width: 660px;
    margin: 0 0 24px;
}

.coffee-bunker-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 28px;
}

.coffee-bunker-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 11px;
    color: var(--vmc-yellow);
    background: rgba(241, 232, 3, 0.05);
    border: 1px solid var(--cb-line);
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.09em;
    line-height: 1;
    text-transform: uppercase;
}


/* ---------------------------------------------------------
   BUTTONS
   --------------------------------------------------------- */

.coffee-bunker-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
}

.coffee-bunker-actions--center {
    justify-content: center;
}

.coffee-bunker-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 13px 20px;
    border: 1px solid var(--vmc-yellow);
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 900;
    letter-spacing: 0.075em;
    line-height: 1.15;
    text-align: center;
    text-transform: uppercase;
    transition:
        transform 0.16s ease,
        background 0.16s ease,
        color 0.16s ease,
        border-color 0.16s ease;
}

.coffee-bunker-button--primary {
    background: var(--vmc-yellow);
    color: #000 !important;
    box-shadow: 0 12px 34px rgba(241, 232, 3, 0.12);
}

.coffee-bunker-button--secondary {
    background: transparent;
    color: var(--vmc-yellow) !important;
}

.coffee-bunker-button--dark {
    margin-top: 10px;
    background: #000;
    color: var(--vmc-yellow) !important;
    border-color: #000;
}

.coffee-bunker-button:hover,
.coffee-bunker-button:focus-visible {
    transform: translateY(-2px);
}

.coffee-bunker-button--primary:hover,
.coffee-bunker-button--primary:focus-visible {
    background: var(--vmc-white);
    color: #000 !important;
    border-color: var(--vmc-white);
}

.coffee-bunker-button--secondary:hover,
.coffee-bunker-button--secondary:focus-visible {
    background: var(--vmc-yellow);
    color: #000 !important;
}

.coffee-bunker-button--dark:hover,
.coffee-bunker-button--dark:focus-visible {
    background: #171717;
    color: var(--vmc-yellow) !important;
    border-color: #171717;
}


/* ---------------------------------------------------------
   HERO INFORMATION PANEL
   --------------------------------------------------------- */

.coffee-bunker-hero-panel {
    min-width: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #101010, #080808);
    border: 1px solid var(--cb-line-strong);
    border-radius: 18px;
    box-shadow: 0 28px 65px rgba(0, 0, 0, .48);
}

.coffee-bunker-hero-image-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #050505;
}

.coffee-bunker-hero-image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, .58), transparent 52%);
}

.coffee-bunker-hero-image {
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: center;
    border: 0;
    border-radius: 0;
}

.coffee-bunker-hero-placeholder {
    position: relative;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(241, 232, 3, .15), transparent 48%),
        linear-gradient(160deg, #171717, #050505 68%);
}

.coffee-bunker-hero-placeholder::before {
    content: 'VMC';
    position: absolute;
    top: 8px;
    right: 14px;
    color: rgba(241, 232, 3, .055);
    font-family: var(--font-display);
    font-size: 9rem;
    line-height: 1;
}

.coffee-bunker-hero-placeholder-kicker {
    position: relative;
    z-index: 1;
    margin-bottom: 14px;
    color: var(--vmc-yellow);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.coffee-bunker-hero-placeholder strong {
    position: relative;
    z-index: 1;
    color: var(--vmc-white);
    font-family: var(--font-display);
    font-size: clamp(2.3rem, 4.2vw, 3.6rem);
    font-weight: 400;
    letter-spacing: .04em;
    line-height: .9;
    text-transform: uppercase;
}

.coffee-bunker-hero-panel-copy {
    padding: 24px 26px 26px;
}

.coffee-bunker-hero-panel-copy h2 {
    margin-bottom: 12px;
    color: var(--vmc-white);
    font-family: var(--font-body);
    font-size: clamp(1.45rem, 2vw, 1.9rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.16;
    text-transform: none;
}

.coffee-bunker-hero-panel-copy > p:not(.coffee-bunker-panel-label) {
    margin-bottom: 18px;
    color: #d8d8d8;
    font-size: .97rem;
    line-height: 1.55;
}

.coffee-bunker-quick-details {
    display: grid;
    gap: 0;
    margin: 0;
}

.coffee-bunker-quick-details > div {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.coffee-bunker-quick-details dt {
    color: var(--vmc-yellow);
    font-size: .73rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.coffee-bunker-quick-details dd {
    margin: 0;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.45;
}


/* ---------------------------------------------------------
   VALUES STRIP
   --------------------------------------------------------- */

.coffee-bunker-values {
    background: var(--vmc-yellow);
    border-top: 1px solid var(--vmc-yellow);
    border-bottom: 1px solid var(--vmc-yellow);
}

.coffee-bunker-values-inner {
    min-height: 48px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 11px 17px;
    padding: 10px 0;
    color: #000;
    font-size: .77rem;
    font-weight: 900;
    letter-spacing: .115em;
    text-align: center;
    text-transform: uppercase;
}

.coffee-bunker-values-inner span {
    color: #000;
}

.coffee-bunker-values-inner i {
    width: 4px;
    height: 4px;
    background: #000;
    border-radius: 50%;
}


/* ---------------------------------------------------------
   SHARED SECTIONS
   --------------------------------------------------------- */

.coffee-bunker-section {
    position: relative;
    padding: clamp(58px, 7vw, 88px) 0;
    background: #000;
}

.coffee-bunker-section--alt {
    background:
        linear-gradient(180deg, rgba(241, 232, 3, .035), transparent 28%),
        #070707;
    border-top: 1px solid var(--cb-line);
    border-bottom: 1px solid var(--cb-line);
}

.coffee-bunker-intro-grid,
.coffee-bunker-support-grid,
.coffee-bunker-history-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, .72fr);
    gap: clamp(34px, 5.5vw, 68px);
    align-items: start;
}

.coffee-bunker-copy {
    min-width: 0;
    max-width: 760px;
}

.coffee-bunker-copy > p:not(.coffee-bunker-eyebrow):not(.coffee-bunker-lead) {
    max-width: 720px;
}

.coffee-bunker-expect-card,
.coffee-bunker-support-list {
    padding: clamp(24px, 3vw, 32px);
    background: linear-gradient(180deg, #101010, #080808);
    border: 1px solid var(--cb-line);
    border-radius: 16px;
}

.coffee-bunker-expect-card h3,
.coffee-bunker-support-list h3 {
    margin-bottom: 22px;
}

.coffee-bunker-expect-row {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 14px;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.coffee-bunker-expect-row > span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #000;
    background: var(--vmc-yellow);
    border-radius: 8px;
    font-size: .72rem;
    font-weight: 900;
}

.coffee-bunker-expect-row strong {
    display: block;
    margin-bottom: 4px;
    color: var(--vmc-white);
    font-size: .98rem;
}

.coffee-bunker-expect-row p {
    margin: 0;
    color: var(--cb-muted);
    font-size: .91rem;
    line-height: 1.5;
}

.coffee-bunker-quote {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 11px;
    margin-top: clamp(40px, 5vw, 58px);
    padding: 24px 0 0;
    border-top: 1px solid var(--cb-line);
    color: var(--vmc-white);
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3.2vw, 3.2rem);
    letter-spacing: .04em;
    line-height: 1;
    text-transform: uppercase;
}

.coffee-bunker-quote span,
.coffee-bunker-quote strong {
    color: var(--vmc-white);
    font-weight: 400;
}

.coffee-bunker-quote strong {
    color: var(--vmc-yellow);
}


/* ---------------------------------------------------------
   SECTION HEADINGS + CARD GRIDS
   --------------------------------------------------------- */

.coffee-bunker-section-heading {
    max-width: 880px;
    margin: 0 0 clamp(30px, 4vw, 44px);
}

.coffee-bunker-section-heading > p:last-child {
    max-width: 760px;
    margin-bottom: 0;
    color: var(--cb-muted);
    font-size: 1.05rem;
}

.coffee-bunker-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2.5vw, 26px);
    align-items: stretch;
}

.coffee-bunker-card {
    position: relative;
    min-width: 0;
    min-height: 230px;
    padding: clamp(24px, 3vw, 32px);
    overflow: hidden;
    background: var(--cb-panel);
    border: 1px solid var(--cb-line);
    border-radius: 16px;
    transition:
        transform .17s ease,
        border-color .17s ease,
        background .17s ease;
}

.coffee-bunker-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--vmc-yellow);
    transform: scaleX(.24);
    transform-origin: left;
    transition: transform .17s ease;
}

.coffee-bunker-card-number {
    display: block;
    margin-bottom: 32px;
    color: var(--vmc-yellow);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .12em;
}

.coffee-bunker-card p {
    margin-bottom: 0;
    color: var(--cb-muted);
    font-size: .96rem;
    line-height: 1.6;
}

@media (hover: hover) and (pointer: fine) {
    .coffee-bunker-card:hover {
        transform: translateY(-3px);
        background: #101010;
        border-color: var(--cb-line-strong);
    }

    .coffee-bunker-card:hover::before {
        transform: scaleX(1);
    }
}


/* ---------------------------------------------------------
   YELLOW STATEMENT
   --------------------------------------------------------- */

.coffee-bunker-statement {
    padding: clamp(42px, 5.5vw, 64px) 0;
    background: var(--vmc-yellow);
}

.coffee-bunker-statement p,
.coffee-bunker-statement strong {
    margin: 0;
    color: #000;
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5.2vw, 5rem);
    font-weight: 400;
    letter-spacing: .035em;
    line-height: .92;
    text-transform: uppercase;
}

.coffee-bunker-statement strong {
    display: block;
    margin-top: .08em;
}


/* ---------------------------------------------------------
   SUPPORT
   --------------------------------------------------------- */

.coffee-bunker-support-list ul {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.coffee-bunker-support-list li {
    position: relative;
    margin: 0;
    padding: 13px 0 13px 25px;
    border-top: 1px solid rgba(255, 255, 255, .075);
    color: #d8d8d8;
    font-size: .94rem;
    line-height: 1.5;
}

.coffee-bunker-support-list li::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 1px;
    width: 8px;
    height: 8px;
    background: var(--vmc-yellow);
    border-radius: 2px;
}

.coffee-bunker-inline-quote {
    margin-top: 28px;
    padding: 17px 20px;
    color: var(--vmc-white);
    background: var(--cb-soft-yellow);
    border-left: 3px solid var(--vmc-yellow);
    border-radius: 0 10px 10px 0;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.45;
}


/* ---------------------------------------------------------
   VISIT
   --------------------------------------------------------- */

.coffee-bunker-visit {
    padding: clamp(56px, 7vw, 82px) 0;
    background: #050505;
}

.coffee-bunker-visit-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, .65fr);
    overflow: hidden;
    background: var(--vmc-yellow);
    border-radius: 18px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .38);
}

.coffee-bunker-visit-copy {
    padding: clamp(30px, 5vw, 56px);
}

.coffee-bunker-visit-copy .coffee-bunker-eyebrow,
.coffee-bunker-visit-copy h2,
.coffee-bunker-visit-copy p {
    color: #000 !important;
}

.coffee-bunker-visit-copy h2,
.coffee-bunker-visit-copy p {
    max-width: 720px;
}

.coffee-bunker-visit-details {
    padding: clamp(28px, 4vw, 44px);
    background: #0a0a0a;
}

.coffee-bunker-visit-details h3 {
    margin-bottom: 24px;
    font-size: clamp(1.35rem, 2.2vw, 1.8rem);
}

.coffee-bunker-detail-row {
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, .10);
}

.coffee-bunker-detail-row span {
    display: block;
    margin-bottom: 5px;
    color: var(--vmc-yellow);
    font-size: .71rem;
    font-weight: 900;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.coffee-bunker-detail-row strong {
    display: block;
    color: var(--vmc-white);
    font-size: .95rem;
    line-height: 1.45;
}


/* ---------------------------------------------------------
   HISTORY
   --------------------------------------------------------- */

.coffee-bunker-history-grid {
    grid-template-columns: minmax(220px, .42fr) minmax(0, 1fr);
    align-items: center;
}

.coffee-bunker-year-block {
    min-width: 0;
    align-self: center;
    padding: 8px 0;
    text-align: center;
}

.coffee-bunker-year-block .coffee-bunker-eyebrow {
    margin-bottom: 18px;
}

.coffee-bunker-year {
    color: var(--vmc-yellow);
    font-family: var(--font-display);
    font-size: clamp(5.5rem, 10vw, 9rem);
    letter-spacing: .02em;
    line-height: .78;
    text-align: center;
}

.coffee-bunker-year-caption {
    max-width: 270px;
    margin: 28px auto 0;
    color: var(--vmc-white) !important;
    font-size: .86rem;
    font-weight: 900;
    letter-spacing: .09em;
    line-height: 1.45;
    text-align: center;
    text-transform: uppercase;
}

.coffee-bunker-history-copy {
    max-width: 780px;
}

.coffee-bunker-text-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 12px;
    color: var(--vmc-yellow);
    font-size: .84rem;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}

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


/* ---------------------------------------------------------
   CLOSING
   --------------------------------------------------------- */

.coffee-bunker-closing {
    position: relative;
    padding: clamp(58px, 7vw, 88px) 0;
    text-align: center;
    background:
        radial-gradient(circle at 50% 0%, rgba(241, 232, 3, .12), transparent 38%),
        #000;
    border-top: 1px solid var(--cb-line);
}

.coffee-bunker-closing .site-wrap {
    max-width: 940px;
}

.coffee-bunker-closing h2 {
    margin-bottom: 22px;
    font-size: clamp(2.7rem, 5.6vw, 5.1rem);
    line-height: .9;
}

.coffee-bunker-closing h2 span {
    display: block;
    margin-top: .08em;
    color: var(--vmc-yellow);
}

.coffee-bunker-closing > .site-wrap > p:not(.coffee-bunker-eyebrow) {
    max-width: 700px;
    margin: 0 auto 28px;
    color: #d8d8d8;
    font-size: clamp(1rem, 1.5vw, 1.16rem);
}


/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (max-width: 980px) {

    .coffee-bunker-hero-grid,
    .coffee-bunker-intro-grid,
    .coffee-bunker-support-grid,
    .coffee-bunker-history-grid,
    .coffee-bunker-visit-panel {
        grid-template-columns: 1fr;
    }

    .coffee-bunker-hero-copy,
    .coffee-bunker-copy,
    .coffee-bunker-history-copy {
        max-width: none;
    }

    .coffee-bunker-hero-panel {
        width: min(100%, 720px);
    }

    .coffee-bunker-history-grid {
        gap: 30px;
        align-items: start;
    }

    .coffee-bunker-year-block {
        width: min(100%, 460px);
        padding: 0;
        text-align: left;
    }

    .coffee-bunker-year,
    .coffee-bunker-year-caption {
        text-align: left;
    }

    .coffee-bunker-year-caption {
        margin-left: 0;
        margin-right: 0;
    }

    .coffee-bunker-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .coffee-bunker-card-grid .coffee-bunker-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}


/* ---------------------------------------------------------
   MOBILE / SMALL TABLET
   --------------------------------------------------------- */

@media (max-width: 760px) {

    body:has(.coffee-bunker-page) .brand-logo,
    body:has(.coffee-bunker-page) .custom-logo-link img,
    body:has(.coffee-bunker-page) .custom-logo {
        max-height: 74px;
    }

    .coffee-bunker-page [id] {
        scroll-margin-top: 105px;
    }

    .coffee-bunker-page .site-wrap {
        width: min(calc(100% - 28px), 1180px);
    }

    .coffee-bunker-hero {
        padding: 44px 0 50px;
    }

    .coffee-bunker-hero-grid {
        gap: 30px;
    }

    .coffee-bunker-hero h1 {
        font-size: clamp(3.2rem, 16vw, 5rem);
    }

    .coffee-bunker-section,
    .coffee-bunker-visit,
    .coffee-bunker-closing {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .coffee-bunker-card-grid {
        grid-template-columns: 1fr;
    }

    .coffee-bunker-card-grid .coffee-bunker-card:last-child:nth-child(odd) {
        grid-column: auto;
    }

    .coffee-bunker-card {
        min-height: 0;
    }

    .coffee-bunker-card-number {
        margin-bottom: 22px;
    }

    .coffee-bunker-values-inner {
        gap: 8px 11px;
        font-size: .68rem;
        letter-spacing: .08em;
    }

    .coffee-bunker-quote {
        display: grid;
        gap: 4px;
    }

    .coffee-bunker-statement p,
    .coffee-bunker-statement strong {
        font-size: clamp(2.2rem, 12vw, 4rem);
    }

    .coffee-bunker-visit-panel {
        width: 100%;
        border-radius: 14px;
    }
}


/* ---------------------------------------------------------
   PHONE
   --------------------------------------------------------- */

@media (max-width: 520px) {

    .coffee-bunker-actions,
    .coffee-bunker-button {
        width: 100%;
    }

    .coffee-bunker-tags {
        gap: 7px;
    }

    .coffee-bunker-tags span {
        flex: 1 1 calc(50% - 7px);
        justify-content: center;
        text-align: center;
    }

    .coffee-bunker-tags span:last-child {
        flex-basis: 100%;
    }

    .coffee-bunker-quick-details > div {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .coffee-bunker-hero-panel-copy,
    .coffee-bunker-expect-card,
    .coffee-bunker-support-list {
        padding: 22px;
    }

    .coffee-bunker-hero-placeholder {
        min-height: 210px;
        padding: 22px;
    }

    .coffee-bunker-hero-placeholder::before {
        font-size: 6.5rem;
    }

    .coffee-bunker-visit-copy,
    .coffee-bunker-visit-details {
        padding: 25px 22px;
    }

    .coffee-bunker-year {
        font-size: clamp(5rem, 24vw, 7rem);
    }

    .coffee-bunker-closing h2 span {
        margin-top: .14em;
    }
}


/* ---------------------------------------------------------
   REDUCED MOTION
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .coffee-bunker-button,
    .coffee-bunker-card,
    .coffee-bunker-card::before {
        transition: none;
    }
}
