/*
Theme Name: Urban Locator
Theme URI: https://urbanlocator.com
Author: Urban Locator Team
Author URI: https://urbanlocator.com
Description: Custom WordPress theme for Urban Locator - Premium Land Brokerage specializing in Residential Plots, Commercial Plots, Investment Properties, and Corporate Leasing.
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: urbanlocator
Tags: land-broker, real-estate, responsive, bootstrap, corporate

Urban Locator WordPress Theme © 2024
*/

/* Import Fonts - Nunito for headings, Inter for body */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700;800&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables - Color Palette matching Reference Image */
:root {
    --color-primary: #E83633;        /* Red - section headings, accents, pretitles */
    --color-secondary: #2B5CE6;      /* Blue - buttons, badges, CTAs */
    --color-secondary-dark: #1E46C5; /* Darker blue for button hover */
    --color-dark: #1a1a2e;           /* Hero H1, body dark text */
    --color-gray-dark: #2d3748;      /* Dark Gray */
    --color-gray: #4a5568;           /* Medium Gray */
    --color-gray-light: #718096;     /* Light Gray */
    --color-light: #F8F9FA;          /* Off-white background */
    --color-white: #ffffff;
    --color-footer: #1a1f2e;         /* Footer dark */
    --header-cl: #1350A8;         /* Header background color */ 

    --font-heading: 'Nunito', 'Inter', sans-serif;
    --font-body: 'Inter', 'Open Sans', sans-serif;

    --transition: all 0.3s ease;
}

/* Base Styles */
body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-gray-dark);
    background-color: var(--color-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography - Headings - Reference Image Style */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-dark);
    margin-bottom: 1rem;
    letter-spacing: normal;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

/* Hero title refined style */
.hero-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 3.5rem;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--color-white);
    text-shadow: 0 4px 20px rgba(26, 26, 46, 0.5);
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-dark);
}

h4 {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--color-dark);
}

h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-dark);
}

h6 {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-dark);
}

/* Paragraph and Text */
p {
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 1rem;
    color: var(--color-gray);
}

.text-primary {
    color: var(--color-primary) !important;
}

.bg-primary {
    background-color: var(--color-secondary) !important;
}

.text-dark {
    color: var(--color-dark) !important;
}

.bg-dark {
    background-color: var(--color-dark) !important;
}

/* Links */
a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary);
}

/* Buttons */
button, .btn {
    font-family: var(--font-body);
    font-weight: 600;
    transition: var(--transition);
}

.bg-primary:hover {
    background-color: var(--color-secondary-dark) !important;
}

/* WordPress Alignment */
.alignleft {
    float: left;
    margin-right: 1.5rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* WordPress Captions */
.wp-caption {
    margin-bottom: 1.5rem;
    max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption-text {
    margin: 0.8075rem 0;
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-gray);
}

/* Gallery */
.gallery {
    margin-bottom: 1.5rem;
}

.gallery-item {
    display: inline-block;
    text-align: center;
    vertical-align: top;
    width: 100%;
}

/* Screen Reader Text */
.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;
    width: 1px;
    word-wrap: normal !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-light);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-secondary);
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Tab Transitions */
.tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.tab-content.active {
    display: block;
    opacity: 1;
}

/* Carousel Styles */
.carousel-slide {
    transition: opacity 0.7s ease-in-out, transform 0.7s ease-in-out;
}

/* Form Focus States */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(43, 92, 230, 0.15);
}

/* Header Styles */
header {
    transition: box-shadow 0.3s ease;
}

header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* ── Nav Item <li> wrapper ────────────────────────────── */
.nav-item {
    position: relative;
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;  /* lets .nav-dropdown sit below on mobile */
}

/* ── Dropdown chevron button ─────────────────────────── */
.dropdown-toggle {
    display: inline-flex;       /* visible on desktop as a passive indicator */
    align-items: center;
    background: none;
    border: none;
    cursor: default;            /* desktop = hover-only, not clickable */
    pointer-events: none;       /* don't intercept hover/click on desktop */
    padding: 0.15rem 0.2rem;
    color: rgba(255,255,255,0.5);
    line-height: 1;
    border-radius: 3px;
    flex-shrink: 0;
    transition: transform 0.22s ease, color 0.22s;
}

