/* ============================================
   PrimeSpace Realty — Premium Commercial Real Estate
   Design System & Custom Styles
   ============================================ */

/* ========== CSS CUSTOM PROPERTIES ========== */
:root {
    --primary: #142B45;
    --primary-light: #1d3d63;
    --secondary: #F7F5F0;
    --accent: #C6A46A;
    --accent-hover: #b8924f;
    --accent-light: rgba(198, 164, 106, 0.12);
    --text: #242A30;
    --text-secondary: #777777;
    --white: #FFFFFF;
    --border: #e5e1db;
    --shadow-sm: 0 2px 8px rgba(20, 43, 69, 0.06);
    --shadow-md: 0 8px 24px rgba(20, 43, 69, 0.08);
    --shadow-lg: 0 16px 48px rgba(20, 43, 69, 0.12);
    --shadow-xl: 0 24px 64px rgba(20, 43, 69, 0.16);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --header-height: 80px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'DM Serif Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ========== RESET & BASE ========== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background-color: var(--white);
    line-height: 1.7;
    font-size: 1rem;
    overflow-x: hidden;
}

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

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

/* Focus visible */
:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary);
    line-height: 1.25;
    font-weight: 400;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 1rem;
    color: var(--primary);
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.section-header {
    margin-bottom: 3.5rem;
}

.section-note {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 0.5rem;
}

/* ========== BUTTONS ========== */
.btn {
    font-family: var(--font-body);
    font-weight: 500;
    border-radius: var(--radius-sm);
    padding: 0.625rem 1.5rem;
    font-size: 0.9375rem;
    transition: all var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

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

.btn-accent:hover,
.btn-accent:focus-visible {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(198, 164, 106, 0.35);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}

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

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

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

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #25D366;
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9375rem;
    margin-top: 1.5rem;
    transition: all var(--transition);
}

.btn-whatsapp:hover {
    background-color: #1fb855;
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-lg {
    padding: 0.8125rem 2rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.4375rem 1rem;
    font-size: 0.8125rem;
}

/* ========== NAVBAR ========== */
.navbar-main .navbar {
    padding: 0.875rem 0;
    transition: all 0.35s ease;
    z-index: 1050;
    min-height: 76px;
    display: flex;
    align-items: center;
}

.navbar-main .navbar:not(.scrolled) {
    background: transparent;
}

.navbar-main .navbar.scrolled {
    background: rgba(247, 245, 240, 0.98);
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 20px rgba(20, 43, 69, 0.08);
    padding: 0.625rem 0;
}

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

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    line-height: 1;
    padding: 0;
    margin: 0;
}

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--accent);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.brand-text {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    transition: color var(--transition);
}

.scrolled .brand-text {
    color: var(--primary);
}

.brand-accent {
    color: var(--accent);
}

/* Nav links list */
.navbar-nav {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin: 0;
    padding: 0;
}

.navbar-nav .nav-link {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0.5rem 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    transition: all var(--transition);
    position: relative;
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
    border-radius: 6px;
}

.scrolled .navbar-nav .nav-link {
    color: var(--text);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0.875rem;
    right: 0.875rem;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform var(--transition);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

/* Nav CTA Button */
.nav-cta-wrap {
    display: flex;
    align-items: center;
}

.nav-cta {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    padding: 0.625rem 1.35rem !important;
    min-height: 42px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.2px;
    white-space: nowrap;
    line-height: 1 !important;
}

/* Hamburger Menu */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    background: transparent;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.toggler-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 26px;
}

.toggler-icon span {
    display: block;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
}

