/* Global Variables */
:root {
    --primary-color: #0D2C4F;
    /* Navy Blue */
    --accent-color: #bfa15f;
    /* Gold */
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --light-grey: #f8f9fa;
    --dark-grey: #e9ecef;
    --success-green: #0D2C4F;
    --info-blue: #0D2C4F;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    padding-top: 70px;
    /* Space for fixed header */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

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

ul {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Utilities */
.text-center {
    text-align: center;
}

.text-white {
    color: var(--white);
}

.bg-light {
    background-color: var(--light-grey);
}

.bg-dark {
    background-color: var(--primary-color);
    color: var(--white);
}

.mt-4 {
    margin-top: 2rem;
}

/* Buttons */
.cta-button {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    border: none;
    text-align: center;
    transition: var(--transition);
    font-family: var(--font-body);
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--white);
}

.primary-btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

.secondary-btn {
    background-color: var(--accent-color);
    color: var(--white);
}

.secondary-btn:hover {
    background-color: #a38848;
    transform: translateY(-2px);
}

.outline-btn {
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
}

.outline-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.white-btn {
    background-color: var(--white);
    color: var(--primary-color);
}

.white-btn:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

/* Header */
.top-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
    height: 100px;
    /* Fixed height match padding-top body */
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* width: auto !important; */
}

.header-phone {
    font-weight: 700;
    font-size: 18px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-phone i {
    color: var(--accent-color);
}

/* Section 1: Hero */
.hero-section {
    position: relative;
    padding: 100px 0 60px;
    background: url('https://placehold.co/1920x1080/0c2d48/ffffff?text=Modern+Township+Entrance') no-repeat center center/cover;
    min-height: 90vh;
    display: flex;
    align-items: center;
    /* Adjust for fixed header if needed, but padding-top on body handles basic spacing. 
       Hero might want full screen feel, so we keep min-height. */
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.hero-text {
    flex: 1;
    min-width: 300px;
    color: var(--white);
    margin-bottom: 40px;
    padding-right: 20px;
}

.hero-headline {
    font-size: 2.8rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
}

.hero-subtext {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.trust-badges {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 5px;
    backdrop-filter: blur(5px);
}

.badge-item i {
    color: var(--accent-color);
    font-size: 20px;
}

.badge-item span {
    font-weight: 600;
}

.hero-form-wrapper {
    flex: 0 0 400px;
    max-width: 100%;
}

.enquiry-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-title {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 15px;
}

.enquiry-card .cta-button {
    width: 100%;
    font-size: 18px;
}

.privacy-text {
    font-size: 12px;
    color: #888;
    text-align: center;
    margin-top: 10px;
}

/* Section 2: Why Choose */
.why-choose-section {
    padding: 80px 0;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.align-center {
    align-items: center;
}

.col-image,
.col-text,
.col-map {
    width: 50%;
    padding: 0 15px;
}

.col-image img {
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.section-desc {
    margin-bottom: 25px;
    color: var(--text-light);
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.choose-card {
    background: var(--light-grey);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--dark-grey);
    transition: var(--transition);
}

.choose-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--accent-color);
}

.choose-card i {
    font-size: 28px;
    color: var(--accent-color);
    margin-bottom: 15px;
    display: block;
}

.choose-card h4 {
    font-size: 16px;
    margin-bottom: 0;
    font-weight: 600;
    color: var(--primary-color);
    font-family: var(--font-body);
    /* Use body font for readability */
}

/* Section 3: Configurations */
.configurations-section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.cards-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.config-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    flex: 1;
    min-width: 250px;
    transition: var(--transition);
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
}

.config-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.featured-card {
    border: 2px solid var(--accent-color);
    transform: scale(1.05);
}

.featured-card:hover {
    transform: scale(1.05) translateY(-10px);
}

.tag {
    position: absolute;
    top: 10px;
    right: -30px;
    background: var(--accent-color);
    color: var(--white);
    padding: 5px 30px;
    transform: rotate(45deg);
    font-size: 12px;
    font-weight: 600;
}

.config-details {
    font-size: 1.2rem;
    color: var(--text-light);
    margin: 15px 0 25px;
}

/* Section 4: Amenities */
.amenities-section {
    padding: 100px 0;
    background: url('../img/img2.jpg') no-repeat center center/cover;
    position: relative;
    background-attachment: fixed;
}

.amenities-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 31, 63, 0.85);
    z-index: 1;
}

