@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;600;800&display=swap');

:root {
    --primary: #f59e0b; /* Gold/Amber accent */
    --dark: #0f172a; /* Deep slate */
    --brand-teal: #0b8f86; /* Rayn brand teal */
    --muted: #94a3b8;
}

/* Global layout and scroll snapping */
html {
    scroll-padding-top: 76px; /* account for fixed navbar height */
    scroll-behavior: smooth;
}
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Make each major section snap into view for a clean desktop flow */
body {
    scroll-snap-type: y mandatory;
}
section {
    scroll-snap-align: start;
}

#hero-content {
    transition: opacity 1s ease-in-out;
}

/* Hero headline sizing: use clamp for better scaling */
#hero-content h1 {
    font-size: clamp(2.2rem, 6vw, 4.5rem); /* adjusts between ~35px and ~72px */
    line-height: 1.02;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

#hero-content p {
    font-size: clamp(1rem, 2.2vw, 1.4rem);
}

/* Section title style for consistent brand color */
.section-title {
    color: var(--brand-teal) !important;
}

/* Map container tweaks */
.map-container {
    position: relative;
    overflow: hidden;
    margin-top: 2rem; /* push map away from previous section */
}

.map-container a {
    z-index: 50;
}

/* Prevent footer/image overlap by adding spacing to sections */
#amenities { padding-bottom: 4.5rem; }
#location { padding-top: 2.5rem; }

/* Pricing tables styles */
.pricing-table {
    border-collapse: collapse;
    background: white;
}
.pricing-table th,
.pricing-table td {
    padding: 0.85rem 0.75rem;
    border-bottom: 1px solid #e6eef6;
    font-size: 0.95rem;
}
.pricing-table thead th {
    background: #f8fafc;
    font-weight: 700;
    color: #0f172a;
    text-transform: uppercase;
    font-size: 0.9rem;
}
@media (max-width: 768px) {
    .pricing-summary { grid-template-columns: 1fr; }
    .pricing-table th, .pricing-table td { font-size: 0.85rem; padding: 0.6rem; }

    /* Center section titles and pricing subtitles on mobile */
    .section-title,
    .section-subtitle {
        text-align: center !important;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Studio card styles */
.studio-card { background: white; position: relative; z-index: 30; }
.studio-card .studio-details { 
    border-top: 1px solid #eef2f7; 
    padding-top: 1rem; 
}
.studio-card .studio-details table td { padding: 0.35rem 0; }
.studio-card .studio-details.hidden { display: none; }
.studio-card .studio-details.visible { display: block; }

/* Adjust buttons */
#download-studio { min-width: 120px; position: relative; z-index: 40; }


/* Ensure pricing area stacking context */
#pricing { position: relative; z-index: 1; padding-bottom: 6rem; }
.pricing-summary, .pricing-table { position: relative; z-index: 2; }

/* Ensure clear spacing before the footer */
footer { margin-top: 2rem; padding-top: 5rem; }

/* Location badge image for Ring Road visual */
.location-badge {
    width: 220px;
    max-width: 60%;
    border-radius: 0.75rem;
    display: block;
    box-shadow: 0 12px 30px rgba(11, 143, 134, 0.08);
    border: 1px solid rgba(255,255,255,0.03);
}

@media (min-width: 768px) {
    .location-badge { width: 240px; margin-left: 0; }
}

/* Glass Navbar */
:root {
    --navbar-height: 76px;
}
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    z-index: 9999; /* ensure navbar is always on top */
    transition: background 0.3s ease, padding 0.2s ease;
}
.nav-scrolled {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(20px);
    padding: 1rem 1.5rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Navbar default transparent state */
#navbar {
    background: transparent;
}

#navbar .nav-link { color: rgba(255,255,255,0.95); }
.nav-scrolled .nav-link { color: white; }
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

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

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

/* Amenity Cards */
.amenity-item {
    background: rgba(255, 255, 255, 0.06); /* brighter for legibility */
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0.75rem;
    border-radius: 1.25rem;
    text-align: center;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 5.5rem;
    color: white; /* force readable text */
    box-shadow: 0 6px 18px rgba(2,6,23,0.25);
}

/* keep grid items centered */
.grid .amenity-item { align-self: stretch; }

.amenity-item:hover {
    background: var(--primary);
    color: black;
    transform: translateY(-6px);
    border-color: var(--primary);
}

.amenity-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 4px 12px rgba(11,143,134,0.08));
}

.amenity-title {
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    color: white;
}

.amenity-note {
    font-size: 0.75rem;
    text-transform: none;
    font-weight: 600;
    color: rgba(255,255,255,0.72); /* lighter for readability */
}

.stat-card {
    text-align: center;
    border-right: 1px solid #f1f5f9;
}

.stat-card:last-child {
    border-right: none;
}

@media (max-width: 1024px) {
    .stat-card { border-right: none; border-bottom: 1px solid #f1f5f9; padding-bottom: 2rem; }
}

.group {
    position: relative;
    min-height: 45vh; /* preserved for layout */
}

/* Contact form styles */
#whatsapp-form input,
#whatsapp-form textarea,
#whatsapp-form select {
    border: 1px solid #e6eef6;
    background: white;
}
#whatsapp-form input:focus,
#whatsapp-form textarea:focus,
#whatsapp-form select:focus {
    outline: none;
    box-shadow: 0 6px 18px rgba(11,143,134,0.06);
    border-color: var(--brand-teal);
}
@media (max-width: 768px) {
    #whatsapp-form { grid-template-columns: 1fr; }
}

/* Stats section background */
.stats-section {
    background-image: url('Assets/one-bedroom-apartment.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.stats-section .stat-card {
    background: rgba(255,255,255,0.04);
    padding: 2.5rem 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(255,255,255,0.04);
}

.stats-section .stat-card h3 { color: var(--primary); }
.stats-section .stat-sub { color: rgba(255,255,255,0.9); }

@media (max-width: 1024px) {
    .stats-section { background-position: top; }
    .stats-section .stat-card { padding: 1.25rem; }
}