/* ─── Variables ─── */
:root {
    /* Pulled from the No Sad Hams logo */
    --color-yellow: #f7c51e;
    --color-red: #d7262c;
    --color-sky: #2f7fc1;
    --color-pine: #2e5e3a;
    --color-dark: #14181f;
    --color-muted: #6b7280;
    --color-light: #f5f5f5;
    --color-bg-light: #f6f8fa;
    --font-stack: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ─── Reset & Base ─── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-stack);
    line-height: 1.6;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-stack);
    font-weight: 800;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

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

a {
    color: var(--color-sky);
    transition: color 0.3s ease;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ─── Navigation ─── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 2rem;
    transition: all 0.3s ease;
}

.nav.scrolled,
.nav-solid .nav {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
}

.nav-solid .nav-links a {
    color: var(--color-dark);
    text-shadow: none;
}

.nav-solid .nav .logo img {
    height: 40px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav .logo img {
    height: 50px;
    transition: height 0.3s ease;
}

.nav.scrolled .logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.nav.scrolled .nav-links a {
    color: var(--color-dark);
    text-shadow: none;
}

.nav-links a:hover {
    color: var(--color-yellow);
}

.nav.scrolled .nav-links a:hover,
.nav-solid .nav-links a:hover {
    color: var(--color-red);
}

@media (max-width: 768px) {
    .nav {
        padding: 1rem;
    }

    .nav .logo img {
        height: 35px;
    }

    .nav.scrolled .logo img {
        height: 30px;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.9rem;
    }
}

/* ─── Hero ─── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, #0f1a2b 0%, #1d3a5c 60%, var(--color-pine) 100%);
    color: var(--color-light);
    padding: 6rem 2rem 4rem;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-logo {
    width: 100%;
    max-width: 420px;
    height: auto;
    margin: 0 auto 3rem;
    display: block;
}

.hero-text {
    max-width: 800px;
    margin: 0 auto;
}

.hero-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: rgba(245, 245, 245, 0.9);
}

.hero-text .lead,
.hero-text .lead p {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--color-yellow);
}

@media (max-width: 768px) {
    .hero {
        padding: 5rem 1.5rem 3rem;
    }

    .hero-logo {
        max-width: 300px;
        margin-bottom: 2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-text .lead {
        font-size: 1.15rem;
    }
}

/* ─── About ─── */
.about {
    padding: 5rem 2rem;
    background-color: #fff;
}

.about .container {
    max-width: 900px;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--color-dark);
}

.about-content {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #444;
}

.about-content p {
    margin-bottom: 1.5rem;
}

.about-content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .about {
        padding: 3rem 1.5rem;
    }

    .about h2 {
        font-size: 2rem;
    }

    .about-content {
        font-size: 1.05rem;
    }
}

/* ─── Shared section headings ─── */
.get-involved h2,
.resources h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--color-dark);
}

.section-description {
    text-align: center;
    font-size: 1.2rem;
    color: var(--color-muted);
    margin-bottom: 3rem;
}

/* ─── Get Involved ─── */
.get-involved {
    padding: 5rem 2rem;
    background-color: var(--color-bg-light);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.info-card {
    padding: 2rem;
    background: #fff;
    border-top: 4px solid var(--color-yellow);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.info-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--color-red);
}

.info-card p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 0;
}

/* ─── Resources ─── */
.resources {
    padding: 5rem 2rem;
    background-color: #fff;
}

.resources .container {
    max-width: 900px;
}

.resource-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.resource-link {
    display: block;
    padding: 1.25rem 1.5rem;
    border: 2px solid var(--color-bg-light);
    border-left: 4px solid var(--color-sky);
    border-radius: 6px;
    text-decoration: none;
    transition: border-color 0.3s ease, transform 0.2s ease;
}

.resource-link:hover {
    border-left-color: var(--color-red);
    transform: translateY(-2px);
}

.resource-title {
    display: block;
    font-weight: 700;
    color: var(--color-dark);
}

.resource-description {
    display: block;
    margin-top: 0.35rem;
    color: var(--color-muted);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .get-involved,
    .resources {
        padding: 3rem 1rem;
    }

    .get-involved h2,
    .resources h2 {
        font-size: 2rem;
    }
}

/* ─── Contact ─── */
.contact {
    padding: 5rem 2rem;
    background-color: var(--color-bg-light);
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--color-dark);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-dark);
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-sky);
}

.field-error {
    display: block;
    color: #c0392b;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-success {
    padding: 1rem;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
    font-size: 0.95rem;
}

