/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-ink);
    background: var(--color-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.15;
    color: var(--color-primary);
    margin: 0 0 0.5em;
}

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

section { position: relative; }
.section-padding { padding: 100px 0; }

.section-header {
    max-width: 720px;
    margin: 0 0 50px;
}
.section-header.is-centered {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-secondary);
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 14px;
}
.section-eyebrow::before {
    content: "";
    width: 28px;
    height: 3px;
    background: var(--color-accent);
    display: inline-block;
    border-radius: 2px;
}
.section-header h2 {
    font-size: clamp(1.9rem, 3.2vw, 2.75rem);
}
.section-header p {
    color: var(--color-gray-700);
    font-size: 1.1rem;
}

.bg-dark {
    background: var(--color-primary-dark);
    color: var(--color-white);
}
.bg-dark h2, .bg-dark h3, .bg-dark h4 { color: var(--color-white); }
.bg-dark .section-header p { color: rgba(255,255,255,0.75); }
.bg-gray { background: var(--color-gray-50); }

/* ---------- Buttons ---------- */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.95rem;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
    white-space: nowrap;
}
.button-primary {
    background: var(--color-accent);
    color: var(--color-primary-dark);
}
.button-primary:hover {
    background: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.button-secondary {
    background: transparent;
    border-color: currentColor;
    /* Contexts on a dark background (hero, CTA) override --btn-secondary-color
       instead of `color` directly, so :hover below always wins the cascade
       (it's more specific than a single-class context rule) instead of
       racing it and sometimes losing, which was leaving white text on a
       white hover background. */
    color: var(--btn-secondary-color, var(--color-primary));
}
.bg-dark .button-secondary { --btn-secondary-color: var(--color-white); }
.button-secondary:hover {
    background: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-2px);
}
.button-large { width: 100%; padding: 18px 32px; font-size: 1rem; }

/* ---------- Badges ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(30, 111, 159, 0.08);
    color: var(--color-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 999px;
}

/* ---------- Photo placeholders ---------- */
/* Shown wherever a real photo hasn't been uploaded yet to /assets/images/.
   The label prints the exact filename the final photo should use. */
.vdv-photo-placeholder {
    width: 100%;
    aspect-ratio: 100 / var(--vdv-ratio, 66);
    background: repeating-linear-gradient(135deg, var(--color-gray-100), var(--color-gray-100) 12px, var(--color-gray-50) 12px, var(--color-gray-50) 24px);
    border: 2px dashed var(--color-gray-300);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--color-gray-500);
    text-align: center;
    padding: 20px;
}
.vdv-photo-placeholder__icon { font-size: 2rem; opacity: 0.6; }
.vdv-photo-placeholder__label {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    background: var(--color-white);
    padding: 4px 10px;
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
}

/* ---------- Accessibility ---------- */
.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.skip-link.screen-reader-text:focus {
    position: fixed;
    top: 10px;
    left: 10px;
    width: auto;
    height: auto;
    clip: auto;
    background: var(--color-white);
    color: var(--color-primary);
    padding: 12px 20px;
    z-index: 10000;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
}

/* ---------- Generic page (index.php / page.php) ---------- */
.basic-page { padding: calc(var(--header-height) + 60px) 0 100px; }
.basic-page__inner--narrow { max-width: 820px; }
.basic-page__content p { margin-bottom: 1.2em; color: var(--color-gray-700); }
.basic-page__item { margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--color-gray-100); }
.basic-page__item h2 { text-transform: none; }
