/* Project: Sphurit Technologies - Premium Real Estate Landing Page
    Version: 1.0
    Author: Senior Front-End Developer
*/

/* --- CSS Reset and Global Styles --- */
:root {
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --color-primary-dark: #002D62; /* Deep Navy Blue */
    --color-accent-gold: #B8860B;   /* Dark Gold */
    --color-accent-gold-light: #D4AF37; /* Lighter Gold */
    --color-text-dark: #333333;
    --color-text-light: #FFFFFF;
    --color-bg-light: #F9F6F1; /* Light Ivory/Beige */
    --color-bg-white: #FFFFFF;
    --color-border: #E0E0E0;
    --color-success: #28a745;
    --color-whatsapp: #25D366;
    --section-padding: 5rem 0;
    --transition-main: all 0.3s ease-in-out;
    --header-height: 80px;
    --border-radius: 8px;
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    background-color: var(--color-bg-white);
    line-height: 1.7;
    overflow-x: hidden;
    padding-top: var(--header-height); /* Offset for fixed header */
}

/* --- Utility Classes --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.75rem;
    font-family: var(--font-body);
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: var(--transition-main);
    cursor: pointer;
    border: 1px solid transparent;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.75px;
    box-shadow: var(--shadow-light);
}

.btn-primary {
    background-color: var(--color-accent-gold);
    color: var(--color-text-light);
    border-color: var(--color-accent-gold);
}

.btn-primary:hover {
    background-color: var(--color-accent-gold-light);
    border-color: var(--color-accent-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary-dark);
    border: 1px solid var(--color-primary-dark);
}

.btn-secondary:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-bg-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 45, 98, 0.2);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-primary-dark);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 5vw, 2.75rem);
    text-align: center;
}

h3 {
    font-size: clamp(1.5rem, 4vw, 1.75rem);
}

p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: #555;
    max-width: 65ch;
}

section {
    padding: var(--section-padding);
    overflow: hidden;
}

/* Fade-in Animation on Scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Header --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2.5rem;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: var(--transition-main);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    text-decoration: none;
    letter-spacing: 1px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
    z-index: 1001;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--color-primary-dark);
    border-radius: 1px;
    transition: var(--transition-main);
}

/* Hamburger animation */
.menu-toggle.nav-open .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.menu-toggle.nav-open .bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.nav-open .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.main-nav {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: var(--color-text-dark);
    font-weight: 500;
    position: relative;
    padding-bottom: 0.5rem;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent-gold);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a:focus::after {
    width: 100%;
}

/* --- Hero Section --- */
.hero {
    height: calc(100vh - var(--header-height));
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-text-light);
    position: relative;
    overflow: hidden;
    padding: 0 1.5rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Using one of the requested image paths */
    background-image: url('/Public.html/sample1/assets/photo1.avif'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    z-index: -2;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 45, 98, 0.65);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    animation: fadeInHero 1.5s ease-out;
}

@keyframes fadeInHero {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content h1 {
    color: var(--color-text-light);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.hero-content .subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 300;
    margin: 1rem 0 1.5rem;
    opacity: 0.9;
    line-height: 1.6;
    color: var(--color-text-light); /* Ensure hero p tags are light */
}

.hero-content .price {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 2.5rem;
    display: block;
}

/* --- Two Column Section (About, Design) --- */
.two-col-layout .grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.two-col-layout .col-text {
    max-width: 500px;
}

.two-col-layout .col-text p {
    max-width: none;
}

.two-col-layout .col-image img {
    width: 100%;
    height: 500px;
    border-radius: var(--border-radius);
    object-fit: cover;
    box-shadow: var(--shadow-medium);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.two-col-layout .col-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.bg-light {
    background-color: var(--color-bg-light);
}

.feature-list {
    list-style: none;
    margin-top: 2rem;
    padding-left: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--color-text-dark);
}

.feature-list-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: var(--color-accent-gold-light);
    color: var(--color-primary-dark);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* --- Amenities & Location --- */ 
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header .subtitle {
    font-size: 1rem;
    color: var(--color-accent-gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.section-header p {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}

.amenities-grid, .location-grid {
    display: grid;
    gap: 2rem;
}

.amenities-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.location-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition-main);
}

.grid-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-medium);
}

.grid-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.grid-item:hover img {
    transform: scale(1.05);
}

.grid-item-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
    color: var(--color-text-light);
    padding: 2.5rem 1.5rem 1.5rem;
    text-align: left;
    transition: background 0.3s ease;
}

.grid-item:hover .grid-item-caption {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
}

.grid-item-caption h4 {
    color: var(--color-text-light);
    font-size: 1.2rem;
    font-weight: 600;
    font-family: var(--font-body);
    margin-bottom: 0.25rem;
}

/* --- Why Us --- */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    text-align: center;
}

