:root {
    --brick-red: #8b2c2c;
    --beige: #d4c5b0;
    --ivory: #f7f4ef;
    --charcoal: #1f1f1f;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Source Sans 3", sans-serif;
    background: var(--beige);
    color: var(--charcoal);
    line-height: 1.7;
}

/* ===============================
   Sections & Hero
   =============================== */

.section {
    min-height: 100vh;
    padding: 6rem 10vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: var(--brick-red);
    color: var(--ivory);
    padding: 0 5vw;
}

.logo {
    width: 120px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

h1, h2 {
    font-family: "Libre Baskerville", serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
}

.subtitle {
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.tagline {
    margin-top: 1.5rem;
    font-style: italic;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.closing {
    background: var(--charcoal);
    color: var(--ivory);
    text-align: center;
}

.invocation {
    font-family: "Libre Baskerville", serif;
    font-style: italic;
    font-size: 1.3rem;
}

/* ===============================
   Top Bar (Desktop Only)
   =============================== */

.top-bar {
    background-color: #1a1a1a;
    border-bottom: 1px solid #333;
    padding: 0.5rem 0;
}

.top-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    align-items: center;
}

.top-bar-text {
    color: #fff;
    text-decoration: none;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.top-bar-text:hover {
    color: #d4af37;
}

.top-bar-right {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.top-bar .social-link {
    color: #fff;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.top-bar .social-link:hover {
    color: #d4af37;
}

/* ===============================
   Site Header
   =============================== */

.site-header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

/* Brand/Logo */
.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #1a1a1a;
    transition: opacity 0.3s ease;
    z-index: 1003;
    position: relative;
}

.brand:hover {
    opacity: 0.8;
}

.brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.brand-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1003;
    position: relative;
}

.hamburger {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #1a1a1a;
    position: relative;
    transition: background-color 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 2px;
    background-color: #1a1a1a;
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.mobile-menu-toggle.active .hamburger {
    background-color: transparent;
}

.mobile-menu-toggle.active .hamburger::before {
    transform: rotate(45deg) translate(5px, 6px);
    background-color: #fff;
}

.mobile-menu-toggle.active .hamburger::after {
    transform: rotate(-45deg) translate(5px, -6px);
    background-color: #fff;
}

/* Primary Navigation - Desktop */
.primary-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.primary-nav a {
    text-decoration: none;
    color: #1a1a1a;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.primary-nav a:hover,
.primary-nav a.active {
    color: #d4af37;
}

.primary-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #d4af37;
}

/* Mobile Spanda Section (Hidden on Desktop) */
.mobile-spanda {
    display: none;
}

/* Mobile Social Links (Hidden on Desktop) */
.mobile-social {
    display: none;
}

/* ===============================
   Footer
   =============================== */

.site-footer {
    background: var(--charcoal);
    color: var(--ivory);
    padding: 4rem 6vw 0;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(247, 244, 239, 0.1);
}

.footer-column {
    display: flex;
    flex-direction: column;
}

/* Identity Column */

.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo {
    width: 48px;
    height: auto;
    opacity: 0.9;
}

.footer-title {
    font-family: "Libre Baskerville", serif;
    font-size: 1.15rem;
    margin-bottom: 0.3rem;
    color: var(--ivory);
}

.footer-subtitle {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(247, 244, 239, 0.7);
}

.footer-tagline {
    font-size: 0.95rem;
    font-style: italic;
    color: rgba(247, 244, 239, 0.8);
    margin-bottom: 1rem;
}

.footer-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(247, 244, 239, 0.7);
    max-width: 400px;
}

/* Links Column */

.footer-heading {
    font-family: "Libre Baskerville", serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: var(--ivory);
}

.footer-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-nav a {
    color: rgba(247, 244, 239, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-nav a:hover {
    color: var(--ivory);
    padding-left: 0.5rem;
}

/* Connect Column */

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

.footer-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(247, 244, 239, 0.7);
    margin-bottom: 1rem;
}

.footer-location svg {
    opacity: 0.6;
}

.footer-contact-link {
    color: var(--ivory);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-contact-link:hover {
    transform: translateX(5px);
    color: var(--beige);
}

/* Social */

.footer-social-label {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(247, 244, 239, 0.6);
    margin-bottom: 0.8rem;
}

.footer-social-links {
    display: flex;
    gap: 1rem;
}

.footer-social-links a {
    color: rgba(247, 244, 239, 0.7);
    transition: all 0.3s ease;
    display: inline-flex;
}

.footer-social-links a:hover {
    color: var(--ivory);
    transform: translateY(-3px);
}

/* Footer Bottom */

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    font-size: 0.85rem;
    color: rgba(247, 244, 239, 0.6);
}

.footer-credits {
    font-size: 0.85rem;
    font-style: italic;
    color: rgba(247, 244, 239, 0.5);
}

/* General Footer Links */

.site-footer a {
    color: var(--ivory);
    text-decoration: none;
    transition: all 0.3s ease;
}

.site-footer a:hover {
    color: var(--beige);
}

/* ===============================
   Responsive - Tablet
   =============================== */

@media (min-width: 769px) and (max-width: 1024px) {
    .primary-nav ul {
        gap: 1.5rem;
    }

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

/* ===============================
   Responsive - Mobile
   =============================== */

@media (max-width: 768px) {

    /* Hide Top Bar on Mobile */
    .top-bar {
        display: none;
    }

    .header-inner {
        padding: 1rem;
    }

    /* Show Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: block;
    }

    .brand-text {
        font-size: 1.1rem;
    }

    .brand-logo {
        width: 35px;
        height: 35px;
    }

    /* Mobile Navigation Panel */
    .primary-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 380px;
        height: 100vh;
        background: #8b2c2c !important;
        padding: 6rem 2rem 120px 2rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
        z-index: 1002;
    }

    .primary-nav.active {
        right: 0 !important;
    }

    .primary-nav ul {
        flex-direction: column;
        gap: 0;
        margin-bottom: 2rem;
        position: relative;
        z-index: 1;
    }

    .primary-nav li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        position: relative;
        z-index: 1;
    }

    .primary-nav a {
        display: block;
        padding: 1rem 0;
        font-size: 1.05rem;
        color: #f7f4ef !important;
        position: relative;
        z-index: 1;
        pointer-events: auto;
    }

    .primary-nav a:hover {
        padding-left: 0.5rem;
        color: rgba(255, 255, 255, 0.9) !important;
    }

    .primary-nav a.active::after {
        display: none;
    }

    /* Mobile Spanda Section */
    .mobile-spanda {
        display: block;
        margin-bottom: 2rem;
        padding: 1.5rem;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
    }

    .mobile-spanda-link {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        text-decoration: none;
        color: #f7f4ef !important;
        font-size: 1.05rem;
        font-weight: 500;
        transition: all 0.3s ease;
    }

    .mobile-spanda-link:hover {
        color: rgba(255, 255, 255, 0.9) !important;
        transform: translateX(5px);
    }

    .mobile-spanda-link svg {
        flex-shrink: 0;
        stroke: #f7f4ef;
    }

    /* Mobile Social Links */
    .mobile-social {
        display: block;
        padding-top: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

    .mobile-social-title {
        display: block;
        font-size: 0.75rem;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.6);
        text-transform: uppercase;
        letter-spacing: 0.15em;
        margin-bottom: 1.2rem;
    }

    .mobile-social-links {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
    }

    .mobile-social .social-link {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 0.8rem 0;
        text-decoration: none;
        color: #f7f4ef !important;
        font-size: 0.9rem;
        letter-spacing: 0.05em;
        transition: all 0.3s ease;
    }

    .mobile-social .social-link:hover {
        transform: translateX(5px);
        color: rgba(255, 255, 255, 0.8) !important;
    }

    .mobile-social .social-link svg {
        width: 24px;
        height: 24px;
        stroke: #f7f4ef;
    }

    .mobile-social .social-link span {
        font-size: 0.9rem;
        font-weight: 400;
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden !important;
    }

    /* Menu Overlay - FIXED Z-INDEX */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        animation: fadeIn 0.3s ease;
        pointer-events: auto;
    }

    /* When menu is open, brand should be below nav panel */
    body.menu-open .brand {
        z-index: 999;
    }

    /* Ensure hamburger stays on top */
    body.menu-open .mobile-menu-toggle {
        z-index: 1003;
    }

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

    .footer-brand {
        justify-content: center;
    }

    .footer-description {
        max-width: 100%;
        text-align: center;
    }

    .footer-links,
    .footer-connect {
        text-align: center;
    }

    .footer-nav a:hover {
        padding-left: 0;
    }

    .footer-contact-link {
        display: inline-block;
    }

    .footer-location {
        justify-content: center;
    }

    .footer-social-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* Keyframe Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* Mobile App-Like Footer - ADD THIS TO YOUR EXISTING CSS */
.mobile-app-footer {
    display: none; /* Hidden by default */
}

/* Only show mobile footer on screens 768px and below */
@media (max-width: 768px) {
    .mobile-app-footer {
        display: block; /* Show mobile footer */
    }

    /* Hide regular desktop footer on mobile */
    .site-footer {
        display: none;
    }

    /* Add padding to body to prevent content being hidden behind fixed footer */
    body {
        padding-bottom: 70px;
    }
}

/* Ensure desktop footer shows on larger screens */
@media (min-width: 769px) {
    .mobile-app-footer,
    .more-menu,
    .more-menu-overlay {
        display: none !important; /* Force hide mobile elements on desktop */
    }

    .site-footer {
        display: block; /* Ensure desktop footer is visible */
    }
}