/* ==========================================================================
   Reset & Base Variables
   ========================================================================== */
:root {
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.82);
    --accent-gold: #f59e0b;
    --accent-gold-hover: #fbbf24;
    --card-bg: rgba(15, 23, 42, 0.72);
    --card-bg-hover: rgba(30, 41, 59, 0.88);
    --card-border: rgba(255, 255, 255, 0.16);
    --card-border-hover: rgba(245, 158, 11, 0.65);
    --overlay-dark: rgba(10, 15, 29, 0.68);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    /* Background Image Configuration */
    background-color: #0f172a;
    background-image: url('/images/bg.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Dark tint overlay to ensure text contrast over images/bg.png */
.bg-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 15, 29, 0.75) 0%,
        var(--overlay-dark) 50%,
        rgba(10, 15, 29, 0.88) 100%
    );
    z-index: 0;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
    z-index: 2;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.brand-logo {
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: 'Merriweather', serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.brand-subtitle {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    color: var(--accent-gold);
    margin-top: 0.1rem;
}

.nav-pill {
    display: inline-block;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

.nav-pill:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #0f172a;
}

/* ==========================================================================
   Main Portal Content
   ========================================================================== */
.site-main {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 4rem 0;
    position: relative;
    z-index: 1;
}

.portal-hero {
    width: 100%;
}

.hero-intro {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3.5rem;
}

.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-gold);
    margin-bottom: 0.75rem;
}

.hero-intro h1 {
    font-family: 'Merriweather', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-intro p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   Destination Cards Grid
   ========================================================================== */
.portal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.portal-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: var(--text-primary);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    padding: 2.25rem 2rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.portal-card:hover,
.portal-card:focus-visible {
    transform: translateY(-6px);
    background: var(--card-bg-hover);
    border-color: var(--card-border-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    outline: none;
}

.card-badge {
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-gold);
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 1.25rem;
}

.portal-card h2 {
    font-family: 'Merriweather', serif;
    font-size: 1.45rem;
    margin-bottom: 0.85rem;
    color: #ffffff;
}

.portal-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.portal-card p strong {
    color: #ffffff;
    font-weight: 600;
}

.card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-gold);
    transition: color 0.2s ease;
}

.portal-card:hover .card-cta {
    color: var(--accent-gold-hover);
}

.card-cta .arrow {
    transition: transform 0.2s ease;
}

.portal-card:hover .card-cta .arrow {
    transform: translateX(5px);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 0.875rem;
    color: var(--text-secondary);
    position: relative;
    z-index: 2;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 960px) {
    .portal-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .site-main {
        padding: 2.5rem 0;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
}