:root {
    --news-item-width: 350px;
    --news-gap: 20px;
}

html {
    scroll-behavior: smooth;
}

html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #fff;
    color: #333;
    overflow-x: hidden;
}

.hero-section {
    position: relative;
    width: 100%;
    height: 100vh; 
    overflow: hidden;
}

.hero-background picture,
.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-section::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 1;
}

.featured-section {
    position: relative;
    width: 100%;
    height: 900px;
    overflow: hidden;
}

.featured-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;

    background-image: url("../images/landing-fade.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    background-attachment: fixed;

    z-index: 1;
    pointer-events: none;
}

.featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: white;
    z-index: 2;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;

    padding: 30px;
}

.section-title {
    font-size: 2.3rem;
    font-weight: normal;
    margin-left: 230px;
    letter-spacing: 1px;
    color: black;
}

.featured-section::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 40%; 
    pointer-events: none;

    background: linear-gradient(
        to top,
        white 0%,
        rgba(255,255,255,0.8) 30%,
        rgba(255,255,255,0.3) 70%,
        rgba(255,255,255,0) 100%
    );

    z-index: 1;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 90px;
    justify-items: center;
    margin-top: 50px;
    padding: 0 20px;
    margin-left: auto;
    margin-right: auto;
}

.project-card {
    overflow: hidden;
    background: rgba(255, 255, 255 );
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    cursor: pointer;
}

.project-card.show {
    opacity: 1;
    transform: translateY(0);
}

.project-card img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.6);
}

.projects-text {
    text-align: justify;
    width: 50%;
    margin: 0 auto; 
    padding-top: 50px;
}

.projects-text h2 {
    font-size: 2.3rem;
    font-weight: normal;
    letter-spacing: 1px;
    color: black;
    margin-bottom: 20px;
}

.projects-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #4a4a4a;
}

.project-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    padding: 10px 8%;
    position: relative;
}

.left-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-gallery-title {
    font-size: 2.3rem;
    font-weight: normal;
    margin-left: 60px;
    letter-spacing: 1px;
    color: black;
}

.info-description {
    font-size: 1.1rem;
    color: #4a4a4a;
    max-width: 500px;
    line-height: 1.7;
    margin-left: 60px;
}

.gallery-wrapper {
    flex: 1.2;
    position: relative;
    overflow: hidden;
    height: 420px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    width: 100%;
}

.gallery {
    display: flex;
    height: 100%;
}

.gallery img {
    width: 100%;
    flex-shrink: 0;
    object-fit: cover;
}

.gallery-controls {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(4px);
    padding: 6px 12px;
    border-radius: 30px;
    gap: 10px;
}

