/* ============================================================
   Historic Port Theatre — Custom Styles
   Color palette derived from the Port Theatre logo:
     Navy Dark  #0d1f2d
     Navy       #1a3f5c
     Blue Mid   #2a6090
     Blue Light #4a8fb5
     Cream      #f5f0dc
     Cream Light#faf7ef
     Gold       #c8a850
     Gold Light #dbbe6e
   Fonts: Cinzel (headings), Raleway (body)
============================================================ */

/* ============================================================
   CSS CUSTOM PROPERTIES
============================================================ */
:root {
    --navy:        #1a3f5c;
    --navy-dark:   #0d1f2d;
    --blue-mid:    #2a6090;
    --blue-light:  #4a8fb5;
    --cream:       #f5f0dc;
    --cream-light: #faf7ef;
    --gold:        #c8a850;
    --gold-light:  #dbbe6e;
    --white:       #ffffff;
    --text:        #1a2a3a;
    --muted:       #6c757d;

    --shadow-sm:   0 2px 8px rgba(0,0,0,0.10);
    --shadow:      0 4px 20px rgba(0,0,0,0.13);
    --shadow-lg:   0 10px 40px rgba(0,0,0,0.20);

    --ease:        all 0.3s ease;
    --font-head:   'Cinzel', serif;
    --font-body:   'Raleway', sans-serif;
    --radius:      6px;
}


/* ============================================================
   BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text);
    background: var(--white);
    line-height: 1.75;
}

img { max-width: 100%; }

a { transition: var(--ease); }

.section-pad { padding: 5rem 0; }

@media (max-width: 767.98px) {
    .section-pad { padding: 3.5rem 0; }
}


/* ============================================================
   TYPOGRAPHY UTILITIES
============================================================ */
.label-tag {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--blue-mid);
    margin-bottom: 0.6rem;
}

.label-tag--gold { color: var(--gold); }

.section-heading {
    font-family: var(--font-head);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 700;
    color: var(--navy-dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-rule {
    width: 56px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
    margin-bottom: 1.5rem;
}

.rule-gold { background: var(--gold); }

.lead-body {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 1rem;
}


/* ============================================================
   BUTTONS
============================================================ */
.btn-gold {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy-dark);
    font-family: var(--font-head);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 2px;
    transition: var(--ease);
}
.btn-gold:hover, .btn-gold:focus {
    background: var(--gold-light);
    border-color: var(--gold-light);
    color: var(--navy-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(200,168,80,0.40);
}

.btn-navy {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
    font-family: var(--font-head);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 2px;
    transition: var(--ease);
}
.btn-navy:hover, .btn-navy:focus {
    background: var(--navy-dark);
    border-color: var(--navy-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline-navy {
    border: 2px solid var(--navy);
    color: var(--navy);
    font-family: var(--font-head);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 2px;
    transition: var(--ease);
}
.btn-outline-navy:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-gold {
    border: 2px solid var(--gold);
    color: var(--gold);
    font-family: var(--font-head);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 2px;
    transition: var(--ease);
}
.btn-outline-gold:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy-dark);
}


/* ============================================================
   NAVBAR
============================================================ */
#mainNav {
    background: transparent;
    transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
    padding: 1.1rem 0;
    z-index: 1050;
}

#mainNav.scrolled,
#mainNav.nav-solid {
    background: var(--navy-dark);
    padding: 0.55rem 0;
    box-shadow: 0 2px 24px rgba(0,0,0,0.35);
}

#mainNav .navbar-brand img {
    height: 60px;
    transition: height 0.3s ease;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}
#mainNav.scrolled .navbar-brand img { height: 48px; }

#mainNav .nav-link {
    font-family: var(--font-head);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9) !important;
    padding: 0.45rem 1rem !important;
    transition: color 0.25s ease;
}
#mainNav .nav-link:hover,
#mainNav .nav-link.active {
    color: var(--gold) !important;
}

#mainNav .navbar-toggler {
    border: 1px solid rgba(255,255,255,0.4);
    padding: 0.3rem 0.6rem;
}
#mainNav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.85)' stroke-linecap='round' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {
    #mainNav {
        background: var(--navy-dark);
        padding: 0.75rem 0;
    }
    #mainNav .navbar-collapse {
        background: var(--navy-dark);
        border-top: 1px solid rgba(255,255,255,0.1);
        padding: 1rem 0.5rem 1.25rem;
        margin-top: 0.5rem;
    }
}


/* ============================================================
   HERO CAROUSEL
============================================================ */
#home { position: relative; }

#heroCarousel {
    height: 100vh;
    min-height: 560px;
}
#heroCarousel .carousel-inner,
#heroCarousel .carousel-item {
    height: 100%;
}
#heroCarousel .carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

