*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --green-dark: #16213e;
    --green-mid: #2d5233;
    --amber: #EB6753;
    --amber-light: #EB6753;
    --cream: #f8f4ee;
    --text-dark: #1a1a1a;
    --text-muted: #7a7a6e;
}

body{
    background: #eaeaea;
    
}

.container{
    position: relative;
    margin: 0 auto;
    width: 90%;
    max-width: 1000px;
    height: 60vw;
    max-height: 600px;
    background: #f5f5f5;
    box-shadow: 0 30px 50px #dbdbdb;
    overflow: hidden;
}

.slider-wrapper {
    padding: 100px 0; /* Space between Hero and Slider */
    background-color: #16213e;
    min-height: 600px; /* Adjust based on your slider design */
    
}

.container .slide .item{
    width: 20%;
    height: 50%;
    position: absolute;
    top: 50%;
    transform: translate(0, -50%);
    border-radius: 20px;
    box-shadow: 0 30px 50px #505050;
    background-position: 50% 50%;
    background-size: cover;
    display: inline-block;
    transition: 0.5s;
}

.slide .item:nth-child(1),
.slide .item:nth-child(2){
    top: 0;
    left: 0;
    transform: translate(0, 0);
    border-radius: 0;
    width: 100%;
    height: 100%;
}


.slide .item:nth-child(3){
    left: 50%;
}
.slide .item:nth-child(4){
    left: calc(50% + 21%);
}
.slide .item:nth-child(5){
    left: calc(50% + 42%);
}

/* here n = 0, 1, 2, 3,... */
.slide .item:nth-child(n + 6){
    left: calc(50% + 63%);
    opacity: 0;
}



.item .content{
    position: absolute;
    top: 50%;
    left: 8%;
    width: 50%;
    text-align: left;
    color: #eee;
    transform: translate(0, -50%);
    font-family: system-ui;
    display: none;
}


.slide .item:nth-child(2) .content{
    display: block;
}


.content .name{
    font-size: clamp(1.2rem, 3vw, 2.5rem);
    text-transform: uppercase;
    font-weight: bold;
    opacity: 0;
    animation: animate 1s ease-in-out 1 forwards;
}

.content .des{
    margin-top: 10px;
    margin-bottom: 20px;
    opacity: 0;
    animation: animate 1s ease-in-out 0.3s 1 forwards;
}

.content button{
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    opacity: 0;
    animation: animate 1s ease-in-out 0.6s 1 forwards;
}


@keyframes animate {
    from{
        opacity: 0;
        transform: translate(0, 100px);
        filter: blur(33px);
    }

    to{
        opacity: 1;
        transform: translate(0);
        filter: blur(0);
    }
}

/* Tablet */
@media (max-width: 768px) {
    .container {
        height: 70vw;
        max-height: 450px;
    }

    .item .content {
        left: 5%;
        width: 60%;
    }

    .slide .item:nth-child(4) { left: calc(50% + 22%); }
    .slide .item:nth-child(5) { left: calc(50% + 44%); }
}

/* Mobile — hide the small cards, show only the hero card */
@media (max-width: 480px) {
    .container {
        height: 80vw;
        max-height: 380px;
    }
    .container .slide .item .content .name{
        font-size: clamp(1rem, 4vw, 1rem);        
    }
    .container .slide .item .content .des{
        font-size: clamp(0.2rem, 2vw, 0.8rem);
    }

    .slide .item:nth-child(3),
    .slide .item:nth-child(4),
    .slide .item:nth-child(5) {
        display: none;   /* too cluttered on small screens */
    }

    .item .content {
        left: 5%;
        width: 80%;
    }
}



.button{
    width: 100%;
    text-align: center;
    position: absolute;
    bottom: 20px;
}

.button button{
    width: 40px;
    height: 35px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    margin: 0 5px;
    border: 1px solid #000;
    transition: 0.3s;
}

.button button:hover{
    background: #ababab;
    color: #fff;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.section { padding: 80px 0; }

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 500px;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1542332213-31f87348057f?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 0 ;
}
.hero-content { max-width: 1000px;  text-align: center; margin: 0 auto;}
.hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); margin-bottom: 25px;  line-height: 1.2; white-space: normal; }
.hero p { font-size: clamp(0.9rem, 2vw, 1.1rem); margin-bottom: 30px; line-height: 1.6; padding: 0 10%;}
.hero-btns { display: flex;  gap: 15px; flex-direction: row; justify-content: center; align-items: center; flex-wrap: wrap; }