.why-us-item {
    padding: 1rem;
}

.why-us-item .icon {
    font-size: 3rem;
    color: var(--color-accent-gold);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.why-us-item h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.why-us-item p {
    max-width: none;
}

/* --- FAQ --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 0.5rem;
}
.faq-item:last-child {
    border-bottom: none;
}

.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0.5rem;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    transition: background-color 0.2s ease;
}

.faq-header:hover {
    background-color: rgba(0, 45, 98, 0.03);
}

.faq-header h4 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin: 0;
    flex-grow: 1;
    padding-right: 1rem;
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--color-primary-dark);
    transition: transform 0.3s ease;
    font-weight: 300;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: var(--color-accent-gold);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 0.5rem;
}

.faq-item.active .faq-content {
    padding-bottom: 1.5rem;
}

.faq-content p {
    color: #555;
    margin: 0;
    padding-top: 0.5rem;
    max-width: none;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--color-primary-dark);
    color: #ccc;
    padding-top: 5rem;
}

.footer-top {
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-top h3 {
    color: var(--color-text-light);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-top p {
    color: #ccc;
    max-width: 600px;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-bottom {
    padding: 2.5rem 0;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-light);
    text-decoration: none;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 2rem;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: #aaa;
    max-width: 900px;
    margin: 0.5rem auto;
    line-height: 1.6;
}

/* --- NEW: Sticky Buttons --- */
.sticky-buttons-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 998;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sticky-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary-dark);
    color: var(--color-text-light);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition-main);
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}

.sticky-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Specific button styles */
.whatsapp-btn {
    background-color: var(--color-whatsapp);
    position: fixed; /* Separate from the contact button */
    bottom: 20px;
    left: 20px; /* Positioned bottom-left */
}

.contact-btn {
    background-color: var(--color-accent-gold);
    position: fixed; /* Separate from whatsapp button */
    bottom: 20px;
    right: 20px; /* Positioned bottom-right */
}

.whatsapp-btn:hover {
    background-color: #2fed71;
}

.contact-btn:hover {
    background-color: var(--color-accent-gold-light);
}

/* Text label for sticky buttons */
.sticky-btn-text {
    position: absolute;
    /* Position text to the right for left btn, left for right btn */
    right: calc(100% + 12px); /* For whatsapp */
    background-color: var(--color-text-dark);
    color: var(--color-text-light);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.contact-btn .sticky-btn-text {
    left: calc(100% + 12px); /* For contact */
    right: auto;
    transform: translateX(10px);
}

.sticky-btn:hover .sticky-btn-text {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* --- NEW: Contact Popup Modal --- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-modal {
    background-color: var(--color-bg-white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 500px;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.popup-overlay.active .popup-modal {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #888;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.popup-close:hover {
    color: var(--color-text-dark);
}

.popup-modal h3 {
    text-align: center;
    margin-bottom: 0.75rem;
}

.popup-modal p {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    max-width: none;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary-dark);
    box-shadow: 0 0 0 3px rgba(0, 45, 98, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.popup-modal .btn-primary {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
}

/* Thank You Message */
#popupThanksContainer {
    text-align: center;
}
#popupThanksContainer h3 {
    color: var(--color-primary-dark);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    section { padding: 4rem 0; }
    .main-header { padding: 0 1.5rem; }
    .header-actions .btn-secondary { display: none; } /* Hide button on tablet */
    
    .two-col-layout .grid-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    #design .col-image {
        order: -1; /* Reverse order for design section on tablet */
    }
    
    .two-col-layout .col-text {
        max-width: none;
    }

    .two-col-layout .col-image img {
        height: 400px;
    }
}

@media (max-width: 768px) {
    body { padding-top: var(--header-height); }
    .main-header { height: var(--header-height); }

    .main-nav {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--color-bg-white);
        padding: 2rem 1rem;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        overflow-y: auto;
        justify-content: flex-start;
        gap: 0;
    }
    
    .main-nav.nav-open {
        transform: translateX(0);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    
    .main-nav a {
        padding: 1rem;
        font-size: 1.25rem;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--color-border);
    }
    .main-nav li:last-child a {
        border-bottom: none;
    }
    .main-nav a::after {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .header-actions {
        gap: 1rem;
    }

    /* Hide text on sticky buttons on mobile, show only icons */
    .sticky-btn-text {
        display: none;
    }
    .sticky-btn {
        width: 50px;
        height: 50px;
    }
    /* Footer Social Links */
.footer-socials {
    margin: 20px 0;
    text-align: center;
}

.footer-socials a {
    display: inline-block;
    margin: 0 10px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.footer-socials a:hover {
    color: #1e90ff; /* Change hover color */
}

    .sticky-buttons-container {
        bottom: 15px;
    }
    .whatsapp-btn {
        left: 15px;
    }
    .contact-btn {
        right: 15px;
    }
}
