@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Crimson+Text&display=swap');

/* ------------------------------
   TYPOGRAPHY
------------------------------ */
h1, h2, h3 {
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

body, p {
    font-family: 'Crimson Text', serif, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 18px;
    line-height: 1.6;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: #fff;
    color: #333;
}

main h1, main h2, main h3, main h4, main h5, main h6 {
    display: block;
    font-weight: 500;
    text-transform: uppercase;
    color: #393c42;
}

h1 {
    font-size: 24px;
    line-height: 1.87;
    letter-spacing: 0.221rem;
    padding: 0;
    margin: 0 0 2rem;
    text-align: center;
}

small {
    font-size: .8em;
}

header h1 {
    color: #fff;
    margin: 1rem 0 0;
}

/* ------------------------------
   LAYOUT
------------------------------ */
body {
    display: flex;
    flex-direction: column;
}

button, 
input[type="button"], 
input[type="submit"] {
    border: none;
    background: none;
    font: inherit;
    color: inherit;
    line-height: normal;
    text-align: center;
    -webkit-appearance: none;
    appearance: none;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

main {
    flex: 1;
    max-width: 960px;
    margin: 2rem auto;
    padding: 0 1rem;
}

section {
    margin-bottom: 2rem;
}

.clear-float {
    clear: both;
}

.m-0 {
    margin: 0;
}

.p-0 {
    padding: 0;
}

/* ------------------------------
   TEXT ALIGNMENT & HELPERS
------------------------------ */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.mt-3 {
    margin-top: 1rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.pt-3 {
    padding-top: 1rem;
}

.pb-3 {
    padding-bottom: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.p-3 {
    padding: 1rem;
}

.d-none {
    display: none !important;
}

.d-flex {
    display: flex;
    gap: 1rem;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

/* ------------------------------
   RESPONSIVE BREAKPOINTS
------------------------------ */
@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }

    .d-flex {
        flex-direction: column;
    }

    .text-center-sm {
        text-align: center;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .container {
        padding: 0 2rem;
    }

    .d-flex-md {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .container {
        padding: 0 3rem;
    }
}

@media (min-width: 993px) {
    .container {
        padding: 0 4rem;
    }
}

/* ------------------------------
   NAVIGATION
------------------------------ */
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0.75em 1em;
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    justify-content: center;
    border-radius: 0.5em;
}

    .main-nav ul li {
        list-style: none;
        padding: 0;
        margin: 0;
    }

        .main-nav ul li::marker,
        .main-nav ol li::marker {
            display: none;
        }

.main-nav li a {
    font-weight: bold;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease-in-out;
}

    .main-nav li a:hover,
    .main-nav li a.active {
        border-bottom: 2px solid #333;
    }

@media (max-width: 768px) {
    .main-nav ul {
        flex-direction: column;
        gap: 1em;
    }

    .hero-overlay {
        padding-bottom: 2em;
    }

    .logo {
        max-width: 150px;
    }
}

/* ------------------------------
   IMAGES
------------------------------ */
img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
}

.wrap-image {
    max-width: 100%;
    margin: 0 1rem 1rem 0;
}

.event-entry {
    overflow: hidden;
    margin-bottom: 2rem;
}

.event-item {
    margin-bottom: 3rem;
    overflow: hidden;
}

    .event-item .wrap-image {
        max-width: 400px;
        display: block;
        margin: 0 auto 1rem;
    }

/* ------------------------------
   BUTTONS
------------------------------ */
.btn,
button {
    all: unset; /* wipes browser defaults from <button> */
    display: inline-block;
    border-radius: 4px;
    cursor: pointer;
    font: inherit;
    line-height: 1;
}

.btn:hover,
button:hover {
    background-color: #002a52;
}

.btn, .donation-button, button, .btn-brochure {
    display: inline-block;
    padding: 0.5rem .5rem;
    background-color: black;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-cta {
    background-color: black;
    color: white;
}

.btn-cta:hover {
	background-color: black;
	color: white;
}

.donation-button-top, .btn-brochure-top {
    position: fixed;
    top: 10px;
    background-color: black;
    color: white;
    padding: 10px 10px;
    border: 1px solid white;
    z-index: 2;
	text-decoration:none;
}

.donation-button-top {
    left: 10px;
}

.btn-brochure-top {
    left: 10px;
	top: 60px;
}


@media (min-width: 768px) {
    .donation-button-top {
		top:20px;
        right: 20px;
        left: auto;
    }
    .btn-brochure-top {
		top:20px;
        right: 150px;
        left: auto;
    }
}

/* ------------------------------
   HEADERS / FOOTERS
------------------------------ */
header {
    position: relative;
    background-color: #000;
    background-image: url('../assets/oakwood-clubhouse-header.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    text-align: center;
    padding: 2rem;
}

    header::before {
        content: "";
        position: absolute;
        inset: 0;
        background-color: rgba(0,0,0,0.5);
        z-index: 0;
    }

    header > * {
        position: relative;
        z-index: 1;
    }

    header img {
        max-width: 200px;
        margin: auto;
        height: auto;
    }

footer {
    background-color: #000;
    color: #aaa;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
}

/* ------------------------------
   LINKS
------------------------------ */
a {
    color: #0F6023;
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

header a {
    color: #fff;
}

    header a:hover {
        text-decoration: underline;
    }

/* ------------------------------
   SECTIONS
------------------------------ */
main h1, main h3 {
    border-bottom: 2px solid #B68150;
    padding-bottom: 0.5rem;
}

section h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid #B68150;
    padding-bottom: 0.5rem;
}

hr {
    border: 0;
    height: 2px;
    background-color: #B68150;
    margin: 2rem 0;
}

/* ------------------------------
   LISTS
------------------------------ */
ul {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

    ul li {
        position: relative;
        padding-left: 1.5rem;
        margin-bottom: 0.75rem;
    }

main ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #B68150;
    font-size: 1.2em;
    line-height: 1;
}

/* ------------------------------
   FORMS
------------------------------ */
form {
    max-width: 600px;
    margin: 0 auto;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    margin-bottom: 1rem;
    box-sizing: border-box;
}

    input:focus, textarea:focus {
        border-color: #B68150;
        outline: none;
    }

button[type="submit"],
.button-link {
    background-color: #B68150;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

    button[type="submit"]:hover,
    .button-link:hover {
        background-color: #A96E3F;
    }

/* ------------------------------
   MISC SECTIONS
------------------------------ */
.mission-statement {
    line-height: 1.6;
}

.mission-stack {
    display: flex;
    justify-content: center;
    padding: 2em 1em;
}

.photo-column {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

    .photo-column img {
        width: 100%;
        object-fit: cover;
        border-radius: 4px;
    }

.mission-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #000;
    color: white;
    padding: 1.5em;
    border: 2px solid #d4af37;
    z-index: 2;
    font-style: italic;
    text-align: center;
    width: 275px;
    max-width: 275px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

    .mission-overlay h3 {
        margin-top: 0;
        color: #d4af37;
        font-style: normal;
        font-size: 1.1em;
    }

.wrapped-section {
    max-width: 1200px;
    margin: 2em auto;
    font-size: 1.1em;
    line-height: 1.6;
}

.image-heading {
    text-align: center;
    margin-bottom: 0.2em;
    background-color: black;
}

    .image-heading img {
        height: 80px;
        width: auto;
        margin: auto;
    }

/* ------------------------------
   CAROUSEL
------------------------------ */
.evolution-carousel {
    margin: 0;
    text-align: center;
}

    .evolution-carousel h2 {
        border-bottom: 2px solid #B68150;
        padding-bottom: 0.5rem;
        margin-bottom: 1rem;
        color: #0F6023;
    }

.carousel {
    position: relative;
    overflow: hidden;
}

.carousel-slides {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 1;
}

.carousel .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    z-index: 0;
    transition: opacity 1s ease;
}

    .carousel .slide.active {
        opacity: 1;
        z-index: 1;
    }

    .carousel .slide img {
        width: 100%;
        display: block;
    }

.caption {
    font-size: 0.9rem;
    color: #555;
    margin-top: -2rem;
    z-index: 2;
}

.carousel-nav {
    position: relative;
    margin-top: .5rem;
    z-index: 3;
}

    .carousel-nav a {
        color: #0F6023;
        font-weight: bold;
        text-decoration: none;
        padding: 0.5rem;
        border-bottom: 2px solid transparent;
        transition: border-color 0.2s ease;
    }

        .carousel-nav a:hover,
        .carousel-nav a:focus {
            border-bottom: 2px solid #B68150;
        }

/* ------------------------------
   RESPONSIVE UTILS
------------------------------ */
@media (max-width: 600px) {
    .carousel-nav {
        gap: 0.5rem;
    }

        .carousel-nav a {
            font-size: 0.8rem;
            padding: 0.25rem;
        }
}

@media (min-width: 768px) {
    .w-40p {
        max-width: 40%;
    }

    .w-50p {
        max-width: 50%;
    }

    .row {
        display: flex;
        flex-wrap: wrap;
        margin: 0 -15px;
    }

    .col {
        flex: 1;
        padding: 15px;
    }

    .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-4 {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
    }

    .col-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .section-image-left .wrap-image {
        float: left;
        margin-right: 10px;
    }

    .section-image-right .wrap-image {
        float: right;
        margin-left: 10px;
    }

    .wrap-image {
        max-width: 40%;
        margin: 0 1rem 1rem 0;
        float: left;
    }

    .mission-overlay {
        padding: 5em;
    }

    .newspaper-columns {
        column-count: 2;
        column-gap: 2em;
    }

    .float-left {
        float: left;
        margin-right: 20px;
    }

    .float-right {
        float: right;
        margin-left: 20px;
    }

    .fix-size {
        max-height: 400px;
        max-width: 50%;
    }

    .fix-width {
        max-width: 50%;
    }

    .fix-height {
        max-height: 400px;
    }
}

/* ------------------------------
   MOBILE NAV
------------------------------ */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: white;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
    cursor: pointer;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100vh;
    background: rgba(5, 66, 22, 0.9);
    border-top: 100px solid black;
    transition: left 0.3s ease;
    z-index: 1000;
    display: none;
}

    .mobile-nav ul {
        list-style: none;
        padding: 0;
    }

    .mobile-nav li {
        margin-bottom: 1rem;
    }

    .mobile-nav a {
        color: white;
        font-weight: bold;
        text-decoration: none;
    }

    .mobile-nav.show {
        left: 0;
    }

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .mobile-nav {
        display: block;
    }

    .main-nav {
        display: none;
    }
}

/* ------------------------------
   FORM MESSAGES
------------------------------ */
#confirmationMessage, #errorMessage, #submittingMessage {
    display: none;
    padding: 5em 0;
    text-align: center;
}

#confirmationMessage {
    color: green;
    font-weight: bold;
}

#errorMessage {
    color: red;
    font-weight: bold;
}

#submittingMessage {
    color: black;
}

