:root {
    --primary-dark-green: #4D6B53;
    --secondary-mint-green: #eef4ed;
    /* Light mint background for footer */
    --text-color: #555555;
    --background-grey: #F5F5F5;
    --white: #FFFFFF;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    color: var(--primary-dark-green);
    font-weight: 700;
}

a {
    text-decoration: none;
}

/* Base Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 600;
    font-size: 14px;
    border-radius: 25px;
    text-align: center;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-outline-white {
    border: 1.5px solid var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--white);
}

.btn-outline-green {
    border: 1.5px solid var(--primary-dark-green);
    color: var(--primary-dark-green);
    background: transparent;
    font-size: 12px;
    padding: 10px 24px;
}

.btn-outline-green:hover {
    background: var(--primary-dark-green);
    color: var(--white);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    /* Use the loaded image */
    background-image: url('assets/images/hero-bg.png');
    background-size: cover;
    /* Shifting the image to the right */
    background-position: right center;
    display: flex;
    align-items: center;
    padding-left: 10%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 650px;
    margin-top: -100px;
    /* Pushes the entire text block upwards */
}

.logo {
    margin-bottom: 30px;
}

.logo img {
    height: 80px;
    object-fit: contain;
}

.hero-content h1 {
    font-size: 2.8rem;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero-content p {
    font-size: 1.15rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Countries Section */
.countries-section {
    padding: 80px 5%;
    background-color: var(--white);
    text-align: center;
}

.countries-section h2 {
    font-size: 2.2rem;
    margin-bottom: 70px;
}

.countries-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.country-card {
    flex: 1;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-wrapper {
    position: relative;
    width: 250px;
    height: 300px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Center the contents to fix map positioning */
}

/* Map silhouette goes in background */
.map-silhouette {
    position: absolute;
    width: 320px;
    /* Make the map larger */
    height: 320px;
    top: 50%;
    left: 50%;
    /* Push map lower down */
    transform: translate(-50%, -5%);
    object-fit: contain;
    z-index: 1;
    /* User requested opacity 0.2 */
    opacity: 0.1;
    filter: brightness(0.4) sepia(1) hue-rotate(85deg) saturate(2);
}

/* Map pin (teardrop) shape for the photo */
.country-photo {
    position: relative;
    z-index: 2;
    width: 210px;
    height: 252px;
    /* Adjusted height to allow the pin tip */
    object-fit: cover;
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 240" xmlns="http://www.w3.org/2000/svg"><path d="M100 0C44.8 0 0 44.8 0 100c0 71.5 100 140 100 140s100-68.5 100-140C200 44.8 155.2 0 100 0z"/></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 240" xmlns="http://www.w3.org/2000/svg"><path d="M100 0C44.8 0 0 44.8 0 100c0 71.5 100 140 100 140s100-68.5 100-140C200 44.8 155.2 0 100 0z"/></svg>');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center bottom;
    mask-position: center bottom;
}

.country-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.country-card p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 30px;
    flex-grow: 1;
}

/* Footer Section */
.site-footer {
    background-color: #eef5ee;
    /* Very light mint/grey */
    padding: 70px 10%;
    color: #4a4a4a;
}

.footer-columns {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

/* First column is much wider to hold the paragraph text */
.footer-col:nth-child(1) {
    flex: 2;
    padding-right: 40px;
}

/* Second and third columns share the remaining space */
.footer-col:nth-child(2),
.footer-col:nth-child(3) {
    flex: 1;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--primary-dark-green);
}

.footer-col p {
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #4a4a4a;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--primary-dark-green);
}

.copyright-bar {
    background-color: var(--primary-dark-green);
    color: var(--white);
    text-align: center;
    padding: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Prevent unwanted line breaks */
.nowrap {
    white-space: nowrap;
}

@media (max-width: 992px) {
    .countries-grid {
        flex-direction: column;
        align-items: center;
        gap: 60px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .footer-columns {
        flex-direction: column;
        gap: 40px;
    }

    .footer-col {
        text-align: left;
        /* Keep left alignment on mobile too */
        padding-right: 0 !important;
        /* Remove the extra padding on mobile */
    }
}

@media (max-width: 768px) {
    .hero {
        padding-left: 5%;
        padding-right: 5%;
        text-align: center;
        justify-content: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .countries-section {
        padding: 50px 5%;
    }

    .countries-section h2 {
        font-size: 1.8rem;
        margin-bottom: 50px;
    }

    .site-footer {
        padding: 50px 5%;
    }

    .map-silhouette {
        width: 300px;
        height: 300px;
    }
}