/* Emerald premium green color palette */
:root {
    --emerald-green: #046307;
    --emerald-green-dark: #034005;
    --emerald-green-light: #0a8a0a;
    --button-hover: #0f9d0f;
    --text-color: #ffffff;
    --background-color: #f9f9f9;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--background-color);
    color: var(--emerald-green-dark);
    line-height: 1.6;
}

main > h1,
main > p {
    font-family: 'Figtree', sans-serif !important;
}

header {
    background-color: #ffffff;
    color: var(--emerald-green);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 1rem 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 10;
    position: relative;
    height: 100px;
}

.header-logo {
    position: absolute;
    left: 1rem;
    width: 150px; 
    height: 90px;  
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    object-fit: contain;
} 


nav {
    margin-left: auto;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 2px;
    display: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav ul li a {
    color: var(--emerald-green);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-family: 'Montserrat', sans-serif !important;
}

nav ul li a:hover {
    background-color: var(--button-hover);
    color: #ffffff;
    cursor: pointer;
}

main {
    padding: 3rem 2rem;
    text-align: center;
    background-image: url('images/front.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

main > p {
    text-transform: uppercase;
    font-weight: bold;
    background-color: rgba(128, 128, 128, 0.75);
    padding: 0.5rem;
    border-radius: 5px;
}

.home-section h2 {
    font-family: 'Castoro Titling', serif !important;
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    padding: 1rem 2rem;
    border-radius: 10px;
    color: white;
    margin-bottom: 1rem;
    text-align: center;
}

.countries-section h3 {
    text-align: center;
    text-transform: uppercase;
    font-family: 'Castoro Titling', serif !important;
    font-size: 2rem;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    color: var(--emerald-green);
}

.property-types-section h3 {
    text-align: center;
    text-transform: uppercase;
    font-family: 'Castoro Titling', serif !important;
    font-size: 2rem;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    color: var(--emerald-green);
}

.property-types-section .countries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns per row */
    grid-auto-rows: auto;
    grid-gap: 3rem 4rem; /* vertical and horizontal spacing */
    justify-items: center;
    max-width: 800px;
    margin: 3rem auto 0 auto; 
    letter-spacing: 100px;
    
}

/* Center the 7th item on a new row */
.property-types-section .countries-grid > :nth-child(7) {
    grid-column: 2 / 3; /* center in 3-column layout */
    justify-self: center;
}

.countries-grid > * {
    justify-self: center;
}

.countries-grid {
    justify-items: center; /* center all buttons horizontally */
    padding-left: 3.5rem; /* added to move grid slightly to the right */
}


.country-btn {
    background-color: transparent;
    border: none !important; /* remove border */
    color: var(--emerald-green);
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-width: 140px;
    text-align: center;
}

main > h1 {
    font-family: 'Castoro Titling', serif !important;
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    padding: 1rem 2rem;
    border-radius: 10px;
}

#index-main h1 {
    font-family: 'Castoro Titling', serif !important;
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    padding: 1rem 2rem;
    border-radius: 10px;
    color: var(--emerald-green);
    margin-bottom: 1rem;
    text-align: center;
}

main::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.35);
    z-index: -1;
}

#about-main {
    padding: 3rem 2rem;
    text-align: center;
    background-image: url('images/about-front.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#about-main h1 {
    font-family: 'Castoro Titling', serif !important;
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    padding: 1rem 2rem;
    border-radius: 10px;
    color: white;
    margin-bottom: 1rem;
    text-align: center;
}

#introduction,
#additional-section,
#modern-living-section,
#info-buttons-section {
    background-color: white;
}

#introduction {
    padding: 3rem 2rem;
    background-color: #f0f0f0;
    color: var(--emerald-green);
    height: 60vh;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

#introduction h1 {
    font-size: 3.5rem;
    color: #000000; /* black */
    text-transform: uppercase;
}

#additional-section h1 {
    color: #000000; /* black */
}

section:not(main) h1,
section:not(main) h2,
section:not(main) h3,
section:not(main) h4,
section:not(main) h5,
section:not(main) h6 {
    color: #000000; /* black */
}

#introduction p {
    font-size: 1.25rem;
    color: #6c757d; /* gray */
    text-align: justify;
}

#additional-section p {
    font-size: 1.25rem;
    color: #6c757d; /* gray */
    text-align: justify;
}

section#additional-section p,
section#introduction p {
    color: #6c757d; /* gray */
}

#additional-section {
    padding: 3rem 2rem;
    background-color: #f0f0f0;
    color: var(--emerald-green-dark);
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
}

#additional-section p {
    font-size: 1.25rem;
    color: var(--emerald-green);
    text-align: justify;
}

#additional-section h1 {
    max-width: 50%;
    margin: 0 auto 1rem auto;
    text-align: center;
    font-family: 'Castoro Titling', serif !important;
    font-size: 3rem;
    background-color: transparent;
    color: var(--emerald-green);
    padding: 0.5rem 1rem;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 3px;
}

#info-buttons-section {
    padding: 0.5rem 2rem 1rem 2rem;
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5em;
}

.info-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    height: 50px;
    position: sticky;
    top: 0;
    background-color: #f0f0f0;
    z-index: 10;
}

.info-content {
    max-width: 700px;
    margin-top: 1rem;
    color: var(--emerald-green-dark);
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: justify;
}