.scrolled .toggler-icon span {
    background: var(--primary);
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(20, 43, 69, 0.7) 0%,
        rgba(20, 43, 69, 0.8) 50%,
        rgba(20, 43, 69, 0.9) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-left {
    text-align: left;
}

@media (min-width: 992px) {
    .hero-left {
        padding-right: 2.5rem;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(198, 164, 106, 0.18);
    border: 1px solid rgba(198, 164, 106, 0.4);
    color: var(--accent);
    padding: 0.375rem 1rem;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
}

.hero-title {
    font-size: clamp(2.25rem, 4.5vw, 3.75rem);
    color: var(--white);
    margin-bottom: 1.25rem;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.1875rem);
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 0 2rem;
    line-height: 1.7;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-trust-pills {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.trust-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 500;
}

.trust-pill i {
    color: var(--accent);
    font-size: 1rem;
}

/* Hero Search Card (Right Column) */
.hero-search-wrapper {
    display: block;
}

.hero-search-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 24px 64px rgba(10, 25, 45, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.search-card-header {
    margin-bottom: 1.25rem;
}

.search-card-tag {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.search-card-title {
    font-size: 1.35rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
    font-family: var(--font-heading);
}

.search-card-subtitle {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Transaction Type Tabs */
.search-tabs {
    display: flex;
    background: var(--secondary);
    padding: 4px;
    border-radius: var(--radius-sm);
    gap: 4px;
    margin-bottom: 1.25rem;
    border: 1px solid var(--border);
}

.search-tab {
    flex: 1;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.45rem 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

.search-tab:hover {
    color: var(--primary);
}

.search-tab.active {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 2px 6px rgba(20, 43, 69, 0.2);
}

.search-fields-vertical {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-field label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.375rem;
}

.search-field label i {
    color: var(--accent);
}

.search-field select,
.search-field input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--text);
    background: var(--white);
    transition: border-color var(--transition);
    min-height: 46px;
}

.search-field select:focus,
.search-field input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(198, 164, 106, 0.15);
}

.btn-search-hero {
    width: 100%;
    padding: 0.75rem 1.5rem;
    min-height: 48px;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.search-popular-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.search-popular-tags span {
    font-weight: 600;
    margin-right: 0.25rem;
}

.quick-tag {
    background: var(--secondary);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.6875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.quick-tag:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

/* ========== HIGHLIGHTS ========== */
.highlights-section {
    background: var(--primary);
    padding: 3.5rem 0 3rem;
}

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

.highlight-item {
    padding: 1rem;
}

.highlight-number {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--accent);
    line-height: 1;
}

.highlight-suffix {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--accent);
}

.highlight-label {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9375rem;
    margin-top: 0.5rem;
    font-weight: 400;
}

.highlights-note {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    font-style: italic;
    margin-top: 1.5rem;
}

/* ========== PROPERTIES ========== */
.properties-section {
    padding: 6rem 0;
    background: var(--secondary);
}

/* Property Filters */
.property-filters {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.filter-btn {
    background: var(--white);
    border: 1.5px solid var(--border);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
}

.filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

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

/* Property Grid */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.75rem;
}

.property-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
}

.property-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.property-card.hidden {
    display: none;
}

.property-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/2;
}

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

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

.property-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.badge-rent {
    background: var(--accent);
    color: var(--white);
}

.badge-lease {
    background: #2E7D32;
    color: var(--white);
}

.property-category-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.92);
    padding: 0.25rem 0.625rem;
    border-radius: 50px;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text);
    backdrop-filter: blur(4px);
}

.property-info {
    padding: 1.25rem 1.5rem 1.5rem;
}

.property-title {
    font-size: 1.1875rem;
    margin-bottom: 0.375rem;
}

.property-location {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.property-location i {
    color: var(--accent);
    font-size: 0.8125rem;
}

.property-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.property-meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--text-secondary);
}

.property-meta i {
    color: var(--accent);
}

.property-price {
    font-weight: 700;
    color: var(--primary) !important;
    font-size: 1rem !important;
}

.property-actions {
    display: flex;
    gap: 0.625rem;
}

.property-actions .btn {
    flex: 1;
    text-align: center;
}

/* ========== CATEGORIES ========== */
.categories-section {
    padding: 6rem 0;
    background: var(--white);
}

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

.category-block {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/9;
    display: flex;
    align-items: flex-end;
    cursor: pointer;
}

.category-bg {
    position: absolute;
    inset: 0;
}

.category-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.category-block:hover .category-bg img {
    transform: scale(1.08);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 43, 69, 0.1) 0%, rgba(20, 43, 69, 0.75) 100%);
    transition: background var(--transition);
}

.category-block:hover .category-overlay {
    background: linear-gradient(180deg, rgba(20, 43, 69, 0.2) 0%, rgba(20, 43, 69, 0.85) 100%);
}

.category-content {
    position: relative;
    z-index: 2;
    padding: 1.75rem;
    color: var(--white);
    width: 100%;
}

.category-content i:first-child {
    font-size: 1.75rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    display: block;
}

.category-content h3 {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.category-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    transition: gap var(--transition);
}

.category-block:hover .category-link {
    gap: 0.625rem;
}

/* ========== SERVICES ========== */
.services-section {
    padding: 6rem 0;
    background: var(--secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.service-icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-md);
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
    color: var(--accent);
    transition: all var(--transition);
}

.service-card:hover .service-icon {
    background: var(--accent);
    color: var(--white);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.65;
}

/* ========== ABOUT ========== */
.about-section {
    padding: 6rem 0;
    background: var(--white);
}

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

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius-lg);
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 60%;
    height: 60%;
    border: 3px solid var(--accent);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.about-desc {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1.75;
    margin-bottom: 2rem;
}

