* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: var(--background);
    color: var(--text-main);
    line-height: 1.5;
}

a {
    color: inherit;
}

/* NAVIGATION */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 14px 28px;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.site-logo {
    align-items: center;
    display: inline-flex;
    gap: 3px;
    font-weight: bold;
    font-size: 20px;
    text-decoration: none;
    color: white;
}

.site-logo-icon {
    display: block;
    height: 32px;
    width: auto;
}

.site-menu {
    display: flex;
    gap: 10px;
}

.nav-item {
    position: relative;
}

.nav-button {
    background: transparent;
    border: none;
    padding: 10px 14px;
    font-weight: bold;
    cursor: pointer;
    color: white !important;
}

.dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    min-width: 230px;
    background: var(--soft-bg);
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.14);
    overflow: hidden;
}

.dropdown a {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-main);
}

.dropdown a:hover {
    background: var(--background);
    color: var(--primary);
}

.nav-item:hover .dropdown {
    display: block;
}

/* HOME HERO */
.home-hero {
    height: 100vh;
    width: 100%;
    background-image: url('/images/cvhero1.jpg');
    background-size: cover;
    background-position: center;
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.home-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

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

.home-hero-content {
    position: relative;
    z-index: 3;
    color: white;
    padding: 112px 20px 20px;
    width: 100%;
    max-width: 1100px;
}

.home-hero-content h1 {
    font-size: clamp(50px, 8vw, 100px);
    line-height: 1;
    margin: 0 0 8px 0;
    color: white;
}

.home-hero-title {
    align-items: center;
    display: inline-flex;
    gap: 14px;
    justify-content: center;
}

.home-hero-title-icon {
    display: block;
    height: clamp(64px, 9vw, 108px);
    width: auto;
}

.home-hero-content p {
    font-family: "Snell Roundhand", "Apple Chancery", "Segoe Script", "Lucida Handwriting", cursive;
    font-size: clamp(24px, 3.5vw, 42px);
    font-style: normal;
    font-weight: 300;
    margin: 0;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.35);
    transition: opacity 0.4s ease;
}

.home-hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    height: 120px;
    width: 100%;
    background: linear-gradient(to bottom, transparent, var(--background));
    z-index: 2;
}

/* HERO SEARCH */
.hero-search-wrapper {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.hero-search-panel {
    width: 100%;
    max-width: 820px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.96);
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.hero-search-panel select {
    flex: 1;
    border: none;
    padding: 16px 18px;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    background: #f5f5f5;
    color: #333;
}

.hero-search-panel button {
    padding: 16px 28px;
    border-radius: 10px;
    font-weight: bold;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
}

/* SCROLL INDICATOR */
.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    color: white;
    text-align: center;
    font-size: 14px;
    animation: bounce 1.8s infinite;
}

.hero-scroll-indicator span {
    display: block;
    font-size: 26px;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

/* STANDARD PAGE HEROES */
.hero {
    background-size: cover;
    background-position: center;
    color: white;
    padding: 86px 20px 46px;
    text-align: center;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 850px;
    margin: 0 auto;
}

.hero h1 {
    margin: 0 0 12px 0;
    font-size: 42px;
    line-height: 1.1;
}

.hero-title-row {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-bottom: 12px;
}

.hero-title-row h1 {
    margin-bottom: 0;
}

.hero-subscribe-button {
    background: rgba(255, 255, 255, 0.94);
    border-radius: 999px;
    color: var(--primary) !important;
    display: inline-flex;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.1;
    padding: 9px 13px;
    text-decoration: none;
    white-space: nowrap;
}

.hero-subscribe-button:hover,
.hero-subscribe-button:focus {
    background: var(--primary);
    color: white !important;
}

.hero p {
    font-size: 18px;
    max-width: 720px;
    margin: 0 auto;
}

.admin-thin-hero {
    background-position: center;
    background-size: cover;
    color: white;
    padding: 78px 20px 24px;
    position: relative;
    text-align: center;
}

.admin-thin-hero::before {
    background: rgba(0,0,0,0.44);
    content: "";
    inset: 0;
    position: absolute;
}

.admin-thin-hero-content {
    margin: 0 auto;
    max-width: 850px;
    position: relative;
    z-index: 1;
}

.admin-thin-hero h1 {
    font-size: 34px;
    line-height: 1.1;
    margin: 0 0 6px;
}

.admin-thin-hero p {
    font-size: 16px;
    margin: 0 auto;
    max-width: 680px;
}

.admin-content-section {
    padding-top: 26px;
}

.admin-page-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 25px;
}

