/*
Theme Name: 360 Property Management
Theme URI: https://www.360realtymanagement.com
Author: 360 Property Management
Author URI: https://www.360realtymanagement.com
Description: A conversion-optimized property management theme for 360 Property Management. Features customizable hero sections, statistics, services, testimonials, and multiple CTAs optimized for lead generation.
Version: 1.3.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: 360-property
Tags: property-management, real-estate, business, custom-logo, custom-colors, featured-images, theme-options
*/

/* ==========================================================================
   CSS Variables / Custom Properties
   ========================================================================== */
:root {
    /* Primary Colors */
    --primary-color: #1E3A8A;
    --primary-dark: #0F172A;
    --primary-light: #2563EB;
    
    /* Secondary Colors */
    --secondary-color: #60A5FA;
    --accent-color: #F59E0B;
    
    /* Neutral Colors */
    --white: #FFFFFF;
    --off-white: #F8FAFC;
    --light-gray: #E2E8F0;
    --medium-gray: #94A3B8;
    --dark-gray: #475569;
    --black: #1E293B;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Container */
    --container-width: 1200px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
}

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

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

a:hover {
    color: var(--primary-light);
}

ul, ol {
    list-style: none;
}

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

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

/* ==========================================================================
   Layout & Container
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-xl) 0;
}

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

.section--off-white {
    background-color: var(--off-white);
}

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

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

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-normal);
}

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

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

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

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

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

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

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

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

.btn--large {
    padding: 1.125rem 2.5rem;
    font-size: 1rem;
}

.btn--phone {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn--phone svg {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-top {
    background-color: var(--primary-dark);
    padding: 0.5rem 0;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top-links {
    display: flex;
    gap: 1.5rem;
}

.header-top-links a {
    color: var(--light-gray);
    font-size: 0.8125rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.header-top-links a:hover {
    color: var(--white);
}

.header-top-links .dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-color);
    border-radius: 50%;
}

.header-top-ctas {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-main {
    padding: 1rem 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.site-logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.2;
}

.site-logo-text span {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--dark-gray);
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--black);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a {
    color: var(--primary-color);
}

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

.nav-menu > li > a:hover::after {
    width: 100%;
}

/* Dropdown */
.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 0.75rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-normal);
}

.nav-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu li a {
    display: block;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    color: var(--dark-gray);
}

.nav-menu .sub-menu li a:hover {
    background-color: var(--off-white);
    color: var(--primary-color);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--black);
    margin: 5px 0;
    transition: all var(--transition-normal);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background-color: var(--primary-dark);
    background-size: cover;
    background-position: center;
    margin-top: 110px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 58, 138, 0.75) 100%);
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-content {
    max-width: 600px;
}

.hero-subtitle {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--accent-color);
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--light-gray);
    margin-bottom: 2rem;
    max-width: 550px;
}

.hero-cta-btn {
    margin-top: 1rem;
}