/* Dark gradient overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(13,31,45,0.25) 0%,
        rgba(13,31,45,0.55) 50%,
        rgba(13,31,45,0.75) 100%
    );
    z-index: 1;
}

/* Logo + text centered over slider — sits OUTSIDE carousel-inner, no clipping */
.hero-content {
    position: absolute;
    inset: 0;
    z-index: 5;                /* above overlay (z-index 1) but below controls (z-index 10) */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 1.5rem 4rem;
    pointer-events: none;      /* let carousel arrows receive clicks through this layer */
}

.hero-logo {
    width: auto;
    max-height: 260px;
    max-width: 380px;
    filter: drop-shadow(0 6px 24px rgba(0,0,0,0.55));
    /* no float animation — prevented clean rendering near overflow edges */
}

/* Re-enable pointer events only on the interactive buttons */
.hero-actions {
    pointer-events: auto;
}

.hero-tagline {
    color: var(--cream);
    font-family: var(--font-head);
    font-size: clamp(0.7rem, 1.5vw, 1rem);
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 1.6rem;
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.55);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

/* Carousel indicators — gold dashes */
#heroCarousel .carousel-indicators {
    z-index: 10;
    margin-bottom: 2.5rem;
    gap: 6px;
}
#heroCarousel .carousel-indicators button {
    width: 36px;
    height: 3px;
    border: none;
    border-radius: 2px;
    background: var(--gold);
    opacity: 0.45;
    transition: var(--ease);
}
#heroCarousel .carousel-indicators button.active {
    opacity: 1;
    width: 56px;
}

/* Carousel prev/next — z-index 10 keeps them above the hero-content overlay (z-index 5) */
#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    z-index: 10;
    width: 64px;
    opacity: 0.6;
    transition: opacity 0.25s ease;
}
#heroCarousel .carousel-control-prev:hover,
#heroCarousel .carousel-control-next:hover { opacity: 1; }

/* Scroll hint chevron */
.scroll-hint {
    position: absolute;
    bottom: 1.75rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    color: rgba(255,255,255,0.6);
    font-size: 1.4rem;
    text-decoration: none;
    animation: bounceDown 2s ease-in-out infinite;
}
.scroll-hint:hover { color: var(--gold); }

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

@media (max-width: 767.98px) {
    #heroCarousel { height: 100svh; }
    .hero-logo { max-height: 170px; max-width: 260px; }
    .hero-tagline { font-size: 0.7rem; letter-spacing: 2.5px; }
    .hero-actions .btn { font-size: 0.75rem; padding: 0.5rem 1.1rem; }
}


/* ============================================================
   ABOUT SECTION
============================================================ */
.about-img-wrap {
    position: relative;
    display: block;
}
.about-img-wrap img {
    width: 100%;
    height: 580px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: block;
}

.year-badge {
    position: absolute;
    bottom: -18px;
    right: -18px;
    width: 96px;
    height: 96px;
    background: var(--gold);
    border-radius: 50%;
    border: 4px solid var(--white);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.year-badge__label {
    font-family: var(--font-head);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--navy-dark);
    line-height: 1;
}
.year-badge__year {
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--navy-dark);
    line-height: 1;
}

@media (max-width: 991.98px) {
    .year-badge { bottom: 12px; right: 12px; }
}


/* ============================================================
   STATS BAR
============================================================ */
.stats-bar {
    background: var(--navy);
    padding: 2.5rem 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.stat-number-row {
    display: flex;
    align-items: baseline;
}
.stat-num {
    font-family: var(--font-head);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}
.stat-suffix {
    font-family: var(--font-head);
    font-size: 1.8rem;
    color: var(--gold);
    line-height: 1;
}
.stat-icon {
    font-size: 2rem;
    color: var(--gold);
    line-height: 1;
}
.stat-label {
    font-family: var(--font-head);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
}

/* Vertical dividers between stats on desktop */
@media (min-width: 768px) {
    .stats-bar .col-md-3 + .col-md-3 .stat-item {
        border-left: 1px solid rgba(255,255,255,0.15);
    }
}


/* ============================================================
   EVENTS SECTION
============================================================ */
.bg-cream-light { background: var(--cream-light); }

.event-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.event-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* Date badge pinned to top-left of image */
.event-date-flag {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    background: var(--navy);
    color: var(--white);
    width: 52px;
    height: 52px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
}
.event-month {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold);
    line-height: 1;
}
.event-day {
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.1;
}

.event-img-wrap { overflow: hidden; }
.event-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.event-card:hover .event-img { transform: scale(1.05); }

