@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Playfair+Display:wght@700&display=swap');

:root {
    --primary: #13375a; /* Navy Blue */
    --primary-hover: #1e4f80; /* Lighter Navy Blue */
    --secondary: #d4af37; /* Metallic Gold */
    --accent: #f0f4f8; /* Soft blue */
    --dark: #1a1a1a;
    --light: #ffffff;
    --canvas: #f0f4f8; /* Soft blue canvas background */
    --gray-bg: #f5f5f5;
    --text-main: #111111;
    --text-muted: #666666;
    --border-radius-xl: 40px;
    --border-radius-md: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Layout Utils --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 100px 0;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #2d6a4f);
    color: white;
    box-shadow: 0 10px 20px rgba(26, 77, 46, 0.3);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(26, 77, 46, 0.4);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--dark);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.btn-secondary:hover {
    transform: translateY(-5px);
}

/* --- Header --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

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

.header-logo {
    height: 70px;
    width: auto;
    display: block;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-cta {
    background: #f1c40f;
    color: #13375a;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.btn-cta:hover {
    background: #e1b400;
    transform: translateY(-2px);
}

.phone-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.phone-wrap a {
    text-decoration: none;
    color: #13375a;
    font-weight: 800;
    font-size: 1.1rem;
}

.phone-circle {
    width: 45px;
    height: 45px;
    background: #f1c40f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #13375a;
    font-size: 1.1rem;
}

/* --- Premium Hero Section (SpineEdge Style) --- */
.hero-canvas {
    background-color: var(--canvas);
    padding: 130px 30px 30px; /* Added top padding to account for fixed header */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-card {
    background-color: var(--light);
    width: 100%;
    max-width: 1400px;
    border-radius: var(--border-radius-xl);
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0,0,0,0.05);
    min-height: 800px;
    display: flex;
    flex-direction: column;
}