/* Rotate arrow when dropdown opens on desktop (hover) */
.nav-item.has-dropdown:hover > .dropdown-toggle {
    transform: rotate(180deg);
    color: rgba(255,255,255,0.9);
}

/* ── Desktop Dropdown Panel ──────────────────────────── */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    background: #ffffff;
    border-radius: 0 0 10px 10px;
    border-top: 3px solid var(--color-primary);
    box-shadow: 0 14px 40px rgba(0,0,0,0.13), 0 2px 10px rgba(0,0,0,0.07);
    min-width: 215px;
    padding: 0.4rem 0;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
    z-index: 200;
}

/* Show dropdown on hover (desktop) */
.nav-item.has-dropdown:hover > .nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
}

/* ── Dropdown sub-links ────────────────────────────────*/
.nav-subitem {
    list-style: none;
}

.nav-dropdown-link {
    display: flex;
    align-items: center;
    padding: 0.62rem 1.15rem;
    color: var(--color-gray-dark) !important;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: color 0.18s, background 0.18s, border-color 0.18s, padding-left 0.18s;
    white-space: nowrap;
}

.nav-dropdown-link:hover,
.nav-subitem.is-active > .nav-dropdown-link {
    color: var(--color-primary) !important;
    background: rgba(232, 54, 51, 0.05);
    border-left-color: var(--color-primary);
    padding-left: 1.4rem;
    text-decoration: none;
}

/* ── Mobile: dropdown inside .mobile-nav-list ─────────── */
.mobile-nav-list .nav-item {
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.mobile-nav-list .nav-item:last-child {
    border-bottom: none;
}

/* On mobile: make toggle a real clickable button */
.mobile-nav-list .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    padding: 0.5rem 0.55rem;
    color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.07);
    cursor: pointer;
    pointer-events: auto;       /* clickable on mobile */
    border-radius: 5px;
}

.mobile-nav-list .dropdown-toggle:hover {
    color: #fff;
    background: rgba(255,255,255,0.14);
}

.mobile-nav-list .nav-item.is-open > .dropdown-toggle {
    transform: rotate(180deg);
    color: #fff;
    background: rgba(255,255,255,0.14);
}

/* Override desktop absolute positioning inside mobile menu */
.mobile-nav-list .nav-dropdown {
    position: static;
    width: 100%;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    border-top: none;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.2);
    padding: 0;
    min-width: unset;
    display: none; /* accordion: hidden by default */
    transition: none;
}

.mobile-nav-list .nav-item.is-open > .nav-dropdown {
    display: block;
}

.mobile-nav-list .nav-dropdown .nav-subitem {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mobile-nav-list .nav-dropdown .nav-subitem:last-child {
    border-bottom: none;
}

.mobile-nav-list .nav-dropdown .nav-dropdown-link {
    padding: 0.72rem 0.5rem 0.72rem 1.6rem;
    color: rgba(255,255,255,0.72) !important;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-left: none;
    white-space: normal;
}

.mobile-nav-list .nav-dropdown .nav-dropdown-link:hover,
.mobile-nav-list .nav-dropdown .nav-subitem.is-active > .nav-dropdown-link {
    color: #fff !important;
    background: rgba(255,255,255,0.07);
    border-left: none;
    padding-left: 2rem;
}

/* ── Desktop Header Navigation Links ─────────────────── */
.header-nav-link {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    padding: 0.45rem 0.9rem;
    border-radius: 6px;
    position: relative;
    text-decoration: none;
    transition: color 0.22s ease, background 0.22s ease;
}

.header-nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: width 0.28s ease;
}

.header-nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.header-nav-link:hover::after,
.header-nav-link.is-active::after {
    width: calc(100% - 1.8rem);
}

.header-nav-link.is-active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

