/* ============================================================
   shared.css  —  Common styles extracted from site pages
   ============================================================ */

/* ── Base ──────────────────────────────────────────────── */
:root {
    --ocean-deep: #0A4B6E;
    --ocean-mid: #1A7FA8;
    --ocean-light: #4DA8D6;
    --sand: #F5E6D3;
    --sand-dark: #E8D5BD;
    --sunset: #E4002B;
    --sunset-light: #FF2D52;
    --white: #FFFFFF;
    --off-white: #FDFAF7;
    --text-dark: #1A2B35;
    --text-mid: #4A5D6B;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Archivo', sans-serif;
    color: var(--text-dark);
    background: var(--off-white);
    overflow-x: hidden;
}


/* ── Animations ─────────────────────────────────────────── */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes wave {
    0% {
        transform: translateX(0) translateY(0);
    }
    100% {
        transform: translateX(70px) translateY(70px);
    }
}


/* ── Navigation ─────────────────────────────────────────── */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(10, 75, 110, 0.1);
    animation: slideDown 0.6s ease;
    position: relative; /* ADD THIS — contains ::after pseudo-elements */
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* FIX: full desktop logo rule — display:flex was missing */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin: -10px 0;
}

.logo img {
    height: 95px;
    width: auto;
}

/* FIX: hidden on desktop, shown in mobile media query */
.mobile-title {
    display: none;
    font-family: 'Archivo', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ocean-deep);
    line-height: 1.3;
}

.mobile-title-small {
    font-size: 0.75rem;
    font-family: 'Archivo', sans-serif;
    font-weight: 400;
    color: var(--text-mid);
    display: block;
    margin-top: 0.2rem;
}

/* FIX: desktop nav-links — display:flex with horizontal layout */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--ocean-mid);
    transition: width 0.3s ease;
    pointer-events: none; /* ADD THIS */
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* FIX: cta-button visible on desktop */
.cta-button {
    background: var(--sunset);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--sunset);
}

.cta-button:hover {
    background: transparent;
    color: var(--sunset);
    transform: translateY(-2px);
}

/* FIX: hamburger hidden on desktop */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--ocean-deep);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-links.mobile-active {
    display: flex !important;
}

.nav-links li {
    margin: 0;
}


/* ── Page Header ─────────────────────────────────────────── */
.page-header {
    margin-top: 40px;
    padding: 3rem 2rem 3rem;
    background: linear-gradient(135deg, var(--ocean-deep) 0%, var(--ocean-mid) 100%);
    color: var(--white);
    text-align: center;
    position: relative; /* add this */
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.03) 35px, rgba(255,255,255,.03) 70px);
    animation: wave 20s linear infinite;
    pointer-events: none; /* add this */
}

.page-header-content {
    position: relative;
    z-index: 2;
}

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

.page-header p {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* FIX: desktop sizes — script was using the mobile overrides as base values */
.page-title {
    font-family: 'Archivo', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-mid);
    margin-bottom: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}


/* ── Content ─────────────────────────────────────────────── */
.content-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 2rem;
}

/* FIX: desktop padding — script used the mobile-override value */
.content-box {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    margin-bottom: 3rem;
}

.content-box h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--ocean-deep);
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}

.content-box h3 {
    font-size: 1.5rem;
    color: var(--ocean-mid);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-box p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-size: 1.1rem;
}

/* FIX: desktop padding — script used the mobile-override value */
.intro-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--sand);
    border-radius: 10px;
    border-left: 4px solid var(--sunset);
}


/* ── Gallery ─────────────────────────────────────────────── */
.gallery-section {
    background: var(--sand);
    padding: 2rem 2rem;
}

.gallery-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--ocean-deep);
    margin-bottom: 2rem;
    text-align: center;
}

/* FIX: desktop 2-column grid — script used the mobile 1-column override as base */
.photo-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.photo-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-item img:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

.photo-caption {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-mid);
    font-style: italic;
    line-height: 1.6;
}


/* ── Highlight / CTA Boxes ───────────────────────────────── */
.highlight-box {
    background: linear-gradient(135deg, var(--ocean-light) 0%, var(--ocean-mid) 100%);
    color: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    margin: 3rem 0;
    text-align: center;
}