.admin-page-actions-main {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* SECTIONS */
.section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.story-photo-flag-wrap {
    display: block;
    position: relative;
}

.story-photo-flag-wrap img {
    display: block;
}

.people-story-flag {
    background: var(--primary);
    box-shadow: 0 3px 8px rgba(0,0,0,0.16);
    color: white !important;
    font-size: 10px;
    font-weight: bold;
    line-height: 1.1;
    max-width: 96px;
    padding: 8px 8px 11px;
    position: absolute;
    right: 14px;
    text-align: center;
    text-transform: uppercase;
    top: 0;
    z-index: 2;
}

.people-story-flag::before {
    border-left: 48px solid var(--primary);
    border-right: 48px solid var(--primary);
    border-bottom: 8px solid transparent;
    bottom: -8px;
    content: "";
    left: 0;
    position: absolute;
}

.scroll-cue-wrap {
    position: relative;
}

.scroll-cue-wrap::after {
    content: "";
    pointer-events: none;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 82px;
    background: linear-gradient(to right, rgba(255,255,255,0), var(--background));
    z-index: 2;
}

.scroll-cue-arrow {
    align-items: center;
    background: var(--primary);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    color: white;
    cursor: pointer;
    display: inline-flex;
    gap: 6px;
    padding: 8px 11px;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
}

.scroll-cue-arrow:hover,
.scroll-cue-arrow:focus {
    background: var(--secondary);
    outline: none;
}

.scroll-cue-arrow span {
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
}

.scroll-cue-arrow strong {
    font-size: 20px;
    line-height: 1;
}

.home-section-separator {
    border-top: 1px solid rgba(122, 92, 62, 0.22);
    margin: 0 auto;
    max-width: 1200px;
}

.section h2 {
    margin: 0 0 12px 0;
    font-size: 36px;
    line-height: 1.2;
}

.section h3 {
    margin-top: 0;
}

.section-intro {
    font-size: 18px;
    line-height: 1.7;
    max-width: 850px;
    margin-bottom: 30px;
    color: var(--text-main);
}

/* CARDS */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.card {
    background: var(--soft-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 22px;
}

.card h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    line-height: 1.25;
}

.card p {
    margin: 0 0 10px 0;
    color: var(--text-main);
}

/* PANELS */
.soft-panel {
    background: var(--soft-bg);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.admin-collapse-ready {
    display: grid;
    gap: 14px;
}

.admin-collapse-toggle {
    align-items: center;
    background: color-mix(in srgb, var(--background) 82%, var(--primary) 18%);
    border: 1px solid color-mix(in srgb, var(--primary) 28%, transparent);
    border-radius: 8px;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    font: inherit;
    font-weight: 800;
    justify-content: space-between;
    line-height: 1.2;
    padding: 12px 14px;
    text-align: left;
    width: 100%;
}

.admin-collapse-toggle::after {
    color: var(--primary);
    content: "−";
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1;
    margin-left: 14px;
}

.admin-collapse-ready.is-collapsed .admin-collapse-toggle::after {
    content: "+";
}

.admin-collapse-body {
    display: block;
}

.admin-collapse-body[hidden] {
    display: none;
}

.admin-collapse-body > h2:first-child,
.admin-collapse-body > h3:first-child,
.admin-collapse-body > div:first-child > h2:first-child,
.admin-collapse-body > div:first-child > h3:first-child,
.admin-collapse-body > .panel-heading:first-child h2:first-child {
    display: none;
}

.edit-collapsible {
    background: var(--soft-bg);
    border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border));
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
    margin-bottom: 18px;
    overflow: hidden;
}

.edit-collapsible > summary {
    align-items: center;
    background: color-mix(in srgb, var(--background) 82%, var(--primary) 18%);
    color: #2d2d2d !important;
    cursor: pointer;
    display: flex;
    font-weight: 800;
    justify-content: space-between;
    line-height: 1.2;
    list-style: none;
    padding: 14px 16px;
}

.edit-collapsible > summary::-webkit-details-marker {
    display: none;
}

.edit-collapsible > summary::after {
    background: #fff;
    border: 1px solid color-mix(in srgb, #4a244f 35%, var(--border));
    border-radius: 6px;
    color: #4a244f !important;
    content: "Collapse −";
    font-size: 0.85rem;
    font-weight: 800;
    margin-left: 14px;
    padding: 6px 9px;
    white-space: nowrap;
}

.edit-collapsible:not([open]) > summary::after {
    content: "Open +";
}

.edit-collapsible-body {
    padding: 18px;
}

.site-ad-side-stack {
    float: right;
    margin: 0 0 18px 24px;
    max-width: 235px;
    width: min(235px, 32%);
}

.content-page-layout.site-ad-flow-layout {
    display: block !important;
}

.site-ad-side-stack .content-page-image {
    margin-bottom: 14px;
}

.site-content-with-ads {
    align-items: start;
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1fr) minmax(190px, 235px);
}

.site-content-main {
    min-width: 0;
}

.site-content-with-ads .site-advertising-rail {
    float: none;
    margin: 0;
    width: 100%;
}

