/* ================= ROOT ================= */

:root {
    --accent: #9FD2B1;
    --accent-dark: #779D85;
}

html {
    scroll-behavior: smooth;
}

/* ================= RESET ================= */

body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    line-height: 1.5;
    background: #f5f5f5;
    color: #333;
}

/* ================= TYPOGRAPHY ================= */

p, a, h1, h2, h3, li {
    font-family: "Josefin Sans", sans-serif;
    font-weight: 300;
}

li {
    padding: 0.5rem 0;
}

h1 {
    letter-spacing: 5px;
}

h2, h3 {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding-bottom: 2rem;
    color: var(--accent-dark);
}

p {
    color: #555;
    line-height: 1.7;
}

a {
    color: var(--accent);
    font-weight: 400;
}

/* ================= NAV ================= */

.nav {
    position: sticky;
    top: 0;
    z-index: 999;

    background: white;
    padding: 20px 60px;
    border-bottom: 1px solid #eee;

    display: flex;
    justify-content: flex-end;
}

.nav a {
    margin-left: 35px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    letter-spacing: 1px;
}

.nav a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
}

/* ================= HEADER ================= */

header {
    position: relative;
    height: 70vh;
    min-height: 420px;
    max-height: 900px;

    display: flex;
    align-items: flex-end;
    justify-content: left;

    color: white;
    overflow: hidden;

    padding-bottom: 40px;
    padding-left: 40px;
}

header .header-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

header .header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.55));
    z-index: 1;
}

.header-text {
    position: relative;
    z-index: 2;
    text-align: left;
}

.header-text h1 {
    font-size: 4rem;
    letter-spacing: 8px;
    margin: 0;
}

/* ================= CONTENT SECTIONS ================= */

.info-section {
    background: white;
    padding: 40px;
    margin: 20px auto;
    max-width: 1200px;
    box-shadow: 0 20px 40px rgba(220,214,204,0.2);
}

.info-section-simple {
    padding: 40px;
    margin: 20px auto;
    max-width: 1200px;
}

.space {
    padding: 3rem 0;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.info-row.reverse {
    flex-direction: row-reverse;
}

.info-image {
    flex: 1;
    min-width: 300px;
    width: 100%;
    overflow: hidden;
}

.info-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info-text {
    flex: 1;
    min-width: 300px;
}

/* hide extra image on mobile */
.image-hidden {
    display: inline;
}

/* ================= GALLERY ================= */

.section-gallery {
    padding: 2rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 15px;
}

.video-gallery {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 15px;
}

.gallery img:nth-child(n+4) {
    display: none;
}

.video-gallery .video-thumb:nth-child(n+5) {
    display: none;
}

.gallery img,
.video-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    cursor: pointer;
    transition: filter 0.3s ease;
}

.gallery img:hover,
.video-thumb:hover {
    filter: brightness(0.5);
}

/* ================= MODAL ================= */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);

    justify-content: center;
    align-items: center;

    z-index: 1000;
}

.modal-img,
#modalVideo {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;

    font-size: 40px;
    color: white;
    cursor: pointer;
}

.arrow {
    position: absolute;
    top: 50%;

    font-size: 50px;
    color: white;
    cursor: pointer;

    user-select: none;
    transform: translateY(-50%);
}

.arrow.left { left: 40px; }
.arrow.right { right: 40px; }

/* ================= BUTTONS ================= */

button, .btn {
    background: var(--accent);
    color: white;

    border: none;
    padding: 10px 20px;

    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover,
.btn:hover {
    background: var(--accent-dark);
}

/* ================= CONTACT ================= */

.contact-card {
    background: white;

    width: 50%;
    max-width: 600px;

    margin: 3rem 2rem;
    padding: 60px 40px;

    text-align: left;

    box-shadow: 0 25px 50px rgba(0,0,0,0.08);
    border-radius: 6px;

    transition: all 0.3s ease;
}

.contact-card h2 {
    margin-bottom: 40px;
    font-size: 2rem;
}

/* ================= FOOTER ================= */

footer {
    text-align: center;
    margin-top: 60px;
    padding: 20px;

    background: #222;
    color: #ccc;
}

/* ================= TABLET ================= */

@media (max-width: 900px) {

    .info-row {
        flex-direction: column;
        align-items: stretch;
        flex-wrap: wrap;
        gap: 20px;
    }

    .info-image {
        flex: 1 1 48%;
        max-width: 48%;
    }

    .info-text {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .gallery,
    .video-gallery {
        grid-template-columns: repeat(2,1fr);
    }

    .image-hidden {
        display: none;
    }

    .contact-card {
        width: 90%;
        margin: 40px auto;
        padding: 40px 20px;
        text-align: center;
    }
}

/* ================= MOBILE ================= */

@media (max-width: 600px) {

    .gallery,
    .video-gallery {
        grid-template-columns: 1fr;
    }

    .info-image {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .info-row {
        gap: 15px;
    }

    header .header-text h1 {
        font-size: 2rem;
    }
}

.image-sm-hide {
    display: block;
}

@media (max-width: 900px) {
    .image-sm-hide {
        display: none;
    }
}