@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&display=swap');

/* Base styles */
html {
    height: 100%; /* Ensure html takes full viewport height */
    overflow-y: scroll; /* Ensure html can scroll if body doesn't */
}

body {
    margin: 0;
    font-family: 'Archivo Black', 'Arial Rounded MT Bold', Arial, sans-serif;
    color: #fff;
    background: #222;
    height: auto;
    min-height: 400vh; /* Increase minimum height */
    overflow-x: hidden;
}

main {
    margin-top: 70px;
    position: relative;
    height: auto;
    min-height: 400vh; /* Increase minimum height to ensure scrollability */
    z-index: 5;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}
.hero {
    min-height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Removed position: relative; as individual hero sections are fixed */
    overflow: hidden;
    flex-shrink: 0; /* Prevent shrinking in flex containers */
}
.hero-content {
    position: relative;
    z-index: 50;
    max-width: 700px;
    margin: 0;
    padding: 2em 2em 2em 2em;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}
.hero h1 {
    font-size: 4.5em;
    margin: 0 0 0.2em 0;
    font-weight: bold;
    line-height: 1.1;
    letter-spacing: 1px;
    text-shadow: 1px 0px 2px rgb(0, 0, 0);
}
.hero-main {
    color: #fff;
}
.hero-highlight {
    color: #bada22;
}
.hero-highlight-green {
    color: #00853e;
}
.hero-highlight-teal {
    color: #60c6c7;
}
.hero p {
    font-size: 2em;
    margin: 0 0 1.2em 0;
    font-weight: 500;
    line-height: 1.2;
    color: #fff;
    text-shadow: 3px 3px 2px rgb(0, 0, 0);
    
}
.highlight {
    color: #bada22;
    font-weight: bold;
}
.highlight-green {
    color: #00853e;
    font-weight: bold;
}
.highlight-teal {
    color: #60c6c7;
    font-weight: bold;
}
.hero-buttons {
    display: flex;
    gap: 1.2em;
    margin-top: 1em;
}
.btn {
    font-size: 1.6em;
    padding: 0.7em 2.2em;
    border: none;
    border-radius: 8px;
    font-weight: 750;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    box-shadow: 3px 4px 3px rgba(0,0,0,0.3);
    text-decoration: none;
    display: inline-block;
}
.btn-primary {
    background: #bada22;
    color: #222;}
.btn-primary:hover {
    background: #d2e100;
}
.btn-primary-green {
    background: #00853e;
    color: #fff;
    border: 2px solid #000000;
}
.btn-primary-green:hover {
    background: #006b32;
}
.btn-primary-teal {
    background: #60c6c7;
    color: #000000;
    border: 2px solid #000000;
}
.btn-primary-teal:hover {
    background: #4fb4b5;
}
.btn-secondary {
    background: #fff;
    color: #222;
    border: 2px solid #000000;
    /* font-size: 1.9em; */
}
.btn-secondary:hover {
    background: #eee;
}

/* Removed the .hero-fixed-overlay class - it's no longer needed for this approach */

.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
    background-size: cover;
    background-position: center;
    opacity: 1;
}
.hero-bg-people {
    background-image: url('/img/home/'), url('https://images.unsplash.com/photo-1464983953574-0892a716854b?auto=format&fit=crop&w=1500&q=80');
    /* filter: sepia(0.7) brightness(0.7) contrast(1.1); */
}
.hero-bg-people::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(30,30,30,0.45);
    z-index: 2;
    pointer-events: none;
}
.hero-bg-places {
    background: #1a2327;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('/img/home/map.png');
}
#mapCanvas {
    width: 500px;
    height: 500px;
    display: block;
    margin: 0 auto;
}
/* Section transitions */
.hero {
    opacity: 1;
    transform: translateY(0);
}
.hero.transition-out {
    opacity: 0;
    transform: translateY(-50px) scale(0.95);
    pointer-events: none;
}
.hero.transition-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}
/* Responsive styles */
@media (max-width: 1100px) {
    .hero-content {
        max-width: 90vw;
        padding: 2em 1em;
    }
    #mapCanvas {
        width: 350px;
        height: 350px;
    }
    .hero h1 {
        font-size: 3em;
    }
    .hero p {
        font-size: 1.3em;
    }
}
@media (max-width: 700px) {
    header {
        flex-direction: row;
        padding: 0.5em 1em;
        height: 56px;
    }
    nav.desktop-nav {
        display: none;
    }
    .mobile-menu-icon {
        display: flex;
    }
    nav.mobile-nav {
        display: flex;
    }
    .hero {
        flex-direction: column;
        align-items: flex-start;
        min-height: 100vh;
        padding: 2em 0.5em 1em 0.5em;
    }
    .hero-content {
        margin-left: 0;
        max-width: 100vw;
        padding: 1.5em 1em;
        text-align: center;
    }
    #mapCanvas {
        width: 220px;
        height: 220px;
    }
    .hero h1 {
        font-size: 2.5em;
    }
    .hero p {
        font-size: 1.5em;
    }
    .btn {
        font-size: 1em;
        padding: 0.5em 1em;
    }
    .hero-places {
        clip-path: circle(0% at 50% 50%);
    }
    .hero-places.circle-reveal {
        clip-path: circle(180% at 50% 50%);
    }
}

