/* 
  SHREE JI HATHFIN DEVELOPER 
  Custom Design System
*/

:root {
    /* Colors */
    --primary-gold: #D4A843;
    --primary-gold-rgb: 212, 168, 67;
    --deep-blue: #1A3A6B;
    --bg-dark: #08090C;
    --card-bg: #0F1116;
    --text-ivory: #E8E2D6;
    --text-muted: #7A7570;
    --white: #ffffff;
    --black: #000000;
    
    /* Spacing (8px Grid) */
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 40px;
    --space-6: 48px;
    --section-padding: clamp(60px, 8vw, 120px);
    
    /* Typography */
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Outfit', sans-serif;
    
    /* Transitions */
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-ivory);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Noise Texture Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3仿真%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.02;
    pointer-events: none;
    z-index: 9999;
}

h1, h2, h3, h4, .serif {
    font-family: var(--font-serif);
    font-weight: 600;
}

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

ul {
    list-style: none;
}

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

button, .btn {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: var(--font-sans);
    transition: var(--transition-smooth);
}

/* Utility Classes */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-3);
}

.text-gold { color: var(--primary-gold); }
.bg-gold { background-color: var(--primary-gold); }

/* Buttons */
.btn-primary {
    background: var(--primary-gold);
    color: var(--bg-dark);
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 8px 32px rgba(var(--primary-gold-rgb), 0.3);
}

.btn-outline {
    border: 1px solid var(--primary-gold);
    color: var(--primary-gold);
    background: transparent;
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-outline:hover {
    background: var(--primary-gold);
    color: var(--bg-dark);
}

/* Typography */
.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: var(--space-2);
    line-height: 1.1;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: var(--space-5);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--space-2) 0;
    background: #ffffff;
    color: var(--bg-dark);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: var(--transition-smooth);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 100px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: var(--space-4);
}

.nav-link {
    color: var(--bg-dark);
    font-weight: 600;
}

.nav-link:hover {
    color: var(--primary-gold);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.btn-whatsapp {
    color: #25D366;
    font-size: 1.5rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--bg-dark);
    transition: var(--transition-smooth);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

/* Hero Section */
.hero {
    margin-top: 132px; /* Adjusted for larger 100px logo + padding */
    height: calc(100vh - 132px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-dark);
}

#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(8, 9, 12, 0.2), rgba(8, 9, 12, 0.4));
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    margin-bottom: var(--space-3);
}

.hero-title em {
    color: var(--primary-gold);
    font-style: italic;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    margin-bottom: var(--space-5);
    max-width: 600px;
}

.hero-badge {
    position: absolute;
    bottom: var(--space-4);
    left: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-4);
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0) translateX(-50%);}
    40% {transform: translateY(-10px) translateX(-50%);}
    60% {transform: translateY(-5px) translateX(-50%);}
}

/* Marquee */
.marquee-container {
    background: var(--primary-gold);
    color: var(--bg-dark);
    padding: var(--space-2) 0;
    overflow: hidden;
    white-space: nowrap;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

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

/* Section Common */
section {
    padding: var(--section-padding) 0;
    position: relative;
}

/* Ornamental Dividers */
.divider {
    text-align: center;
    color: var(--primary-gold);
    font-size: 1.5rem;
    letter-spacing: 10px;
    margin: var(--space-4) 0;
    opacity: 0.5;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-4);
}

.feature-card {
    background: var(--card-bg);
    padding: var(--space-5);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 168, 67, 0.3);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-gold);
    margin-bottom: var(--space-3);
}

.feature-card h3 {
    margin-bottom: var(--space-2);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    align-items: center;
}

.about-content h2 {
    margin-bottom: var(--space-3);
}

.about-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: var(--space-4);
}

.about-stats {
    display: flex;
    gap: var(--space-5);
}

.about-stat-item {
    display: flex;
    flex-direction: column;
}

.stat-val {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-gold);
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 8px;
    position: relative;
    z-index: 1;
}

.about-image::after {
    content: "";
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 2px solid var(--primary-gold);
    border-radius: 8px;
    z-index: 0;
}

/* Residences */
.residences-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.residence-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.residence-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 168, 67, 0.1);
}

.res-img-wrap {
    height: 350px;
    position: relative;
    overflow: hidden;
}

.res-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.residence-card:hover .res-img-wrap img {
    transform: scale(1.05);
}

.res-badge {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    background: rgba(8, 9, 12, 0.8);
    backdrop-filter: blur(8px);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-gold);
}

.res-badge.popular {
    background: var(--primary-gold);
    color: var(--bg-dark);
}

.res-content {
    padding: var(--space-5);
}

.res-tagline {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: var(--space-3);
}

.res-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    padding: var(--space-3) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.spec-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

.spec-value {
    font-size: 0.9rem;
    font-weight: 600;
}

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

.res-actions {
    display: flex;
    gap: var(--space-2);
}

/* Amenities Grid */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-3);
}

.amenity-item {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-3);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.amenity-item:hover {
    background: rgba(212, 168, 67, 0.05);
}

.amenity-icon {
    font-size: 1.5rem;
    color: var(--primary-gold);
    margin-top: 4px;
}

