/* ----------------------------------------------------------
   RESET & BASE
---------------------------------------------------------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ----------------------------------------------------------
   COLOR PALETTE (CSS VARIABLES)
---------------------------------------------------------- */

:root {
    --primary: #0b5d2a;
    --primary-dark: #094a22;
    --secondary: #4f7f4f;
    --accent: #d9c9a3;
    --light-bg: #f5f5f3;
    --text-dark: #1f1f1f;
    --text-light: #ffffff;
    --border-light: #ddd;
    --border-medium: #ccc;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: url("../../images/background.png") no-repeat center center fixed;
    background-size: cover;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
}

img {
    max-width: 100%;
    display: block;
}

figure {
    margin: 0;
    padding: 0;
}

a {
    color: var(--primary);
    text-decoration: none;
}

/* ---------------------------------------
   BASE LINK HOVER
---------------------------------------- */

nav a:hover {
    color: var(--primary-dark);
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 2px;
    background: var(--primary-dark);
    transition: width 0.25s ease;
}

nav a:hover::after {
    width: 100%;
}

/* ----------------------------------------------------------
   NAV MENU
---------------------------------------------------------- */

.nav-menu {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
    position: relative;
    padding: 6px 4px;
}

/* Unified button style */
.nav-menu a.btn-small,
.nav-contact .btn-small {
    color: var(--text-light) !important;
    background: var(--primary);
    display: block;
    text-align: center;
    padding: 10px 16px;
    border-radius: 4px;
}

.nav-contact .btn-small {
    padding: 6px 14px;
}

/* Submenu structure */
.nav-menu li {
    position: relative;
}

.nav-menu .submenu {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    flex-direction: column;
    background: var(--background-light, #fff);
    padding: 10px 0;
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    min-width: 180px;
    z-index: 1000;

    /* animation defaults */
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Hover reveal */
.nav-menu li.has-submenu:hover > .submenu {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    animation: fadeInMenu 0.25s ease;
}

/* Submenu links */
.nav-menu .submenu a {
    padding: 8px 16px;
    white-space: nowrap;
    color: var(--text-dark);
    font-weight: 400;
}

.nav-menu .submenu a::after {
    display: none;
}

.nav-menu .submenu a:hover {
    background: var(--primary-light, rgba(0,0,0,0.05));
    color: var(--primary-dark);
}

/* Flyout submenu */
.nav-menu .submenu li.has-submenu > .submenu {
    top: 0;
    left: 100%;
    margin-left: 4px;
}

/* Arrow indicator */
.nav-menu li.has-submenu > a::after {
    content: none !important;
    margin-left: 0 !important;
    font-size: 0.6rem;
    margin-left: 6px;
    transition: transform 0.2s ease;
}

.nav-menu li.has-submenu:hover > a::after {
    transform: rotate(180deg);
}

/* ----------------------------------------------------------
   FLAGS
---------------------------------------------------------- */

.flag-icon svg {
    width: 22px;
    height: auto;
    vertical-align: middle;
    margin-right: 4px;
}

/* ----------------------------------------------------------
   LAYOUT BLOCKS
---------------------------------------------------------- */

.two-cols-main-image {
    display: block;
}

.two-cols-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.two-cols-features {
    display: grid;
    gap: 5px;
}

.two-cols-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
    min-width: 0;
    min-height: 100%;
}

.feature-box h3 {
    font-size: 1.3rem;
    margin: 0 0 6px 0;
}

.feature-box p {
    margin: 0;
}

.container {
    width: min(1200px, 90%);
    margin: auto;
    min-width: 0;
}

.section {
    padding: 20px;
    border-bottom: 1px solid var(--border-light);
}

.section-alt {
    background: var(--light-bg);
}

.section-title {
    font-size: 2rem;
    margin-bottom: 20px;
}

.section-text {
    padding-bottom: 20px;
}

.two-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

/* ----------------------------------------------------------
   RESPONSIVE LAYOUT
---------------------------------------------------------- */

@media (max-width: 768px) {
    .two-cols-layout {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) {
    .two-columns {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

/* Mobile nav */
@media (max-width: 900px) {

    .nav-menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu .submenu {
        position: static;
        display: none;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        box-shadow: none;
        padding-left: 20px;
        border-left: 2px solid rgba(255,255,255,0.3);
    }

    .nav-menu li.open > .submenu {
        display: flex;
        animation: fadeInMenu 0.25s ease;
    }

    .nav-menu .submenu .submenu {
        padding-left: 20px;
        border-left: 2px solid rgba(255,255,255,0.25);
    }

    .nav-menu li.has-submenu > a::after {
        content: none !important;
        margin-left: 0 !important;

    }

    .nav-menu li.open > a::after {
        transform: rotate(90deg);
    }
}

/* ----------------------------------------------------------
   HEADER
---------------------------------------------------------- */

#site-header {
    border-bottom: 1px solid var(--border-light);
    padding: 15px 0;
    z-index: 1000;
}

#site-header .logo {
    font-size: 1.4rem;
    font-weight: bold;
}

#site-header h1 {
    margin: 0;
}

/* ----------------------------------------------------------
   CINEMATIC CROSSFADE
---------------------------------------------------------- */

.crossfade-old {
    position: absolute;
    inset: 0;
    width: 100%;
    opacity: 1;
    pointer-events: none;
    transition: opacity 1.6s cubic-bezier(0.4, 0.0, 0.2, 1);
    filter: brightness(1) contrast(1);
}

.crossfade-old.fade-out {
    opacity: 0;
    filter: brightness(0.95) contrast(1.05);
}

#mainContent {
    position: relative;
    opacity: 1;
    transition: opacity 0.9s ease;
}

