/* ===================================
   MAX ESTATE SECTOR 128 - Landing Page
   Clone of maxestatess.com style
   =================================== */

/* CSS Variables */
:root {
    --primary: #0077b6;
    --primary-dark: #005f8a;
    --secondary: #d4af37;
    --dark: #1a1a1a;
    --dark-light: #2d2d2d;
    --text: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --light-bg: #f5f5f5;
    --border: #e0e0e0;
    --success: #28a745;
    --font-main: 'Poppins', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --shadow: 0 5px 30px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 50px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
}

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

ul {
    list-style: none;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 119, 182, 0.3);
}

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

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

.btn-sm {
    padding: 8px 18px;
    font-size: 12px;
}

.btn-full {
    width: 100%;
}

.btn-submit {
    background: var(--primary);
    color: var(--white);
    width: 100%;
    padding: 14px;
    font-size: 15px;
}

.btn-submit:hover {
    background: var(--primary-dark);
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title.light h2,
.section-title.light .title-tag {
    color: var(--white);
}

.title-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 10px;
    font-family: var(--font-main);
}

.section-title h2 {
    font-size: 36px;
    color: var(--dark);
}

/* ===================================
   HEADER
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-img {
    height: 55px;
    width: auto;
    object-fit: contain;
    max-width: 180px;
}

.logo-main {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
    line-height: 1;
}

.logo-sub {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

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

.main-nav a:hover {
    color: var(--primary);
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
}

.header-phone:hover {
    background: var(--primary-dark);
}

.header-phone i {
    font-size: 14px;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--dark);
    transition: var(--transition);
}

/* ===================================
   HERO BANNER
   =================================== */
.hero-banner {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.3) 100%);
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
    padding: 60px 0;
}

.hero-text h1 {
    font-size: 48px;
    color: var(--white);
    margin-bottom: 10px;
}

.hero-tagline {
    font-size: 20px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 30px;
}

.hero-specs {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.spec-item {
    text-align: center;
    padding: 15px 20px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
}

.spec-label {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.spec-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
}

.hero-btns {
    display: flex;
    gap: 15px;
}

/* Hero Form Box */
.hero-form-box {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.form-header {
    background: var(--primary);
    color: var(--white);
    padding: 20px;
    text-align: center;
}

.form-header h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.form-header p {
    font-size: 13px;
    opacity: 0.9;
}

.enquiry-form {
    padding: 25px;
}

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

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* ===================================
   QUICK INFO BAR
   =================================== */
.quick-info {
    background: var(--primary);
    padding: 25px 0;
}

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

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--white);
}

.info-item i {
    font-size: 28px;
    opacity: 0.9;
}

.info-label {
    display: block;
    font-size: 12px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-value {
    display: block;
    font-size: 16px;
    font-weight: 600;
}

/* ===================================
   OVERVIEW SECTION
   =================================== */
.overview-section {
    background: var(--light-bg);
}

.overview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.overview-text p {
    margin-bottom: 15px;
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.8;
}

.overview-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-card {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
}

.feature-icon i {
    font-size: 28px;
    color: var(--white);
}

.feature-card h4 {
    font-size: 16px;
    color: var(--dark);
    margin-bottom: 8px;
    font-family: var(--font-main);
    font-weight: 600;
}

.feature-card p {
    font-size: 13px;
    color: var(--text-light);
}

/* ===================================
   PRICE SECTION
   =================================== */
.price-section {
    background: var(--dark);
    color: var(--white);
}

.price-table-wrapper {
    overflow-x: auto;
    margin-bottom: 30px;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--dark-light);
    border-radius: 10px;
    overflow: hidden;
}

.price-table th,
.price-table td {
    padding: 18px 25px;
    text-align: left;
}