.submitting #contactForm,
.error #contactForm,
.submitted #contactForm {
    display: none;
}

.submitting #submittingMessage {
    display: block;
}

.submitted #confirmationMessage {
    display: block;
}

.error #errorMessage {
    display: block;
}

/* ------------------------------
   FIGURE CAPTION
------------------------------ */
.fig-caption {
    font-size: .9rem;
    display: block;
    margin: auto;
    background-color: white;
    line-height: 1em;
    text-align: center;
    width: 100%;
}

.fig-caption-text {
    padding: 10px;
}

/* ------------------------------
   MODAL
------------------------------ */
.jslite-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.jslite-modal-dialog {
    background: #fff;
    border-radius: 6px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,.3);
    animation: fadeInUp 0.3s ease-out;
}

.jslite-modal-header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #ddd;
}

.jslite-modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: bold;
}

.jslite-modal-close-btn {
    border: none;
    background: none;
    font-size: 1.25rem;
    cursor: pointer;
}

.jslite-modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 1rem;
}

.bio-modal__actions {
    flex: 0 0 auto;
    text-align: right;
    padding: 1rem;
    border-top: 1px solid #ddd;
}

.bio-modal__btn {
    padding: 0.5rem 1rem;
    border: none;
    background: #007bff;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
}

    .bio-modal__btn:hover {
        background: #0056b3;
    }

