/* ===========================
   Variables & Reset
   =========================== */

:root {
    --blue-deep: #1e3a5f;
    --blue-med: #3d7cb5;
    --blue-light: #e8f0f8;
    --blue-pale: #f0f5fa;
    --gold: #c9a96e;
    --gold-dark: #b08c4a;
    --bg: #f8f9fb;
    --white: #ffffff;
    --text: #2c2c2c;
    --text-light: #666666;
    --text-muted: #999999;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Lato', -apple-system, sans-serif;
    --max-width: 1100px;
    --radius: 8px;
    --radius-lg: 12px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* ===========================
   Navigation
   =========================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: box-shadow 0.3s, background 0.3s;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(30, 58, 95, 0.08);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-brand {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    color: var(--blue-deep);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blue-med);
    transition: width 0.3s;
}

.nav-link:hover,
.nav-link--active {
    color: var(--blue-deep);
}

.nav-link:hover::after,
.nav-link--active::after {
    width: 100%;
}

.nav-cta {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 10px 24px;
    border: 2px solid var(--blue-deep);
    border-radius: 4px;
    color: var(--blue-deep);
    transition: all 0.3s;
}

.nav-cta:hover {
    background: var(--blue-deep);
    color: var(--white);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--blue-deep);
    transition: all 0.3s;
}

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

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

/* ===========================
   Hero
   =========================== */

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(30, 58, 95, 0.3) 0%,
        rgba(30, 58, 95, 0.5) 50%,
        rgba(30, 58, 95, 0.7) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 0 30px;
}

.hero-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 8px 20px;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-title {
    font-family: var(--font-display);
    font-size: 72px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 16px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 1px;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 40px;
}

.hero-scroll {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s;
}

.hero-scroll:hover {
    color: var(--white);
}

.hero-scroll svg {
    animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ===========================
   Sections
   =========================== */

.section {
    padding: 80px 0;
}

.section--light {
    background: var(--blue-pale);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 30px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 600;
    color: var(--blue-deep);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-light);
    font-weight: 300;
}

/* ===========================
   Specs Bar
   =========================== */

.specs-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 50px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    background: var(--white);
    border: 1px solid rgba(30, 58, 95, 0.1);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    color: var(--blue-deep);
    transition: all 0.3s;
}

.spec-item:hover {
    border-color: var(--blue-med);
    box-shadow: 0 4px 15px rgba(61, 124, 181, 0.1);
}

.spec-item svg {
    stroke: var(--blue-med);
    flex-shrink: 0;
}

/* ===========================
   Overview Layout
   =========================== */

.overview-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.overview-text p {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.price-badge {
    display: inline-block;
    margin-top: 10px;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 4px;
}

.price-badge--large {
    padding: 16px 36px;
    font-size: 18px;
    margin-top: 24px;
}

.overview-images {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.overview-images img {
    border-radius: var(--radius-lg);
    width: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.overview-images img:hover {
    transform: scale(1.02);
}

/* ===========================
   Gallery
   =========================== */

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    cursor: pointer;
    aspect-ratio: 16 / 10;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

/* First two items span wider */
.gallery-grid .gallery-item:nth-child(1) {
    grid-column: span 2;
}

.gallery-grid .gallery-item:nth-child(4) {
    grid-column: span 2;
}

/* ===========================
   Rooftop Highlight
   =========================== */

.rooftop-highlight {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.rooftop-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100%;
}

.rooftop-img {
    background-size: cover;
    background-position: center;
}

.rooftop-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(30, 58, 95, 0.6), rgba(30, 58, 95, 0.4));
}

.rooftop-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 30px;
    z-index: 2;
}

.rooftop-content h2 {
    font-family: var(--font-display);
    font-size: 44px;
    font-weight: 600;
    margin-bottom: 16px;
}

.rooftop-content p {
    font-size: 18px;
    font-weight: 300;
    opacity: 0.9;
    max-width: 500px;
}

/* ===========================
   Floor Plans
   =========================== */

.floorplan-overview {
    margin-bottom: 40px;
    position: relative;
    cursor: pointer;
}

.floorplan-overview img {
    width: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(30, 58, 95, 0.1);
}

.floorplan-label {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: var(--blue-deep);
    color: var(--white);
    padding: 8px 18px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.floorplan-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.floorplan-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(30, 58, 95, 0.08);
    transition: box-shadow 0.3s, transform 0.3s;
    cursor: pointer;
    aspect-ratio: auto;
}

.floorplan-card:hover {
    box-shadow: 0 8px 30px rgba(30, 58, 95, 0.1);
    transform: translateY(-4px);
}

.floorplan-card img {
    width: 100%;
    object-fit: cover;
}

.floorplan-info {
    padding: 18px 22px;
}

.floorplan-info h3 {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--blue-deep);
    margin-bottom: 4px;
}

.floorplan-info p {
    font-size: 14px;
    color: var(--text-light);
}

/* ===========================
   Location
   =========================== */

.location-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: start;
}

.location-text p {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 28px;
}