.relative-z {
    position: relative;
    z-index: 2;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.amenity-item {
    text-align: center;
    color: var(--white);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    transition: var(--transition);
}

.amenity-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.amenity-item i {
    font-size: 40px;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.amenity-item span {
    display: block;
    font-weight: 500;
}

/* Section 5: Location */
.location-section {
    padding: 80px 0;
}

.map-placeholder {
    height: 400px;
    background: #ccc;
    border-radius: 10px;
    overflow: hidden;
}

.location-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.location-list i {
    color: var(--primary-color);
    font-size: 18px;
    width: 25px;
    text-align: center;
}

.landmark-icons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.landmark {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 80px;
}

.landmark i {
    font-size: 24px;
    color: var(--accent-color);
    background: var(--light-grey);
    padding: 15px;
    border-radius: 50%;
}

.landmark span {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

/* Section 6: Mid Form */
.mid-form-section {
    padding: 60px 0;
}

.form-wrapper-center {
    max-width: 700px;
    margin: 40px auto 0;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row input,
.form-row select {
    flex: 1;
    padding: 12px;
    border-radius: 5px;
    border: none;
    font-family: var(--font-body);
}

.mid-form-section .cta-button {
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Section 7: Contact/Footer */
.footer-section {
    background: #0D2C4F;
    color: #ccc;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.privacy-policy {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    font-size: 14px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 18px;
}

.contact-item p {
    margin-bottom: 0px;
}

.contact-item i {
    color: var(--accent-color);
}

.whatsapp-btn {
    display: inline-block;
    background: #25D366;
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    margin-bottom: 30px;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    background: #128C7E;
}

.copyright {
    font-size: 14px;
    opacity: 0.7;
    /* border-top: 1px solid rgba(255, 255, 255, 0.1); */
    /* padding-top: 20px; */
}

/* Sticky Footer */
.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: none;
    z-index: 1000;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

.sticky-btn {
    flex: 1;
    border: none;
    padding: 15px;
    font-size: 16px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-body);
}

.call-btn {
    background: var(--success-green);
}

.enquire-btn {
    background: var(--info-blue);
}

.sticky-footer a:first-child {
    border-right: 2px solid #ffff;
}

/* Popup Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    color: #888;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--primary-color);
}

.home_banner_01 {
    position: relative;
    overflow: hidden;
}

.form-top {
    position: absolute;
    z-index: 10;
    top: 100px;
    width: 100%;
}

.home-content {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-iside {
    padding: 20px;
}

.form-iside h2 {
    font-size: 20px;
    padding-bottom: 20px;
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    z-index: 100;
    width: 50px;
    height: 50px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s;
}

/* Responsive */
@media (max-width: 991px) {

    .col-image,
    .col-text,
    .col-map {
        width: 100%;
        margin-bottom: 40px;
    }

    .row {
        flex-direction: column;
    }

    .hero-text {
        padding-right: 0;
        text-align: center;
    }

    .hero-content {
        flex-direction: column;
        align-items: center;
    }

    .hero-form-wrapper {
        width: 100%;
        margin-top: 30px;
        margin-bottom: 30px;
    }

    .trust-badges {
        justify-content: center;
    }

    .header-contact {
        display: none;
    }

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

    /* Show sticky footer on tablet/mobile */
    /* body {
        padding-bottom: 70px;
    } */

    .sticky-footer {
        display: flex;
    }

    .header-container {
        width: auto !important;
    }
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .hero-headline {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

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

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

    .form-top {
        position: relative;
        z-index: 10;
        top: 0px;
        width: 100%;
    }

    .whatsapp-float {
        bottom: 65px !important;
        right: 10px !important;
    }

    .footer-section {
        padding: 30px 0 60px;
    }
}