.site-advertising-rail {
    background: var(--advertising-bg);
    border: 1px solid color-mix(in srgb, var(--primary) 28%, transparent);
    border-left: 3px solid var(--primary);
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    display: grid;
    gap: 10px;
    float: right;
    margin-left: 24px;
    margin-bottom: 18px;
    margin-top: 52px;
    padding: 12px;
    width: min(235px, 32%);
}

.site-ad-side-stack .site-advertising-rail {
    float: none;
    margin-left: 0;
    margin-bottom: 0;
    margin-top: 0;
    width: 100%;
}

.story-sidebar .site-advertising-rail,
.event-sidebar .site-advertising-rail {
    float: none;
    margin-left: 0;
    margin-top: 25px;
    width: 100%;
}

.site-advertising-rail-anchored {
    margin-top: 0;
}

.site-ad-flow-layout::after {
    clear: both;
    content: "";
    display: block;
}

.site-advertising-header h2 {
    color: var(--text-main);
    font-size: 1.05rem;
    line-height: 1.15;
    margin: 0 0 4px;
}

.site-advertising-header p {
    color: var(--text-muted);
    font-size: 0.84rem;
    line-height: 1.35;
    margin: 0;
}

.site-advertising-cards {
    display: grid;
    gap: 8px;
}

.site-advertising-card {
    background: color-mix(in srgb, var(--soft-bg) 92%, var(--background) 8%);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-main);
    display: grid;
    gap: 5px;
    overflow: hidden;
    padding: 8px;
    text-decoration: none;
}

.site-advertising-card:hover,
.site-advertising-card:focus {
    border-color: var(--primary);
}

.site-advertising-card img {
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    object-fit: cover;
    width: 100%;
}

.site-advertising-card span {
    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.site-advertising-card strong {
    font-size: 0.9rem;
    line-height: 1.2;
}

.site-advertising-card p,
.site-advertising-card small {
    color: var(--text-muted);
    margin: 0;
}

.site-advertising-card p {
    font-size: 0.78rem;
    line-height: 1.35;
}

.site-advertising-card small {
    font-size: 0.72rem;
}

.site-gallery-lightbox {
    align-items: center;
    background: rgba(0, 0, 0, 0.88);
    display: none;
    inset: 0;
    justify-content: center;
    padding: 32px 74px;
    position: fixed;
    z-index: 10000;
}

.site-gallery-lightbox.active {
    display: flex;
}

.site-gallery-lightbox figure {
    margin: 0;
    max-width: min(1100px, 92vw);
    text-align: center;
}

.site-gallery-lightbox img {
    border-radius: 8px;
    display: block;
    max-height: 86vh;
    max-width: 100%;
    object-fit: contain;
}

.site-gallery-lightbox figcaption {
    color: white;
    font-size: 14px;
    margin-top: 10px;
}

.site-gallery-lightbox button {
    cursor: pointer;
    font: inherit;
}

.site-gallery-lightbox-close {
    background: white;
    border: none;
    border-radius: 8px;
    color: var(--text-main) !important;
    padding: 10px 14px;
    position: absolute;
    right: 24px;
    top: 24px;
}

.site-gallery-lightbox-nav {
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    border-radius: 999px;
    color: var(--primary) !important;
    display: inline-flex;
    font-size: 42px;
    font-weight: 700;
    height: 54px;
    justify-content: center;
    line-height: 1;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
}

.site-gallery-lightbox-prev {
    left: 18px;
}

.site-gallery-lightbox-next {
    right: 18px;
}

.site-gallery-lightbox-nav[hidden] {
    display: none;
}

@media (max-width: 640px) {
    .site-gallery-lightbox {
        padding: 76px 18px 30px;
    }

    .site-gallery-lightbox-nav {
        bottom: 18px;
        top: auto;
        transform: none;
    }

    .site-gallery-lightbox-prev {
        left: calc(50% - 68px);
    }

    .site-gallery-lightbox-next {
        right: calc(50% - 68px);
    }
}

/* BUTTONS */
button,
.button-link,
.theme-button,
.theme-button-secondary,
.theme-button-accent {
    color: white !important;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 10px 16px;
    text-decoration: none;
    display: inline-block;
}

.theme-button {
    background: var(--primary);
}

.theme-button-secondary {
    background: var(--secondary);
}

.theme-button-accent {
    background: var(--accent);
}

.theme-link {
    color: var(--primary) !important;
    text-decoration: none;
    font-weight: bold;
}

.theme-table-header {
    background: var(--soft-bg);
}

/* MAP */
#homepage-map,
#business-map {
    max-width: 100%;
}

/* FOOTER */
.site-footer {
    background: var(--footer-bg, var(--primary));
    color: var(--footer-text, white);
    margin-top: 48px;
    padding: 34px 20px;
    position: relative;
    z-index: 6;
}