.event-body {
    padding: 1.4rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-cat {
    font-family: var(--font-head);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--blue-mid);
}
.event-title {
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--navy-dark);
    margin: 0.45rem 0 0.5rem;
    line-height: 1.3;
}
.event-desc {
    color: var(--muted);
    font-size: 0.88rem;
    flex: 1;
    margin-bottom: 0;
}
.event-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}
.event-time {
    font-size: 0.82rem;
    color: var(--muted);
    font-weight: 500;
}


/* ============================================================
   SUPPORT / DONATE SECTION
============================================================ */
.bg-navy {
    background: linear-gradient(140deg, var(--navy-dark) 0%, var(--navy) 100%);
}

.support-features {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1.5rem;
}
.support-feat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.92rem;
    color: rgba(255,255,255,0.85);
}
.support-feat i {
    color: var(--gold);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.support-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.support-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 2rem 1.75rem;
    text-align: center;
    transition: var(--ease);
}
.support-card:hover {
    background: rgba(255,255,255,0.11);
    border-color: var(--gold);
    transform: translateY(-4px);
}
.support-card__icon {
    width: 68px;
    height: 68px;
    background: rgba(200,168,80,0.13);
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.1rem;
}
.support-card__icon i {
    font-size: 1.75rem;
    color: var(--gold);
}
.support-card h3 {
    font-family: var(--font-head);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.6rem;
}
.support-card p {
    color: rgba(255,255,255,0.65);
    font-size: 0.88rem;
    margin-bottom: 1.4rem;
}


/* ============================================================
   CONTACT SECTION
============================================================ */
.contact-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}
.contact-item--map { flex-wrap: wrap; }
.contact-item--map .contact-icon { flex-shrink: 0; }

.contact-icon {
    width: 46px;
    height: 46px;
    background: var(--navy);
    color: var(--gold);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.contact-item h5 {
    font-family: var(--font-head);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 0.3rem;
}
.contact-item p {
    color: var(--muted);
    font-size: 0.93rem;
    margin-bottom: 0;
}
.social-text-link {
    color: var(--navy);
    text-decoration: none;
    font-size: 0.93rem;
    display: inline-block;
    margin-bottom: 0.2rem;
}
.social-text-link:hover { color: var(--blue-mid); }

.map-wrap {
    margin-top: 0.5rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    width: 100%;
}
.map-wrap iframe { display: block; }



/* ============================================================
   FOOTER
============================================================ */
.site-footer {
    background: var(--navy-dark);
    color: rgba(255,255,255,0.65);
    padding-top: 4rem;
    padding-bottom: 1.5rem;
}

.footer-logo {
    display: block;
    margin-bottom: 1.1rem;
}
.footer-blurb {
    font-size: 0.88rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.55);
    margin-bottom: 1.2rem;
}

.footer-socials { display: flex; gap: 0.5rem; }
.footer-social-btn {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 1rem;
    transition: var(--ease);
}
.footer-social-btn:hover {
    background: var(--gold);
    color: var(--navy-dark);
    transform: translateY(-2px);
}

.footer-col-heading {
    font-family: var(--font-head);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.1rem;
}

.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-nav-list li { margin-bottom: 0.55rem; }
.footer-nav-list a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.25s ease;
}
.footer-nav-list a:hover { color: var(--gold); }

.footer-address {
    font-style: normal;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.55);
}
.footer-address p { margin-bottom: 0.6rem; }
.footer-address a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: color 0.25s ease;
}
.footer-address a:hover { color: var(--gold); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.4rem;
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}
.footer-copy {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.33);
    margin-bottom: 0;
}
.footer-copy a {
    color: rgba(255,255,255,0.45);
    text-decoration: none;
}
.footer-copy a:hover { color: var(--gold); }


/* ============================================================
   INTERNAL PAGE HEADER
============================================================ */
.page-header {
    position: relative;
    padding: 7rem 0 4rem;
    background: linear-gradient(140deg, var(--navy-dark) 0%, var(--navy) 100%);
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/interior.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.18;
    z-index: 0;
}

.page-header .container { position: relative; z-index: 1; }

.page-header__label {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.6rem;
}

.page-header__title {
    font-family: var(--font-head);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.page-header__rule {
    width: 56px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
    margin-bottom: 1.25rem;
}

.page-header__subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    max-width: 560px;
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    .page-header { padding: 6rem 0 3rem; }
}


/* ============================================================
   SCROLL ANIMATIONS
============================================================ */
.fade-in-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.fade-in-up.delay-1 { transition-delay: 0.12s; }
.fade-in-up.delay-2 { transition-delay: 0.24s; }
.fade-in-up.delay-3 { transition-delay: 0.36s; }