/* Buttons */
.btn { padding: 12px 30px; font-size: clamp(0.85rem, 1.5vw, 1rem); border-radius: 8px; text-decoration: none; font-weight: 600; display: inline-block; cursor: pointer; border: none; }
.btn-primary { background: var(--primary); color: black; background-color: white;}
.btn-outline {color: white; background-color: #EB6753;  }
.btn-pill { border: 1px solid #ccc; background: white; padding: 8px 20px; border-radius: 20px; }

.why-section {
    padding: 100px 6%;
    background: var(--cream);
    overflow: hidden;
}
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
}

        /* ── LEFT: TEXT + FEATURES ── */


.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 16px;
}

.why-left h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem;
    line-height: 1.2;
    color: var(--green-dark);
    margin-bottom: 16px;
}

.why-left .subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 320px;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--green-dark);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--amber-light);
    font-size: 1rem;
}

.feature-text h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.feature-text p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── CENTER: IMAGE + BADGE ── */
.why-center {
    position: relative;
    display: flex;
    justify-content: center;
}

.building-img-wrap {
    position: relative;
    width: 100%;
    border-radius: 24px;
    overflow: visible;
}

.building-img-wrap img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 24px;
    display: block;
    box-shadow: 0 30px 60px rgba(26, 47, 30, 0.3);
}

/* Decorative frame accent */
.building-img-wrap::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: 12px;
    bottom: -12px;
    border: 2px solid var(--amber);
    border-radius: 28px;
    opacity: 0.4;
    z-index: 0;
}

.stat-badge {
    position: absolute;
    bottom: -20px;
    left: -30px;
    background: var(--green-dark);
    color: white;
    padding: 16px 22px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 15px 35px rgba(26, 47, 30, 0.4);
    z-index: 2;
}

.stat-badge .avatar-stack {
    display: flex;
}

.stat-badge .avatar-stack img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--green-dark);
    margin-left: -8px;
    object-fit: cover;
}

.stat-badge .avatar-stack img:first-child { margin-left: 0; }

.stat-badge .badge-text {
    font-size: 0.8rem;
    line-height: 1.4;
}

.stat-badge .badge-text strong {
    display: block;
    font-size: 1rem;
    color: var(--amber-light);
}

/* ── RIGHT: STATS + LOGOS ── */
    .why-right {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.stats-stack {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.stat-item {
    border-left: 3px solid var(--amber);
    padding-left: 20px;
}

.stat-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    color: var(--green-dark);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-item p {
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* Divider */
.right-divider {
    height: 1px;
    background: linear-gradient(to right, #d4c9b8, transparent);
}

/* Logo strip */
.trusted-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.logo-strip {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.logo-item {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.55;
    transition: opacity 0.3s;
}

.logo-item:hover { opacity: 1; }

.logo-item i {
    font-size: 1.1rem;
    color: var(--green-dark);
}

.logo-item span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: 0.5px;
}

        /* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .why-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .why-right { grid-column: span 2; flex-direction: row; justify-content: space-between; }
}
@media (max-width: 768px) {
    .why-grid { grid-template-columns: 1fr; }
    .why-right { grid-column: span 1; flex-direction: column; }
    .building-img-wrap img { height: 320px; }
}

@media (max-width: 480px) {
    .hero {
        min-height: 400px;
    }

    .hero h1 {
        white-space: normal;  /* definitely allows wrapping */
        margin-bottom: 16px;
    }

    .hero p {
        padding: 0 5%;
        margin-bottom: 20px;
    }

    .hero-btns {
        flex-direction: column;  /* stack buttons vertically */
        gap: 10px;
        width: 100%;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* ── CAROUSEL SECTION ── */
.properties-carousel-section {
    padding: 80px 5%;
    background: white;
    overflow: hidden;
    position: relative; /* ensures child overflow clips properly */
}

.carousel-container {
    max-width: 1300px;
    margin: 0 auto;
}
/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.section-left h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--green-dark);
    margin-bottom: 8px;
}

.section-left p {
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    color: var(--text-muted);
}

.carousel-controls {
    display: flex;
    gap: 10px;
}

.carousel-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--green-dark);
    background: white;
    color: var(--green-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    font-size: 1rem;
}

.carousel-btn:hover {
    background: var(--green-dark);
    color: white;
    transform: scale(1.05);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: scale(1);
}

/* Carousel Wrapper */
.carousel-wrapper {
    position: relative;
    overflow: hidden;
    /* iOS Safari fix: force GPU compositing layer so overflow:hidden clips correctly */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    /* Prevent iOS from expanding the wrapper to accommodate translateX'd children */
    will-change: transform;
}

.carousel-track {
    display: flex;
    gap: 25px;
    transition: transform 0.5s ease;
    padding: 10px 0;
}


/* Badge */
.card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--amber);
    color: white;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .property-card {
        min-width: 300px;
    }
}

