/*
Theme Name: AIMS Property Group
Theme URI: https://aimspropertygroup.com
Author: AIMS Property Group
Author URI: https://aimspropertygroup.com
Description: A custom WordPress theme for AIMS Property Group.
Version: 1.0.8
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aims-property
*/

/* ========================================
   IMPORTED FROM STATIC SITE
   ======================================== */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    margin-top: 0 !important; /* Remove WordPress admin bar spacing */
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #fff;
    color: #333;
    margin-top: 0 !important; /* Remove WordPress admin bar spacing */
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo */
.logo-placeholder {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 2rem;
}

.logo-text {
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.2;
    text-align: left;
}

.logo-text small {
    font-size: 0.7rem;
    font-weight: 400;
}

.small-logo .logo-icon {
    font-size: 1.5rem;
}

.small-logo .logo-text {
    font-size: 0.75rem;
}

/* Headers */
.site-header {
    position: absolute;
    top: 30px;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 0;
    display: flex;
    justify-content: center;
}

.page-header {
    position: absolute;
    top: 30px;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 0;
}

.header-container {
    background-color: transparent;
    padding: 15px 30px;
    border-radius: 8px;
    box-shadow: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-nav {
    display: flex;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: #000;
    font-weight: 600;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #cc0000;
}

/* Auto-scaling uploaded logo */
.custom-logo-link img {
    max-height: 60px;
    width: auto;
    height: auto;
}

/* Hero Sections */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.6)), 
                url('https://placehold.co/1920x1080?text=Hero+Background') center/cover;
    color: #000;
    position: relative;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 30px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    color: #000;
}

.action-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

/* Sell Hero */
.sell-hero {
    height: 90vh;
    min-height: 600px;
    background: linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.7)), 
                url('https://placehold.co/1920x1080?text=Sell+Hero') center/cover;
    display: flex;
    align-items: center;
    color: #000;
    padding-top: 120px; /* Space for absolute header */
}

.sell-hero-content {
    text-align: left;
}

.sell-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: #000;
}

.sub-headline {
    font-size: 0.85rem;
    margin-bottom: 30px;
    opacity: 0.9;
    font-weight: 500;
    color: #000;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 50px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: transparent;
    color: #cc0000;
    border: 2px solid #cc0000;
}

.btn-primary:hover {
    background-color: #cc0000;
    color: white;
}

.btn-red {
    background-color: #cc0000;
    color: white !important;
    border: 2px solid #cc0000;
}

.btn-red:hover {
    background-color: transparent;
    color: #cc0000 !important;
}

/* Why Choose Us / Features */
.why-choose-us {
    padding: 80px 0;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), 
                url('https://placehold.co/1920x600?text=City+Background') center/cover;
    color: white;
}

.why-choose-us h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    font-weight: 600;
}

.features-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.feature-card {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 40px 20px;
    text-align: center;
    flex: 1;
    min-width: 180px;
    max-width: 220px;
    backdrop-filter: blur(10px);
}

.feature-card p {
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1.6;
}

/* About Section */
.about-section {
    padding: 100px 0;
    background-color: #f9f9f9;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    padding-left: 40px;
}

.accent-square {
    position: absolute;
    width: 90%;
    height: 100%;
    background-color: #8B5E3C;
    top: -20px;
    left: 0;
    z-index: 0;
}

.founder-image {
    position: relative;
    z-index: 1;
    width: 100%;
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #777;
}

.director-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 10px;
}

/* Featured Projects */
.featured-projects {
    background-color: #000;
    color: white;
    padding-top: 50px;
}

.featured-projects h2 {
    text-align: center;
    margin-bottom: 40px;
    font-weight: 600;
}

.projects-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    width: 100%;
}

.projects-strip img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: opacity 0.3s;
}

.projects-strip img:hover {
    opacity: 0.8;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    border: 2px solid #333;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.lightbox-nav {
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 20px;
    z-index: 1001;
    transition: color 0.3s;
}

