.contact-section h3 {
    color: var(--primary-color);
    font-size: 1.75rem;
    margin-bottom: 0.5em;
}
/*
Theme Name: LAMFBroker Custom Theme
Theme URI: http://localhost:8080
Author: AI Assistant
Description: A custom theme inspired by LAMFBroker.com
Version: 1.3
License: GNU General Public License v2 or later
Text Domain: lamfbroker-theme
*/

:root {
    --primary-color: #0f2b4c;
    --accent-color: #c5a47e;
    --text-color: #2c3038;
    --bg-color: #f3f4f8;
    --surface-color: #ffffff;
    --light-gray: #e8edf4;
    --spacing-lg: 12px;
    --spacing-md: 10px;
    --spacing-sm: 8px;
    --shadow-soft: 0 20px 40px rgba(0,0,0,0.06);
}

/* Screen Reader Text - Accessibility */
.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;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Account for sticky header */
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    line-height: 1.8;
    font-size: 16px;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.site-content {
    background: transparent;
}

main {
    position: relative;
    z-index: 1;
}

/* Global Link Styling */
a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Content area links - more visible styling */
.single-post .entry-content a:not(.btn),
.post-content a:not(.btn),
article .entry-content a:not(.btn),
.blog-post-content a:not(.btn),
.page-content a:not(.btn) {
    color: var(--accent-color);
    text-decoration: underline;
    text-decoration-color: rgba(197, 164, 126, 0.4);
    text-underline-offset: 3px;
    font-weight: 500;
}

.single-post .entry-content a:not(.btn):hover,
.post-content a:not(.btn):hover,
article .entry-content a:not(.btn):hover,
.blog-post-content a:not(.btn):hover,
.page-content a:not(.btn):hover {
    color: var(--primary-color);
    text-decoration-color: var(--primary-color);
}

/* Button links should not have underlines */
a.btn,
.btn a,
a.btn-primary,
a.btn-secondary {
    text-decoration: none !important;
}

/* Navigation links */
.main-navigation a,
.footer-links a,
nav a {
    text-decoration: none;
}

/* Breadcrumbs */
.breadcrumbs {
    background: var(--bg-color);
    padding: 15px 0;
    border-bottom: 1px solid var(--light-gray);
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.85rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--accent-color);
}

.breadcrumb-separator {
    margin: 0 10px;
    color: #999;
    font-size: 0.9em;
}

.breadcrumb-current span {
    color: var(--accent-color);
    font-weight: 500;
}

@media (max-width: 768px) {
    .breadcrumbs {
        padding: 12px 0;
    }
    
    .breadcrumb-list {
        font-size: 0.8rem;
    }
    
    .breadcrumb-separator {
        margin: 0 6px;
    }
    
    /* Truncate long titles on mobile */
    .breadcrumb-current span {
        max-width: 200px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: inline-block;
    }
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 0.5em;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background-color: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(15,43,76,0.06);
    padding: 16px 0;
    transition: all 0.3s ease;
    box-shadow: 0 1px 10px rgba(15,43,76,0.05);
}

.site-header .container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    position: relative;
    gap: 40px;
    max-width: 1400px;
}

.site-branding {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.site-branding h1 {
    margin: 0;
    line-height: 1;
}

.site-branding a {
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 0;
}

.site-branding a:hover {
    transform: translateX(2px);
}

.site-branding a:hover .brand-monogram {
    background: var(--accent-color);
    color: white;
    transform: scale(1.05);
}

.brand-monogram {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 43, 76, 0.08);
    border: 1.5px solid var(--accent-color);
    border-radius: 4px;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    flex-shrink: 0;
    line-height: 1;
    padding-bottom: 6px; /* Lift text visually */
}

.brand-name {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    gap: 1px;
}

.brand-first {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 2px;
    color: var(--primary-color);
    text-transform: uppercase;
    opacity: 0.85;
}

.brand-last {
    font-weight: 700;
    font-size: 1.85rem;
    letter-spacing: 0.5px;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    margin-top: -2px;
}

.nav-cta {
    display: inline-flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
    white-space: nowrap;
}

.btn-header {
    display: inline-block;
    flex-shrink: 0;
    padding: 12px 24px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.25s ease;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 18px;
    justify-content: center;
    flex-wrap: nowrap;
}

.main-navigation li {
    margin: 0;
    position: relative;
}

.main-navigation a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 8px 0;
    position: relative;
    transition: color 0.25s ease;
    white-space: nowrap;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 4px;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.main-navigation .current-menu-item > a::after {
    transform: scaleX(1);
}

.main-navigation .current-menu-item > a {
    color: var(--accent-color);
}

.main-navigation a:hover {
    color: var(--accent-color);
}

.main-navigation a:hover::after {
    transform: scaleX(1);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: auto;
    min-height: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 0 18px;
    color: white;
    background: linear-gradient(135deg, rgba(15,43,76,0.95), rgba(15,43,76,0.75) 60%, rgba(193,164,126,0.5));
}

.hero-section .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,43,76,0.6) 0%, rgba(15,43,76,0.8) 100%);
    z-index: 1;
    backdrop-filter: blur(0px);
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-content .eyebrow {
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 16px;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.4rem, 5vw, 3.2rem);
    line-height: 1.1;
    color: white;
    margin-bottom: 12px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-content h1 span {
    font-weight: 400;
    font-style: italic;
}

.hero-subtext {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
    font-weight: 300;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 0 auto;
    width: 100%;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 32px;
    border-radius: 0;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn-primary,
.btn-header,
.about-btn-primary,
.custom-contact-form button[type="submit"] {
    background-color: var(--accent-color);
    border: 1px solid var(--accent-color);
    color: white;
    box-shadow: none;
}

.btn-primary:hover,
.btn-header:hover,
.about-btn-primary:hover,
.custom-contact-form button[type="submit"]:hover {
    background-color: #b08d65;
    border-color: #b08d65;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid rgba(255,255,255,0.5);
    color: white;
}

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

/* Sections Generic */
section {
    padding: var(--spacing-lg) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
    margin-bottom: 0;
    letter-spacing: -0.5px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--accent-color);
}