.highlight-box p {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 2rem;
}


/* ── Buttons ─────────────────────────────────────────────── */
.btn-register {
    display: inline-block;
    background: var(--sunset);
    color: var(--white);
    padding: 1.25rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-register:hover {
    background: var(--sunset-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(228, 0, 43, 0.4);
}

.btn-download {
    display: inline-block;
    background: var(--sunset);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin: 1rem 0.5rem;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background: var(--sunset-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(228, 0, 43, 0.3);
}

.btn-primary {
    background: var(--sunset);
    color: var(--white);
    padding: 1.25rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid var(--sunset);
    display: inline-block;
}

.btn-primary:hover {
    background: var(--sunset-light);
    border-color: var(--sunset-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255,139,97,0.3);
}


/* ── Lists ───────────────────────────────────────────────── */
.topics-list {
    list-style: none;
    margin: 2rem 0;
}

.topics-list li {
    padding: 1rem 1.5rem 1rem 3rem;
    margin-bottom: 1rem;
    background: var(--off-white);
    border-radius: 8px;
    border-left: 4px solid var(--ocean-mid);
    line-height: 1.7;
    font-size: 1.05rem;
    position: relative;
}

.topics-list li::before {
    content: "✓";
    position: absolute;
    left: 1rem;
    color: var(--ocean-mid);
    font-weight: bold;
    font-size: 1.3rem;
}


/* ── Events ──────────────────────────────────────────────── */
.events {
    padding: 6rem 2rem;
    background: var(--white);
}

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

.events-showcase {
    display: grid;
    gap: 2rem;
}


/* ── Forms ───────────────────────────────────────────────── */
.error-msg {
    background: rgba(228, 0, 43, 0.08);
    border: 1px solid rgba(228, 0, 43, 0.3);
    color: var(--sunset);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.75rem;
}

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

.submit-btn {
    width: 100%;
    background: var(--ocean-mid);
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: 0.9rem 2rem;
    font-family: 'Archivo', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--ocean-deep);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 75, 110, 0.2);
}


/* ── Tables ──────────────────────────────────────────────── */
table {
    width: 100%;
    border-collapse: collapse;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 0.9rem;
    background: var(--white);
}

tbody tr {
    page-break-inside: avoid;
}

tbody tr:hover {
    background: var(--off-white);
}

thead {
    display: table-header-group !important;
}


/* ── Footer ──────────────────────────────────────────────── */
footer {
    background: var(--text-dark);
    color: var(--sand);
    padding: 4rem 2rem 2rem;
}

/* FIX: full desktop footer grid — was stripped down to 1-column mobile version */
.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-description {
    line-height: 1.8;
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.footer-section h4 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--sand);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--sunset);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(245, 230, 211, 0.2);
    padding-top: 2rem;
    text-align: center;
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-contact {
    margin-bottom: 1rem;
}

.footer-email {
    color: var(--sunset);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-email:hover {
    opacity: 0.8;
}

.footer-legal-links,
.footer-usps-links {
    margin-bottom: 1rem;
}

.footer-legal-links a,
.footer-usps-links a {
    color: var(--sand);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover,
.footer-usps-links a:hover {
    color: var(--sunset);
}

.footer-trademark {
    margin-top: 1rem;
    font-size: 0.85rem;
    opacity: 0.7;
}


/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

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

@media (max-width: 768px) {
    /* Nav: switch to hamburger layout */
    .hamburger {
        display: flex;
    }

    .cta-button {
        display: none;
    }

    .mobile-title {
        display: block;
    }

    .logo {
        margin: -8px 0;
        gap: 1rem;
    }

    .logo img {
        height: 70px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

    .nav-links.mobile-active {
        display: flex !important;
    }

    .nav-links li {
        margin: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 0.5rem 0;
        display: block;
    }

    /* Typography scale-down */
    .page-title {
        font-size: 2.2rem;
    }

    .page-subtitle {
        font-size: 1.1rem;
    }

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

    /* Content */
    .content-box {
        padding: 2rem;
    }

    .intro-text {
        padding: 1.5rem;
        font-size: 1.1rem;
    }

    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .photo-gallery {
        grid-template-columns: 1fr;
    }
}