.submit-btn {
    padding: 1rem 2rem;
    background: var(--color-dark);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.submit-btn:hover {
    background: var(--color-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(215, 38, 44, 0.35);
}

.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.contact-note {
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-label {
    font-weight: 700;
    color: var(--color-dark);
}

.info-item a {
    color: var(--color-sky);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-item a:hover {
    color: var(--color-red);
}

@media (max-width: 768px) {
    .contact {
        padding: 3rem 1rem;
    }

    .contact h2 {
        font-size: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}

/* ─── Footer ─── */
.footer {
    background-color: var(--color-dark);
    color: white;
    padding: 3rem 2rem 1rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo img {
    height: 80px;
    width: auto;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.footer-links a:hover {
    color: var(--color-yellow);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .footer {
        padding: 2rem 1rem 1rem;
    }
}

/* ─── Inner Pages (Events, Gallery, Portfolio) ─── */
.page-header {
    padding: 8rem 2rem 3rem;
    background-color: var(--color-bg-light);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--color-dark);
}

.page-header-back {
    display: inline-block;
    color: var(--color-muted);
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.page-header-back:hover {
    color: var(--color-red);
}

.gallery-list-section,
.gallery-show-section {
    padding: 4rem 2rem 5rem;
}

/* Gallery list cards */
.galleryList {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.galleryList-col {
    display: contents;
}

.galleryList-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.galleryList-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
    color: inherit;
}

.galleryList-cardImage img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.galleryList-cardBody {
    padding: 1.25rem 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.galleryList-cardTexts > h4 a {
    text-transform: none;
    text-decoration: none;
}
.galleryPhotos-title h2{
    padding-bottom: 20px;
}
.galleryList-cardTexts h3 {
    font-size: 1.2rem;
    color: var(--color-dark);
    margin-bottom: 0.4rem;
}

.galleryList-cardDescription {
    color: var(--color-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.galleryList-cardInfos {
    margin-top: auto;
    font-size: 0.85rem;
    color: var(--color-muted);
    border-top: 1px solid var(--color-bg-light);
    padding-top: 0.75rem;
}

/* Individual gallery grid */
.galleryPhotos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.galleryPhotos-grid a {
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    display: block;
}

img.galleryPhotos-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.galleryPhotos-grid a:hover img.galleryPhotos-image {
    transform: scale(1.03);
    opacity: 0.9;
}

@media (max-width: 768px) {
    .page-header {
        padding: 6rem 1rem 2rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .gallery-list-section,
    .gallery-show-section {
        padding: 2.5rem 1rem 3rem;
    }

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

    .galleryPhotos-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

/* ─── Portfolio ─── */
.portfolio-list-section,
.portfolio-show-section {
    padding: 4rem 2rem 5rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
    color: inherit;
}

.project-card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.project-card:hover .project-card-image img {
    transform: scale(1.03);
}

.project-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-card-body h3 {
    font-size: 1.2rem;
    color: var(--color-dark);
    margin-bottom: 0.4rem;
}

.project-excerpt {
    color: var(--color-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    flex: 1;
}

.project-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-bg-light);
    font-size: 0.85rem;
    color: var(--color-muted);
}

.project-cover img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.project-detail-header {
    margin-bottom: 2rem;
}

.project-detail-header h1 {
    font-size: 2.5rem;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.project-detail-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--color-muted);
    font-size: 1rem;
}

.project-detail-body {
    max-width: 760px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 3rem;
    font-size: 0.95rem;
}

.pagination a {
    color: var(--color-red);
    text-decoration: none;
}

.empty-state {
    color: var(--color-muted);
    text-align: center;
    padding: 3rem 0;
}

@media (max-width: 768px) {
    .portfolio-list-section,
    .portfolio-show-section {
        padding: 2.5rem 1rem 3rem;
    }

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

    .project-detail-header h1 {
        font-size: 2rem;
    }
}

/* ─── Events ─── */
.events-section {
    padding: 4rem 2rem 2rem;
}

.events-section-past {
    padding-bottom: 5rem;
}

.events-section h2 {
    font-size: 1.75rem;
    color: var(--color-dark);
    margin-bottom: 1.5rem;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
    color: inherit;
}

.event-date {
    flex: 0 0 4.5rem;
    text-align: center;
    background: var(--color-yellow);
    color: var(--color-dark);
    border-radius: 6px;
    padding: 0.5rem 0;
}

.event-date-month {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.event-date-day {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.1;
}

.event-card-body h3 {
    font-size: 1.2rem;
    color: var(--color-dark);
    margin-bottom: 0.35rem;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    font-size: 0.9rem;
    color: var(--color-muted);
}

.event-excerpt {
    margin-top: 0.5rem;
    color: #555;
    font-size: 0.95rem;
}

.events-section-past .event-date {
    background: var(--color-bg-light);
    color: var(--color-muted);
}

@media (max-width: 768px) {
    .events-section {
        padding: 2.5rem 1rem 1.5rem;
    }

    .event-card {
        gap: 1rem;
        padding: 1rem;
    }
}