#mainContent.fade-in {
    opacity: 0;
}

/* ----------------------------------------------------------
   NAV WRAPPER
---------------------------------------------------------- */

#main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

#main-nav > .nav-menu {
    margin-left: 0;
    padding-left: 0;
    flex-grow: 1;
}

.main-nav {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.main-nav a,
#btnOpenContact {
    padding: 6px 10px;
    border-radius: 4px;
}

#btnOpenContact {
    background: var(--primary);
    color: var(--text-light);
    border: none;
    cursor: pointer;
}

/* ----------------------------------------------------------
   HERO
---------------------------------------------------------- */

.hero {
    padding: 80px 0;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 900px) {
    .hero-layout {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-text h1 {
    font-size: 2.4rem;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: var(--text-light);
    padding: 10px 18px;
    border-radius: 4px;
    margin: 15px 0;
}

.btn:hover {
    background: var(--primary-dark);
}

/* ----------------------------------------------------------
   CAROUSEL
---------------------------------------------------------- */

.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    position: relative;
    width: 100%;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.carousel-slide.active {
    position: relative;
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.carousel-slide figcaption {
    margin-top: 8px;
    font-size: 0.95rem;
    font-weight: bold;
    text-align: center;
    color: var(--text-dark);
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: transparent;
    color: var(--text-light);
    border: none;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 28px;
    border-radius: 50%;
}

.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--border-medium);
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-dot.active {
    background: var(--primary);
}

/* ----------------------------------------------------------
   TABS
---------------------------------------------------------- */

.tab-group {
    min-width: 0;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    overflow-x: visible;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-bottom: 2px solid var(--border-light);
    scroll-snap-type: x mandatory;
    min-width: 0;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab {
    flex: 0 0 auto;
    padding: 10px 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.25s ease;
    color: var(--text-dark);
    scroll-snap-align: start;
}

.tab:hover {
    background: var(--primary);
    color: var(--text-light);
}

.tab.active {
    background: var(--primary);
    color: var(--text-light);
    border-bottom: 2px solid var(--primary);
    position: relative;
    top: 2px;
}

.tab-content {
    display: none;
    margin-top: 20px;
}

.tab-content.active {
    display: block;
}

/* Responsive tabs */
@media (max-width: 900px) {
    .tabs {
        gap: 0.25rem;
        border-bottom-width: 1px;
    }

    .tab {
        font-size: 0.95rem;
        padding: 10px 14px;
    }
}

@media (max-width: 600px) {
    .tabs {
        flex-direction: column;
        overflow: visible;
        border-bottom: none;
    }

    .tab {
        width: 100%;
        border-radius: 4px;
        border: 1px solid var(--border-medium);
        top: 0;
    }

    .tab.active {
        border-bottom: 1px solid var(--primary);
    }
}

/* ----------------------------------------------------------
   MAP
---------------------------------------------------------- */

.map-wrapper iframe {
    width: 100%;
    height: 350px;
    border: none;
    border-radius: 6px;
}

/* ----------------------------------------------------------
   FAQ
---------------------------------------------------------- */

.faq-accordion details {
    margin-bottom: 15px;
    border: 1px solid var(--border-light);
    padding: 12px 15px;
    border-radius: 6px;
}

.faq-accordion summary {
    cursor: pointer;
    font-weight: bold;
}

.faq-accordion p {
    margin-top: 10px;
}

/* ----------------------------------------------------------
   BACK TO TOP BUTTON
---------------------------------------------------------- */

#btnTop {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(20px);
    z-index: 999;
}

#btnTop.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#btnTop:hover {
    background: var(--primary-dark);
}

/* ----------------------------------------------------------
   POPUP CONTACT FORM
---------------------------------------------------------- */

.popup {
    position: fixed;
    inset: 0;
    background: var(--border-light);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.popup.active {
    display: flex;
}

.popup-content {
    background: var(--text-light);
    padding: 25px;
    border-radius: 8px;
    width: min(500px, 95%);
    position: relative;
}

.popup-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
}

.contact-form .form-row {
    margin-bottom: 15px;
}

.contact-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border-medium);
    border-radius: 4px;
}

.contact-form textarea {
    min-height: 120px;
}

/* ----------------------------------------------------------
   HAMBURGER MENU
---------------------------------------------------------- */

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 26px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: 0.3s ease;
}

@media (max-width: 768px) {

    #main-nav {
        position: relative;
        z-index: 3000;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        right: 0;
        background: var(--text-light);
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        border: 1px solid var(--border-light);
        border-radius: 6px;
        display: none;
        width: 200px;
        z-index: 4000;
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* ----------------------------------------------------------
   ANIMATIONS
---------------------------------------------------------- */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease