@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@100;200;300;400;500;600;700;800;900&display=swap");

:root {
    --primary: #53c3e2;
    --dark: #1a1a1a;
    --light: #ffffff;
    --gray: #f4f4f4;
    --text-dark: #333333;
    --text-light: #777777;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Outfit", sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light);
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 0.45s ease;
}

body.is-loaded {
    opacity: 1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
header {
    background: #1d1d1d;
    padding: 12px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    min-height: 58px;
}

/* Page Transitions */
html {
    background: #1d1d1d;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-group {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo img {
    height: 34px; /* Matches original height */
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #ffffff;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links .brochure-link {
    color: var(--primary) !important;
}

.nav-links .contact-btn {
    border: 1px solid #ffffff;
    padding: 6px 18px;
    border-radius: 4px;
    margin-left: 10px;
    font-size: 11px;
}

.nav-links .contact-btn:hover {
    background: #ffffff;
    color: #1d1d1d;
}

/* Hero Section */
.hero {
    height: 60vh;
    background: linear-gradient(to bottom, #1e90ff, #87ceeb);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    color: white;
    padding-top: 12vh; /* Increased gap from header */
    overflow: hidden;
}

.hero-clouds {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: url("../img/bg_clouds.png") repeat-x;
    background-size: cover;
    animation: moveClouds 100s linear infinite;
    z-index: 1;
    opacity: 0.7;
    pointer-events: none;
}

@keyframes moveClouds {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes buildingRise {
    from { opacity: 0; transform: translateX(-50%) translateY(60px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.hero-building {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 2;
    pointer-events: none;
    animation: buildingRise 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    animation-delay: 0.1s;
}

.hero-building img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1000px; /* Increased to allow one-line tagline */
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.hero-content h2 {
    font-weight: 400;
    font-size: 1.6rem;
    margin-bottom: 0;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 25px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    white-space: nowrap;
}

.btn-outline {
    display: inline-block;
    border: 2px solid white;
    color: white;
    text-transform: uppercase;
    font-size: 12px; /* Smaller */
    font-weight: 600;
    letter-spacing: 1.5px;
    padding: 12px 25px;
    border-radius: 4px;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.1);
}

.btn-outline:hover {
    background: white;
    color: #1e90ff;
}

.hero-content h2 {
    animation: fadeUp 0.8s ease both;
    animation-delay: 0.4s;
}

.hero-content h1 {
    animation: fadeUp 0.9s ease both;
    animation-delay: 0.6s;
}

.hero-content p {
    animation: fadeUp 0.8s ease both;
    animation-delay: 0.8s;
}

.hero-content .btn-outline {
    animation: fadeUp 0.8s ease both;
    animation-delay: 1s;
}

/* Featured Projects */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
}

.section-title .divider {
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 0 auto;
}

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

.project-card:not(:first-child) {
    height: 380px;
}

.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.7s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.12);
}

.project-img {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-img img {
    transform: scale(1.05);
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 24px 30px 28px;
    transform: translateY(85px);
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-info {
    transform: translateY(0);
}


.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0;
}

.project-info p {
    color: var(--text-light);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding-top: 16px;
    margin-bottom: 0;
}

/* Universal Footer & Contact Section */
.contact-section {
    padding: 80px 0 0;
    background: #ffffff;
    text-align: center;
}

.contact-section h2 {
    color: var(--primary);
    text-transform: uppercase;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.contact-section p.subtitle {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 40px;
    font-weight: 500;
}

.contact-info-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
}

.info-item i {
    color: var(--primary);
    font-size: 1.8rem;
}

.info-item .text {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
}

.contact-form {
    max-width: 1000px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #53c3e2;
    border-radius: 5px;
    font-family: "Outfit", sans-serif;
    font-size: 1rem;
    color: #777;
}

.form-group input::placeholder {
    color: #aaa;
}

.submit-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 50px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    transition: var(--transition);
}

.submit-btn:hover {
    background: #43b3d2;
    transform: translateY(-2px);
}

/* Bottom Bar */
footer.main-footer {
    background: #231f20;
    color: #ffffff;
    padding: 25px 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    color: #ffffff;
    font-size: 1.5rem;
}

.footer-social a:hover {
    color: var(--primary);
}

.footer-copyright {
    font-size: 0.9rem;
    font-weight: 400;
    color: #ffffff;
}

.footer-powered {
    font-size: 0.9rem;
    color: #ffffff;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    outline: none;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1d1d1d;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 999;
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav a {
    color: #ffffff;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: background 0.2s ease, color 0.2s ease;
}

.mobile-nav a:last-child {
    border-bottom: none;
}

.mobile-nav a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    .contact-info-grid {
        gap: 30px;
        flex-direction: column;
        align-items: center;
    }
    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Project Detail Page */
.project-hero {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 80px;
}

.project-hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.project-hero-content p {
    font-size: 1.2rem;
    font-weight: 300;
}

.project-details {
    padding: 80px 0;
}

.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.detail-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.detail-content p {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 1.1rem;
}

.sidebar-box {
    background: var(--gray);
    padding: 30px;
    border-radius: 10px;
    position: sticky;
    top: 100px;
}

.sidebar-box h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

/* Sidebar Buttons */
.sidebar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 20px;
    border-radius: 8px;
    font-family: "Outfit", sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.sidebar-btn-primary {
    background: var(--primary);
    color: #ffffff;
    border: 2px solid var(--primary);
    box-shadow: 0 4px 14px rgba(83, 195, 226, 0.3);
}

.sidebar-btn-primary:hover {
    background: #3ab5d5;
    border-color: #3ab5d5;
    box-shadow: 0 6px 20px rgba(83, 195, 226, 0.45);
    transform: translateY(-2px);
    color: #ffffff;
}

.sidebar-btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    margin-top: 12px;
}

.sidebar-btn-outline:hover {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(83, 195, 226, 0.3);
    transform: translateY(-2px);
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.amenity-item {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.amenity-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.amenity-item i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    display: block;
}

.amenity-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
}

.gallery-section {
    padding: 80px 0;
    background: var(--gray);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Restored Project Sections */

/* Amenities 8-Grid */
.amenities-section {
    padding: 80px 0;
    background: #fff;
    text-align: center;
}

.amenities-8-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.amenity-8-item {
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    cursor: default;
}

.amenity-8-item i {
    font-size: 2.5rem;
    color: #bbb;
    margin-bottom: 20px;
    display: block;
    transition: color 0.3s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.amenity-8-item.active i,
.amenity-8-item:hover i {
    color: var(--primary);
    transform: scale(1.25) translateY(-4px);
}

.amenity-8-item h4 {
    font-size: 1rem;
    font-weight: 400;
    color: #666;
    transition: color 0.3s ease;
}

.amenity-8-item.active h4,
.amenity-8-item:hover h4 {
    color: var(--primary);
}

.amenity-8-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(83, 195, 226, 0.12);
}

.more-info-link {
    display: inline-block;
    margin-top: 40px;
    color: var(--primary);
    font-style: italic;
    font-size: 0.9rem;
    text-decoration: underline;
}

/* Testimonials */
.testimonials-section {
    padding: 100px 0;
    background: #fdfdfd;
    text-align: center;
}

.testimonial-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 0 40px;
}

.testimonial-content p {
    font-size: 1.5rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
    font-weight: 300;
}

.testimonial-author {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.testimonial-author span {
    font-weight: 400;
    color: #888;
    font-size: 0.9rem;
    font-style: italic;
    display: block;
    margin-top: 5px;
}

/* Map Section */
.map-section {
    position: relative;
    box-shadow: 0 4px 30px rgba(0,0,0,0.08);
}

.map-container {
    height: 500px;
    width: 100%;
    background: #eee;
}

.map-filters {
    background: #ffffff;
    display: flex;
    justify-content: center;
    border-top: 1px solid #e8e8e8;
    flex-wrap: wrap;
}

.map-filter {
    padding: 16px 32px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    border-right: 1px solid #eeeeee;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    user-select: none;
}

.map-filter:last-child {
    border-right: none;
}

.map-filter:hover {
    color: var(--primary);
    background: #f9fdff;
    border-bottom-color: rgba(83, 195, 226, 0.35);
}

.map-filter.active {
    color: var(--primary);
    background: #f0fafd;
    border-bottom-color: var(--primary);
    font-weight: 700;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.2rem;
    font-weight: 300;
    color: #333;
    margin-bottom: 30px;
}

.cta-section .btn-primary {
    background: #76c7db;
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 4px;
    color: #ffffff;
    font-weight: 700;
}

.cta-section .divider {
    width: 100%;
    height: 1px;
    background: #eee;
    margin-top: 80px;
}

@media (max-width: 991px) {
    .amenities-8-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .map-filters {
        flex-wrap: wrap;
    }
    .map-filter {
        width: 50%;
        border-bottom: 1px solid #eee;
    }
}

/* Leaflet Map */
#map {
    height: 500px;
    width: 100%;
    background: #f0f0f0;
}

.map-section #map {
    border: 1px solid #eee;
}

.leaflet-control-geocoder-form input {
    padding: 5px;
}

/* =============================================
   RESPONSIVE — Tablet (≤ 991px)
   ============================================= */
@media (max-width: 991px) {
    /* Amenities: 2 columns on tablet */
    .amenities-8-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    /* Detail grid: stack sidebar below content */
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sidebar-box {
        position: static; /* unstick on smaller screens */
    }
}

/* =============================================
   RESPONSIVE — Mobile (≤ 768px)
   ============================================= */
@media (max-width: 768px) {

    /* --- Navigation --- */
    .hamburger {
        display: flex;
    }

    .nav-group .nav-links {
        display: none;
    }

    header .container {
        padding: 0 16px;
    }

    /* --- Hero --- */
    .project-hero {
        height: 45vh;
        padding-top: 70px;
    }

    .project-hero-content h1 {
        font-size: 2.2rem;
    }

    .project-hero-content p {
        font-size: 1rem;
    }

    /* --- Detail section --- */
    .project-details {
        padding: 50px 0;
    }

    .detail-content h2 {
        font-size: 1.6rem;
    }

    .detail-content p {
        font-size: 1rem;
    }

    /* --- Amenities: single column --- */
    .amenities-section {
        padding: 50px 0;
    }

    .amenities-8-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        margin-top: 30px;
    }

    .amenity-8-item i {
        font-size: 2rem;
    }

    .amenity-8-item h4 {
        font-size: 0.85rem;
    }

    /* --- Testimonial --- */
    .testimonials-section {
        padding: 60px 0;
    }

    .testimonial-content {
        padding: 0 16px;
    }

    .testimonial-content p {
        font-size: 1.1rem;
    }

    /* --- Map --- */
    #map {
        height: 320px;
    }

    .map-filters {
        flex-wrap: wrap;
    }

    .map-filter {
        width: 50%;
        border-bottom: 1px solid #eee;
        padding: 13px 10px;
        font-size: 0.72rem;
    }

    /* --- CTA --- */
    .cta-section {
        padding: 60px 0;
    }

    .cta-section h2 {
        font-size: 1.6rem;
    }

    .cta-section .btn-primary {
        width: 100%;
        max-width: 320px;
    }

    /* --- Gallery --- */
    .gallery-section {
        padding: 50px 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .gallery-item {
        height: 180px;
    }

    /* --- Contact / Footer --- */
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-info-grid {
        gap: 30px;
        flex-direction: column;
        align-items: center;
    }

    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* =============================================
   RESPONSIVE — Small Mobile (≤ 480px)
   ============================================= */
@media (max-width: 480px) {

    .project-hero-content h1 {
        font-size: 1.8rem;
    }

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

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

    .gallery-item {
        height: 220px;
    }

    .map-filter {
        width: 50%;
    }

    .sidebar-btn {
        font-size: 0.8rem;
        padding: 12px 16px;
    }
}

/* =============================================
   PROJECT GALLERY WITH TOGGLE
   ============================================= */

.project-gallery-section {
    background: #fff;
    position: relative;
}

.gallery-toggle-bar {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 20;
    display: flex;
}

.gallery-tab-btn {
    padding: 11px 40px;
    font-family: "Outfit", sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #888;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gallery-tab-btn:first-child {
    border-radius: 6px 0 0 6px;
    border-right: none;
}

.gallery-tab-btn:last-child {
    border-radius: 0 6px 6px 0;
}

.gallery-tab-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.gallery-tab-btn:hover:not(.active) {
    background: #f5f5f5;
    color: #333;
}

/* Full-width slider */
.gallery-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #111;
}

.gallery-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.gallery-slide {
    flex: 0 0 100%;
    max-width: 100%;
}

.gallery-slide img {
    width: 100%;
    height: 70vh;
    object-fit: cover;
    display: block;
}

/* Arrows */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.gallery-arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.08);
}

.gallery-prev { left: 20px; }
.gallery-next { right: 20px; }

/* Dots */
.gallery-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    border: none;
}

.gallery-dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* Floor plan — full width */
.floorplan-wrap {
    width: 100%;
}

.floorplan-wrap img {
    width: 100%;
    height: 70vh;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .floorplan-wrap img { height: 56vw; }
}

@media (max-width: 480px) {
    .floorplan-wrap img { height: 64vw; }
}

@media (max-width: 768px) {
    .gallery-slide img { height: 56vw; }
    .gallery-arrow { width: 36px; height: 36px; font-size: 1rem; }
    .gallery-prev { left: 10px; }
    .gallery-next { right: 10px; }
}

@media (max-width: 480px) {
    .gallery-tab-btn { padding: 10px 24px; font-size: 0.75rem; }
    .gallery-slide img { height: 64vw; }
}

/* =============================================
   SCHEDULE A VISIT MODAL
   ============================================= */

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.open {
    display: flex;
}

.modal-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 48px 44px;
    width: 100%;
    max-width: 520px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close:hover { color: #333; }

.modal-card h2 {
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--dark);
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.modal-card .modal-subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.modal-field {
    margin-bottom: 18px;
}

.modal-field input,
.modal-field textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: "Outfit", sans-serif;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: border-color 0.2s ease;
    background: #fff;
    resize: none;
}

.modal-field input:focus,
.modal-field textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.modal-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 6px;
}

input[type="date"] {
    color: var(--text-dark);
    cursor: pointer;
}

.modal-field input::placeholder,
.modal-field textarea::placeholder {
    color: #bbb;
}

.modal-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.modal-submit {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: "Outfit", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.modal-submit:hover {
    background: #3ab5d5;
    transform: translateY(-1px);
}

.modal-success {
    display: none;
    text-align: center;
    padding: 20px 0;
    color: var(--text-light);
    font-size: 1rem;
}

.modal-success i {
    font-size: 2.5rem;
    color: var(--primary);
    display: block;
    margin-bottom: 12px;
}

@media (max-width: 480px) {
    .modal-card {
        padding: 36px 24px;
    }
    .modal-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Footer Earth Image */
.footer-earth {
    display: block;
    width: 100%;
    line-height: 0;
    position: relative;
    z-index: 1;
}

/* =============================================
   SCROLL REVEAL
   ============================================= */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   HOMEPAGE — MOBILE RESPONSIVE
   ============================================= */

.hero-br { display: none; }

@media (max-width: 768px) {
    .hero-br { display: inline; }

    .hero {
        height: auto;
        min-height: 60vh;
        padding-top: 160px;
        padding-bottom: 220px;
    }

    .hero-building {
        width: 140%;
    }

    .hero-content h2 {
        font-size: 1rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        white-space: normal;
        font-size: 0.95rem;
        padding: 0 8px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-card:first-child,
    .project-card:not(:first-child) {
        grid-column: auto;
        height: 380px;
    }

    /* Reset big card to match small cards on mobile */
    .project-card:first-child .project-info {
        display: block;
        transform: translateY(85px);
    }

    .project-card:first-child:hover .project-info {
        transform: translateY(0);
    }

    .project-card:first-child .project-info h3 {
        margin-bottom: 10px;
    }

    .project-card:first-child .project-meta {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        border-top: 1px solid #eee;
        padding-top: 20px;
        gap: 0;
    }

    .project-card:first-child .project-info p {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        flex-basis: auto;
        margin-top: 0;
        padding-top: 16px;
        border-top: none;
    }
}

/* =============================================
   BIG CARD — DESKTOP ONLY
   ============================================= */
@media (min-width: 769px) {
    .project-card:first-child {
        grid-column: 1 / -1;
        height: 500px;
    }

    .project-card:first-child .project-info {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        transform: translateY(70px);
    }

    .project-card:first-child:hover .project-info {
        transform: translateY(0);
    }

    .project-card:first-child .project-info h3 {
        flex: 1;
        margin-bottom: 0;
    }

    .project-card:first-child .project-meta {
        flex-direction: column;
        align-items: flex-end;
        text-align: right;
        border-top: none;
        padding-top: 0;
        gap: 4px;
    }

    .project-card:first-child .project-info p {
        display: block;
        -webkit-line-clamp: unset;
        flex-basis: 100%;
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px solid #eee;
        overflow: visible;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content h2 {
        font-size: 0.95rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }
}