/* --- CIRCLE REVEAL ANIMATION FOR HERO-PLACES --- */
.hero-places {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 20;
    /* pointer-events: none; */ /* Managed by JS */
    /* opacity: 1; */ /* Managed by JS */
    clip-path: circle(0vw at 70% 60%);
    box-sizing: border-box;
    transition: opacity 0.5s, clip-path 0.5s;
}



.hero-places::before,
.hero-people-places::before {
    content: '';
    position: absolute;
    left: var(--circle-x, 30%);
    top: var(--circle-y, 40%);
    width: calc(var(--circle-radius, 0vw) * 2);
    height: calc(var(--circle-radius, 0vw) * 2);
    border-radius: 50%;
    border: 4px solid #bada22;
    box-sizing: border-box;
    pointer-events: none;
    z-index: 100;
    transform: translate(-50%, -50%);
    transition: none;
}

.hero-places.circle-reveal {
    clip-path: circle(150% at 70% 60%);
    pointer-events: auto;
    opacity: 1;
}

.hero-people {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 10;
    /* opacity and pointer-events will be managed by JS */
}



.hero-bg-people-places {
    background-image: url('/img/home/seal.png');
    filter: brightness(0.7);
}

/* Fix the positioning for the third hero section */
.hero-people-places {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 30; /* Above both other sections */
    clip-path: circle(0vw at 30% 40%);
    -webkit-clip-path: circle(0vw at 30% 40%);
    box-sizing: border-box;
    will-change: transform, opacity; /* Improve performance */
    transition: opacity 0.3s ease;
}



/* Ensure hero-people is visible initially */
.hero-people {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.section-find-tour {
    background: #a9dadb;
    width: 100%;
    left: 0;
    z-index: 40;
    min-height: auto; /* Allow natural height */
    opacity: 1; /* Ensure it's visible */
    pointer-events: auto; /* Allow interaction */
    color: #222;
    will-change: position, top, opacity, transform;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-bottom: 4rem;
    padding-top: 4rem;
}

.section-find-tour-inner {
    display: flex;
    width: 80%;
    max-width: 1200px;
    gap: 2rem;
    flex-direction: row; /* Ensure items are side by side */
    align-items: flex-start; /* Allow content to expand naturally */
    padding: 2rem;
}

.section-find-tour-image {
    flex: 1;
}

.section-find-tour-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.section-find-tour-content {
    flex: 1;
    padding: 2rem;
}

.section-find-tour-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #222;
}

.section-find-tour-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    line-height: 1.5;
    color: #444;
    max-height: none;
    overflow: visible;
    white-space: normal;
}

@media (max-width: 900px) {
    .section-find-tour-inner {
        flex-direction: column;
        width: 90%;
    }
}

.section-testimonial {
    background: #f8f9fa;
    width: 100%;
    position: relative;
    z-index: 5;
    opacity: 1;
    pointer-events: auto;
    color: #222;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-bottom: 4rem;
    padding-top: 4rem;
}

.section-testimonial-inner {
    display: flex;
    width: 80%;
    max-width: 1200px;
    gap: 2rem;
    flex-direction: row;
    align-items: flex-start;
    padding: 2rem;
}

.section-testimonial-content {
    flex: 1;
    padding: 2rem;
    text-align: center;
}

.testimonial-logo {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.testimonial-logo img {
    max-width: 200px;
    height: auto;
}

.section-testimonial-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #222;
}

.section-testimonial-content blockquote {
    margin: 0 0 2rem 0;
    padding: 0;
    border: none;
}

.section-testimonial-content blockquote p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #444;
    font-style: italic;
    margin: 0;
}

.section-testimonial-image {
    flex: 1;
}

.section-testimonial-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.btn-success {
    background: #28a745;
    color: #fff;
    border: 2px solid #28a745;
}

.btn-success:hover {
    background: #218838;
    border-color: #218838;
}

@media (max-width: 900px) {
    .section-testimonial-inner {
        flex-direction: column-reverse;
        width: 90%;
    }
    
    .section-testimonial-content {
        text-align: center;
    }
    
    .section-testimonial-content h2 {
        font-size: 2rem;
    }
}

/* Add a class for the scroll spacer to control its height */
.scroll-spacer {
    will-change: height;
    background: transparent; /* Make it invisible */
    min-height: 0 !important;
    height: 0;
    padding: 0;
    margin: 0;
}

body, html, main, .section-find-tour {
    overflow: visible !important;
}