/*
Theme Name: Dholera Infratech
Theme URI: https://dholerainfratech.com
Author: Dholera Infratech
Author URI: https://dholerainfratech.com
Description: Custom WordPress theme for Dholera Infratech - Plots, Properties & Investment Opportunities in Dholera Smart City
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: dholera-infratech
*/

/* ========================
   CSS VARIABLES
   ======================== */
:root {
    --primary-color: #ffd200;
    --primary-dark: #e6bd00;
    --secondary-color: #1e293b;
    --accent-color: #2563eb;
    --text-color: #334155;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --gray: #64748b;
    --transition: all 0.3s ease;
    --container-width: 1200px;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--secondary-color);
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================
   SWIPER OVERRIDES
   ======================== */
.swiper { width: 100%; height: auto; aspect-ratio: 16/9; max-height: 85vh; }
@media (max-width: 640px) { .swiper { aspect-ratio: 4/3; } }
.swiper-slide { background-color: #f8fafc; }
.swiper-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* ========================
   NAVIGATION
   ======================== */
nav { position: relative; }

@media (max-width: 767px) {
    .mobile-nav-open {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(to right, #0f2027, #2c5364, #c6b776);
        padding: 20px 0;
        gap: 0;
        z-index: 100;
        box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    }
    .mobile-nav-open > * {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100%;
        text-align: center;
        padding: 12px 16px;
    }
    .mobile-nav-open .relative.group {
        width: 100%;
        text-align: center;
    }
    .mobile-nav-open .relative.group > button {
        width: auto;
        margin: 0 auto;
    }
}

/* ========================
   SECTION TITLE
   ======================== */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.section-title .line {
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 0 auto;
}

/* ========================
   BUTTONS
   ======================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

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

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

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

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

/* ========================
   HEADER
   ======================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

header.scrolled {
    background-color: var(--secondary-color);
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* ========================
   HERO SECTION
   ======================== */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    padding: 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 20px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* ========================
   HIGHLIGHTS
   ======================== */
.highlights {
    padding: 100px 0;
    background-color: var(--light-bg);
}

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

.highlight-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.highlight-card:hover {
    transform: translateY(-10px);
}

.highlight-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* ========================
   PROJECTS
   ======================== */
.projects {
    padding: 100px 0;
    background-color: var(--light-bg);
}

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

.project-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.project-card:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.project-img {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 5px 15px;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    border-radius: 3px;
}

/* ========================
   CONTACT
   ======================== */
.contact {
    padding: 100px 0;
}

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

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

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

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

/* ========================
   FOOTER
   ======================== */
.main-footer {
    background: linear-gradient(135deg, #0f2027 0%, #2c5364 50%, #73dab7 100%);
    color: var(--white);
    padding: 60px 0 0;
    position: relative;
    overflow: hidden;
}

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

.footer-col h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255,255,255,0.2);
    padding-bottom: 10px;
    display: inline-block;
}

.footer-col:nth-child(3) h4 {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.footer-col p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 15px;
}

.footer-col a {
    color: var(--white);
    opacity: 0.9;
}

.footer-col a:hover {
    color: var(--primary-color);
    opacity: 1;
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-social a {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1rem;
    font-weight: 500;
}

.soc-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    transition: var(--transition);
}

.soc-icon.fb { background: #1877F2; box-shadow: 0 0 10px rgba(24,119,242,0.5); }
.soc-icon.ig { background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5); box-shadow: 0 0 10px rgba(214,41,118,0.5); }
.soc-icon.yt { background: #FF0000; box-shadow: 0 0 10px rgba(255,0,0,0.5); }

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

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
}

.whatsapp { background: #25d366; }
.call { background: #2563eb; }

/* ========================
   MODAL
   ======================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    padding: 50px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    position: relative;
    text-align: center;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
}

/* ========================
   BLOG
   ======================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.blog-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.blog-card:hover { transform: translateY(-10px); }

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

/* ========================
   PAGE HEADER
   ======================== */
.page-header {
    padding: 150px 0 100px;
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 10px;
}

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

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 2.5rem; }
    .contact-grid { grid-template-columns: 1fr; }
}

/* WordPress Admin Bar Fix */
body.admin-bar nav.fixed {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar nav.fixed {
        top: 46px;
    }
}