.site-footer-inner {
    align-items: center;
    display: grid;
    gap: 0;
    grid-template-columns: 1fr 1fr 1fr;
    margin: 0 auto;
    max-width: 1180px;
}

.site-footer-column {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 138px;
    padding: 10px 34px;
}

.site-footer-column + .site-footer-column {
    border-left: 1px solid rgba(255,255,255,0.7);
}

.site-footer-brand img {
    max-height: 118px;
    max-width: 150px;
    object-fit: contain;
}

.site-footer-brand-large img {
    max-height: 172px;
    max-width: 220px;
}

.site-footer-spirit img {
    max-height: 78px;
    max-width: 230px;
    object-fit: contain;
}

.site-footer-spirit {
    flex-direction: column;
    gap: 14px;
}

.site-footer-contact {
    align-items: flex-start;
    flex-direction: column;
}

.site-footer-contact h2,
.site-footer-contact p {
    margin: 0;
}

.site-footer-contact h2 {
    color: var(--footer-text, white);
    font-size: 18px;
    margin-bottom: 10px;
}

.site-footer-contact p {
    line-height: 1.6;
}

.site-footer-contact a {
    color: var(--footer-text, white);
    font-weight: bold;
    text-decoration: none;
}

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

.back-to-top-button {
    background: transparent;
    border: none;
    color: var(--primary) !important;
    cursor: pointer;
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin: 42px auto 16px;
    padding: 0;
    text-align: center;
}

.back-to-top-button:hover {
    color: var(--accent) !important;
}

.back-to-top-button span {
    color: inherit !important;
    display: block;
    font-size: 26px;
    line-height: 1;
    margin-top: 2px;
}

.back-to-top-button[hidden] {
    display: none;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .site-nav {
        position: fixed;
        padding: 12px 18px;
    }

    .site-menu {
        gap: 4px;
    }

    .nav-button {
        padding: 8px;
        font-size: 14px;
    }

    .dropdown {
        left: 0;
        max-width: calc(100vw - 24px);
        min-width: min(230px, calc(100vw - 24px));
        right: auto;
    }

    .nav-item:last-child .dropdown,
    .nav-item:nth-last-child(2) .dropdown {
        left: auto;
        right: 0;
    }

    .site-footer-inner {
        grid-template-columns: 1fr;
    }

    .site-footer-column {
        min-height: auto;
        padding: 24px 12px;
    }

    .site-footer-column + .site-footer-column {
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.7);
    }

    .site-footer-contact {
        align-items: center;
        text-align: center;
    }

    .home-hero-content h1 {
        font-size: 46px;
    }

    .home-hero-content p {
        font-size: 20px;
    }

    .hero-search-panel {
        flex-direction: column;
        max-width: 95%;
    }

    .hero-search-panel select,
    .hero-search-panel button {
        width: 100%;
    }

    .hero {
        padding: 72px 20px 34px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-title-row {
        flex-direction: column;
        gap: 10px;
    }

    .hero p {
        font-size: 16px;
    }

    .section {
        padding: 45px 20px;
    }

    .site-ad-side-stack,
    .site-advertising-rail {
        float: none;
        margin: 0 0 20px;
        max-width: none;
        width: 100%;
    }

    .site-content-with-ads {
        grid-template-columns: 1fr;
    }

    .section h2 {
        font-size: 30px;
    }

    .card-image {
        height: 200px;
    }
}/* NAV STATES */

.site-nav {
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* TOP (OVER HERO) */
.site-nav-top {
    background: transparent;
    box-shadow: none;
}

.site-nav-top .site-logo,
.site-nav-top .nav-button {
    color: white !important;
}

/* AFTER SCROLL */
.site-nav-scrolled {
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.site-nav-scrolled .site-logo,
.site-nav-scrolled .nav-button {
    color: white !important;
}

.dropdown form button.dropdown-logout-button {
    background: transparent !important;
    color: #2d2d2d !important;
    border: none !important;
    box-shadow: none !important;
    padding: 12px 16px !important;
    width: 100% !important;
    text-align: left !important;
    font-size: 14px !important;
    font-family: Arial, sans-serif !important;
    font-weight: normal !important;
    border-radius: 0 !important;
    display: block !important;
}

.dropdown form button.dropdown-logout-button:hover {
    background: #f7f4ef !important;
    color: #7a5c3e !important;
}

.site-gallery-lightbox .site-gallery-lightbox-close {
    background: white !important;
    border-radius: 8px !important;
    color: var(--text-main) !important;
    padding: 10px 14px !important;
}

.site-gallery-lightbox .site-gallery-lightbox-nav {
    background: rgba(255, 255, 255, 0.92) !important;
    border-radius: 999px !important;
    color: var(--primary) !important;
    padding: 0 !important;
}