@media (max-width: 768px) {
    .properties-carousel-section {
        padding: 60px 4%;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 30px;
    }

    .carousel-controls {
        width: 100%;
        justify-content: flex-end;
    }

    .property-card {
        min-width: 280px;
    }

    .card-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .properties-carousel-section {
        padding: 50px 3%;
    }

    .property-card {
        min-width: 260px;
    }

    .carousel-track {
        gap: 15px;
    }

    .card-content {
        padding: 16px;
    }

    .card-features {
        gap: 12px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

/* Touch/Swipe Support */
@media (hover: none) {
    /* On touch devices: keep overflow hidden so the JS transform carousel
       doesn't expand the wrapper to infinity on iOS Safari.
       Touch/swipe is handled by JS touchstart/touchend in home.js. */
    .carousel-wrapper {
        overflow: hidden;
        cursor: grab;
    }
    .carousel-wrapper:active {
        cursor: grabbing;
    }
}

/* ── FOOTER ── */
.main-footer {
    background: var(--green-dark);
    color: white;
    padding-top: 10px;
    position: relative;
    margin-top: 0px;
}

/* CTA Banner (overlaps footer) */
.footer-cta {
    background: linear-gradient(135deg, var(--amber) 0%, var(--amber-light) 100%);
    padding: 50px 6%;
    border-radius: 25px;
    margin: 0 6%;
    transform: translateY(-80px);
    box-shadow: 0 25px 50px rgba(196, 127, 42, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.cta-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: white;
    margin-bottom: 10px;
    font-weight: 700;
}

.cta-content p {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 500px;
}

.cta-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 14px 32px;
    background: white;
    color: var(--green-dark);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    display: inline-block;
}

.cta-btn:hover {
    background: var(--green-dark);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
.cta-phone {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cta-phone span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}
.cta-phone strong {
    font-size: 1.3rem;
    color: white;
    font-family: 'Playfair Display', serif;
}
/* Footer Main Content */
.footer-content {
    max-width: 1300px;
    margin: -50px auto 0;
    padding: 0 6%;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
/* Brand Column */
.footer-brand h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: white;
    margin-bottom: 16px;
}
.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
    max-width: 280px;
}
.social-links {
    display: flex;
    gap: 12px;
}
.social-links a {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: 0.3s;
    font-size: 1.1rem;
}
.social-links a:hover {
    background: var(--amber);
    transform: translateY(-3px);
}
/* Link Columns */
.footer-column{
    display: flex;
    flex-direction: column;
}
.footer-column h4 {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 20px;
    font-weight: 600;
}
.footer-column ul {
    list-style: none;
}
.footer-column ul li {
    margin-bottom: 12px;
}
.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.3s;
    display: inline-block;
}
.footer-column ul li a:hover {
    color: var(--amber-light);
    transform: translateX(5px);
}
/* Newsletter */
.newsletter-form {
    margin-top: 20px;
}
.newsletter-input {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}
.newsletter-input input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    outline: none;
}
.newsletter-input input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}
.newsletter-input button {
    padding: 12px 24px;
    background: var(--amber);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}
.newsletter-input button:hover {
    background: var(--amber-light);
}
/* Footer Bottom */
.footer-bottom {
    padding: 30px 6%;
    text-align: center;
}
.footer-bottom-content {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}
.footer-bottom-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}
.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.footer-bottom-links a:hover {
    color: var(--amber-light);
}
/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}
@media (max-width: 768px) {
    .main-footer {
        margin-top: 10px;
    }
    .footer-cta {
        flex-direction: column;
        text-align: center;
        padding: 40px 6%;
        transform: translateY(-50px);
    }
    .cta-content p {
        max-width: 100%;
    }
    .cta-actions {
        justify-content: center;
        width: 100%;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    .footer-brand p {
        max-width: 100%;
    }
    .footer-column {
        flex-direction: column;
    }
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    .newsletter-input {
        flex-direction: column;
    }
    .newsletter-input button {
        width: 100%;
    }
}
@media (max-width: 480px) {
    .footer-cta {
        padding: 30px 5%;
    }
    .footer-column {
        flex-direction: column;
    }
    .cta-btn {
        width: 100%;
        text-align: center;
    }
    .social-links {
        justify-content: center;
    }
}