.info-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}

.info-buttons button:hover {
    color: var(--button-hover);
}

.wcu-container {
    display: flex;
    gap: 1.5rem;
    background-color: #e6f2e6;
    padding: 3rem 4rem;
    border-radius: 25px;
    box-shadow: 0 0 20px rgba(4, 99, 7, 0.3);
    border: 2px solid var(--emerald-green);
    color: var(--emerald-green-dark);
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 100vw;
    width: 95vw;
    margin: 0 auto;
}

.wcu-container .wcu-text {
    position: relative;
    top: -15px;
}

.wcu-container h2 {
    color: var(--emerald-green-dark);
    font-family: 'Castoro Titling', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    position: relative;
    top: -10px;
}

.wcu-container .wcu-image {
    position: relative;
    top: 50px;
}



.our-vision-container {
    background-color: #e6f2e6;
    border: 2px solid var(--emerald-green);
    padding: 3rem 4rem;
    border-radius: 25px;
    box-shadow: 0 0 20px rgba(4, 99, 7, 0.3);
}

.our-vision-container .wcu-text h2 {
    color: var(--emerald-green-dark);
    font-family: 'Castoro Titling', serif;
    font-size: 2.5rem;
}

.our-vision-container .wcu-text p {
    color: var(--emerald-green-dark);
    font-size: 1.15rem;
    line-height: 1.7;
    font-family: 'Open Sans', sans-serif;
}

.wcu-text {
    flex: 1;
    padding-top: 2.5rem;
}

.wcu-image {
    flex: 1;
    max-width: 300px;
}

.wcu-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    flex: 1;
}

.info-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.info-buttons button {
    background-color: transparent;
    border: none;
    color: var(--emerald-green);
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.info-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    height: 50px;
    position: sticky;
    top: 0;
    background-color: #f0f0f0;
    z-index: 10;
}

.info-buttons button.active {
    border-bottom: 2px solid var(--button-hover);
    color: var(--button-hover);
}

.info-content {
    max-width: 700px;
    margin-top: 1rem;
    color: var(--emerald-green-dark);
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: justify;
}

.info-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}

.info-buttons button:hover {
    color: var(--button-hover);
}

#additional-section h1 {
    max-width: 50%;
    margin: 0 auto 1rem auto;
    text-align: center;
    font-family: 'Castoro Titling', serif !important;
    font-size: 3rem;
    background-color: transparent;
    color: var(--emerald-green);
    padding: 0.5rem 1rem;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* Services cards styles */
.services-cards {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
}

.service-card {
    background-color: #f0f0f0;
    border: 2px solid var(--emerald-green);
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(4, 99, 7, 0.2);
    padding: 1.5rem 2rem;
    width: 90%;
    max-width: 900px;
    box-sizing: border-box;
    color: var(--emerald-green-dark);
    font-family: 'Castoro Titling', serif !important;
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 2rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.service-card:hover {
    background-color: var(--emerald-green);
    color: var(--text-color);
    cursor: pointer;
}

.service-card h3 {
    font-family: 'Castoro Titling', serif !important;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase !important;
    letter-spacing: 2px;
    width: 100%;
}

.service-card h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    width: 100%;
}

.service-card p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    margin-bottom: 1rem;
    width: 100%;
    text-align: justify;
}

.service-card h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    width: 100%;
}

.service-card ul {
    list-style-position: inside;
    padding-left: 0;
    width: 100%;
    margin: 0;
}

.service-card ul li {
    margin-bottom: 0.5rem;
}

/* Footer styles */
footer {
    background-color: var(--emerald-green);
    color: var(--text-color);
    padding: 3rem 2rem;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    bottom: 0;
    width: 100%;
}

footer .footer-content p {
    margin: 0;
    padding-bottom: 1rem;
}

footer nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 0;
    margin: 0;
}

footer nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

footer nav ul li a:hover {
    color: #c1e1c1;
}

/* Modern living carousel styles */
#modern-living-section {
    padding: 3rem 2rem;
    background-color: #f0f0f0;
    color: black;
}

#modern-living-section h1 {
    font-family: 'Figtree', sans-serif !important;
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 2rem;
    text-align: center;
}

.image-carousel-container {
    position: relative;
    max-width: 1400px; /* further increased box size to prevent photo cutting */
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.image-carousel {
    display: flex;
    overflow-x: hidden;
    overflow-y: hidden; /* remove vertical scrollbar */
    scroll-behavior: smooth;
    gap: 1rem;
    width: 100%;
}

.image-carousel img {
    flex: 0 0 calc((100% - 2rem) / 3);
    max-width: calc((100% - 2rem) / 3);
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.image-carousel img:hover {
    transform: scale(1.05);
}

.carousel-arrow {
    background-color: transparent;
    border: none;
    color: black;
    font-size: 1.5rem;
    padding: 0.3rem 0.6rem;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    user-select: none;
}

.carousel-arrow:hover {
    background-color: rgba(9, 9, 9, 0.15);
    color: black;
}

/* Left carousel arrow button styles - duplicate of right */
.carousel-arrow.left {
    background-color: transparent;
    border: none;
    color: black;
    font-size: 1.5rem;
    padding: 0.3rem 0.6rem;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    user-select: none;
}

.carousel-arrow.left:hover {
    background-color: rgba(96, 100, 96, 0.15);
    color: black;
}