.hero-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 60px;
    z-index: 10;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.logo-icon {
    width: 30px;
    height: 30px;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

.btn-signup {
    background-color: var(--primary);
    color: white;
    padding: 12px 35px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-signup:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.hero-main {
    flex: 1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    padding: 0 60px 60px;
    position: relative;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 40px;
    z-index: 5;
}

.hero-eyebrow {
    color: var(--secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 20px;
    display: inline-block;
    align-self: flex-start;
    width: fit-content;
    background: rgba(212, 175, 55, 0.1);
    padding: 8px 18px;
    border-radius: 50px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.hero-title {
    font-size: 3rem;
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 30px;
    position: relative;
}

.house-inline-icon {
    width: 80px;
    vertical-align: middle;
    margin-top: -10px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
    line-height: 1.6;
    margin-bottom: 40px;
}

.search-bar {
    background: white;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    max-width: 600px;
    margin-bottom: 60px;
}

.search-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    padding: 0 15px;
    border-right: 1px solid #eee;
}

.search-group:last-of-type {
    border-right: none;
}

.search-group i {
    color: #999;
    font-size: 0.9rem;
}

.search-group input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 0.95rem;
    color: var(--text-main);
    padding: 10px 0;
}

.btn-book {
    background-color: var(--primary);
    color: white;
    padding: 15px 30px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-book:hover {
    background-color: var(--primary-hover);
}

.hero-milestones {
    display: flex;
    gap: 50px;
    align-items: center;
}

.milestone-label {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
    width: 120px;
}

.milestone-item {
    display: flex;
    flex-direction: column;
}

.milestone-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-main);
}

.milestone-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-image-container {
    position: relative;
    display: flex;
    align-items: flex-end;
}

.main-building-img {
    width: 100%;
    height: 90%;
    object-fit: cover;
    border-radius: 40px 40px 0 0;
    z-index: 2;
}

.building-bg-overlay {
    position: absolute;
    top: 10%;
    right: -20px;
    width: 80%;
    height: 80%;
    background: #f8f9fa;
    z-index: 1;
}

.hero-seal {
    position: absolute;
    bottom: 50px;
    left: -80px;
    width: 160px;
    z-index: 10;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.wavy-bg {
    position: absolute;
    top: 50%;
    left: 0;
    width: 60%;
    transform: translateY(-50%);
    opacity: 0.1;
    z-index: 1;
    pointer-events: none;
}

.btn-main-cta:hover {
    background: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.2);
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    width: 900px;
    max-width: 95%;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 15px;
    background: rgba(0,0,0,0.2);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
}

.modal-body {
    display: flex;
}

.modal-image {
    flex: 1;
    background-size: cover;
    background-position: center;
    min-height: 500px;
}

.modal-form-side {
    flex: 1.2;
    padding: 3rem;
    background: #f8fafc;
}

.modal-form-side h3 {
    font-size: 2rem;
    color: #1a4d2e;
    margin-bottom: 0.5rem;
}

.modal-form-side p {
    margin-bottom: 2rem;
    opacity: 0.7;
}

.actual-form input, .actual-form textarea {
    width: 100%;
    padding: 12px 18px;
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
}

.actual-form input:focus {
    border-color: #f1c40f;
}

@media (max-width: 768px) {
    .modal-body { flex-direction: column; }
    .modal-image { min-height: 200px; }
    .modal-form-side { padding: 2rem; }
}

/* Slider Controls */
.slider-nav {
    position: absolute;
    bottom: 50px;
    left: 50px;
    display: flex;
    gap: 15px;
    z-index: 20;
}

.slide-arrow {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.slide-arrow:hover {
    background: white;
    color: black;
}

/* Floating Elements */
.floating-social {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.social-item {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    text-decoration: none;
    transition: var(--transition);
}

.social-item:hover {
    transform: translateX(-5px) scale(1.1);
}

.social-item.wa { background: #25D366; }
.social-item.ph { background: #3498db; }
.social-item.chat { background: #1a4d2e; }

@media (max-width: 992px) {
    .main-heading { font-size: 3rem; }
    .hero-right-panel {
        width: 100%;
        background: rgba(0,0,0,0.7);
        padding: 150px 5% 50px;
        justify-content: flex-start;
    }
    .slider-nav { left: 20px; bottom: 20px; }
    .price-range { font-size: 2rem; }
}

/* --- Highlights --- */
.highlights {
    display: flex;
    justify-content: space-around;
    padding: 3rem;
    background: var(--primary);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(19,55,90,0.2);
    margin-top: -50px;
    position: relative;
    z-index: 20;
}

.highlight-item {
    text-align: center;
}

.highlight-item h4 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 0.5rem;
}

.highlight-item p {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

/* --- Features Section --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(26, 77, 46, 0.1);
    color: var(--primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate(30px, -50%);
    }
    to {
        opacity: 1;
        transform: translate(0, -50%);
    }
}

/* --- Responsive --- */
/* --- Testimonials --- */
.testimonial-slider-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    flex: 1;
}

.testimonial-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.video-thumb {
    position: relative;
    height: 180px;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.testimonial-card:hover .play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--secondary);
    color: white;
}

.thumb-caption {
    padding: 1.2rem;
    text-align: center;
}

.thumb-caption h4 {
    margin-bottom: 0.2rem;
    color: var(--dark);
    font-size: 1.1rem;
}

.thumb-caption p {
    font-size: 0.8rem;
    opacity: 0.6;
}

.slider-arrow {
    width: 45px;
    height: 45px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: #64748b;
    flex-shrink: 0;
}

.slider-arrow:hover {
    background: var(--light);
    border-color: var(--secondary);
    color: var(--secondary);
}

.view-all-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.view-all-link:hover {
    color: var(--primary);
    gap: 15px;
}

@media (max-width: 992px) {
    .slider-arrow {
        display: none;
    }
    header {
        position: relative;
    }
    nav {
        flex-direction: column;
        gap: 1.5rem;
    }
    .header-right {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    .btn-cta {
        width: 100%;
        justify-content: center;
    }
    .hero {
        flex-direction: column;
        height: auto;
        padding: 50px 0 100px;
    }
    .hero-form-container {
        position: static;
        width: 100%;
        margin-top: 3rem;
        transform: none;
    }
    .hero h1 {
        font-size: 3rem;
    }
    @keyframes fadeInRight {
        from { opacity: 0; transform: translateY(30px); }
        to { opacity: 1; transform: translateY(0); }
    }
}
