/*
Theme Name: WHECHS Housing Society
Theme URI: https://whechs.com
Author: WHECHS Development Team
Author URI: https://whechs.com
Description: A professional theme for WHECHS - WAPDA & Hydro Employees Cooperative Housing Society, Kohat. Features modern design with navy blue and green color scheme.
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: whechs
Tags: real-estate, housing-society, responsive, custom-colors

This theme is licensed under the GPL.
*/

/* ===================================
   CSS VARIABLES & RESET
   =================================== */
:root {
    --primary-color: #1B3A5F;
    --secondary-color: #4CAF50;
    --accent-color: #8BC34A;
    --light-green: #E8F5E9;
    --dark-blue: #0D1F33;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --border-color: #E0E0E0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

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

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

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

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

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 50px;
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
}

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

.site-logo img {
    height: 70px;
    width: auto;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-navigation a {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 0;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* ===================================
   HERO SECTION WITH PARALLAX
   =================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

/* Parallax Background */
.hero-bg-parallax {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-image: linear-gradient(rgba(27, 58, 95, 0.7), rgba(13, 31, 51, 0.8)), 
                      url('assets/images/hero-bg.png');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    z-index: 0;
    transform: translateZ(0);
    will-change: transform;
}

/* Fallback for mobile - no parallax */
@media (pointer: coarse) {
    .hero-bg-parallax {
        background-attachment: scroll;
        height: 100%;
    }
}

/* Overlay for better text readability */
.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(27, 58, 95, 0.85) 0%, rgba(13, 31, 51, 0.9) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    background: var(--secondary-color);
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 40px;
    opacity: 0.95;
    font-weight: 300;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-stats {
    display: flex;
    gap: 50px;
    margin: 50px 0;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary-color);
    display: block;
    text-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.95;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 5px;
    display: block;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 50px;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
}

/* Scroll Down Indicator */
.scroll-down-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    animation: bounce 2s infinite;
    cursor: pointer;
}

.scroll-down-indicator span {
    width: 8px;
    height: 8px;
    background: var(--white);
    border-radius: 50%;
    opacity: 0.7;
}

.scroll-down-indicator span:nth-child(1) {
    animation: scrollDot 1.5s infinite;
}

.scroll-down-indicator span:nth-child(2) {
    animation: scrollDot 1.5s 0.2s infinite;
}

.scroll-down-indicator span:nth-child(3) {
    animation: scrollDot 1.5s 0.4s infinite;
}

@keyframes scrollDot {
    0%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(10px);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsive Hero */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .stat-item {
        flex: 1 1 calc(50% - 10px);
        min-width: 150px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .stat-item {
        flex: 1 1 100%;
        padding: 15px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    .scroll-down-indicator {
        display: none;
    }
}

/* ===================================
   TRUST BADGES
   =================================== */
.trust-badges {
    background: var(--light-gray);
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
}

.badges-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    font-weight: 600;
}

.badge-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

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

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

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

.about-content h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.feature-list {
    list-style: none;
    margin: 20px 0;
}

.feature-list li {
    padding: 10px 0;
    padding-left: 35px;
    position: relative;
    color: var(--text-dark);
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 10px;
    width: 25px;
    height: 25px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* ===================================
   PLOTS SECTION
   =================================== */
.plots-section {
    background: var(--light-gray);
}

.plots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.plot-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

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

.plot-size {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
}

.plot-type {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
}

.plot-body {
    padding: 30px 20px;
}

.plot-features {
    list-style: none;
    margin-bottom: 20px;
}

.plot-features li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
}

.plot-features li:last-child {
    border-bottom: none;
}

.plot-price {
    text-align: center;
    margin: 20px 0;
}

.price-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

.price-value {
    color: var(--secondary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

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

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.amenity-card {
    text-align: center;
    padding: 40px 20px;
    background: var(--light-gray);
    border-radius: 10px;
    transition: all 0.3s ease;
}

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

.amenity-icon {
    width: 80px;
    height: 80px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}

.amenity-card:hover .amenity-icon {
    background: var(--white);
}

.amenity-title {
    font-size: 1.1rem;
    font-weight: 600;
}

/* ===================================
   LOCATION SECTION
   =================================== */
.location-section {
    background: linear-gradient(135deg, var(--light-green) 0%, var(--white) 100%);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.location-map {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    min-height: 400px;
}

.location-content h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.location-content p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.location-features {
    list-style: none;
}

.location-features li {
    padding: 15px 0;
    padding-left: 40px;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.location-features li::before {
    content: '📍';
    position: absolute;
    left: 0;
    top: 15px;
    font-size: 1.2rem;
}

/* ===================================
   PAYMENT PLAN SECTION
   =================================== */
.payment-section {
    background: var(--primary-color);
    color: var(--white);
}

.payment-section .section-title {
    color: var(--white);
}

.payment-section .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.payment-timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 50px auto;
    position: relative;
}

.payment-timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 1;
}

.payment-step {
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.payment-step-number {
    width: 80px;
    height: 80px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 15px;
    border: 5px solid var(--primary-color);
}

.payment-step-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.payment-step-desc {
    font-size: 0.9rem;
    opacity: 0.9;
}

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

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(27, 58, 95, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--white);
    font-size: 2.5rem;
}

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

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

.contact-info h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.contact-details {
    margin: 30px 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-text h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.contact-text p {
    color: var(--text-light);
}

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

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===================================
   FOOTER
   =================================== */
.site-footer {
    background: var(--dark-blue);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget h4 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-widget p,
.footer-widget li {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    line-height: 1.8;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-widget a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ===================================
   FLOATING WHATSAPP BUTTON
   =================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 992px) {
    .main-navigation {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        transition: left 0.3s ease;
    }

    .main-navigation.active {
        left: 0;
    }

    .main-navigation ul {
        flex-direction: column;
        padding: 40px 20px;
        gap: 0;
    }

    .main-navigation li {
        border-bottom: 1px solid var(--border-color);
    }

    .main-navigation a {
        display: block;
        padding: 15px 0;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

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

    .payment-timeline {
        flex-direction: column;
        gap: 30px;
    }

    .payment-timeline::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

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

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

    .badges-container {
        flex-direction: column;
        gap: 20px;
    }
}

/* ===================================
   WORDPRESS CORE CLASSES
   =================================== */
.aligncenter {
    display: block;
    margin: 0 auto;
}

.alignleft {
    float: left;
    margin-right: 20px;
}

.alignright {
    float: right;
    margin-left: 20px;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 10px;
}

.sticky {
    background: var(--light-gray);
    padding: 20px;
    border-left: 4px solid var(--secondary-color);
}

.bypostauthor {
    background: var(--light-green);
    padding: 15px;
    border-radius: 5px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

/* Screen reader text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}