.about-features {
    display: grid;
    gap: 1.25rem;
}

.about-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.about-feature > i {
    font-size: 1.375rem;
    color: var(--accent);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.about-feature h4 {
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.about-feature p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* ========== WHY CHOOSE US ========== */
.why-section {
    padding: 6rem 0;
    background: var(--primary);
}

.why-section .section-tag {
    color: var(--accent);
}

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

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
}

.why-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    transition: all 0.4s ease;
}

.why-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
    border-color: var(--accent);
}

.why-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: rgba(198, 164, 106, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.why-card h3 {
    color: var(--white);
    font-size: 1.1875rem;
    margin-bottom: 0.75rem;
}

.why-card p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9375rem;
    line-height: 1.65;
}

/* ========== PROCESS ========== */
.process-section {
    padding: 6rem 0;
    background: var(--secondary);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.25rem;
    position: relative;
    display: inline-block;
}

.step-connector {
    position: absolute;
    top: 1.75rem;
    left: 60%;
    right: -40%;
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        var(--accent) 0,
        var(--accent) 8px,
        transparent 8px,
        transparent 16px
    );
}

.process-step:last-child .step-connector {
    display: none;
}

.step-content h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    max-width: 240px;
    margin: 0 auto;
}

/* ========== TESTIMONIALS ========== */
.testimonials-section {
    padding: 6rem 0;
    background: var(--white);
}

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

