/* =============================================
   JAYANAGARA PREMIUM PROPERTIES
   Styles — Mobile-first, premium feel
   ============================================= */

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

:root {
    --primary: #1a365d;
    --primary-light: #2b4c7e;
    --accent: #c9a84c;
    --accent-light: #e0c76a;
    --accent-dark: #a88a2e;
    --bg: #fafaf7;
    --bg-alt: #f0efe8;
    --text: #1a1a1a;
    --text-light: #555;
    --text-lighter: #888;
    --white: #ffffff;
    --success: #25D366;
    --call: #1a365d;
    --offer-bg: linear-gradient(135deg, #ff6b35, #f7c948);
    --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,.1);
    --shadow-lg: 0 8px 40px rgba(0,0,0,.15);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: .3s ease;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.highlight { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
}
.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,.4);
}
.btn-outline:hover {
    background: rgba(255,255,255,.15);
    border-color: var(--white);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
}
.btn-whatsapp:hover {
    background: #20bd5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37,211,102,.4);
}

.btn-call {
    background: var(--primary);
    color: var(--white);
}
.btn-call:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-offer {
    background: var(--white);
    color: #ff6b35;
    font-weight: 700;
}
.btn-offer:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-md);
}

.btn-icon { font-size: 1.2rem; }

/* ---------- Navigation ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(26,54,93,.97);
    backdrop-filter: blur(12px);
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
}
.logo-icon { font-size: 1.6rem; }
.logo-highlight { color: var(--accent); }

.nav-links {
    display: flex;
    gap: 32px;
}
.nav-links a {
    color: rgba(255,255,255,.85);
    font-weight: 500;
    font-size: .9rem;
    transition: color var(--transition);
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
    background: var(--accent);
    color: var(--primary);
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 600;
    font-size: .85rem;
    transition: all var(--transition);
}
.nav-cta:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.hamburger span {
    width: 26px;
    height: 2.5px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
}
.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(5px, -5px); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('homeImages/Living%20room.png') center/cover no-repeat;
    color: var(--white);
    text-align: center;
    padding: 120px 24px 80px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10,25,50,.75) 0%,
        rgba(10,25,50,.6) 50%,
        rgba(10,25,50,.8) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    background: rgba(201,168,76,.2);
    border: 1px solid rgba(201,168,76,.4);
    color: var(--accent-light);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: .5px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,.8);
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.stat { text-align: center; }
.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
}
.stat-label {
    font-size: .8rem;
    color: rgba(255,255,255,.65);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,.2);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.scroll-indicator span {
    font-size: .75rem;
    color: rgba(255,255,255,.5);
    text-transform: uppercase;
    letter-spacing: 2px;
}
.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid rgba(255,255,255,.4);
    border-bottom: 2px solid rgba(255,255,255,.4);
    transform: rotate(45deg);
    animation: scrollBounce 2s infinite;
}
@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translate(0,0); opacity: .4; }
    50% { transform: rotate(45deg) translate(5px,5px); opacity: 1; }
}

/* ---------- Offer Banner ---------- */
.offer-banner {
    background: var(--offer-bg);
    padding: 18px 0;
    position: relative;
    overflow: hidden;
}
.offer-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 20px,
        rgba(255,255,255,.05) 20px,
        rgba(255,255,255,.05) 40px
    );
}
.offer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
    text-align: center;
}
.offer-fire { font-size: 1.5rem; }
.offer-text {
    color: var(--white);
    font-size: 1rem;
}
.offer-highlight {
    background: var(--white);
    color: #ff6b35;
    padding: 2px 10px;
    border-radius: 4px;
    font-weight: 800;
}

/* ---------- Section Common ---------- */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.section-tag {
    display: inline-block;
    background: rgba(201,168,76,.12);
    color: var(--accent-dark);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.section-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary);
}
.section-header p {
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* ---------- Listing Section ---------- */
.listing {
    padding: 80px 0;
    background: var(--bg);
}

/* Gallery */
.gallery-wrapper {
    margin-bottom: 40px;
}
.gallery-main {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #e0dfd8;
}
.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .4s ease;
}
.gallery-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--accent);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.9);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
    color: var(--primary);
}
.gallery-nav:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateY(-50%) scale(1.1);
}
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
.gallery-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,.6);
    color: var(--white);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 500;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: thin;
}
.gallery-thumbs::-webkit-scrollbar {
    height: 4px;
}
.gallery-thumbs::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

.thumb {
    flex-shrink: 0;
    width: 100px;
    border: 3px solid transparent;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition);
    background: none;
    padding: 0;
    position: relative;
}
.thumb img {
    width: 100%;
    height: 65px;
    object-fit: cover;
}
.thumb-label {
    display: block;
    font-size: .65rem;
    color: var(--text-light);
    text-align: center;
    padding: 4px 2px;
    background: var(--bg-alt);
}
.thumb:hover { border-color: var(--accent-light); }
.thumb.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(201,168,76,.3);
}

/* Property Details */
.property-details {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.property-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eee;
}
.property-header h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}
.property-location {
    color: var(--text-light);
    font-size: .95rem;
}
.property-price {
    text-align: right;
}
.price {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-dark);
}
.price-period {
    font-size: 1rem;
    color: var(--text-light);
}
.price-note {
    display: block;
    font-size: .8rem;
    color: var(--success);
    font-weight: 600;
}