@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ------------------------------
   QUOTE WITH CUT-OUT CORNERS
------------------------------ */
blockquote {
    margin:0;
    padding:0;
}
blockquote.quote {
    position: relative;
    padding: 2rem;
    color: #fff;
    font-style: italic;
    line-height: 1.6;
    z-index: 0; /* contain the layers */
}

    blockquote.quote::before,
    blockquote.quote::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 20px;
        /* Chrome / Safari / Edge */
        -webkit-mask: radial-gradient(circle 20px at 0 0, transparent 98%, black) top left, radial-gradient(circle 20px at 100% 0, transparent 98%, black) top right, radial-gradient(circle 20px at 100% 100%, transparent 98%, black) bottom right, radial-gradient(circle 20px at 0 100%, transparent 98%, black) bottom left;
        -webkit-mask-repeat: no-repeat;
        -webkit-mask-size: 51% 51%;
        /* Firefox */
        mask: radial-gradient(circle 20px at 0 0, transparent 98%, black) top left, radial-gradient(circle 20px at 100% 0, transparent 98%, black) top right, radial-gradient(circle 20px at 100% 100%, transparent 98%, black) bottom right, radial-gradient(circle 20px at 0 100%, transparent 98%, black) bottom left;
        mask-repeat: no-repeat;
        mask-size: 51% 51%;
    }

    blockquote.quote::before {
        background: #d4af37; /* gold border */
        z-index: 0;
    }

    blockquote.quote::after {
        background: #000; /* black fill */
        inset: 3px;
        border-radius: 17px;
        z-index: 1;
    }

    /* make sure text stays above the background layers */
    blockquote.quote > * {
        position: relative;
        z-index: 2;
        margin: 0 0 0;
    }

        blockquote.quote > *:last-child {
            margin-bottom: 0;
        }

    blockquote.quote footer {
        margin-top: 0;
        font-style: normal;
        text-align: right;
        color: #fff;
        padding:0;
    }


.event-menu-item {
    display:none;
}