.location-items {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.location-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.location-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.location-icon svg {
    stroke: var(--blue-med);
}

.location-item strong {
    display: block;
    font-size: 15px;
    color: var(--blue-deep);
}

.location-item span {
    font-size: 13px;
    color: var(--text-muted);
}

.location-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(30, 58, 95, 0.08);
}

/* ===========================
   Contact
   =========================== */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-left .section-title {
    text-align: left;
    margin-bottom: 16px;
}

.contact-left p {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.contact-details {
    margin-top: 30px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    background: var(--white);
    border: 1px solid rgba(30, 58, 95, 0.1);
    border-radius: var(--radius);
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.contact-card strong {
    display: block;
    font-size: 15px;
    color: var(--blue-deep);
}

.contact-card span {
    font-size: 14px;
    color: var(--text-light);
}

.contact-form-card {
    background: var(--white);
    padding: 36px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(30, 58, 95, 0.08);
    box-shadow: 0 4px 20px rgba(30, 58, 95, 0.05);
}

.contact-form-card h3 {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--blue-deep);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--font-body);
    font-size: 15px;
    border: 1px solid rgba(30, 58, 95, 0.15);
    border-radius: 6px;
    background: var(--bg);
    color: var(--text);
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--blue-med);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 14px 28px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn--primary {
    background: #25D366;
    color: var(--white);
}

.btn--primary:hover {
    background: #1ea952;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn--full {
    width: 100%;
}

/* ===========================
   Footer
   =========================== */

.footer {
    background: var(--blue-deep);
    color: rgba(255, 255, 255, 0.8);
    padding: 50px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 40px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 600;
    color: var(--white);
    display: block;
    margin-bottom: 8px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.7;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-note {
    text-align: right;
}

.footer-note p {
    font-size: 14px;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 6px;
}

.footer-disclaimer {
    font-size: 12px !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.5) !important;
}

/* ===========================
   Lightbox
   =========================== */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-img {
    max-width: 88vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 36px;
    color: rgba(255, 255, 255, 0.8);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--white);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: background 0.3s;
    z-index: 10;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    letter-spacing: 2px;
}

/* ===========================
   Fade-in Animation
   =========================== */

.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger gallery items */
.gallery-item.fade-in:nth-child(1) { transition-delay: 0s; }
.gallery-item.fade-in:nth-child(2) { transition-delay: 0.08s; }
.gallery-item.fade-in:nth-child(3) { transition-delay: 0.16s; }
.gallery-item.fade-in:nth-child(4) { transition-delay: 0.24s; }
.gallery-item.fade-in:nth-child(5) { transition-delay: 0.32s; }

.floorplan-card.fade-in:nth-child(1) { transition-delay: 0s; }
.floorplan-card.fade-in:nth-child(2) { transition-delay: 0.1s; }
.floorplan-card.fade-in:nth-child(3) { transition-delay: 0.2s; }
.floorplan-card.fade-in:nth-child(4) { transition-delay: 0.3s; }

/* ===========================
   Responsive — Tablet (max 900px)
   =========================== */

@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 28px;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
        z-index: 999;
    }

    .nav-menu.active {
        opacity: 1;
        pointer-events: all;
    }

    .nav-link {
        font-size: 18px;
    }

    .hero-title {
        font-size: 52px;
    }

    .hero-subtitle {
        font-size: 17px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 32px;
    }

    .overview-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gallery-grid .gallery-item:nth-child(1),
    .gallery-grid .gallery-item:nth-child(4) {
        grid-column: span 2;
    }

    .rooftop-highlight {
        height: 400px;
    }

    .rooftop-content h2 {
        font-size: 34px;
    }

    .floorplan-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .location-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
    }

    .footer-note {
        text-align: left;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 16px;
    }
}

/* ===========================
   Responsive — Phone (max 640px)
   =========================== */

@media (max-width: 640px) {
    .nav-container {
        padding: 0 20px;
        height: 70px;
    }

    .nav-brand {
        font-size: 22px;
    }

    .hero {
        min-height: 500px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .hero-badge {
        font-size: 10px;
        padding: 6px 14px;
    }

    .section {
        padding: 50px 0;
    }

    .container {
        padding: 0 20px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 15px;
    }

    .specs-bar {
        gap: 8px;
    }

    .spec-item {
        padding: 10px 14px;
        font-size: 12px;
    }

    .spec-item svg {
        width: 18px;
        height: 18px;
    }

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

    .gallery-grid .gallery-item:nth-child(1),
    .gallery-grid .gallery-item:nth-child(4) {
        grid-column: span 1;
    }

    .rooftop-highlight {
        height: 350px;
    }

    .rooftop-images {
        grid-template-columns: 1fr;
    }

    .rooftop-images .rooftop-img:last-child {
        display: none;
    }

    .rooftop-content h2 {
        font-size: 28px;
    }

    .rooftop-content p {
        font-size: 15px;
    }

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

    .contact-form-card {
        padding: 24px;
    }

    .price-badge--large {
        padding: 12px 24px;
        font-size: 16px;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}