.price-table th {
    background: var(--primary);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-table td {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 15px;
}

.price-table tr:last-child td {
    border-bottom: none;
}

.price-table .btn-sm {
    background: var(--secondary);
    color: var(--dark);
}

.price-table .btn-sm:hover {
    background: #c9a42f;
}

.price-note {
    text-align: center;
    margin-bottom: 40px;
}

.price-note p {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

.price-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.highlight-box {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255,255,255,0.05);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
}

.highlight-box i {
    font-size: 40px;
    color: var(--secondary);
}

.highlight-box h4 {
    font-size: 18px;
    margin-bottom: 5px;
    font-family: var(--font-main);
}

.highlight-box p {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

/* ===================================
   AMENITIES SECTION
   =================================== */
.amenities-section {
    background: var(--white);
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.amenity-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 25px 15px;
    background: var(--light-bg);
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
}

.amenity-item:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.amenity-item i {
    font-size: 32px;
    color: var(--primary);
    transition: var(--transition);
}

.amenity-item:hover i {
    color: var(--white);
}

.amenity-item span {
    font-size: 13px;
    font-weight: 500;
}

/* ===================================
   FLOOR PLAN SECTION
   =================================== */
.floorplan-section {
    background: var(--light-bg);
}

.floorplan-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.floorplan-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.floorplan-card:hover {
    box-shadow: var(--shadow-lg);
}

.floorplan-img {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.floorplan-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.floorplan-card:hover .floorplan-img img {
    transform: scale(1.05);
}

.floorplan-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.floorplan-card:hover .floorplan-overlay {
    opacity: 1;
}

.floorplan-info {
    padding: 25px;
}

.floorplan-info h4 {
    font-size: 20px;
    color: var(--dark);
    margin-bottom: 15px;
    font-family: var(--font-main);
    font-weight: 600;
}

.floorplan-info ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.floorplan-info li {
    font-size: 14px;
    color: var(--text-light);
}

.floorplan-info li strong {
    color: var(--text);
}

/* ===================================
   GALLERY SECTION
   =================================== */
.gallery-section {
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.gallery-item {
    position: relative;
    height: 220px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item.large {
    grid-column: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* ===================================
   LOCATION SECTION
   =================================== */
.location-section {
    background: var(--dark);
    color: var(--white);
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.address-box {
    display: flex;
    gap: 20px;
    background: rgba(255,255,255,0.05);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.address-box i {
    font-size: 30px;
    color: var(--primary);
}

.address-box h4 {
    font-size: 16px;
    margin-bottom: 8px;
    font-family: var(--font-main);
}

.address-box p {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.location-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.location-item i {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    font-size: 18px;
    color: var(--secondary);
}

.location-item h5 {
    font-size: 14px;
    font-family: var(--font-main);
    font-weight: 500;
    margin-bottom: 3px;
}

.location-item span {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

.upcoming-title {
    font-size: 18px;
    margin-bottom: 20px;
    font-family: var(--font-main);
    font-weight: 600;
}

.infrastructure-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.infrastructure-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

.infrastructure-list i {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 50%;
    font-size: 14px;
}

.location-map {
    border-radius: 10px;
    overflow: hidden;
}

.location-map iframe {
    display: block;
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact-section {
    background: var(--light-bg);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info-box {
    padding: 40px;
    background: var(--dark);
    color: var(--white);
    border-radius: 10px;
}

.contact-info-box h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.contact-info-box > p {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 30px;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    gap: 15px;
}

.contact-item i {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    font-size: 18px;
    color: var(--primary);
}

.contact-item span {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.contact-item a,
.contact-item p {
    font-size: 15px;
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--primary);
}

.contact-form-box {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-form-box h3 {
    font-size: 24px;
    color: var(--dark);
    margin-bottom: 25px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--dark);
    color: var(--white);
}

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

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 16px;
    margin-bottom: 20px;
    font-family: var(--font-main);
    font-weight: 600;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

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

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 12px;
}

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

.footer-contact a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding: 25px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 5px;
}

.disclaimer {
    font-size: 11px !important;
    color: rgba(255,255,255,0.3) !important;
}

/* ===================================
   FLOATING BUTTONS
   =================================== */
.floating-btns {
    position: fixed;
    bottom: 30px;
    right: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.float-btn {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 24px;
    color: var(--white);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.float-btn.whatsapp {
    background: #25d366;
}

.float-btn.phone {
    background: var(--primary);
}

.float-btn:hover {
    transform: scale(1.1);
}

/* Enquiry Sidebar */
.enquiry-sidebar {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 998;
}

.sidebar-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: var(--white);
    padding: 15px 20px;
    border: none;
    border-radius: 10px 0 0 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    animation: shake 2s infinite;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.sidebar-toggle i {
    transform: rotate(90deg);
}

/* ===================================
   RESPONSIVE STYLES
   =================================== */
@media (max-width: 1024px) {
    .hero-content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-form-box {
        max-width: 450px;
        margin: 0 auto;
    }

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

    .overview-content {
        grid-template-columns: 1fr;
    }

    .price-highlights {
        grid-template-columns: 1fr;
    }

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

    .location-content {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        padding: 80px 30px 30px;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 20px;
    }

    .header-phone span {
        display: none;
    }

    .header-phone {
        padding: 10px;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .hero-specs {
        flex-direction: column;
        gap: 15px;
    }

    .hero-btns {
        flex-direction: column;
    }

    .section {
        padding: 60px 0;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .overview-features {
        grid-template-columns: 1fr;
    }

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

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

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

    .gallery-item.large {
        grid-column: span 1;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .floating-btns {
        bottom: 20px;
        right: 15px;
    }

    .float-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .enquiry-sidebar {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-text h1 {
        font-size: 26px;
    }

    .hero-tagline {
        font-size: 16px;
    }

    .enquiry-form {
        padding: 20px;
    }

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

    .contact-info-box,
    .contact-form-box {
        padding: 25px;
    }
}