.testimonial-card {
    background: var(--secondary);
    border-radius: var(--radius-lg);
    padding: 2rem 2rem 1.75rem;
    border: 1px solid var(--border);
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.testimonial-stars {
    margin-bottom: 1rem;
    color: var(--accent);
    font-size: 1rem;
    display: flex;
    gap: 0.125rem;
}

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

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

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.testimonial-author h4 {
    font-size: 0.9375rem;
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 0.125rem;
}

.testimonial-author p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

/* ========== FAQ ========== */
.faq-section {
    padding: 6rem 0;
    background: var(--secondary);
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: border-color var(--transition);
}

.faq-item.active {
    border-color: var(--accent);
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: color var(--transition);
}

.faq-question:hover {
    color: var(--accent);
}

.faq-icon {
    font-size: 1.25rem;
    color: var(--accent);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ========== CONTACT ========== */
.contact-section {
    padding: 6rem 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: start;
}

.contact-form-wrapper {
    background: var(--secondary);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 1px solid var(--border);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.contact-form label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

.contact-form label span {
    color: #d93025;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 0.6875rem 0.875rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: max(1rem, 1em);
    color: var(--text);
    background: var(--white);
    transition: border-color var(--transition), background-color var(--transition);
    min-height: 48px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(198, 164, 106, 0.15);
}

/* Validation styles using :user-invalid */
.contact-form :is(input, select, textarea):user-invalid {
    border-color: #d93025;
    background-color: #fce8e6;
}

.contact-form :is(input, select, textarea):user-invalid + .error-msg {
    display: block;
}

.contact-form :is(input, select, textarea):user-valid {
    border-color: #188038;
}

.contact-form .error-msg {
    display: none;
    color: #d93025;
    font-size: 0.8125rem;
    margin-top: 0.125rem;
}

.contact-form textarea {
    resize: vertical;
    min-height: 80px;
}

.form-submit {
    margin-top: 1.5rem;
}

.form-submit .btn {
    width: 100%;
}

.spin {
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.form-status {
    margin-top: 1rem;
    padding: 0;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all var(--transition);
}

.form-status.success {
    padding: 1rem;
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.form-status.error {
    padding: 1rem;
    background: #fce8e6;
    color: #d93025;
    border: 1px solid #ef9a9a;
}

/* Contact Info */
.contact-info-card {
    background: var(--primary);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.contact-info-card h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.contact-info-card > p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9375rem;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-detail {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-detail > i {
    font-size: 1.25rem;
    color: var(--accent);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.contact-detail h4 {
    font-size: 0.875rem;
    font-family: var(--font-body);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.125rem;
}

.contact-detail a,
.contact-detail p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9375rem;
}

.contact-detail a:hover {
    color: var(--accent);
}

.contact-map iframe {
    width: 100%;
    border-radius: var(--radius-md);
}

/* ========== FOOTER ========== */
.footer-section {
    background: var(--primary);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.375rem;
    margin-bottom: 1rem;
}

.footer-logo .brand-text {
    color: var(--white);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    transition: all var(--transition);
}

.footer-social a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

.footer-links h4 {
    color: var(--white);
    font-size: 1.0625rem;
    margin-bottom: 1.25rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-links li a,
.footer-links li span {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9375rem;
    transition: color var(--transition);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.footer-links li a:hover {
    color: var(--accent);
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.875rem;
}

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

.footer-legal a {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.875rem;
    transition: color var(--transition);
}

.footer-legal a:hover {
    color: var(--accent);
}

/* ========== BACK TO TOP ========== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

/* ========== WHATSAPP FLOAT ========== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.625rem;
    z-index: 100;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    transition: all var(--transition);
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    background: #1fb855;
    color: var(--white);
    transform: scale(1.08);
}

@keyframes whatsapp-pulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.6); }
}

/* ========== SCROLL REVEAL ANIMATIONS ========== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* CSS Scroll-Driven Animations (Progressive Enhancement) */
@media (prefers-reduced-motion: no-preference) {
    @supports ((animation-timeline: view()) and (animation-range: entry)) {
        @keyframes fade-slide-in {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
        }

        .service-card,
        .why-card,
        .testimonial-card,
        .process-step {
            animation: fade-slide-in auto ease-out backwards;
            animation-timeline: view();
            animation-range: entry 0% entry 40%;
        }
    }
}

/* ========== RESPONSIVE ========== */

/* Tablet */
@media (max-width: 1023px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-image-accent {
        display: none;
    }

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .step-connector {
        display: none;
    }

    .categories-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile */
@media (max-width: 767px) {
    :root {
        --header-height: 68px;
    }

    .hero-section {
        padding: 100px 0 60px;
        min-height: auto;
    }

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

    .hero-badge {
        margin: 0 auto 1.25rem;
    }

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

    .hero-subtitle {
        font-size: 0.9375rem;
        margin: 0 auto 1.5rem;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: center;
        margin-bottom: 1.5rem;
    }

    .hero-cta-group .btn {
        width: 100%;
        max-width: 320px;
    }

    .hero-trust-pills {
        justify-content: center;
        gap: 0.75rem;
        margin-bottom: 2rem;
    }

    .hero-search-card {
        padding: 1.5rem;
    }

    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .properties-section,
    .categories-section,
    .services-section,
    .about-section,
    .why-section,
    .process-section,
    .testimonials-section,
    .faq-section,
    .contact-section {
        padding: 3.5rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .property-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .contact-info-card {
        padding: 1.75rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }

    /* Mobile nav styles */
    .navbar-collapse {
        background: var(--secondary);
        margin: 0.75rem -0.75rem 0;
        padding: 1.25rem;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-lg);
    }

    .navbar-nav {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.25rem;
        width: 100%;
    }

    .navbar-nav .nav-link {
        color: var(--text);
        padding: 0.625rem 1rem;
        width: 100%;
    }

    .navbar-nav .nav-link::after {
        display: none;
    }

    .nav-cta-wrap {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid var(--border);
        width: 100%;
    }

    .nav-cta {
        display: flex !important;
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .back-to-top {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 42px;
        height: 42px;
    }

    .whatsapp-float {
        bottom: 1.25rem;
        left: 1.25rem;
        width: 48px;
        height: 48px;
        font-size: 1.375rem;
    }

    .property-filters {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 0.5rem;
        gap: 0.375rem;
    }

    .property-filters::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* Large Desktop */
@media (min-width: 1440px) {
    .container {
        max-width: 1320px;
    }
}

/* Small mobile */
@media (max-width: 374px) {
    .hero-title {
        font-size: 1.5rem;
    }

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

    .highlight-number {
        font-size: 1.75rem;
    }
}

/* ========== MODALS & SPECIFICATIONS ========== */
.legal-link {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0;
    transition: color var(--transition);
}

.legal-link:hover {
    color: var(--accent);
}

.modal-content {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
}

.modal-header {
    background: var(--secondary);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 1.75rem;
}

.modal-header .modal-title {
    font-size: 1.5rem;
    color: var(--primary);
}

.modal-body {
    padding: 1.75rem;
}

.modal-footer {
    background: var(--secondary);
    border-top: 1px solid var(--border);
    padding: 1.25rem 1.75rem;
}

.modal-property-img-wrap {
    overflow: hidden;
    border-radius: var(--radius-md);
    aspect-ratio: 16/9;
}

.modal-property-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    background: var(--secondary);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.modal-spec-item {
    display: flex;
    flex-direction: column;
}

.modal-spec-item .spec-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.modal-spec-item .spec-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 0.125rem;
}

.modal-property-desc h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.modal-property-desc p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
}

@media (max-width: 576px) {
    .modal-specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== PRINT ========== */
@media print {
    .navbar-main,
    .back-to-top,
    .whatsapp-float,
    .hero-search {
        display: none !important;
    }

    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
}

