/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a1a;
    --accent-color: #c9a55c; /* Gold/Bronze */
    --accent-dark: #8c723f;
    --bg-color: #f8fafc;
    --text-color: #333333;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    padding-bottom: 2rem;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    z-index: 1000;
    display: flex; /* Make it visible by default */
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out;
}

.loading-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #FFF;
    border-bottom-color: var(--accent-color);
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Header & Banner */
.hero-section {
    position: relative;
    width: 100%;
    height: auto; /* Let content (image) dictate height */
    min-height: auto;
    overflow: hidden;
    display: block;
    background-color: var(--primary-color);
}

.banner-container {
    width: 100%;
    height: auto;
    position: relative;
    line-height: 0; /* Remove potential extra space below image */
}

.banner-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Use a gradient overlay */
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.05));
    pointer-events: none;
}

/* Content Wrapper */
.content-wrapper {
    max-width: 1200px;
    margin: -50px auto 0; /* Negative margin pulls content up slightly */
    padding: 0 20px;
    position: relative;
    z-index: 10;
    text-align: center;
}

/* ... (omitting middle of file) */

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        height: auto; /* Ensure mobile also uses auto height */
        min-height: auto;
    }

    .content-wrapper {
        margin-top: -30px; /* Less overlap on mobile */
    }

    .intro-text p {
        font-size: 1.1rem;
    }
    
    .regions-container {
        grid-template-columns: 1fr; /* Stack cards */
    }
}

/* Intro Text */
.intro-text {
    background-color: var(--white);
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
    border-top: 5px solid var(--accent-color);
    transform: translateY(20px);
    opacity: 0;
    animation: fadeUp 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

.intro-text p {
    font-size: 1.25rem;
    color: #4a5568;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 400;
}

/* Regions Container */
.regions-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
}

/* Region Card */
.region-card {
    background-color: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeUp 0.8s ease-out forwards;
}

.region-card:nth-child(1) { animation-delay: 0.4s; }
.region-card:nth-child(2) { animation-delay: 0.6s; }

.region-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--accent-color);
}

/* Flag */
.flag-wrapper {
    width: 120px; /* Set fixed width */
    height: 80px; /* Set fixed height */
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: relative; /* Contain absolute image */
}

.flag-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crop flag to fit container */
    display: block;
}

/* Card Title */
.region-card h3 {
    font-family: 'Cinzel', serif; /* Use luxury serif font */
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.region-card:hover h3 {
    color: var(--accent-color);
}

.divider {
    width: 50px;
    height: 3px;
    background-color: var(--accent-color); /* Gold line */
    margin-bottom: 1.5rem;
    border-radius: 2px;
}

/* Contact Info List */
.contact-info {
    list-style: none;
    width: 100%;
    text-align: left;
}

.contact-info li {
    display: flex;
    align-items: flex-start; /* Align icons top */
    gap: 12px;
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.contact-info li:last-child {
    margin-bottom: 0;
}

.contact-info .icon {
    font-size: 1.1rem;
    color: var(--accent-color); /* Gold icons */
    flex-shrink: 0; /* Prevent icon shrinking */
    margin-top: 2px;
}

.region-card:hover .contact-info li {
    color: #475569;
}

/* Footer (Simple) */
footer {
    text-align: center;
    padding: 2rem 0;
    color: #94a3b8;
    font-size: 0.875rem;
    margin-top: 3rem;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .content-wrapper {
        margin-top: -30px; /* Less overlap on mobile */
    }

    .intro-text p {
        font-size: 1.1rem;
    }
    
    .regions-container {
        grid-template-columns: 1fr; /* Stack cards */
    }
}