.gallery-btn {
    border: none;
    background: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.gallery-btn:hover {
    opacity: 0.8;
}

.subdivision {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    padding: 20px 0;
    position: relative;
    overflow: hidden;
}

.subdivision-title-op {
    font-size: 2.3rem;
    font-weight: normal;
    margin-left: 160px;
    letter-spacing: 1px;
    color: rgb(255, 255, 255);
}

.subdivision-box {
    width: 70%;
    background: #C79731;
    padding: 50px;
    border-radius: 0 14px 14px 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.slide-in-text {
    transform: translateX(-40px);
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease;
}

.show-bar {
    opacity: 1;
    transform: translateY(0);
}

.show-text {
    opacity: 1;
    transform: translateX(0);
}

.subdivision-title {
    font-size: 2.4rem;
    margin-bottom: 12px;
    font-weight: 500;
    line-height: 1.6;
    color: #ffffff;
    padding-left: 165px;
}

.subdivision-title {
    display: flex;
    align-items: center;  
    gap: 6px;
    color: black;
    margin: 0;
    padding: 0;
}

.subdivision-description {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #ffffff;
    padding-left: 165px;
}

.subdivision-section {
    width: 100%;
    padding: 120px 0;
    display: flex;
    flex-direction: column;
    gap: 140px;
}

.subdivision-card {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.subdivision-bar {
    position: relative;
    width: 60%;
    min-height: 100px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 45px;
    padding: 50px;
    z-index: 2;
    overflow: visible;
}

.subdivision-bg-bar {
    position: absolute;
    width: 50%;
    height: 270px;
    border-radius: 16px;
    top: 130px; 
    z-index: 1;
}

.subdivision-card.left .subdivision-bar { 
    margin-right: auto; 
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
}

.subdivision-card.right .subdivision-bar { 
    margin-left: auto; 
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
}

.subdivision-card.left .subdivision-bg-bar { 
    left: 0; 
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
}

.subdivision-card.right .subdivision-bg-bar { 
    right: 0; 
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
}

.subdivision-text {
    max-width: 450px;
    z-index: 3;
    opacity: 0;
    transform: translateY(20px);
    transition: .7s ease .25s;
    color: rgb(0, 0, 0);
    width: 100%;
}

.subdivision-text h2 {
    font-size: 1.9rem;
    font-weight: normal;
    margin-bottom: 12px;
    cursor: pointer;
    display: inline-flex; 
    align-items: center;  
    margin-bottom: clamp(8px, 2vw, 14px);
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
}

.subdivision-text p {
    font-size: 0.8rem;
    line-height: 1.65;
    text-align: justify;
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: clamp(1.5, 2.5vw, 1.7);
}

.subdivision-bar img {
    width: 60%;
    max-width: 600px;
    height: 400px;
    object-fit: cover;
    border-radius: 14px;
    z-index: 4;
    opacity: 0;
    transform: translateY(20px);
    transition: .7s ease;
}


.subdivision-card.left .subdivision-bar img { 
    order: 1; 
    margin-left: clamp(20px, 6vw, 120px);
}

.subdivision-card.left .subdivision-text { 
    order: 2; 
}

.subdivision-card.right .subdivision-text { 
    order: 1; 
}

.subdivision-card.right .subdivision-bar img { 
    order: 2; 
    margin-right: clamp(20px, 6vw, 120px);
}

.subdivision-card.show .subdivision-text,
.subdivision-card.show .subdivision-bar img {
    opacity: 1;
    transform: translateY(0);
}

.theme-gold .subdivision-bar {
    background: #FAEAC6;
}

.theme-gold .subdivision-bg-bar {
    background: #C2B695;
}

.theme-green .subdivision-bar {
    background: #D2FDBB;
}

.theme-green .subdivision-bg-bar {
    background: #AFD579;
}

.subdivision-text a.subdivision-link {
    text-decoration: none;
    color: black; 
    display: block; 
}

.subdivision-title svg {
    width: 20px;          
    height: 20px;         
    fill: currentColor;   
    transition: transform 0.2s;
}

.subdivision-title:hover svg {
    transform: translateX(6px);
}

.subdivision-card.left .subdivision-text,
.subdivision-card.left img {
    transform: translateX(-40px);
    opacity: 0;
}

.subdivision-card.left.show .subdivision-text,
.subdivision-card.left.show img {
    transform: translateX(0);
    opacity: 1;
}

.subdivision-card.right .subdivision-text,
.subdivision-card.right img {
    transform: translateX(40px);
    opacity: 0;
}

.subdivision-card.right.show .subdivision-text,
.subdivision-card.right.show img {
    transform: translateX(0);
    opacity: 1;
}

.condo {
    width: 100%;
    padding: 80px 0;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.condo-header {
    width: 100%;
    background: #e0e0e0;
    padding: 50px 20px;
    text-align: center;
    margin-bottom: 60px;
}

.condo-header h2 {
    font-size: 2.2rem;
    margin: 0;
    font-weight: 600;
}

.condo-header p {
    max-width: 1100px;
    margin: 20px auto 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
}

.condo-gallery-wrapper {
    width: 100%;
    max-width: 950px;
    position: relative;
    overflow: hidden;
}

.condo-gallery {
    display: flex;
    transition: transform 0.4s ease-in-out;
    width: 100%;
}

.condo-gallery img {
    width: 100%;
    flex-shrink: 0; 
    border-radius: 10px;
}

.gallery-thumbs {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.gallery-thumbs img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    border-radius: 6px;
    transition: opacity 0.2s, transform 0.2s;
}

.gallery-thumbs img:hover {
    opacity: 1;
    transform: scale(1.05);
}

.gallery-thumbs img.active {
    opacity: 1;
    border: 2px solid #000;
}


.contact-info {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    padding: 4rem 5%;
    flex-wrap: wrap;
    text-align: left;
    padding-top: 5px;
    width: 73%;
    margin: 0 auto;
}

.contact-info-bg {
    background-color: #fff;
}

.map-row,
.contact-row {
    flex: 1 1 45%;
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0);
    min-width: 300px;
}

.map-row h3,
.contact-row h3 {
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 600;
    color: #C79731;
    margin-bottom: 1rem;
    text-align: center;
}

.map-row p,
.contact-row p {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    padding-bottom: 7px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 1rem;
    font-family: 'Poppins', sans-serif;
}

.contact-us-header {
    text-align: center;
    padding-top: 5rem;
    padding-bottom: 2rem;
    background-color: #ffffff;
    position: relative;
    z-index: 2;
}

.contact-us-header h2 {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 600;
    margin-bottom: 10px;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
}

.contact-form button {
    padding: 10px;
    background-color: #C79731;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #C79731;
}

textarea::placeholder {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #999;
}

.consent-box {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 20px;
    font-size: 0.95rem;
}

.consent-box input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.consent-box a {
    color: #007bff;
    text-decoration: underline;
}

.consent-box a:hover {
    text-decoration: none;
}

.news-events-section {
    background-color: #f9f9f9; /* very light grey */
    padding: 60px 40px;
}

.news-events-header {
    text-align: center;
    margin-bottom: 30px;
}

.news-events-header h2 {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 600;
    margin-bottom: 10px;
}

.news-events .underline {
    width: 80px;
    height: 3px;
    background: #2ecc71;
    margin: 10px auto 0;
    font-family: 'Poppins', sans-serif;
}

.news-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* spacing between cards */
    justify-content: center; /* center cards within row */
}

.news-item {
    display: flex;
    flex-direction: column;
    flex: 0 0 350px;   /* fixed width */
    height: 280px;     /* fixed height */
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.news-image {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
}

.news-info {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* stack content at top instead of pushing apart */
}

.news-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem; /* tighter spacing */
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-date {
    font-size: 0.9rem;
    color: #888;
}

.news-location {
    font-size: 0.85rem;
    color: #000000;
    margin-top: 4px;
}

.news-carousel {
    display: flex;
    gap: var(--news-gap);
    transition: transform 0.35s ease;
    will-change: transform;
}

.news-carousel .carousel-item {
    flex: 0 0 var(--news-item-width);
}

.news-carousel-wrapper {
    position: relative;
    overflow: hidden;     
          
    margin: 0 auto;   
    
    width: calc(
        (var(--news-item-width) * 3) +
        (var(--news-gap) * 2)
    );
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    cursor: pointer;
    padding: 0.5rem 1rem;
}

.carousel-btn.prev { left: 0px; }
.carousel-btn.next { right: 0px; }

@media (max-width: 768px) {

    body {
        overflow-x: hidden;
    }

    .hero-section {
        height: 35vh;
        padding-top: 80px;
        padding-bottom: 0px; 
    }

    .featured-section {
        height: auto;
        padding: 20px 0 0px;
        overflow: visible;
        position: relative;
    }

    .featured-overlay {
        position: relative;
        z-index: 3;
        width: 100%;
        padding-top: 10px; 
    }

    .featured-background {
        z-index: 1 !important;
    }

    .section-title {
        margin-left: 0;
        font-size: 1.8rem;
        text-align: center;
        margin-bottom: 20px; 
    }

    .projects-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 18px;
        padding: 10px 15px 20px;

        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;

        min-width: 0;
    }

    .projects-grid::-webkit-scrollbar {
        display: none;
    }

    .project-card {
        flex: 0 0 90%;     
        max-width: 90%;
        scroll-snap-align: center;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    }

    .project-card img {
        width: 100%;
        height: auto; 
    }

    .projects-text {
        width: 90%;
        margin: 25px auto 0 auto;
        text-align: justify; 
        line-height: 1.7;
    }

    .projects-text h2 {
        font-size: 1.8rem;
        text-align: center;
        margin-bottom: 10px;
    }

    .project-section {
        flex-direction: column;
        text-align: center;
    }

    .project-gallery-title,
    .info-description {
        margin-left: 0;
        text-align: center;
    }

    .gallery-wrapper {
        width: 100%;
        height: 280px;
    }

    .subdivision-title-op {
        margin-left: 20px;
        font-size: 1.8rem;
    }

    .subdivision-box {
        width: 100%;
        padding: 30px 20px;
    }

    .subdivision-title,
    .subdivision-description {
        padding-left: 0;
        text-align: left;
    }

    .subdivision-section {
        gap: 80px;
        padding: 60px 0;
    }

    .subdivision-card {
        flex-direction: column;
    }

    .subdivision-bar {
        flex-direction: column;
        width: 90%;
        height: auto;
        padding: 20px;
        gap: 20px;
    }

    .subdivision-bar img {
        width: 100%;
        height: auto;
        margin: 0 !important;
    }

    .subdivision-bg-bar {
        display: none;
    }

    .subdivision-text {
        max-width: 100%;
        text-align: left;
    }

    .subdivision-text h2 {
        font-size: 1.5rem;
    }

    .subdivision-text p {
        font-size: 1rem;
    }

    .condo-header h2 {
        font-size: 1.8rem;
    }

    .condo-gallery-wrapper {
        max-width: 100%;
    }

    .gallery-thumbs img {
        width: 60px;
        height: 45px;
    }

    .contact-info {
        flex-direction: column;
        width: 90%;
        padding: 2rem 0;
    }

    .map-row,
    .contact-row {
        min-width: unset;
        width: 100%;
    }

    .news-carousel-wrapper {
        overflow-x: auto;
        width: 100%;
        -webkit-overflow-scrolling: touch;
        scroll-padding-left: 12px;
        scroll-padding-right: 12px;
    }

    .news-carousel {
        display: flex;
        gap: 0px;              /* slightly tighter */
        padding: 0px 2px;    
        width: 5%;
        scroll-snap-type: x mandatory;
    }

    .news-carousel a {
        flex: 0 0 78%;          
        scroll-snap-align: start;
    }

    .carousel-btn {
        display: none;
    }

    .news-carousel a:first-child {
        margin-left: 4px;
    }
    .news-carousel a:last-child {
        margin-right: 4px;
    }
}

@media (max-width: 480px) {

    .section-title {
        font-size: 1.6rem;
    }

    .project-card img {
        height: auto;
    }

    .projects-text p,
    .subdivision-text p {
        font-size: 0.95rem;
    }

    .subdivision-text h2 {
        font-size: 1.3rem;
    }

    .gallery-wrapper {
        height: 240px;
    }
}

