/* --- LUNA STUDIOS CORE BRANDING --- */
body, html { 
    margin: 0; 
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; 
    background-color: #f8f0dd; /* Cream */
    color: #2e2e2e; /* Charcoal */
    font-family: 'Segoe UI', Arial, sans-serif;
    overflow-x: hidden;
}

/* --- HEADER / LOGO --- */
header {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: flex-start;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #2e2e2e;
    transition: opacity 0.3s ease;
}

.logo-link:hover { opacity: 0.7; }

.nav-logo {
    width: 50px;
    height: auto;
    margin-right: 15px;
}

.brand-name {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    font-size: 1rem;
}

/* --- MAIN CONTENT LAYOUT --- */
main {
    flex: 1 0 auto; /* Pushes footer down */
    max-width: 800px; /* Unified width for better table/text display */
    margin: 40px auto; 
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* Consistent spacing between paragraphs/elements in Main */
main > * {
    margin-bottom: 20px;
}

h1 { 
    text-transform: uppercase; 
    letter-spacing: 4px; 
    border-bottom: 2px solid #2e2e2e; 
    padding-bottom: 10px;
    margin-top: 0;
}

.intro { font-size: 1.2rem; font-weight: bold; }

/* --- CONTACT & POLICY SPECIFICS --- */
.contact-section, .policy-box { 
    margin: 20px 0; 
    padding: 30px; 
    border: 1px solid #2e2e2e;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: left;
    gap: 10px; /* This creates the space between the label and the link */
}

.contact-section .label {

    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
    margin-top: 15px; /* Adds space before 'Email us at' and 'Follow the journey' */
}

.link-item { 
    color: #2e2e2e; 
    font-weight: bold; 
    text-decoration: underline;
    transition: color 0.3s;

}

.link-item:hover { color: #d48c3a; }

/* --- TABLES --- */
table { 
    width: 100%; 
    border-collapse: collapse; 
    margin: 30px 0; 
    background: white; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

th, td { padding: 15px; text-align: left; border-bottom: 1px solid #eee; }
th { background-color: #2e2e2e; color: #fdfaf0; text-transform: uppercase; font-size: 0.8rem; }

/* --- FOOTER --- */
footer {
    flex-shrink: 0;
    background-color: #2e2e2e;
    color: #fdfaf0;
    padding: 30px 20px;
    text-align: center;
}

.footer-links { margin-bottom: 15px; }

.footer-links a {
    color: #fdfaf0;
    text-decoration: none;
    margin: 0 12px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.6;
}














/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 600px) {
    main { margin: 20px auto; padding: 15px; }
    h1 { font-size: 1.5rem; letter-spacing: 2px; }
    .brand-name { font-size: 0.9rem; }
    table { display: block; overflow-x: auto; }

/*REMOVE    .status-message { font-size:1.5rem; }
    .overlay-text { font-size: 0.9rem; } */

    /*Vertical Footer Menu */
    .footer-links {
        display: flex;
        flex-direction: column; /* Stacks links vertically */
        align-items: center;    /* Centers them */

    }

    .footer-links a {
        display: block;
        width: 100%;
        max-width: 220px;       /* Limits width for a tidy list */
        padding: 12px 0;        /* Large 'touch target' for easy tapping */
        margin: 0;              /* Removes old horizontal spacing */
        border-bottom: 1px solid rgba(253, 250, 240, 0.1); /* Subtle divider */

    }

    .footer-links a:last-child {
        border-bottom: none;    /* Removes divider from the last link */
    }
}





/* Special rule for landscape orientations on tablets/phones */
@media (max-height: 450px) and (orientation: landscape) {
    .overlay-text {
        font-size: 0.5rem; /* Scale down text to match the smaller image */
        padding: 5px 10px;
        bottom: 5%;
    }

    .status-message {
        font-size: 1.0rem; /* Shrink the text to give the image more room */
        margin-bottom: 1rem;
    }
    img {
        max-height: 60vh; /* Give even more room to avoid any scrolling */
    }
}








/* --- DARK MODE OVERRIDES --- */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a; /* A deep, premium charcoal instead of brown */
        color: #fdfaf0; /* Use your cream color for the text so it pops */
    }

    main {
        background-color: transparent;
    }

    /* Keep the contact and policy boxes clean in dark mode */
    .contact-section, .policy-box, table {
        background-color: #2e2e2e; /* Slightly lighter than the body for contrast */
        border-color: #444;
        color: #fdfaf0;
    }

    /* Adjust links for readability */
    .link-item {
        color: #d48c3a; /* Your 'Celtic Gold' stands out beautifully on dark backgrounds */
    }

    h1 {
        border-bottom-color: #fdfaf0;
    }

    /* Ensure the header logo area stays clean */
    header {
        background-color: #1a1a1a;
    }
    
    .brand-name {
        color: #fdfaf0;
    }
}