.section-header p {
    font-size: 1.1rem;
    color: #6b7387;
    margin-top: 8px;
    text-transform: none;
    letter-spacing: 0px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

section {
    position: relative;
    z-index: 1;
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
}

/* Services grid tablet breakpoint */
@media (max-width: 900px) {
    .grid-layout.services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Services */
.services-section {
    padding: 10px 0 60px;
    background: linear-gradient(180deg, #ffffff 0%, #f2f4f8 100%);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(0,0,0,0.04);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.services-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 20%, rgba(197,164,126,0.12), transparent 55%),
                      radial-gradient(circle at 80% 0%, rgba(15,43,76,0.04), transparent 45%);
    opacity: 0.6;
    pointer-events: none;
}

.services-section .container {
    position: relative;
    z-index: 1;
}

.service-card {
    text-align: center;
    padding: 24px;
    background: white;
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: 4px;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
    border-color: rgba(0,0,0,0.02);
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    width: 64px;
    height: 64px;
    display: block;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.service-card p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Transactions */
.transactions-section {
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(236,238,245,0.9));
    padding: var(--spacing-lg) 0;
}

.transactions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

/* Property Filter Buttons */
.property-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
}

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

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

@media (max-width: 480px) {
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.75rem;
    }
}

.transaction-card {
    background: var(--surface-color);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.transaction-card-link {
    height: 100%;
}

.transaction-image-placeholder {
    height: 240px; /* Enforce aspect ratio feel */
    background-size: cover;
    border-bottom: 1px solid rgba(15,43,76,0.05);
    background: #f0f2f7;
}

.transaction-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.transaction-image-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #7c8290;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.transaction-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-soft);
}

.transaction-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.transaction-card-link:hover .transaction-card {
    transform: translateY(-8px);
    box-shadow: var(--shadow-soft);
}

.transaction-details {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.transaction-details h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
    font-weight: 600;
}

.transaction-details .location {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.transaction-details .price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
}

.transaction-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: auto;
}

.transaction-meta .status {
    font-size: 0.75rem;
    background: var(--accent-color);
    color: white;
    padding: 6px 14px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.transaction-meta .status.status-closed,
.property-meta-bar .status.status-closed {
    background: #8b7355;
    color: white;
}

.transaction-meta .status.status-active,
.property-meta-bar .status.status-active {
    background: #6b9b6b;
    color: white;
}

/* Single property page status badge */
.property-meta-bar .status {
    font-size: 0.85rem;
    background: #eee;
    padding: 5px 15px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

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

.property-gallery-item {
    border-radius: 4px;
    overflow: hidden;
}

.property-gallery-item--featured {
    grid-column: span 2;
}

.property-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* Insights */
.insights-section {
    padding: var(--spacing-lg) 0;
}

.insight-card {
    padding: 20px;
    border-left: 3px solid var(--accent-color);
    background: #fafafa;
}

.insight-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.insight-card p {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
}

/* Featured In */
.featured-in-section {
    background: #ffffff;
    padding: 60px 0;
    border-top: 1px solid rgba(15,43,76,0.08);
    border-bottom: 1px solid rgba(15,43,76,0.08);
}

.featured-in-section .logo-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 10px 5px 20px;
}

@media (max-width: 768px) {
    /* ... */
}

.featured-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
    scroll-snap-align: center;
    padding: 0 10px;
}

.featured-logo img {
    max-height: 70px;
    width: auto;
    max-width: 100%;
    height: auto;
    display: block;
    transition: all 0.3s ease;
    filter: grayscale(100%);
    opacity: 0.4; /* Makes black logos look light grey */
    mix-blend-mode: multiply; /* Hides white backgrounds */
}

.featured-logo img:hover {
    transform: scale(1.05);
    filter: none;
    opacity: 1;
    mix-blend-mode: normal;
}

.testimonials-section {
    background: var(--bg-color);
    padding: var(--spacing-lg) 0;
}

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

.testimonial-card {
    background: var(--surface-color);
    padding: 30px;
    border-radius: 6px;
    border: 1px solid rgba(15,43,76,0.1);
    box-shadow: 0 10px 30px rgba(15,43,76,0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(15,43,76,0.15);
}

.testimonial-quote {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #373a45;
    font-style: italic;
}

.testimonial-author {
    margin-top: 24px;
}

.testimonial-author strong {
    color: var(--primary-color);
    font-size: 1rem;
}

.testimonial-author span {
    color: #7c8290;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 1031 Exchanges */
.exchange-hero {
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}

.exchange-hero h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.exchange-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 40px;
}

.exchange-timeline {
    position: relative;
    padding-left: 30px;
    margin: 40px 0 60px;
    border-left: 2px solid #e1e6ed;
}

.exchange-step {
    position: relative;
    margin-bottom: 35px;
}

.exchange-step:last-child {
    margin-bottom: 0;
}

.exchange-step::before {
    content: '';
    position: absolute;
    left: -36px; /* Adjust based on padding and border width */
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 3px solid white;
    box-shadow: 0 0 0 1px #e1e6ed;
}

.exchange-step h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 0 0 5px;
}

.exchange-step p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

.exchange-cta-box {
    background: var(--primary-color);
    color: white;
    padding: 40px;
    text-align: center;
    border-radius: 4px;
    margin-top: 40px;
}

.exchange-cta-box h3 {
    color: white;
    margin-bottom: 15px;
}

.exchange-cta-box p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 25px;
}

/* Contact Form */
.contact-section {
    background: var(--bg-color);
    padding: var(--spacing-lg) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    align-items: start;
}

.contact-info {
    background: var(--surface-color);
    border-radius: 8px;
    padding: 30px 25px;
    box-shadow: 0 10px 25px rgba(15,43,76,0.05);
    border: 1px solid rgba(15,43,76,0.08);
}

.contact-info h3 {
    margin-top: 0;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.contact-info p {
    color: #626673;
    line-height: 1.6;
    margin-bottom: 18px;
}

.contact-info .info-item {
    margin-bottom: 12px;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    column-gap: 6px;
    color: #444;
}

.contact-info .info-item strong {
    min-width: 80px;
    color: var(--accent-color);
    font-weight: 600;
}

.contact-form-wrapper {
    background: var(--surface-color);
    border-radius: 6px;
    padding: 50px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,0.03);
}

.custom-contact-form .form-group {
    margin-bottom: 24px;
}

.custom-contact-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
}

.custom-contact-form input,
.custom-contact-form textarea {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #e1e6ed;
    border-radius: 2px;
    font-family: inherit;
    background: #fafafa;
    color: var(--text-color);
    font-size: 1rem;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.custom-contact-form input:focus,
.custom-contact-form textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(197,164,126,0.15);
}

.custom-contact-form .btn {
    width: 100%;
    margin-top: 12px;
    text-align: center;
}

.page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 15px 40px;
}

.page-header {
    margin-bottom: 18px;
    text-align: left;
}

.page-header .page-title {
    margin: 0;
}

.page-content > *:first-child {
    margin-top: 0;
}

.rent-roll-section {
    background: #f9fafc;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 1px solid rgba(15,43,76,0.08);
}

.rent-roll-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.rent-roll-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 10px;
    align-items: center;
}

.rent-roll-row input {
    background: #ffffff;
    border: 1px solid rgba(15,43,76,0.15);
    color: #1f1f1f;
}