.amenity-info h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.amenity-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Stats Strip */
.stats-strip {
    background: #050608;
    padding: var(--space-6) 0;
    border-top: 1px solid rgba(212, 168, 67, 0.1);
    border-bottom: 1px solid rgba(212, 168, 67, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: var(--space-4);
}

.stat-number {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    color: var(--primary-gold);
    line-height: 1;
    margin-bottom: var(--space-1);
}

.stat-label-full {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--white);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-4);
}

.testimonial-card {
    background: var(--card-bg);
    padding: var(--space-5);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stars {
    color: var(--primary-gold);
    margin-bottom: var(--space-3);
}

.testimonial-quote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.2rem;
    margin-bottom: var(--space-4);
    line-height: 1.4;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.author-info h4 {
    font-size: 1rem;
    font-family: var(--font-sans);
}

.author-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* FAQ Accordion */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) 0;
    background: transparent;
    color: var(--text-ivory);
    text-align: left;
    font-size: 1.2rem;
    font-weight: 600;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
    color: var(--text-muted);
    padding-bottom: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: var(--space-4);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Urgency Banner */
.urgency-banner {
    background: radial-gradient(circle at center, rgba(212, 168, 67, 0.1) 0%, transparent 70%), var(--bg-dark);
    text-align: center;
    border: 1px solid rgba(212, 168, 67, 0.2);
    border-radius: 12px;
    margin: var(--section-padding) 0;
    padding: var(--space-6) var(--space-4);
}

.urgency-eyebrow {
    color: var(--primary-gold);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: var(--space-2);
}

/* Newsletter */
.newsletter {
    background: var(--card-bg);
    border-radius: 12px;
    padding: var(--space-6);
}

.lead-form {
    display: flex;
    gap: var(--space-2);
    max-width: 600px;
    margin: var(--space-4) auto 0;
}

.lead-form input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 20px;
    border-radius: 4px;
    color: var(--white);
    font-family: var(--font-sans);
}

.lead-form input:focus {
    border-color: var(--primary-gold);
    outline: none;
}

/* Footer */
.footer {
    background: #ffffff;
    padding: var(--section-padding) 0 var(--space-4);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--bg-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-6);
    margin-bottom: var(--space-6);
}

.footer-col h4 {
    margin-bottom: var(--space-4);
    color: var(--deep-blue);
}

.footer-links li {
    margin-bottom: var(--space-2);
}

.footer-contact li {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
    font-size: 0.9rem;
}

.footer-contact i {
    color: var(--primary-gold);
    width: 20px;
}

.social-links {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.social-links a {
    font-size: 1.2rem;
    color: var(--text-muted);
}

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

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: var(--space-4);
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* FAB */
.whatsapp-fab {
    position: fixed;
    bottom: var(--space-4);
    right: var(--space-4);
    background: #25D366;
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}

.popup-content {
    background: #8B6B4A; /* Earthy brown from ref */
    width: 100%;
    max-width: 400px;
    padding: 40px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    color: #333;
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
    opacity: 0.7;
}

.popup-form {
    display: grid;
    gap: 25px;
}

.popup-copy {
    margin-bottom: 24px;
}

.popup-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    line-height: 1.1;
    margin-bottom: 10px;
    color: #1f160f;
}

.popup-subtitle {
    font-size: 0.95rem;
    color: rgba(31, 22, 15, 0.82);
    line-height: 1.6;
}

.popup-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.popup-form .form-group {
    position: relative;
}

.popup-field {
    min-width: 0;
}

.popup-field.popup-field-half {
    grid-column: span 1;
}

.popup-field:not(.popup-field-half) {
    grid-column: 1 / -1;
}

.popup-field-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(31, 22, 15, 0.72);
}

.popup-form input,
.popup-form textarea,
.popup-form select {
    width: 100%;
    background: none;
    border: none;
    border-bottom: 1px solid #333;
    padding: 10px 0;
    font-size: 1.1rem;
    color: #333;
    outline: none;
    border-radius: 0;
    resize: vertical;
    font-family: inherit;
}

.popup-form input::placeholder,
.popup-form textarea::placeholder {
    color: #444;
    opacity: 0.8;
}

.popup-form select {
    appearance: none;
}

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

.phone-input-wrap span {
    font-weight: 600;
}

.popup-form .btn-submit {
    background: none;
    border: 1px solid #333;
    padding: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.popup-form .btn-submit:hover {
    background: #333;
    color: #fff;
}

.consent-wrap {
    display: flex;
    gap: 12px;
    font-size: 0.85rem;
    line-height: 1.4;
    align-items: flex-start;
}

.consent-wrap input {
    width: auto;
    margin-top: 3px;
}

.popup-checkline {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: #1f160f;
    font-size: 0.95rem;
    line-height: 1.5;
}

.popup-checkline input {
    width: auto;
    margin-top: 4px;
}

@media (max-width: 480px) {
    .popup-content {
        padding: 30px 20px;
    }

    .popup-fields {
        grid-template-columns: 1fr;
    }

    .popup-field.popup-field-half {
        grid-column: 1 / -1;
    }
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #ffffff;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--space-5);
        transition: 0.5s ease;
        z-index: 1000;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.5rem;
        font-family: var(--font-serif);
    }

    .hamburger {
        display: flex;
    }

    .hide-mobile {
        display: none;
    }

    .residences-grid, .about-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .lead-form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
