/* ------------------------------
   Base + Reset
------------------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 1.1rem;
}

body {
    font-family: "Titillium Web", system-ui, sans-serif;
    font-weight: 400;
    line-height: 1.8;
    color: #0c5353;
    background: #f6f9f9;
    word-break: break-word;
}

/* ------------------------------
   Typography
------------------------------ */

h1 {
    font-weight: 700;
    font-size: 1.8rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

h2 {
    font-weight: 700;
    font-size: 1.4rem;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

h3 {
    font-weight: 600;
    font-size: 1.2rem;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

h4,
h5,
h6 {
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 0.25rem;
    /* margin-bottom: 0.1rem; */
}


ul {
    padding-left: 1.6rem;
    padding-bottom: 0.5rem;
    padding-top: 0.5rem;
}

a {
    position: relative;
    font-weight: 600;
    color: #0c756e;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #20a99f;
}

br {
    display: block;
    margin: 1rem 0;
    content: "";
}

.brand a {
    font-size: 1.7rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding: 0.2rem 0;
    text-decoration: none;
}

/* ------------------------------
   Layout
------------------------------ */
.site-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    gap: 1rem;
    border-bottom: 1px solid #c7e1e1;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1200px;
    width: 95%;
    margin: 0 auto;

}

.center {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 95%;
    max-width: 860px;
    margin: 0 auto;
}

.center>* {
    align-self: stretch;
    text-align: left;
}

.error-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 50vh;
    padding: 2rem;
}

.error-page h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error-page p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.spacer {
    height: 1em;
}

/* ------------------------------
   Navigation
------------------------------ */
.site-nav {
    max-width: 400px;
    width: 100%;
    position: relative;
    z-index: 1000;
    margin-bottom: 2rem;
    margin-top: 1rem;
}

.site-nav a {
    display: block;
    padding: 1rem;
}

.site-nav>ul {
    justify-content: center;
    display: flex;
    list-style: none;
    gap: 1rem;
    padding: 0.5rem;
    border-radius: 10px;
    background: #eaf6f6;
    box-shadow: 0 2px 4px rgba(101, 150, 143, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    margin: 0;
}

.site-nav>ul:hover {
    transform: translateY(-3px);
    box-shadow: 0 2px 4px rgba(101, 150, 143, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.countries-dropdown {
    position: relative;
}

.countries-toggle::after {
    content: '';
    display: inline-block;
    margin-left: 0.35em;
    vertical-align: middle;
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 6px solid #0c756e;
    transition: transform 0.3s ease;
}

.countries-dropdown-menu {
    display: none;
    position: absolute;
    top: 80%;
    left: 0;
    padding: 0.4rem;
    border-radius: 10px;
    list-style: none;
    min-width: 170px;
    background: #eaf6f6;
    box-shadow: 0 4px 12px rgba(12, 83, 83, 0.4);
    z-index: 1000;
}

.countries-dropdown-menu li a {
    display: block;
    padding: 0.5rem 1rem;
}

.countries-dropdown:hover>.countries-dropdown-menu {
    display: block;
}

.countries-dropdown:hover .countries-toggle::after {
    transform: rotate(90deg);
}

/* ------------------------------
   Hero
------------------------------ */
.hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* color: #0e4646; */
}

.hero .bg1,
.hero .bg2 {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.7);
    opacity: 0;
    transition: opacity 3s ease;
    pointer-events: none;
}

.hero .bg1.visible,
.hero .bg2.visible {
    opacity: 1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.hero h1 {
    color: #f5fbfb;
    font-size: clamp(1.6rem, 5vw, 3.5rem);
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5),
        0 0 2px rgba(0, 0, 0, 0.4);
}

.hero p {
    color: #e0f0f0;
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5),
        0 0 2px rgba(0, 0, 0, 0.4);
}

/* ------------------------------
   Country Cards
------------------------------ */
.country-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
    width: 100%;
    align-items: stretch;
}

.country-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    background: #eaf6f6;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(101, 150, 143, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.country-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 2px 4px rgba(101, 150, 143, 0.2);
}

.country-card h2 {
    margin-bottom: 1rem;
}

.country-card p {
    margin-bottom: 1rem;
}