/* ── Mobile Menu Button — Hamburger ↔ X toggle ─────────── */
#mobile-menu-btn .mob-icon-hamburger { display: block; }
#mobile-menu-btn .mob-icon-close     { display: none;  }
#mobile-menu-btn[aria-expanded="true"] .mob-icon-hamburger { display: none;  }
#mobile-menu-btn[aria-expanded="true"] .mob-icon-close     { display: block; }

/* ── Top Bar Ticker (mobile only) ──────────────────────── */
@keyframes ul-ticker {
    from { transform: translateX(100vw); }
    to   { transform: translateX(-100%); }
}
.ul-ticker {
    display: inline-block;
    white-space: nowrap;
    animation: ul-ticker 18s linear infinite;
}

/* ── Header CTA Button ─────────────────────────────────── */
.header-cta-btn {
    display: inline-flex;
    align-items: center;
    background-color: var(--color-primary);
    color: #fff;
    padding: 0.55rem 1.35rem;
    border-radius: 7px;
    font-weight: 700;
    font-size: 0.74rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.22s ease, transform 0.18s ease, box-shadow 0.22s ease;
    box-shadow: 0 4px 14px rgba(232, 54, 51, 0.35);
}

.header-cta-btn:hover {
    background-color: #c62d2b;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(232, 54, 51, 0.45);
    text-decoration: none;
}

/* ── Mobile Navigation List ────────────────────────────── */
.mobile-nav-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.mobile-nav-list li {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.mobile-nav-list li:last-child {
    border-bottom: none;
}

.mobile-nav-list li a {
    display: flex;
    align-items: center;
    padding: 0.85rem 0.5rem;
    color: rgba(255, 255, 255, 0.82) !important;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-nav-list li a:hover,
.mobile-nav-list li.current-menu-item > a {
    color: #ffffff !important;
    padding-left: 0.875rem;
    text-decoration: none;
}

/* Legacy nav-link (kept for compatibility) */
.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-gray-dark);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Custom Logo Styling */
.custom-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.custom-logo-link img,
.custom-logo {
    max-height: 56px;
    width: auto;
    display: block;
}

@media (min-width: 1024px) {
    .custom-logo-link img,
    .custom-logo {
        max-height: 64px;
    }
}

/* Hero Section */
.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-white);
    text-shadow: 0 4px 20px rgba(26, 26, 46, 0.5);
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--color-primary);
}

/* Section Headers */
.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    position: relative;
    display: inline-block;
    letter-spacing: normal;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
    margin: 16px auto 0;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-gray);
    max-width: 600px;
    margin: 0 auto;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-weight: 500;
}

/* Small label above section titles (seen in the reference image) */
.section-pretitle {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 0.6rem;
}

/* Optional accent word inside headings */
.section-title .accent {
    color: var(--color-primary);
}

/* Cards */
.card {
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Buttons - Blue CTAs per reference */
.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding: 0.875rem 2rem;
    border-radius: 6px;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.02em;
    font-size: 0.9rem;
}

.btn-primary:hover {
    background-color: var(--color-secondary-dark);
    color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(43, 92, 230, 0.3);
}

.btn-secondary {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 0.875rem 2rem;
    border-radius: 6px;
    font-weight: 700;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
    font-size: 0.9rem;
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-1px);
}

/* Footer */
footer {
    background-color: var(--color-footer);
    color: var(--color-gray-light);
}

footer h4 {
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

footer a {
    color: var(--color-gray-light);
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--color-primary);
}

/* Mobile Menu */
.mobile-menu {
    transition: transform 0.3s ease-in-out;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.875rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 1.875rem;
    }
}

/* Custom utility classes */
.text-secondary {
    color: var(--color-secondary) !important;
}

.bg-secondary {
    background-color: var(--color-secondary) !important;
}

.border-primary {
    border-color: var(--color-primary) !important;
}

/* Project Cards */
.project-card {
    background: var(--color-white);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Testimonial Cards */
.testimonial-card {
    background: var(--color-white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Form Styling */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(43, 92, 230, 0.12);
}

/* Stats Counter */
.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-secondary);
    line-height: 1;
}