.rent-roll-row input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(197,164,126,0.2);
}

.rent-roll-remove {
    background: transparent;
    border: 1px solid rgba(15,43,76,0.2);
    color: rgba(15,43,76,0.4);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.rent-roll-remove:hover {
    border-color: #e53e3e;
    color: #e53e3e;
    background: rgba(229,62,62,0.05);
}

.rent-roll-add {
    background: white;
    border: 1px dashed var(--accent-color);
    color: var(--accent-color);
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rent-roll-add:hover {
    background: var(--accent-color);
    color: white;
    border-style: solid;
}

/* About Page - Hero with Headshot */
.about-hero-with-headshot {
    display: flex;
    align-items: stretch;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a3d5c 100%);
    margin: -40px -40px 50px -40px;
    padding: 0;
    overflow: hidden;
    min-height: 480px; /* Ensure minimum height for breathing room */
}

.about-hero-content-wrapper {
    display: flex;
    align-items: stretch;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

.about-hero-headshot {
    flex-shrink: 0;
    display: flex;
    align-items: flex-end; /* Push image to bottom */
    order: 1; /* LEFT side */
    padding-top: 40px; /* Add spacing above headshot */
}

.about-hero-headshot img {
    height: 420px;
    width: auto;
    object-fit: contain;
    object-position: bottom center;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
}

.about-hero-text {
    color: white;
    order: 2; /* RIGHT side */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically center text relative to container */
    padding: 60px 0 60px 50px;
    text-align: left;
}

.about-hero-text h1 {
    font-size: 3.2rem;
    margin: 0 0 15px;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.1;
    color: white;
    font-family: 'Playfair Display', serif;
}

.about-hero-subtitle {
    display: block;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.about-hero-license {
    display: block;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
}

.about-bio {
    margin-bottom: 50px;
}

.about-bio p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #4a4f55;
    max-width: 800px;
}

.about-section-label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(15,43,76,0.1);
}

.about-approach {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.about-what-matters {
    background: var(--primary-color);
    color: white;
    padding: 35px;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(15,43,76,0.15);
}

.about-what-matters h3 {
    color: white;
    font-size: 1.4rem;
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.about-what-matters ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-what-matters ul li {
    margin-bottom: 12px;
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    line-height: 1.6;
}

.about-description p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #4a4f55;
    margin: 0;
}

.about-cta {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 50px;
    border-radius: 4px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
}

.about-cta h3 {
    font-size: 1.8rem;
    margin: 0 0 10px;
    color: var(--primary-color);
}

.about-cta p {
    color: #666;
    font-size: 1.1rem;
    margin: 0 0 25px;
}

.about-cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.about-cta-buttons .btn-primary,
.about-cta-buttons .btn-secondary {
    padding: 14px 30px;
    border-radius: 0;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.about-cta-buttons .btn-primary {
    background: var(--accent-color);
    border: 1px solid var(--accent-color);
    color: white;
}

.about-cta-buttons .btn-primary:hover {
    background: #b08d65;
    border-color: #b08d65;
    transform: translateY(-2px);
}

.about-cta-buttons .btn-secondary {
    background: white;
    border: 1px solid #dce0e6;
    color: var(--primary-color);
}

.about-cta-buttons .btn-secondary:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Mobile responsive for about hero */
/* Tablet Large (1024px - iPad Pro, Surface Pro) */
@media (max-width: 1024px) {
    .about-hero-content-wrapper {
        max-width: 900px;
        padding: 0 30px;
    }
    
    .about-hero-headshot img {
        height: 380px;
    }
    
    .about-hero-text h1 {
        font-size: 2.8rem;
    }
    
    .about-hero-text {
        padding: 50px 0 50px 40px;
    }
}

/* Tablet Medium (768px - iPad, Galaxy Tab) */
@media (max-width: 768px) {
    .about-hero-with-headshot {
        padding: 0;
        margin: 0 0 40px 0;
    }
    
    .about-hero-content-wrapper {
        padding: 0 20px;
        gap: 20px;
    }
    
    .about-hero-headshot img {
        height: 320px;
    }
    
    .about-hero-text {
        padding: 40px 0 40px 20px;
    }
    
    .about-hero-text h1 {
        font-size: 2.2rem;
    }
    
    .about-hero-subtitle {
        font-size: 0.8rem;
        letter-spacing: 2px;
    }
    
    .about-approach {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-cta {
        padding: 35px 25px;
    }
    
    .about-cta h3 {
        font-size: 1.5rem;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    .about-hero-with-headshot {
        padding: 0;
    }
    
    .about-hero-content-wrapper {
        padding: 0 15px;
        gap: 15px;
    }
    
    .about-hero-headshot img {
        height: 240px;
    }
    
    .about-hero-text {
        padding: 30px 0 30px 15px;
    }
    
    .about-hero-text h1 {
        font-size: 1.6rem;
    }
    
    .about-hero-subtitle {
        font-size: 0.7rem;
        letter-spacing: 1.5px;
    }
    
    .about-hero-license {
        font-size: 0.8rem;
    }
}

.about-hero {
    text-align: left;
    padding: 40px 0 30px;
    border-bottom: 1px solid rgba(15,43,76,0.1);
    margin-bottom: 40px;
}

.about-hero .about-title {
    font-size: 3.5rem;
    margin: 0 0 10px;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.1;
}

.about-hero .about-subtitle {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 15px;
    display: block;
}

.about-hero .about-credentials {
    font-size: 0.95rem;
    color: #6b7387;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
}

.about-section {
    margin-bottom: 40px;
}

.about-section-title {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary-color);
    margin-bottom: 20px;
    border-left: 3px solid var(--accent-color);
    padding-left: 15px;
}

.about-rich-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a4f55;
    max-width: 600px;
    margin: 0 auto;
}

.about-rich-text p {
    margin-bottom: 1.5em;
}

.about-highlight-strip {
    display: flex;
    gap: 16px;
    border-top: 1px solid #e1e6ed;
    border-bottom: 1px solid #e1e6ed;
    padding: 10px 0;
    flex-wrap: wrap;
}

.about-highlight-strip h4 {
    font-size: 1rem;
    color: var(--primary-color);
    margin: 0;
}

.about-highlight-strip > div {
    flex: 1;
    min-width: 140px;
}

.about-dual-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 20px;
    align-items: stretch;
}

.faq-dual-section {
    grid-template-columns: 1.2fr 2fr;
    align-items: flex-start;
}

.about-dual-section .panel-dark {
    background: var(--primary-color);
    color: white;
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(15,43,76,0.15);
}

.about-dual-section .panel-dark h3 {
    color: white;
    font-size: 1.6rem;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
}

.about-dual-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-dual-section ul li {
    margin-bottom: 18px;
    padding-left: 28px;
    position: relative;
    color: rgba(255,255,255,0.9);
    font-size: 1.05rem;
}

.about-dual-section ul li::before {
    content: '•';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    top: -2px;
    font-size: 1.5rem;
    line-height: 1;
}

.about-cta-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 20px;
    border-radius: 8px;
    text-align: center;
    margin-top: 60px;
    border: 1px solid rgba(0,0,0,0.05);
}

.about-cta-section h3 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.about-cta-section p {
    color: #666;
    font-size: 1.15rem;
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.about-cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.about-btn {
    padding: 14px 30px;
    border-radius: 0;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.about-btn-primary {
    background: var(--accent-color);
    border: 1px solid var(--accent-color);
    color: white;
}

.about-btn-primary:hover {
    background: #b08d65;
    border-color: #b08d65;
    transform: translateY(-2px);
}

.about-btn-secondary {
    background: white;
    border: 1px solid #dce0e6;
    color: var(--primary-color);
}

.about-btn-secondary:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-small {
    background: transparent;
    border: 1px dashed rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.8);
    padding: 6px 12px;
    cursor: pointer;
    font-size: 0.75rem;
    text-transform: uppercase;
    transition: all 0.2s;
}

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

.contact-form-wrapper button[type="submit"] {
    width: 100%;
    margin-top: 10px;
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.contact-form-wrapper button[type="submit"]:hover {
    background-color: #b08d65;
    border-color: #b08d65;
    color: white;
}

.contact-alert {
    background: rgba(255,255,255,0.1);
    padding: 12px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.15);
}
.contact-alert.contact-success {
    border-color: rgba(0,255,150,0.6);
}

.contact-alert.contact-error {
    border-color: rgba(255,120,120,0.6);
}

/* Footer */
.site-footer {
    background-color: #05101a;
    color: #8890a0;
    padding: 100px 0 40px;
    font-size: 0.9rem;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Responsive Adjustments */

/* Tablet nav adjustments (900px - 1200px) - tighter spacing */
@media (max-width: 1200px) and (min-width: 901px) {
    .site-header .container {
        gap: 20px;
    }
    
    .main-navigation ul {
        gap: 12px;
    }
    
    .main-navigation a {
        font-size: 0.65rem;
        letter-spacing: 0.3px;
    }
    
    .nav-cta .btn-header {
        padding: 8px 14px;
        font-size: 0.7rem;
    }
    
    .brand-monogram {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .brand-first {
        font-size: 0.6rem;
    }
    
    .brand-last {
        font-size: 1.1rem;
    }
}

/* Header Mobile Nav - kicks in at 900px */
@media (max-width: 900px) {
    .site-header {
        padding: 15px 24px;
        margin-bottom: 0;
    }

    .site-header .container {
        display: flex;
        flex-direction: row;
        gap: 0;
        align-items: center;
        justify-content: space-between;
        position: relative;
        padding: 0;
    }

    .site-branding {
        flex: 0 0 auto;
        margin: 0;
    }

    .menu-toggle {
        display: block;
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        background: rgba(15,43,76,0.08);
        border: 1px solid rgba(15,43,76,0.2);
        border-radius: 4px;
        width: 44px;
        height: 36px;
        margin: 0;
        order: 2;
    }

    .main-navigation {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: white;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 15px 0;
        z-index: 1000;
        order: 3;
    }

    .main-navigation.toggled {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .main-navigation ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .main-navigation li {
        margin: 10px 0;
        width: auto;
    }

    .main-navigation a {
        text-align: center;
        display: block;
        width: 100%;
    }

    .nav-cta {
        display: flex;
        order: 2;
        margin-left: auto;
        margin-right: 15px;
    }
    
    .nav-cta .btn-header {
        padding: 10px 20px;
        font-size: 0.85rem;
        width: auto;
    }
    
    .menu-toggle {
        order: 3;
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 0 16px;
    }

    .btn-header {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
        font-size: 0.75rem;
        margin-bottom: 0;
    }

    .hero-content {
        padding: 24px 10px;
    }


    .hero-cta-group {
        flex-direction: column;
    }

    .hero-cta-group .btn {
        width: 100%;
        padding: 14px 0;
        text-align: center;
    }

    .transactions-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 18px;
    }

    .service-card,
    .testimonial-card {
        padding: 20px;
    }

    .contact-form-wrapper {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .grid-layout,
    .transactions-grid,
    .services-section .container, 
    .contact-grid {
        display: grid;
        grid-template-columns: 1fr;
        row-gap: 15px; /* Ensure stacked cards don't touch */
    }

    .hero-section {
        min-height: 300px;
        padding: 0;
        margin-top: 0;
    }

    .menu-toggle {
        display: block;
        position: relative;
        background: rgba(15,43,76,0.08);
        border: 1px solid rgba(15,43,76,0.2);
        border-radius: 4px;
        width: 44px;
        height: 36px;
        margin: 0;
        order: 2;
    }

    .site-header .container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
    }

    .site-branding {
        flex: 0 0 auto;
        margin: 0;
        order: 1;
    }

    .main-navigation {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: white;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 15px 0;
        order: 3;
    }

    .main-navigation.toggled {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .main-navigation ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .main-navigation li {
        margin: 10px 0;
        width: auto;
    }

    .main-navigation a {
        text-align: center;
        display: block;
    }
    
    .nav-cta {
        display: none;
    }

    .btn-header {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-cta-group {
        flex-direction: column;
    }

    .property-gallery-item--featured {
        grid-column: span 1;
    }

    .about-cta-buttons {
        flex-direction: column;
    }

    .about-bio-grid {
        grid-template-columns: 1fr;
    }

    .about-services-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        margin-bottom: 30px;
        padding-right: 0;
    }
    
    .site-branding a {
        gap: 14px;
    }
    
    .brand-monogram {
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
    }
    
    .brand-first {
        font-size: 0.85rem;
        letter-spacing: 1.5px;
    }
    
    .brand-last {
        font-size: 1.6rem;
    }
    
    .featured-in-section {
        padding: 40px 0;
    }

    /* Mobile Optimization for About & 1031 Pages */
    .about-dual-section {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .about-dual-section .panel-dark {
        margin-bottom: 30px;
        padding: 30px 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .exchange-timeline {
        display: flex;
        flex-direction: column;
        padding-left: 0;
        border-left: none;
        margin: 30px 0;
    }

    .exchange-step::before {
        display: none;
    }

    /* Ensure all WP columns stack on mobile */
    .wp-block-columns {
        flex-wrap: wrap !important;
        display: flex;
    }
    
    .wp-block-column {
        flex-basis: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 30px;
    }
    
    .wp-block-column:last-child {
        margin-bottom: 0;
    }

    /* End of 1024px block content for other elements */
}

@media (max-width: 900px) {
    .featured-in-section .logo-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
        padding: 10px 0 20px;
        overflow-x: visible;
    }

    .featured-logo {
        flex: 0 0 calc(50% - 15px);
        height: 80px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .featured-logo img {
        max-height: 50px;
        max-width: 100%;
        width: auto;
    }
}
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .rent-roll-row {
        grid-template-columns: 1fr;
    }

    .section-header {
        margin-bottom: 24px;
    }

    .section-header h2 {
        font-size: clamp(1.6rem, 6vw, 2rem);
    }


@media (max-width: 600px) {
    .container {
        padding: 0 16px;
    }

    .site-header {
        padding: 15px 24px;
        margin-bottom: 0;
    }

    .site-header .container {
        display: flex;
        flex-direction: row;
        gap: 0;
        align-items: center;
        justify-content: space-between;
        position: relative;
        padding: 0;
    }

    .site-branding {
        flex: 0 0 auto;
        margin: 0;
    }

    .site-branding a {
        gap: 10px;
    }

    .brand-monogram {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    .brand-first {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }

    .brand-last {
        font-size: 1.4rem;
    }

    .menu-toggle {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: 40px;
        height: 40px;
        margin: 0;
        order: 2;
    }

    .main-navigation {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: white;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 15px 0;
        z-index: 1000;
    }

    .main-navigation.toggled {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .main-navigation ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .main-navigation li {
        margin: 10px 0;
        width: auto;
    }

    .main-navigation a {
        text-align: center;
        display: block;
        width: 100%;
    }

    .nav-cta {
        display: none;
    }

    .btn-header {
        width: 100% !important;
        max-width: 100% !important;
        text-align: center;
        padding: 16px 20px; /* Slightly more padding for touch target */
        font-size: 0.8rem; /* Slightly larger text */
        margin-bottom: 0;
        box-sizing: border-box !important;
        white-space: normal;
        display: block;
        border-radius: 0; /* Remove border radius for edge-to-edge look */
        border-left: none;
        border-right: none;
    }

    .about-cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 10px;
        overflow: hidden;
    }

    .about-cta-buttons .wp-block-button {
        width: 100% !important;
        margin-bottom: 10px;
    }
    
    .about-cta-buttons .wp-block-button__link {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        display: block !important;
        text-align: center;
        white-space: normal;
        padding: 12px 15px;
    }

    .hero-section {
        min-height: 310px;
        padding: 0;
        margin-top: 0;
    }

    .hero-content {
        padding: 20px 16px;
    }

    .hero-content .eyebrow {
        font-size: 0.7rem;
        letter-spacing: 2px;
        margin-bottom: 12px;
    }

    .hero-content h1 {
        font-size: clamp(1.8rem, 8vw, 2.4rem);
        margin-bottom: 16px;
        line-height: 1.2;
    }

    .hero-subtext {
        font-size: 0.9rem;
        margin-bottom: 24px;
    }

    .hero-cta-group {
        gap: 12px;
        justify-content: center;
        align-items: center;
    }

    .hero-cta-group .btn {
        padding: 14px 0;
        font-size: 0.75rem;
        letter-spacing: 1px;
        width: 100%;
        box-sizing: border-box;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .section-header h2 {
        font-size: clamp(1.5rem, 6vw, 2rem);
        padding-bottom: 10px;
    }

    .section-header p {
        font-size: 0.95rem;
        margin-top: 8px;
    }

    .service-card {
        padding: 24px 20px;
        text-align: center;
    }

    .service-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 16px;
    }

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

    .service-card h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .service-card p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .transactions-grid {
        gap: 16px;
    }

    .transaction-card {
        margin: 0;
    }

    .transaction-image-placeholder {
        height: 220px;
    }

    .transaction-details {
        padding: 20px;
    }

    .transaction-details h4 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .transaction-details .location {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }

    .transaction-meta {
        padding-top: 10px;
        margin-top: 10px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .transaction-meta .price {
        font-size: 0.95rem;
    }

    .transaction-meta .status {
        font-size: 0.65rem;
        padding: 3px 8px;
    }

    .testimonials-section {
        padding: 40px 0;
    }

    .testimonials-grid {
        gap: 16px;
    }

    .testimonial-card {
        padding: 24px 20px;
    }

    .testimonial-quote {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .testimonial-author {
        margin-top: 16px;
    }

    .testimonial-author strong {
        font-size: 0.9rem;
    }

    .testimonial-author span {
        font-size: 0.75rem;
    }

    .featured-in-section {
        padding: 40px 0;
        overflow: hidden;
    }

    .featured-in-section .logo-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
        padding: 10px 0 20px;
        overflow-x: visible;
    }

    .featured-in-section .logo-grid::-webkit-scrollbar {
        display: none;
    }

    .featured-in-section .logo-grid::-webkit-scrollbar-track {
        display: none;
    }

    .featured-in-section .logo-grid::-webkit-scrollbar-thumb {
        display: none;
    }

    .featured-logo {
        flex: 0 0 calc(50% - 15px);
        scroll-snap-align: start;
        height: 80px;
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .featured-logo img {
        max-height: 50px;
        max-width: 120px;
    }

    .contact-section {
        padding: 40px 0;
    }

    .contact-info,
    .contact-form-wrapper {
        padding: 24px 20px;
    }

    .contact-info h3 {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    .contact-info p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .contact-info .info-item {
        font-size: 0.85rem;
        margin-bottom: 10px;
        flex-wrap: wrap;
    }

    .contact-info .info-item strong {
        min-width: 70px;
        font-size: 0.85rem;
    }

    .custom-contact-form label {
        font-size: 0.75rem;
        margin-bottom: 6px;
    }

    .custom-contact-form input,
    .custom-contact-form textarea {
        padding: 14px 16px;
        font-size: 0.95rem;
    }

    .custom-contact-form .btn {
        width: 100%;
        margin-top: 10px;
    }

    .contact-form-wrapper button[type="submit"] {
        font-size: 0.85rem;
        padding: 14px 24px;
    }

    .site-footer {
        padding: 60px 0 30px;
        font-size: 0.85rem;
    }

    .footer-grid {
        gap: 30px;
    }

    .page-hero {
        min-height: 160px;
        padding: 30px 0;
        margin-bottom: 30px;
    }

    .page-hero h1 {
        font-size: clamp(1.6rem, 7vw, 2rem);
        padding: 0 16px;
    }
}

/* Extra small mobile devices (320px and below) */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }

    .brand-monogram {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .brand-first {
        font-size: 0.7rem;
    }

    .brand-last {
        font-size: 1.25rem;
    }

    .hero-content h1 {
        font-size: clamp(1.6rem, 9vw, 2rem);
    }

    .section-header h2 {
        font-size: clamp(1.4rem, 7vw, 1.8rem);
    }

    .service-card,
    .testimonial-card,
    .transaction-details {
        padding: 18px 16px;
    }

    .featured-logo img {
        max-height: 45px;
        max-width: 100px;
    }

    .btn {
        padding: 11px 20px;
        font-size: 0.7rem;
    }

    .contact-info,
    .contact-form-wrapper {
        padding: 20px 16px;
    }
}

/* Floating CTA */
.floating-cta {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--accent-color);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 9999;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.floating-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

/* Floating CTA removed on mobile - header button is sufficient */

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for grid items */
.grid-layout > .fade-in-up:nth-child(1) { transition-delay: 0.1s; }
.grid-layout > .fade-in-up:nth-child(2) { transition-delay: 0.2s; }
.grid-layout > .fade-in-up:nth-child(3) { transition-delay: 0.3s; }
.grid-layout > .fade-in-up:nth-child(4) { transition-delay: 0.4s; }
.grid-layout > .fade-in-up:nth-child(5) { transition-delay: 0.5s; }
.grid-layout > .fade-in-up:nth-child(6) { transition-delay: 0.6s; }


/* Inner Page Hero */
.page-hero {
    position: relative;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(15,43,76,0.95), rgba(15,43,76,0.75) 60%, rgba(193,164,126,0.5));
    color: white;
    text-align: center;
    padding: 0;
    margin-bottom: 40px;
    /* Ensure it breaks out of any container limits if inside one */
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

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

.page-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: white;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    line-height: 1.1;
}

.page-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,43,76,0.6) 0%, rgba(15,43,76,0.8) 100%);
    z-index: 1;
    backdrop-filter: blur(0px);
}

/* Adjust responsive size */
@media (max-width: 768px) {
    .page-hero {
        min-height: 180px;
    }
    .page-hero h1 {
        font-size: 2rem;
    }
}

/* ==========================================================================
   BLOG STYLES
   ========================================================================== */

/* Blog Hero */
.page-hero--blog {
    min-height: auto;
    padding: 50px 0 !important;
    align-items: flex-start;
}

.page-hero--blog h1 {
    font-size: 2.4rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero-subtitle {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    margin-top: 12px;
    font-weight: 300;
}

.blog-category-badge {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.blog-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
}

.blog-separator {
    opacity: 0.5;
}

/* Blog Archive Grid */
.blog-archive {
    padding-bottom: 80px;
}

.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid var(--light-gray);
    border-radius: 30px;
    background: white;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

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

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

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

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card-image {
    height: 200px;
    overflow: hidden;
    background: var(--light-gray);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

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

.placeholder-icon {
    color: rgba(255,255,255,0.3);
}

.blog-card-content {
    padding: 24px;
}

.blog-card-category {
    display: inline-block;
    color: var(--accent-color);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.blog-card-title {
    font-size: 1.25rem;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.blog-card-excerpt {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.blog-card-date {
    color: #999;
}

.blog-card-read {
    color: var(--accent-color);
    font-weight: 500;
}

/* Blog Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 60px;
}

.blog-pagination a,
.blog-pagination span {
    padding: 10px 16px;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.blog-pagination a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.blog-pagination .current {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Blog Newsletter CTA */
.blog-newsletter-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--primary-color), rgba(15,43,76,0.9));
    padding: 40px 50px;
    border-radius: 12px;
    color: white;
}

.newsletter-content h3 {
    color: white;
    margin-bottom: 8px;
    font-size: 1.5rem;
}

.newsletter-content p {
    opacity: 0.85;
    margin: 0;
}

/* Single Blog Post */
.blog-single {
    padding-bottom: 80px;
}

.blog-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 50px;
    align-items: start;
}

.blog-content {
    max-width: 100%;
}

.blog-featured-image {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
}

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

.blog-body {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-color);
}

.blog-body h2 {
    font-size: 1.75rem;
    margin-top: 50px;
    margin-bottom: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
}

.blog-body h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.blog-body h3 {
    font-size: 1.35rem;
    margin-top: 35px;
    margin-bottom: 15px;
}

.blog-body p {
    margin-bottom: 1.5em;
}

.blog-body ul,
.blog-body ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.blog-body li {
    margin-bottom: 0.5em;
}

.blog-body strong {
    color: var(--primary-color);
}

.blog-body blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 24px;
    margin: 30px 0;
    font-style: italic;
    color: #555;
}

/* Blog Tags */
.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--light-gray);
}

.tags-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-right: 5px;
}

.blog-tag {
    padding: 6px 14px;
    background: var(--light-gray);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

.blog-tag:hover {
    background: var(--primary-color);
    color: white;
}

/* Author Box */
.blog-author-box {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-top: 50px;
    padding: 30px;
    background: var(--bg-color);
    border-radius: 12px;
}

.author-avatar {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.author-initials {
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.author-info {
    flex: 1;
}

.author-name {
    margin-bottom: 4px;
    font-size: 1.2rem;
}

.author-title {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 12px;
    font-weight: 500;
}

.author-bio {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Blog CTA Box */
.blog-cta-box {
    margin-top: 50px;
    padding: 40px;
    background: linear-gradient(135deg, var(--primary-color), rgba(15,43,76,0.9));
    border-radius: 12px;
    color: white;
    text-align: center;
}

.blog-cta-box h3 {
    color: white;
    margin-bottom: 12px;
}

.blog-cta-box p {
    opacity: 0.9;
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.blog-cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.blog-cta-buttons .btn-outline {
    border-color: white;
    color: white;
}

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

/* Post Navigation */
.blog-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 50px;
}

.post-nav-link {
    padding: 20px;
    background: white;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.post-nav-link:hover {
    border-color: var(--accent-color);
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.post-nav-next {
    text-align: right;
}

.nav-label {
    display: block;
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 6px;
}

.nav-title {
    display: block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Blog Sidebar */
.blog-sidebar {
    position: sticky;
    top: 120px;
}

.sidebar-widget {
    background: white;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-soft);
}

.sidebar-widget h4 {
    font-size: 1rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent-color);
}

/* Table of Contents */
.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item {
    margin-bottom: 10px;
}

.toc-item a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
    display: block;
    transition: color 0.2s ease;
}

.toc-item a:hover {
    color: var(--accent-color);
}

.toc-item--sub {
    padding-left: 16px;
}

.toc-item--sub a {
    font-size: 0.85rem;
    color: #666;
}

/* Sidebar CTA */
.sidebar-cta {
    background: linear-gradient(135deg, var(--primary-color), rgba(15,43,76,0.9));
    color: white;
}

.sidebar-cta h4 {
    color: white;
    border-bottom-color: var(--accent-color);
}

.sidebar-cta p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 16px;
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.85rem;
}

/* Related Posts */
.related-post-link {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--light-gray);
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.related-post-link:last-child {
    border-bottom: none;
}

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

.no-related {
    color: #999;
    font-size: 0.9rem;
    font-style: italic;
}

/* No Posts State */
.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.no-posts h2 {
    margin-bottom: 12px;
}

.no-posts p {
    color: #666;
}

/* Blog Responsive */
@media (max-width: 1024px) {
    .blog-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .sidebar-widget {
        margin-bottom: 0;
    }
    
    .sidebar-toc {
        display: none;
    }
}

@media (max-width: 768px) {
    .page-hero--blog {
        padding: 40px 0;
    }
    
    .page-hero--blog h1 {
        font-size: 1.8rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-newsletter-cta {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 30px;
    }
    
    .blog-author-box {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .blog-post-nav {
        grid-template-columns: 1fr;
    }
    
    .post-nav-next {
        text-align: left;
    }
    
    .blog-cta-box {
        padding: 30px 20px;
    }
    
    .blog-body {
        font-size: 1rem;
    }
    
    .blog-body h2 {
        font-size: 1.5rem;
    }
}

/* About Page Full Width Overrides */
.about-page-wrapper {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent;
}

.about-full-width-content {
    width: 100%;
}

/* Ensure content inside is still readable width */
.about-content {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Fix hero margins for full width */
.about-hero-with-headshot {
    margin: 0 0 50px 0;
    width: 100%;
    padding: 0;
}

@media (max-width: 1200px) {
    .about-hero-with-headshot {
        padding: 0;
    }
}

/* ==========================================================================
   404 Error Page
   ========================================================================== */

.error-404-page {
    padding: 0;
}

.error-404-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a3d5c 100%);
    padding: 80px 0;
    text-align: center;
}

.error-404-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-404-code {
    display: block;
    font-size: 8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.15);
    line-height: 1;
    margin-bottom: -30px;
    font-family: 'Playfair Display', serif;
}

.error-404-hero h1 {
    font-size: 2.5rem;
    color: white;
    margin: 0 0 20px;
    font-family: 'Playfair Display', serif;
}

.error-404-message {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.error-404-search {
    max-width: 400px;
    margin: 0 auto;
}

.error-404-search form {
    display: flex;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.error-404-search input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    font-size: 1rem;
    outline: none;
}

.error-404-search button {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 15px 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.error-404-search button:hover {
    background: #b8860b;
}

.error-404-links {
    padding: 60px 0 80px;
    background: #f8f9fa;
}

.error-404-links h2 {
    text-align: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-family: 'Playfair Display', serif;
}

.error-404-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto 50px;
}

.error-404-card {
    background: white;
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.error-404-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.error-404-card .card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.error-404-card .card-title {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.error-404-card .card-desc {
    font-size: 0.85rem;
    color: #666;
}

.error-404-cta {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 8px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.error-404-cta p {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 20px;
}

.error-404-cta .btn-primary {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 15px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.error-404-cta .btn-primary:hover {
    background: #b8860b;
}

/* 404 Responsive */

/* Tablet Large (1024px) */
@media (max-width: 1024px) {
    .error-404-grid {
        max-width: 700px;
    }
}

/* Tablet Medium (768px) */
@media (max-width: 768px) {
    .error-404-code {
        font-size: 5rem;
        margin-bottom: -20px;
    }
    
    .error-404-hero h1 {
        font-size: 1.8rem;
    }
    
    .error-404-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .error-404-card {
        padding: 20px 15px;
    }
    
    .error-404-card .card-icon {
        font-size: 2rem;
    }
}

/* Mobile (480px) */
@media (max-width: 480px) {
    .error-404-hero {
        padding: 50px 0;
    }
    
    .error-404-code {
        font-size: 4rem;
    }
    
    .error-404-hero h1 {
        font-size: 1.5rem;
    }
    
    .error-404-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .error-404-search form {
        flex-direction: column;
    }
    
    .error-404-search button {
        border-radius: 0;
    }
}

/* ==========================================================================
   FAQ PAGE STYLES
   ========================================================================== */

.faq-page {
    background: #fafbfc;
}

/* FAQ Hero */
.page-hero--faq {
    min-height: 340px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a3a5c 100%);
    display: flex;
    align-items: center;
    text-align: center;
}

.page-hero--faq .container {
    width: 100%;
}

.page-hero--faq .hero-tagline {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    display: block;
}

.page-hero--faq h1 {
    font-family: var(--heading-font);
    font-size: 3.2rem;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-hero--faq .hero-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    padding: 0px 0;
    background-color: #f8f9fa;
}

.faq-category {
    margin-bottom: 60px;
}

.faq-category-title {
    font-family: var(--heading-font);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-right: 30px;
}

/* FAQ Items */
.faq-item {
    background: white;
    border: 1px solid rgba(15,43,76,0.08);
    border-radius: 6px;
    margin-bottom: 16px;
    box-shadow: 0 2px 4px rgba(15,43,76,0.04);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 8px 24px rgba(15,43,76,0.08);
    transform: translateY(-2px);
    border-color: rgba(193, 164, 96, 0.3);
}

.faq-item.active {
    box-shadow: 0 8px 24px rgba(15,43,76,0.1);
    border-color: var(--accent-color);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    background: white;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--heading-font);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

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

.faq-question span {
    flex: 1;
    padding-right: 20px;
    line-height: 1.4;
}

.faq-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: #cbd5e0;
    transition: all 0.3s ease;
}

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

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--accent-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}

.faq-answer > * {
    padding: 0 30px;
}

.faq-answer > *:first-child {
    padding-top: 10px;
}

.faq-answer > *:last-child {
    padding-bottom: 30px;
}

.faq-answer p {
    color: #5a6b7c;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.faq-answer ul {
    margin: 0 0 20px 20px;
    padding-left: 20px;
}

.faq-answer li {
    color: #5a6b7c;
    line-height: 1.8;
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.faq-answer li strong {
    color: var(--primary-color);
}

.faq-answer a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.faq-answer a:hover {
    text-decoration: underline;
}

.faq-answer .btn {
    display: inline-block;
    margin-top: 10px;
}

.faq-answer .btn.btn-primary,
.faq-answer-cta .btn.btn-primary {
    color: white !important;
    background: var(--accent-color) !important;
    padding: 14px 32px !important;
    border-radius: 0 !important;
    text-transform: uppercase !important;
    font-size: 0.8rem !important;
    letter-spacing: 1.5px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.faq-answer .btn.btn-primary:hover,
.faq-answer-cta .btn.btn-primary:hover {
    background: var(--primary-color) !important;
    color: white !important;
    text-decoration: none !important;
}

.faq-answer-cta {
    padding: 10px 30px 30px 30px;
}

.faq-answer-cta .btn {
    margin-top: 0;
}

/* FAQ CTA Section */
.faq-cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a3a5c 100%);
    padding: 80px 0;
    text-align: center;
}

.faq-cta-section h2 {
    font-family: var(--heading-font);
    font-size: 2.2rem;
    color: white;
    margin-bottom: 15px;
}

.faq-cta-section p {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 30px;
}

.faq-cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.faq-cta-buttons .btn-primary {
    background: var(--accent-color);
    color: white;
    padding: 14px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.faq-cta-buttons .btn-primary:hover {
    background: #c9a227;
    transform: translateY(-2px);
}

.faq-cta-buttons .btn-secondary {
    background: transparent;
    color: white;
    padding: 14px 32px;
    border: 2px solid white;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.faq-cta-buttons .btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

/* FAQ Responsive */
@media (max-width: 768px) {
    .page-hero--faq {
        min-height: 180px !important;
    }
    
    .page-hero--faq h1 {
        font-size: 2rem;
    }
    
    .page-hero--faq .hero-subtitle {
        font-size: 1rem;
    }
    
    .faq-section {
        padding: 0;
    }
    
    .faq-category-title {
        font-size: 1.5rem;
    }
    
    .faq-question {
        padding: 18px 20px;
        font-size: 0.95rem;
    }
    
    .faq-answer > * {
        padding: 0 20px;
    }
    
    .faq-cta-section {
        padding: 60px 0;
    }
    
    .faq-cta-section h2 {
        font-size: 1.8rem;
    }
    
    .faq-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .faq-cta-buttons .btn-primary,
    .faq-cta-buttons .btn-secondary {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}

/* ==========================================================================
   MOBILE SPACING OPTIMIZATIONS (User Requested)
   Targeting reduced scrolling and tighter layouts on mobile
   ========================================================================== */

@media (max-width: 480px) {
    /* Global Section Spacing */
    section {
        padding: 30px 0 !important;
    }
    
    section.faq-section {
        padding: 0 !important;
    }

    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Header & Hero */
    .site-header {
        padding: 15px 24px !important;
    }
    
    .site-header .container {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0 !important;
    }
    
    .site-branding {
        margin: 0 !important;
    }
    
    .site-branding h1 {
        margin: 0 !important;
        margin-bottom: 0 !important;
    }
    
    .menu-toggle {
        margin: 0 !important;
    }

    .hero-section {
        min-height: 260px !important;
        padding: 0 !important;
    }

    .hero-content {
        padding: 15px 10px !important;
    }

    .hero-content h1 {
        font-size: 1.8rem !important;
        margin-bottom: 10px !important;
    }

    .hero-subtext {
        font-size: 0.85rem !important;
        margin-bottom: 15px !important;
    }

    .hero-cta-group .btn {
        padding: 12px 0 !important;
        font-size: 0.7rem !important;
    }

    /* Services Section */
    .services-section {
        padding: 30px 0 !important;
    }

    .service-card {
        padding: 20px 15px !important;
        margin-bottom: 0 !important;
    }
    
    .grid-layout.services-grid {
        gap: 15px !important;
    }

    .service-icon {
        width: 48px !important;
        height: 48px !important;
        margin-bottom: 12px !important;
    }

    .service-icon img {
        width: 48px !important;
        height: 48px !important;
    }

    .service-card h3 {
        font-size: 1rem !important;
        margin-bottom: 8px !important;
    }

    /* Properties / Transactions */
    .transactions-section {
        padding: 30px 0 !important;
    }

    .property-filter {
        margin: 20px 0 !important;
        gap: 8px !important;
    }

    .filter-btn {
        padding: 8px 14px !important;
        font-size: 0.7rem !important;
    }

    .transactions-grid {
        gap: 15px !important;
    }

    .transaction-details {
        padding: 15px !important;
    }

    .transaction-details h4 {
        font-size: 1rem !important;
    }

    .transaction-image-placeholder {
        height: 180px !important;
    }

    /* Testimonials */
    .testimonials-section {
        padding: 30px 0 !important;
    }

    .testimonial-card {
        padding: 20px 15px !important;
    }

    /* Featured In */
    .featured-in-section {
        padding: 20px 0 !important;
    }

    /* Contact Page */
    .contact-section {
        padding: 30px 0 !important;
    }

    .contact-info {
        padding: 20px 15px !important;
        margin-bottom: 20px !important;
    }

    .contact-form-wrapper {
        padding: 20px 15px !important;
    }
    
    .custom-contact-form .form-group {
        margin-bottom: 15px !important;
    }

    .custom-contact-form input, 
    .custom-contact-form textarea {
        padding: 12px !important;
    }

    /* Footer */
    .site-footer {
        padding: 40px 0 20px !important;
    }

    .footer-grid {
        gap: 20px !important;
    }

    /* About Page Specifics */
    .about-hero-with-headshot {
        margin-bottom: 30px !important;
    }
    
    .about-hero-text {
        padding: 20px 0 20px 15px !important;
    }
    
    .about-hero-headshot img {
        height: 200px !important;
    }

    .about-what-matters {
        padding: 20px !important;
    }

    .about-cta {
        padding: 25px 15px !important;
    }
    
    .about-cta-buttons {
        gap: 10px !important;
    }
    
    .about-cta-buttons .btn-primary,
    .about-cta-buttons .btn-secondary {
        padding: 12px 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Blog Page */
    .blog-card {
        margin-bottom: 0 !important;
    }
    
    .blog-grid {
        gap: 20px !important;
    }
    
    .blog-card-content {
        padding: 15px !important;
    }
    
    .page-hero--blog {
        min-height: auto !important;
        padding: 40px 0 !important;
        align-items: center !important;
    }
    
    .page-hero--blog h1 {
        font-size: 1.8rem !important;
    }

    /* Single Property */
    .property-gallery {
        gap: 8px !important;
        margin-bottom: 20px !important;
    }
    
    .property-gallery-item {
        height: 180px !important;
    }
    
    /* General Typography Tightening */
    h1 { font-size: 1.8rem !important; margin-bottom: 15px !important; }
    h2 { font-size: 1.5rem !important; margin-bottom: 15px !important; }
    h3 { font-size: 1.25rem !important; margin-bottom: 10px !important; }
    p { font-size: 0.95rem !important; margin-bottom: 15px !important; }
    
    .section-header {
        margin-bottom: 20px !important;
    }
    
    /* Testimonials page mobile spacing */
    .testimonials-page-container {
        padding-top: 0 !important;
        padding-bottom: 40px !important;
    }
}

/* Testimonials page container - desktop */
.testimonials-page-container {
    padding-top: 0;
    padding-bottom: 60px;
}

