/*
Theme Name: Jan Awas Yojna
Theme URI: https://janhitawasyojna.com
Author: Pankaj Yadav
Author URI: https://janhitawasyojna.com
Description: Custom WordPress theme for Palm Drive - Deen Dayal Jan Awas Yojna residential project in Pataudi, Gurugram.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: janhitawasyojna
Tags: real-estate, custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   GLOBAL / RESET
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; color: #333; background: #f5f5f5; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ============================================================
   TYPOGRAPHY
============================================================ */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.2; }
h2.section-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
    color: #1a1a2e;
    position: relative;
    padding-bottom: 12px;
}
h2.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #e63946;
}

/* ============================================================
   TOP BAR
============================================================ */
.top-bar {
    background: #e6908d;
    padding: 8px 0;
    font-size: 13px;
}
.top-bar .container { display: flex; justify-content: flex-end; align-items: center; gap: 15px; }
.top-bar a { color: #fff; font-weight: 600; transition: opacity .2s; }
.top-bar a:hover { opacity: .8; }
.top-bar .separator { color: rgba(255,255,255,.6); }

/* ============================================================
   HEADER / NAVBAR
============================================================ */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    position: sticky;
    top: 0;
    z-index: 9999;
}
.navbar-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}
.site-logo img { max-height: 70px; width: auto; }
.main-nav ul { display: flex; gap: 30px; align-items: center; }
.main-nav ul li a {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    position: relative;
    padding-bottom: 4px;
    transition: color .2s;
}
.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: #e63946;
    transition: width .3s;
}
.main-nav ul li a:hover { color: #e63946; }
.main-nav ul li a:hover::after { width: 100%; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; }
.nav-toggle span { width: 25px; height: 2px; background: #333; display: block; transition: .3s; }

/* ============================================================
   MARQUEE NOTICE
============================================================ */
.marquee-bar {
    background: #fff8e1;
    border-top: 2px solid #ffd600;
    border-bottom: 2px solid #ffd600;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    overflow: hidden;
    white-space: nowrap;
}
.marquee-bar .marquee-inner {
    display: inline-block;
    animation: marqueeScroll 30s linear infinite;
}
.marquee-bar .marquee-inner:hover { animation-play-state: paused; }
@keyframes marqueeScroll { 0% { transform: translateX(100vw); } 100% { transform: translateX(-100%); } }
.blink-badge {
    background: red; color: #fff;
    padding: 2px 8px;
    animation: blink 1s infinite;
    display: inline-block;
    font-weight: 700;
}
@keyframes blink { 0%,100% { opacity: 0; } 50% { opacity: 1; } }

/* ============================================================
   BANNER / SLIDER
============================================================ */
.banner-section { position: relative; overflow: hidden; }
.swiper-slide img.banner-img { width: 100%; height: 480px; object-fit: cover; }
.swiper-button-next, .swiper-button-prev { color: #fff !important; }
.swiper-pagination-bullet-active { background: #e63946 !important; }

/* ============================================================
   LEAD FORM (overlay on banner)
============================================================ */
.lead-form-card {
    background: #fff;
    border-radius: 10px;
    padding: 30px 25px;
    box-shadow: 0 8px 30px rgba(0,0,0,.15);
}
.lead-form-card h3 { font-size: 20px; margin-bottom: 18px; color: #1a1a2e; text-align: center; }
.form-group { margin-bottom: 14px; }
.form-group label { font-size: 12px; font-weight: 600; color: #555; display: block; margin-bottom: 4px; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus { outline: none; border-color: #e63946; }
.btn-submit {
    width: 100%;
    background: #e63946;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
    font-family: inherit;
}
.btn-submit:hover { background: #c0392b; }

/* ============================================================
   SECTIONS COMMON
============================================================ */
.section { padding: 60px 0; }
.section-alt { background: #fff; }
.container { max-width: 1170px; margin: 0 auto; padding: 0 20px; }

/* ============================================================
   PROJECT DESCRIPTION
============================================================ */
.project-desc p { font-size: 15px; line-height: 1.8; color: #555; max-width: 800px; margin: 0 auto 25px; text-align: center; }
.btn-apply {
    display: inline-block;
    background: #e63946;
    color: #fff;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 15px;
    transition: background .2s, transform .2s;
}
.btn-apply:hover { background: #c0392b; transform: translateY(-2px); }
.project-desc .btn-wrap { text-align: center; }

/* ============================================================
   PAYMENT PLAN TABLE
============================================================ */
.table-responsive { overflow-x: auto; }
.payment-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.payment-table th,
.payment-table td { border: 1px solid #ddd; padding: 10px 12px; text-align: center; white-space: nowrap; }
.payment-table thead th { background: #1a1a2e; color: #fff; font-weight: 600; }
.payment-table tbody tr:nth-child(even) { background: #f9f9f9; }
.payment-table tbody tr:hover { background: #fff3f3; }
.payment-table .total-col { font-weight: 700; color: #e63946; }

/* ============================================================
   AMENITIES GRID
============================================================ */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(3, 2fr);
    gap: 24px;
    margin-top: 10px;
}
.amenity-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,.07);
    transition: transform .3s, box-shadow .3s;
}
.amenity-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,.12); }
.amenity-card img { width: 70px; height: 70px; object-fit: contain; margin: 0 auto 12px; }
.amenity-card h4 { font-size: 13px; color: #1a1a2e; line-height: 1.4; }

/* ============================================================
   SITE PLAN
============================================================ */
.site-plan-img { border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,.1); margin: 0 auto; }

/* ============================================================
   LOCATION ADVANTAGES
============================================================ */
.location-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.location-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 4px 15px rgba(0,0,0,.07);
}
.location-card h3 {
    font-size: 16px;
    color: #e63946;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 16px;
}
.location-list li {
    padding: 6px 0;
    font-size: 14px;
    color: #555;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}
.location-list li .star { color: #e63946; font-size: 12px; flex-shrink: 0; margin-top: 2px; }

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 40px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}
.footer-brand .footer-logo { max-height: 60px; margin-bottom: 16px; }
.footer-brand p { font-size: 13px; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid #e63946; display: inline-block; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 13px; color: #aaa; transition: color .2s; }
.footer-links a:hover { color: #e63946; }
.footer-contact li { font-size: 13px; margin-bottom: 8px; display: flex; gap: 8px; }
.footer-contact a { color: #aaa; } .footer-contact a:hover { color: #e63946; }
.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #777;
    flex-wrap: wrap;
    gap: 10px;
}
.disclaimer { font-size: 11px; color: #666; margin-top: 16px; border-top: 1px solid #333; padding-top: 16px; }

/* ============================================================
   BACK TO TOP
============================================================ */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #e63946;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 9990;
    box-shadow: 0 4px 12px rgba(230,57,70,.4);
    transition: background .2s;
    border: none;
}
#back-to-top:hover { background: #c0392b; }
#back-to-top.visible { display: flex; }

/* ============================================================
   PAGE TEMPLATES
============================================================ */
.page-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}
.page-hero h1 { font-size: 36px; margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,.7); font-size: 15px; }
.page-content { background: #fff; padding: 60px 0; }
.page-content .prose { max-width: 800px; margin: 0 auto; }
.prose h2 { font-size: 22px; margin: 30px 0 12px; color: #1a1a2e; }
.prose h3 { font-size: 18px; margin: 24px 0 10px; color: #333; }
.prose p { font-size: 14px; line-height: 1.8; color: #555; margin-bottom: 14px; }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; }
.prose ul li { font-size: 14px; line-height: 1.7; color: #555; margin-bottom: 6px; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 992px) {
    .amenities-grid { grid-template-columns: repeat(3, 1fr); }
    .location-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .main-nav { display: none; }
    .main-nav.open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 20px; box-shadow: 0 4px 10px rgba(0,0,0,.1); }
    .main-nav.open ul { flex-direction: column; gap: 10px; }
    .nav-toggle { display: flex; }
    .navbar-wrapper { position: relative; }
    .swiper-slide img.banner-img { height: 280px; }
    .amenities-grid { grid-template-columns: repeat(2, 1fr); }
    .location-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 25px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    h2.section-title { font-size: 22px; }
    .page-hero h1 { font-size: 26px; }
}
@media (max-width: 480px) {
    .amenities-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