/* Tab Buttons */
.tab-btn {
    font-family: var(--font-body);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.tab-btn.active {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 4px 20px rgba(255, 59, 92, 0.25);
}

/* Filter Buttons */
.filter-btn {
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--color-white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* WordPress Alignment */
.alignleft {
    float: left;
    margin-right: 1.5rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* WordPress Captions */
.wp-caption {
    margin-bottom: 1.5rem;
    max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption-text {
    margin: 0.8075rem 0;
    text-align: center;
}

/* Gallery */
.gallery {
    margin-bottom: 1.5rem;
}

.gallery-item {
    display: inline-block;
    text-align: center;
    vertical-align: top;
    width: 100%;
}

/* Screen Reader Text */
.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;
    width: 1px;
    word-wrap: normal !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-secondary);
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Tab Transitions */
.tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.tab-content.active {
    display: block;
    opacity: 1;
}

/* Carousel Styles */
.carousel-slide {
    transition: transform 0.5s ease-in-out;
}

/* Form Focus States */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(43, 92, 230, 0.12);
}

/* Mobile Menu Transition */
.mobile-menu {
    transition: transform 0.3s ease-in-out;
}

/* ============================================================
   PROFESSIONAL POLISH — ADDED FOR REFERENCE IMAGE MATCH
   ============================================================ */

/* Section heading alignment helper */
.section-header-center {
    text-align: center;
    margin-bottom: 3.5rem;
}

/* Section title — remove the auto-underline for non-centered contexts */
.section-title.no-underline::after {
    display: none;
}

/* Navigation active link */
.nav-link.active,
.nav-link:focus {
    color: var(--color-primary);
}

/* Logo brand accent */
.brand-logo-icon {
    background-color: var(--color-secondary);
    color: var(--color-white);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero section text shadow for readability */
.hero-content {
    text-shadow: none;
}

/* Professional card hover — lifted */
.listing-card,
.service-card {
    border-radius: 16px;
    background: var(--color-white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.listing-card:hover,
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(26, 26, 46, 0.12);
}

/* Badge / pill label */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.8rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.badge-primary {
    background-color: rgba(255, 59, 92, 0.1);
    color: var(--color-primary);
}

.badge-secondary {
    background-color: rgba(43, 92, 230, 0.1);
    color: var(--color-secondary);
}

/* Property price tag */
.price-tag {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--color-dark);
}

/* Stat card hover lift (for Quick Stats cards) */
.stat-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Section divider */
.section-divider {
    width: 60px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
    margin: 1rem auto 0;
}

/* Testimonial stars */
.star-rating {
    color: #FBBF24;
}

/* Social icon hover */
.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
}

/* Responsive heading scale */
@media (max-width: 640px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.625rem; }
    h3 { font-size: 1.375rem; }
    .section-title { font-size: 1.625rem; }
    .hero-title { font-size: 2.25rem; }
    .stat-number { font-size: 2.5rem; }
}

@media (min-width: 641px) and (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.875rem; }
    .hero-title { font-size: 2.75rem; }
    .section-title { font-size: 1.875rem; }
}

/* Ensure no gold/yellow leaks from anywhere */
[class*="text-yellow"]:not(.star-rating):not([data-lucide]) {
    /* intentionally not overriding — yellow is valid for stars */
}

/* Smooth section background transitions */
section {
    transition: background-color 0.3s ease;
}



/* Center the logo container on mobile */
@media (max-width: 640px) {
    .flex.items-center.gap-2.mb-4 {
        justify-content: center;
    }
    
    /* Make the custom logo link block-level and centered */
    .custom-logo-link {
        display: block;
        text-align: center;
    }
    
    .custom-logo-link img {
        margin: 0 auto;
    }
}

/* On larger screens, revert to left alignment */
@media (min-width: 641px) {
    .flex.items-center.gap-2.mb-4 {
        justify-content: flex-start;
    }
}