.lightbox-nav:hover { color: #cc0000; }

.prev { left: 20px; }
.next { right: 20px; }

/* Responsive adjustments for gallery */
@media (max-width: 900px) {
    .projects-strip {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .projects-strip {
        grid-template-columns: 1fr;
    }
    .lightbox-nav { font-size: 2rem; padding: 10px; }
    .prev { left: 10px; }
    .next { right: 10px; }
}

/* Process & Contact */
.process-contact {
    padding: 120px 0;
}

.process-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.process-steps h3 {
    margin-bottom: 40px;
    font-size: 1.1rem;
    font-weight: 700;
}

.step-card {
    background-color: #222;
    color: white;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    border-radius: 4px;
    align-items: center;
}

.step-number {
    font-size: 2rem;
    font-weight: 300;
    margin-right: 20px;
    opacity: 0.7;
}

.step-text strong {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.step-text p {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Contact Form */
.contact-form-container {
    background-color: #2a2a2a;
    padding: 40px;
    border-radius: 8px;
    color: white;
}

.contact-form-container h3 {
    margin-bottom: 30px;
    font-size: 1.2rem;
    font-weight: 700;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: #1a1a1a;
    border: 1px solid #444;
    color: white;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #cc0000;
}

.contact-form-container .btn-red {
    border: none;
    padding: 12px 60px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
    text-transform: uppercase;
}

/* Footer */
.site-footer {
    border-top: none;
    padding: 40px 0 80px;
    background: transparent;
    font-size: 0.8rem;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


/* Content Section (Privacy Policy etc) */
.content-section {
    padding: 120px 0;
    margin-bottom: 200px; 
    background-color: #fff;
    min-height: 50vh;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-wrapper h3 {
    margin-top: 50px;
    margin-bottom: 25px;
    font-size: 1.75rem;
    color: #000;
    font-weight: 600;
}

.content-wrapper h4 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

.content-wrapper p {
    margin-bottom: 20px;
    color: #444;
    line-height: 1.8;
    font-size: 1.05rem;
}

.content-wrapper ul {
    margin-bottom: 25px;
    padding-left: 20px;
    color: #444;
    line-height: 1.8;
}

.content-wrapper ul li {
    margin-bottom: 10px;
}

/* Privacy Hero Specific */
.privacy-hero {
    height: 60vh;
    min-height: 400px;
}

/* --- RESPONSIVE DESIGN --- */

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    .hero-content h1 { font-size: 2.2rem; }
    .sell-hero h1 { font-size: 1.8rem; }
    
    .container { width: 90%; }

    .site-header, .page-header { top: 20px; }
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    .main-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .main-nav a { margin: 0 5px; font-size: 0.8rem; }

    .action-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    .btn { width: 100%; max-width: 280px; text-align: center; }

    .sell-hero {
        height: auto;
        min-height: 70vh;
        padding: 180px 20px 60px; /* Extra top padding for mobile header */
    }
    .sell-hero-content {
        text-align: center;
        margin: 0 auto;
    }

    .features-grid { gap: 15px; }
    .feature-card { width: 45%; flex-grow: 1; }

    .about-section { padding: 60px 0; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-image-wrapper { padding-left: 0; max-width: 350px; margin: 0 auto; }
    .accent-square { width: 80%; left: -10px; }
    .founder-image { width: 100%; }

    .projects-strip { 
        grid-template-columns: repeat(2, 1fr); 
    }
    
    /* hide images 5-8 on mobile, but keep them for lightbox */
    .projects-strip .gallery-item:nth-child(n+5) {
        display: none;
    }
    
    .process-contact { padding: 50px 0; }
    .process-contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .step-card { flex-direction: column; text-align: center; padding: 30px; }
    .step-number { margin-right: 0; margin-bottom: 10px; }
    
    .site-footer { padding: 40px 0; }
    .footer-grid {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.8rem; }
    .feature-card { width: 100%; }
    .projects-strip { grid-template-columns: 1fr; }
}

/* --- ANIMATIONS --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    transform: translateY(0);
}

/* Stagger Delays */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

.feature-card.animate-on-scroll {
    transform: translateY(50px);
}