/* Hero Image Area */
.hero-image-area {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-featured-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.hero-image-placeholder {
    background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
    width: 100%;
    max-width: 500px;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.75rem;
    font-weight: 600;
    font-family: var(--font-heading);
    border-radius: 12px;
    text-align: center;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.hero-image-placeholder span {
    line-height: 1.4;
}

/* ==========================================================================
   Statistics Section
   ========================================================================== */
.stats-section {
    background-color: var(--primary-color);
    padding: var(--spacing-lg) 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    color: var(--white);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-section {
    background-color: var(--off-white);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
}

.section-header h2 {
    font-style: italic;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--dark-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background-color: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 40px;
    height: 40px;
    fill: var(--white);
}

.service-icon img {
    width: 40px;
    height: 40px;
}

.service-card h3 {
    font-size: 1.375rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--dark-gray);
    margin-bottom: 0;
}

.services-cta {
    text-align: center;
    margin-top: var(--spacing-lg);
}

/* ==========================================================================
   About/Intro Section
   ========================================================================== */
.about-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content h2 {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.about-content p {
    font-size: 1.125rem;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
}

.about-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
}

/* About Section Image Placeholder */
.about-image-placeholder {
    background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
    height: 400px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 600;
    font-family: var(--font-heading);
    border-radius: 8px;
    text-align: center;
    padding: 2rem;
}

.about-image-placeholder span {
    line-height: 1.4;
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */
.testimonials-section {
    background-color: var(--off-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.testimonial-stars {
    color: var(--accent-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1rem;
    font-style: italic;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 1.25rem;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.testimonial-info h4 {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 0.25rem;
}

.testimonial-info span {
    font-size: 0.875rem;
    color: var(--medium-gray);
}

/* ==========================================================================
   Trust Factors Section
   ========================================================================== */
.trust-section {
    background-color: var(--primary-color);
    color: var(--white);
}

.trust-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.trust-content h2 {
    font-style: italic;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.trust-content p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.trust-item {
    text-align: center;
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: background-color var(--transition-normal);
}

.trust-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.trust-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 0.75rem;
}

.trust-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--white);
    fill: none;
}

.trust-item span {
    font-size: 0.875rem;
    font-weight: 500;
}

/* ==========================================================================
   Guarantee Section
   ========================================================================== */
.guarantee-section {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: var(--spacing-lg) 0;
}

.guarantee-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.guarantee-icon {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.guarantee-icon svg {
    width: 100%;
    height: 100%;
}

.guarantee-text h3 {
    font-size: 1.75rem;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.guarantee-text p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    position: relative;
    padding: var(--spacing-xl) 0;
    background-color: var(--primary-dark);
    background-size: cover;
    background-position: center;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 58, 138, 0.85) 100%);
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.75rem;
    font-style: italic;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.25rem;
    color: var(--light-gray);
    margin-bottom: 2rem;
}

/* ==========================================================================
   Hero Video Background
   ========================================================================== */
.hero--has-video {
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* When video is present, adjust the hero overlay */
.hero--has-video::before {
    display: none; /* Hide default overlay, using video-overlay instead */
}

.hero--has-video .hero-grid {
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   Blog Posts Section
   ========================================================================== */
.blog-section {
    background-color: var(--white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.blog-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-normal);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.blog-card-image {
    display: block;
    height: 200px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

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

.blog-card-placeholder {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card-placeholder span {
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card-placeholder svg {
    width: 60px;
    height: 60px;
    stroke: var(--white);
    opacity: 0.5;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.8125rem;
    color: var(--medium-gray);
}

.blog-card-meta time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-card-category {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.blog-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.blog-card-title a {
    color: var(--black);
    transition: color var(--transition-fast);
}

.blog-card-title a:hover {
    color: var(--primary-color);
}

.blog-card-excerpt {
    font-size: 0.9375rem;
    color: var(--dark-gray);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.025em;
    transition: gap var(--transition-fast);
}

.blog-card-link:hover {
    gap: 0.75rem;
    color: var(--primary-light);
}

.blog-card-link svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.blog-card:hover .blog-card-link svg {
    transform: translateX(4px);
}

.blog-cta {
    text-align: center;
    margin-top: var(--spacing-lg);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding-top: var(--spacing-xl);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: var(--spacing-lg);
}

.footer-brand {
    padding-right: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    max-height: 45px;
    filter: brightness(0) invert(1);
}

.footer-logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
}

.footer-brand p {
    font-size: 0.9375rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.footer-contact-info {
    font-size: 0.9375rem;
}

.footer-contact-info p {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    opacity: 0.9;
}

.footer-contact-info svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.footer-column h4 {
    color: var(--white);
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 0.75rem;
}

.footer-menu a {
    color: var(--white);
    font-size: 0.9375rem;
    opacity: 0.9;
    transition: opacity var(--transition-fast);
}

.footer-menu a:hover {
    opacity: 1;
    color: var(--white);
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.newsletter-form input[type="email"] {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    border: none;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.2);
}

.newsletter-form button {
    padding: 0.875rem 1.5rem;
    background-color: var(--accent-color);
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.newsletter-form button:hover {
    background-color: #D97706;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    font-size: 0.875rem;
    opacity: 0.8;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: var(--white);
    font-size: 0.875rem;
    opacity: 0.8;
}

.footer-legal a:hover {
    opacity: 1;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transition: background-color var(--transition-fast);
}

.footer-social a:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.footer-social svg {
    width: 18px;
    height: 18px;
    fill: var(--white);
}

/* ==========================================================================
   Form Styles
   ========================================================================== */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dark-gray);
    margin-bottom: 0.375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    transition: border-color var(--transition-fast);
}

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

.form-note {
    font-size: 0.75rem;
    color: var(--medium-gray);
    margin-top: 1rem;
    text-align: center;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-content {
        text-align: center;
        max-width: 100%;
    }
    
    .hero-description {
        max-width: 100%;
    }
    
    .hero-image-area {
        order: -1;
    }
    
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .trust-section .container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-section .container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-image {
        order: -1;
    }
}

@media (max-width: 900px) {
    /* MOBILE MENU FIX: Add position relative to container for absolute positioning of menu */
    .header-main .container {
        position: relative;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
        z-index: 1001;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.875rem; }
    h3 { font-size: 1.5rem; }
    
    .section {
        padding: var(--spacing-lg) 0;
    }
    
    .hero {
        min-height: auto;
        padding: var(--spacing-xl) 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .header-top-links {
        display: none;
    }
    
    .header-top .container {
        justify-content: flex-end;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .hero-image-placeholder {
        max-width: 400px;
        font-size: 1.5rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-card-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .trust-grid {
        grid-template-columns: 1fr;
    }
    
    .guarantee-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-image-placeholder {
        font-size: 1.25rem;
    }
    
    .about-image-placeholder {
        height: 300px;
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   Mobile Navigation (Active State)
   ========================================================================== */
.nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    gap: 0;
    z-index: 1000;
}

.nav-menu.active > li {
    padding: 0 1rem;
}

.nav-menu.active > li > a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.nav-menu.active .sub-menu {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding-left: 1rem;
    display: none;
}

.nav-menu.active li.active > .sub-menu {
    display: block;
}

/* ==========================================================================
   WordPress Core Styles
   ========================================================================== */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    background: var(--off-white);
    border: 1px solid var(--light-gray);
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--off-white);
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: var(--black);
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ==========================================================================
   Footer Widget Areas
   ========================================================================== */
.footer-widget-area .widget {
    margin-bottom: 1.5rem;
}

.footer-widget-area .widget:last-child {
    margin-bottom: 0;
}

.footer-widget-area .widget-title {
    color: var(--white);
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.footer-widget-area .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget-area .widget ul li {
    margin-bottom: 0.75rem;
}

.footer-widget-area .widget ul li a {
    color: var(--white);
    font-size: 0.9375rem;
    opacity: 0.9;
    transition: opacity var(--transition-fast);
}

.footer-widget-area .widget ul li a:hover {
    opacity: 1;
    color: var(--white);
}

.footer-widget-area .widget p {
    color: var(--white);
    opacity: 0.9;
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.footer-widget-area .textwidget {
    font-size: 0.9375rem;
    line-height: 1.7;
}



/* ==========================================================================
   MOBILE MENU COMPLETE FIX - Added to ensure mobile menu works properly
   ========================================================================== */

/* Mobile menu button styling */
.mobile-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #1e3a5f;
    margin: 5px 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

/* Hamburger animation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Screen reader text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 900px) {
    /* Force show hamburger */
    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    /* Container positioning */
    .header-main .container {
        position: relative;
    }

    /* Hide menu by default */
    .nav-menu {
        display: none !important;
    }

    /* Show menu when active */
    .nav-menu.active {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        padding: 1rem 0;
        z-index: 1000;
        animation: mobileMenuSlideDown 0.3s ease;
    }

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

    .nav-menu.active > li {
        padding: 0 1rem;
        width: 100%;
    }

    .nav-menu.active > li > a {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid #e5e5e5;
        font-size: 1rem;
    }

    .nav-menu.active .sub-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding-left: 1rem;
        display: none;
        background: #f9f9f9;
    }

    .nav-menu.active li.active > .sub-menu {
        display: block;
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }

    /* Optional overlay behind menu */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: 999;
    }
}

/* ==========================================================================
   HERO LEAD-CAPTURE FORM + CF7 POPUP MODAL  (added feature)
   ========================================================================== */

/* Subtext above the form */
.hero-form-subtext {
    color: var(--white);
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

/* White rounded pill containing input + button */
.hero-address-form {
    display: flex;
    align-items: center;
    background-color: var(--white);
    border-radius: 9999px;
    padding: 6px 6px 6px 8px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    max-width: 520px;
    width: 100%;
}

.hero-address-input {
    flex: 1 1 auto;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1rem;
    color: #1f2937;
    padding: 12px 16px;
    min-width: 0;
}

.hero-address-input::placeholder {
    color: #9ca3af;
}

.hero-get-started-btn {
    flex: 0 0 auto;
    border: none;
    cursor: pointer;
    background-color: #10b981;
    color: var(--white);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 12px 26px;
    border-radius: 9999px;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.hero-get-started-btn:hover {
    background-color: #0ea371;
}

.hero-get-started-btn:active {
    transform: scale(0.97);
}

/* Property types row */
.hero-property-types {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.hero-property-types .property-type {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0;
    opacity: 0.75;
    transition: opacity 0.2s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.hero-property-types .property-type:hover,
.hero-property-types .property-type.active {
    opacity: 1;
}

.property-type-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #10b981;
    background: transparent;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-property-types .property-type.active .property-type-dot {
    background-color: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}

/* -------- CF7 Popup Modal -------- */
.cf7-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
}

.cf7-modal.is-open {
    display: block;
}

.cf7-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    animation: cf7FadeIn 0.25s ease;
}

.cf7-modal-dialog {
    position: relative;
    z-index: 1;
    background: var(--white);
    width: 92%;
    max-width: 560px;
    margin: 6vh auto 0;
    max-height: 88vh;
    overflow-y: auto;
    border-radius: 12px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    padding: 2.25rem 2rem 2rem;
    animation: cf7SlideDown 0.3s ease;
}

.cf7-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    border: none;
    background: transparent;
    font-size: 2rem;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.2s ease;
}

.cf7-modal-close:hover {
    color: #111827;
}

.cf7-modal-title {
    margin: 0 0 1.25rem;
    color: var(--primary-color);
    font-size: 1.5rem;
    padding-right: 1.5rem;
}

.cf7-modal-placeholder {
    color: #6b7280;
    font-style: italic;
}

body.cf7-modal-open {
    overflow: hidden;
}

@keyframes cf7FadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

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

/* Responsive: stack the input + button on small screens */
@media (max-width: 768px) {
    .hero-address-form {
        flex-direction: column;
        border-radius: 16px;
        padding: 12px;
        gap: 10px;
        max-width: 100%;
    }
    .hero-address-input {
        width: 100%;
        text-align: center;
        padding: 12px;
    }
    .hero-get-started-btn {
        width: 100%;
        padding: 14px;
    }
    .hero-property-types {
        justify-content: flex-start;
        gap: 1rem;
    }
    .cf7-modal-dialog {
        margin-top: 4vh;
        padding: 2rem 1.25rem 1.5rem;
    }
}