/* ------------------------------
   Footer
------------------------------ */
.site-footer {
    width: 100%;
    border-top: 1px solid #c7e1e1;
    padding: 1rem;
    text-align: center;
    color: #0c5353;
}

.site-footer a {
    display: inline-flex;
    padding: 0.5rem;
}

.seperator {
    color: #c7e1e1;
}

/* ------------------------------
   Responsive
------------------------------ */
@media (max-width: 370px) {
    .center {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .site-nav>ul {
        flex-direction: column;
        /* stack links */
        gap: 0.5rem;
        align-items: center;
    }

    .site-footer {
        flex-direction: column;
        gap: 0.4rem;
    }

    .site-footer li::after {
        content: none;
    }

    .site-footer a {
        gap: 0.3rem;
        padding: 0 0.25rem;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ------------------------------
   Contact Form
------------------------------ */
.contact-form {
    background: #eaf6f6;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(101, 150, 143, 0.4);
    padding: 2rem;
    width: 95%;
    max-width: 860px;
    margin: 3rem auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-form h2 {
    text-align: center;
    color: #0c5353;
}

.contact-form label {
    font-weight: 600;
    margin-bottom: 0.3rem;
    display: block;
    color: #0c5353;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    border: 1px solid #b7d7d7;
    border-radius: 6px;
    color: #0c5353;
    background: #f9fefe;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #0c756e;
    box-shadow: 0 0 0 3px rgba(12, 117, 110, 0.15);
    outline: none;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    background: #0c756e;
    color: #fff;
    border: none;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    align-self: flex-end;
    transition: background 0.2s ease, transform 0.2s ease;
}

.contact-form button:hover {
    background: #20a99f;
    transform: translateY(-1px);
}

.contact-form .status {
    text-align: center;
    font-size: 0.95rem;
    min-height: 1.2rem;
    color: #0c5353;
    margin-top: 0.5rem;
}

/* ------------------------------
   Dark Mode
------------------------------ */
@media (prefers-color-scheme: dark) {
    body {
        background: #0b1b1b;
        color: #e2f2f2;
    }

    a {
        color: #48c6be;
    }

    a:hover {
        color: #3bffef;
    }

    .site-header {
        border-bottom: 1px solid #1e3b3b;
    }

    .site-nav>ul {
        justify-content: center;
        display: flex;
        list-style: none;
        gap: 1rem;
        padding: 0.5rem;
        border-radius: 10px;
        background: #1c2e2e;
        box-shadow: 0 2px 4px rgba(101, 150, 143, 0.4);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .site-nav>ul:hover {
        transform: translateY(-3px);
        box-shadow: 0 2px 4px rgba(101, 150, 143, 0.2);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .countries-dropdown-menu {
        background: #1b2f2f;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    }

    .countries-toggle::after {
        border-left-color: #4ecac1;
    }

    .hero-content h1 {
        color: #f2fcfc;
    }

    .hero-content p {
        color: #d0ecec;
    }

    .hero .bg1,
    .hero .bg2 {
        filter: brightness(0.6);
    }

    .country-card {
        background: #1c2e2e;
        box-shadow: 0 2px 4px rgba(78, 202, 193, 0.4);
    }

    .country-card:hover {
        box-shadow: 0 2px 4px rgba(78, 202, 193, 0.2);
    }

    .site-footer {
        border-top: 1px solid #1e3b3b;
        color: #b4d3d3;
    }

    .seperator {
        color: #1e3b3b;
    }

    .contact-form {
        background: #1c2e2e;
        box-shadow: 0 2px 4px rgba(78, 202, 193, 0.4);
    }

    .contact-form h2 {
        color: #e2f2f2;
    }

    .contact-form label {
        color: #e2f2f2;
    }

    .contact-form input,
    .contact-form textarea {
        background: #102121;
        border: 1px solid #264747;
        color: #e2f2f2;
    }

    .contact-form input:focus,
    .contact-form textarea:focus {
        border-color: #48c6be;
        box-shadow: 0 0 0 3px rgba(72, 198, 190, 0.2);
    }

    .contact-form button {
        background: #09988f;
        color: #fff;
    }

    .contact-form button:hover {
        background: #12b5ab;
    }

    .contact-form .status {
        color: #b4d3d3;
    }
}