.property-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}
.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    transition: all var(--transition);
}
.feature:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.feature-icon { font-size: 1.8rem; }
.feature-value {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
}
.feature-label {
    font-size: .78rem;
    color: var(--text-lighter);
}

.property-description {
    margin-bottom: 28px;
}
.property-description h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 12px;
}
.property-description p {
    color: var(--text-light);
    margin-bottom: 12px;
    line-height: 1.8;
}

.property-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
    margin-bottom: 36px;
}
.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(37,211,102,.06);
    border-radius: 8px;
    font-size: .92rem;
    color: var(--text);
}
.highlight-check { font-size: 1.1rem; }

.property-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.property-cta .btn {
    flex: 1;
    min-width: 200px;
    padding: 16px 28px;
    font-size: 1rem;
}
.property-cta .btn svg { flex-shrink: 0; }

/* ---------- About Section ---------- */
.about {
    padding: 80px 0;
    background: var(--bg-alt);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 48px;
    align-items: start;
}

.about-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--primary);
    margin-bottom: 16px;
}
.about-content > p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 28px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.about-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.about-feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}
.about-feature strong {
    display: block;
    color: var(--primary);
    margin-bottom: 2px;
}
.about-feature p {
    font-size: .88rem;
    color: var(--text-lighter);
    margin: 0;
}

.about-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--accent);
}
.about-card-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}
.about-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 16px;
}
.about-card ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.about-card li {
    position: relative;
    padding-left: 24px;
    color: var(--text-light);
    font-size: .92rem;
}
.about-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* ---------- Contact Section ---------- */
.contact {
    padding: 80px 0;
    background: var(--bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.contact-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}
.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.contact-card-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}
.contact-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 8px;
}
.contact-card p {
    color: var(--text-light);
    font-size: .92rem;
    margin-bottom: 20px;
    line-height: 1.6;
}
.contact-card .btn {
    width: 100%;
}

.contact-whatsapp-card { border-top: 4px solid #25D366; }
.contact-call-card { border-top: 4px solid var(--primary); }
.contact-offer-card {
    border-top: 4px solid #ff6b35;
    background: linear-gradient(180deg, #fff8f0, var(--white));
}

/* ---------- Footer ---------- */
.footer {
    background: var(--primary);
    color: rgba(255,255,255,.8);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand .logo-text {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--white);
}
.footer-brand .logo-icon { margin-right: 6px; }
.footer-brand p {
    margin-top: 12px;
    font-size: .88rem;
    line-height: 1.6;
    color: rgba(255,255,255,.6);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 16px;
    font-weight: 600;
}
.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links a {
    color: rgba(255,255,255,.6);
    font-size: .9rem;
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }

.footer-contact p {
    font-size: .9rem;
    margin-bottom: 8px;
    color: rgba(255,255,255,.6);
}
.footer-contact a {
    color: var(--accent-light);
    transition: color var(--transition);
}
.footer-contact a:hover { color: var(--accent); }

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: .8rem;
    color: rgba(255,255,255,.4);
}

/* ---------- Floating WhatsApp ---------- */
.floating-whatsapp {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,.4);
    transition: all var(--transition);
    animation: whatsappPulse 2s infinite;
}
.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37,211,102,.5);
}
@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,.4); }
    50% { box-shadow: 0 4px 30px rgba(37,211,102,.6), 0 0 0 12px rgba(37,211,102,.1); }
}

/* ---------- Animations ---------- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .hamburger { display: flex; }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(26,54,93,.98);
        backdrop-filter: blur(12px);
        padding: 24px;
        gap: 16px;
        border-top: 1px solid rgba(255,255,255,.1);
    }
    .nav-cta.active {
        display: inline-flex;
        position: absolute;
        top: calc(100% + 180px);
        left: 24px;
        right: 24px;
        text-align: center;
        justify-content: center;
    }

    .hero { min-height: 100svh; padding: 100px 20px 80px; }
    .hero h1 { font-size: 2rem; }

    .hero-stats { gap: 20px; }
    .stat-number { font-size: 1.3rem; }

    .property-details { padding: 24px 20px; }
    .property-header { flex-direction: column; }
    .property-price { text-align: left; }
    .price { font-size: 1.6rem; }

    .property-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .property-cta .btn {
        min-width: unset;
    }

    .gallery-main { aspect-ratio: 4/3; }
    .thumb { width: 80px; }
    .thumb img { height: 50px; }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 28px;
    }

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

    .offer-content { flex-direction: column; gap: 12px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.7rem; }
    .hero-subtitle { font-size: .9rem; }
    .hero-cta { flex-direction: column; align-items: center; }
    .hero-cta .btn { width: 100%; }
    .hero-stats { flex-direction: column; gap: 16px; }
    .stat-divider { width: 40px; height: 1px; }
    .property-features { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .feature { padding: 12px; flex-direction: column; text-align: center; }
    .property-cta { flex-direction: column; }
    .property-cta .btn { width: 100%; }
    .scroll-indicator { display: none; }
}

/* ---------- Print ---------- */
@media print {
    .navbar, .floating-whatsapp, .offer-banner, .scroll-indicator { display: none; }
    .hero { min-height: auto; padding: 40px 20px; }
    .hero-overlay { background: rgba(0,0,0,.3); }
    body { font-size: 12pt; }
}
