/* import google fonts */
@import url('https://fonts.googleapis.com/css2?family=Lily+Script+One&display=swap');


/* body font */
body {
    margin: 0;
    font-family: Arial, sans-serif;
}

/* NAVBAR START */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #d9d9d9;
    padding: 10px 20px;
}

.navbar .logo-container {
    display: flex;
    align-items: center;
    gap: 35px; /* space between logo and login */
}

.logo img {
    height: 72px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0 auto; /* centre nav items */
}

.nav-links li {
    display: inline;
}

.nav-links a {
    text-decoration: none;
    color: #3a3a3a;
    font-size: 32px;
}

/* color the active nav element */
.nav-links a.active {
    color: #178fff
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons img {
    width: 48px;
    height: 48px;
}

.burger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: black;
}

/* desktop, adds divider between items */
@media (min-width: 768px) {
    .nav-links li:not(:last-child)::after {
        content: "|";
        margin-left: 10px;
        color: #3a3a3a;
        font-size: 32px;
    }
}

/* smaller navbar for tablets */
@media (max-width: 1024px) {
    .nav-links {
        gap: 10px;
    }

    .nav-links a {
        font-size: 24px;
    }

    .nav-links li:not(:last-child)::after {
        margin-left: 5px;
    }

    .nav-links li:last-child a {
        line-height: 1.8; /* vertically aligns last item */
    }

    
}

/* burger menu for phones */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        background-color: #d9d9d9;
    }

    .nav-links.active {
        display: flex;
    }

    .burger {
        display: flex;
    }
}
/* NAVBAR END */

/* SLIDER START */
.swiper {
    width: 100%;
    height: 40vh;
    margin: 0 auto; /* centre the slider horizontally */
    position: relative;
}

.swiper-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 30%; /* horiz & vert centring */
    filter: brightness(1.2) contrast(0.5); /* improve readability of layered text */
}

.slider-title {
    position: absolute;
    left: 50%; /* horiz centre */
    top: 50%; /* vert centre */
    transform: translate(-50%, -50%);
    color: #3a3a3a;
    font-size: 2.5rem;

    z-index: 2; /* layer title on top of slider */
    text-align: center;
}
/* SLIDER END */

/* CARDS START */
.text-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    grid-template-rows: repeat(2, 1fr); 
    gap: 20px; 
    height: calc(100vh - 80px); /* full viewport minus navbar */
    padding: 20px; 
    box-sizing: border-box; /* ensure padding won't affect height */
}

.text-card {
    background-color: #d9d9d9;
    border-radius: 8px;
    display: flex;
    flex-direction: column; /* stack vertically */
    align-items: center; /* horiz */
    justify-content: center; /* vert */
    text-align: center;
    overflow: hidden;
    font-size: 24px;
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    border-radius: 8px; 
}
/* mobile */
@media (max-width: 768px) {
    .text-cards {
        grid-template-columns: 1fr; /* switch to 1column */
    }

    .text-card {
        padding: 10vh 15px; /* reduce padding */
        font-size: 15px; /* reduce font size */
    }
}

/* CARDS END */

.title {
    font-family: 'Lily Script One';
    font-weight: normal;
}

h1 {
    color: #3a3a3a;
}

/* style h2 identically to h1, because */
/* h1 is seen as top-level by screen readers */
h2 {
  display: block;
  font-size: 36px; /* match h1 font size */
  line-height: 1.2; /* default line height for h1 */
  color: #3a3a3a;
  font-family: Arial, sans-serif; /* match h1 font family */
}

/* gallery styling */
.image-container {
    position: relative;
}

.image-card {
    position: relative; /* Enable positioning for child elements */
}

.image-title {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 18px;
}

/* lightbox2 styling */
/* !important overrides the other stylesheet */
.lb-prev, .lb-next {
    opacity: 1 !important; /* arrow opacity */
    visibility: visible !important; /* always visible */
}

.lb-prev:hover, .lb-next:hover {
    opacity: 1 !important; /* hover effect opacity */
}

/* map styling */
.text-card.image-card {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    height: 100%;
    width: 100%;
}

#embed-map-canvas {
    width: 100%; /* fill container */
    height: 100%; /* fill container */
}

iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* contact form styling */
form {
    display: grid;
    grid-template-columns: 1fr; /* Single-column layout for alignment */
    gap: 10px; /* Add spacing between elements */
    width: 100%;
}

label {
    display: block; /* Ensure labels are block elements */
}

input, textarea, button {
    width: 100%; /* Make fields take up full width */
    box-sizing: border-box; /* Include padding in width calculations */
}

textarea {
    min-height: 125px; /* Adjust height to your needs */
    resize: none; /* Prevent manual resizing */
}