/*
Theme Name: MAL_NEW
Author: Mallory Anthony Team
Author URI: https://movewithmallory.net/
Description: Custom child theme for Move With Mallory built on GeneratePress.
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mal_new
Template: generatepress
*/

/* --- CSS VARIABLES & RESET --- */
:root {
    --remax-red: #ff1200;
    --remax-blue: #0043ff;
    --remax-bridge-blue: #0C2749;
    --remax-dark-blue: #000e35;
    --remax-cream: #f7f5ee;
    --remax-sky: #A3D4F2;
    --remax-charcoal: #232323;
    --font-main: 'Lexend', sans-serif;
    --max-width: 1920px;
    --gutter: 20px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    color: var(--remax-dark-blue);
    font-family: var(--font-main);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    line-height: 1.5;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
img, video { display: block; max-width: 100%; }

/* --- UTILITIES --- */
.ma-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* --- HEADER & MEGA MENU --- */
.ma-header {
    max-width: var(--max-width);
    margin: 20px auto 0;
    padding: 0 var(--gutter);
    position: relative;
    z-index: 1000;
}

.ma-navbar {
    background: #fff;
    border-radius: 2rem;
    padding: 0 1.5rem;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px -10px rgba(0, 14, 53, 0.05);
    border: 1px solid rgba(255,255,255,0.8);
    position: relative;
}

.ma-logo img {
    height: 55px;
    width: auto;
    object-fit: contain;
}
@media (min-width: 768px) {
    .ma-logo img { height: 65px; }
}

/* Desktop Nav */
.ma-nav-menu {
    display: none;
    height: 100%;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 992px) {
    .ma-nav-menu { display: flex; }
}

.ma-nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.ma-nav-link {
    font-weight: 600;
    color: var(--remax-bridge-blue);
    padding: 0 1rem;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s;
    font-size: 0.95rem;
    cursor: pointer;
}

.ma-nav-link i {
    font-size: 0.7rem;
    opacity: 0.5;
    transition: transform 0.2s;
}

.ma-nav-item:hover .ma-nav-link { color: var(--remax-blue); }
.ma-nav-item:hover .ma-nav-link i { transform: rotate(180deg); opacity: 1; }

/* Desktop Dropdown */
.ma-dropdown {
    position: absolute;
    top: 90%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 20px 60px -10px rgba(0, 14, 53, 0.15);
    padding: 1.5rem;
    width: max-content;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease-in-out;
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    gap: 2rem;
    z-index: 1010;
}

.ma-nav-item:hover .ma-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.ma-nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
}

.ma-dropdown-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 160px;
}

.ma-dropdown-item {
    padding: 0.6rem 0.8rem;
    border-radius: 0.75rem;
    color: var(--remax-dark-blue);
    font-weight: 500;
    font-size: 0.95rem;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ma-dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--remax-blue);
    opacity: 0.7;
    font-size: 0.9rem;
}

.ma-dropdown-item:hover {
    background-color: var(--remax-cream);
    color: var(--remax-blue);
}

.ma-nav-socials {
    display: none;
    gap: 1.25rem;
    margin-left: 1.5rem;
    align-items: center;
}
@media (min-width: 992px) {
    .ma-nav-socials { display: flex; }
}

.ma-social-icon {
    font-size: 1.5rem;
    color: var(--remax-bridge-blue);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ma-social-icon:hover {
    color: var(--remax-blue);
    transform: scale(1.15);
}

/* --- MOBILE MENU --- */
.ma-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--remax-dark-blue);
    cursor: pointer;
    width: 40px;
    height: 40px;
}
@media (min-width: 992px) {
    .ma-mobile-toggle { display: none; }
}

.ma-mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 2000;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.ma-mobile-drawer.open {
    transform: translateX(0);
}

.ma-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.ma-mobile-close {
    background: none;
    border: none;
    padding: 0;
    font-size: 1.5rem;
    color: var(--remax-red);
    cursor: pointer;
}

/* Mobile Accordion Styles */
.ma-mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ma-mobile-item {
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.ma-mobile-link-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--remax-dark-blue);
    padding: 1rem 0;
    cursor: pointer;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-main);
}

.ma-mobile-link-head.active {
    color: var(--remax-blue);
}

.ma-mobile-link-head i {
    font-size: 0.9rem;
    transition: transform 0.3s;
    color: #ccc;
}

.ma-mobile-link-head.active i {
    transform: rotate(180deg);
    color: var(--remax-blue);
}

/* Submenu (Accordion Panel) */
.ma-mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding-left: 0.5rem;
}

.ma-mobile-sublink {
    display: block;
    padding: 0.75rem 0;
    font-size: 1.05rem;
    color: rgba(12, 39, 73, 0.8);
    font-weight: 500;
    border-bottom: 1px solid #f9f9f9;
}

.ma-mobile-sublink:hover {
    color: var(--remax-blue);
    padding-left: 5px;
}

.ma-mobile-sublink i {
    margin-right: 10px;
    color: var(--remax-blue);
    width: 20px;
    text-align: center;
}

/* --- HERO SECTION --- */
.ma-hero-card {
    background: #fff;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 20px 60px -10px rgba(0,14,53,0.12);
    border: 1px solid #fff;
    position: relative;
    margin-top: 1rem;
}
@media (min-width: 768px) {
    .ma-hero-card { border-radius: 3rem; margin-top: 2rem; }
}

.ma-bg-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(#0C2749 0.5px, transparent 0.5px);
    background-size: 30px 30px;
    opacity: 0.05;
    pointer-events: none;
}

.ma-hero-flex {
    display: flex;
    flex-direction: column;
    min-height: auto;
    position: relative;
    z-index: 10;
}

.ma-hero-content {
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(4px);
}

.ma-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.ma-badge-line { height: 2px; width: 3rem; background-color: var(--remax-red); }
.ma-badge-text {
    font-size: 0.9rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--remax-red);
    white-space: nowrap;
}

.ma-hero-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: 0.01em;
    margin-bottom: 1.5rem;
    color: var(--remax-dark-blue);
}
.ma-hero-title span { color: var(--remax-blue); }

.ma-hero-desc {
    color: rgba(12, 39, 73, 0.8);
    font-size: 1.1rem;
    max-width: 48rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    font-weight: 400;
}
.ma-hero-desc strong { color: var(--remax-bridge-blue); font-weight: 800; }

.ma-cta-btn {
    position: relative;
    display: inline-block;
    padding: 1.25rem 2.5rem;
    background-color: var(--remax-red);
    color: white;
    border-radius: 1rem;
    font-weight: 800;
    font-size: 1.25rem;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 15px 30px -10px rgba(255,18,0,0.5);
}
.ma-cta-btn:hover { padding-right: 4rem; transform: translateY(-3px); }
.ma-cta-btn:active { transform: scale(0.95); }
.ma-cta-arrow {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: 0.3s;
}
.ma-cta-btn:hover .ma-cta-arrow { opacity: 1; }

.ma-hero-visual {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
}

.ma-img-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 45rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ma-img-circle-bg {
    position: absolute;
    width: 80%;
    aspect-ratio: 1 / 1;
    background-color: var(--remax-red);
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 30px 60px -12px rgba(255, 18, 0, 0.3);
}

.ma-img-element {
    position: relative;
    z-index: 2;
    width: 100%;
    height: auto;
    object-fit: contain;
    transform: scale(1.15);
    pointer-events: none;
}

/* Desktop Hero Styles */
@media (min-width: 1024px) {
    .ma-hero-flex { flex-direction: row; min-height: 850px; }
    .ma-hero-content { flex: 1.2; padding: 6rem; }
    .ma-hero-title { font-size: 7rem; margin-bottom: 2.5rem; }
    .ma-hero-desc { font-size: 1.35rem; margin-bottom: 4rem; }
    .ma-hero-visual { flex: 1; min-height: 600px; padding: 4rem; }
    .ma-cta-btn { padding: 1.75rem 4rem; font-size: 1.5rem; border-radius: 1.25rem; }
    .ma-badge { margin-bottom: 2.5rem; }
    .ma-badge-line { width: 4rem; }
    .ma-badge-text { font-size: 1.15rem; }
}

@media (min-width: 1600px) {
    .ma-hero-title { font-size: 8.5rem; }
    .ma-hero-content { padding: 8rem; }
}

/* --- CITY BAR --- */
.ma-city-bar {
    background-color: var(--remax-bridge-blue);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.ma-city-item {
    padding: 2rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(255,255,255,0.05);
    transition: all 0.4s;
    cursor: pointer;
}
.ma-city-item:nth-child(2n) { border-right: none; }

.ma-city-item:hover { background-color: var(--remax-blue); }

.ma-city-num {
    font-size: 10px;
    color: rgba(255,255,255,0.4);
    font-weight: 800;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
}

.ma-city-name {
    color: white;
    font-weight: 900;
    letter-spacing: -0.01em;
    font-size: 1.25rem;
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .ma-city-bar { grid-template-columns: repeat(3, 1fr); }
    .ma-city-item:nth-child(2n) { border-right: 1px solid rgba(255,255,255,0.05); }
    .ma-city-item:nth-child(3n) { border-right: none; }
}
@media (min-width: 1024px) {
    .ma-city-bar { grid-template-columns: repeat(6, 1fr); }
    .ma-city-item { padding: 2.5rem 1rem; border-right: 1px solid rgba(255,255,255,0.05); }
    .ma-city-item:last-child { border-right: none; }
    .ma-city-num { font-size: 11px; }
    .ma-city-name { font-size: 1.5rem; }
}

/* --- VIDEO SECTION --- */
.ma-video-wrapper {
    position: relative;
    width: 100%;
    height: 350px;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 20px 50px -10px rgba(0,0,0,0.3);
    border: 5px solid white;
    margin-top: 3rem;
    background-color: var(--remax-dark-blue);
}

@media (min-width: 768px) {
    .ma-video-wrapper { height: 550px; border-radius: 3rem; border-width: 8px; margin-top: 4rem; }
}

.ma-video-bg {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.ma-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
}

/* VIDEO OVERLAY TEXT STYLE */
.ma-video-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 15;
    color: white;
    font-weight: 900;
    font-size: 5rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    pointer-events: none;
    text-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: 100%;
    text-align: center;
    line-height: 1;
}

@media (min-width: 768px) {
    .ma-video-text-overlay {
        font-size: 10rem;
    }
}

.ma-video-controls {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 20;
}

.ma-video-toggle {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    padding: 0;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}
@media (min-width: 768px) {
    .ma-video-toggle { width: 3.5rem; height: 3.5rem; font-size: 1rem; }
    .ma-video-controls { bottom: 2rem; right: 2.5rem; }
}

/* --- TESTIMONIALS --- */
.ma-reviews-section {
    margin-top: 4rem;
    margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
     .ma-reviews-section { margin-top: 6rem; }
}

.ma-reviews-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}
.ma-reviews-title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.05em;
    color: var(--remax-dark-blue);
    text-transform: uppercase;
}

.ma-reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.ma-review-card {
    background: white;
    padding: 2rem;
    border-radius: 2rem;
    box-shadow: 0 15px 40px -10px rgba(0,0,0,0.08);
    border: 1px solid rgba(0, 67, 255, 0.05);
    display: flex;
    flex-direction: column;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.ma-review-card:hover { transform: translateY(-8px); }

.ma-stars { color: var(--remax-red); font-size: 0.85rem; margin-bottom: 1.5rem; letter-spacing: 0.15em; }

.ma-review-text {
    color: rgba(12, 39, 73, 0.9);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-style: italic;
    font-weight: 500;
}

.ma-reviewer {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.ma-avatar {
    width: 3.5rem; height: 3.5rem;
    border-radius: 1.25rem;
    background-color: var(--remax-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: var(--remax-blue);
    font-size: 1.15rem;
}

@media (min-width: 768px) {
    .ma-reviews-header { flex-direction: row; justify-content: space-between; align-items: center; margin-bottom: 4rem; }
    .ma-reviews-title { font-size: 5rem; }
    .ma-reviews-grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
    .ma-review-card { padding: 3rem; border-radius: 3rem; }
    .ma-review-text { font-size: 1.15rem; margin-bottom: 3rem; }
    .ma-avatar { width: 4rem; height: 4rem; border-radius: 1.5rem; font-size: 1.25rem; }
    .ma-stars { margin-bottom: 2rem; }
    .ma-reviewer { gap: 1.25rem; }
}

/* --- FOOTER --- */
.ma-footer {
    background-color: #fff;
    border-top: 1px solid rgba(0, 14, 53, 0.05);
}

.ma-footer-top {
    padding: 2.5rem 0 1.5rem;
}

.ma-footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.ma-footer-brand {
    grid-column: span 2;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .ma-footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 1.5rem;
    }
    .ma-footer-brand {
        grid-column: span 1;
        padding-bottom: 0;
        border-bottom: none;
        margin-bottom: 0;
    }
}

.ma-footer-col h4 {
    font-weight: 900;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    color: var(--remax-dark-blue);
    text-transform: uppercase;
}

.ma-footer-col ul {
    padding: 0;
    margin: 0;
}

.ma-footer-col li { margin-bottom: 0.75rem; list-style: none; }

.ma-footer-col a {
    color: rgba(12, 39, 73, 0.7);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
    display: block;
}
.ma-footer-col a:hover { color: var(--remax-blue); }

.ma-footer-brand p {
    color: rgba(12, 39, 73, 0.6);
    margin-top: 1rem;
    max-width: 300px;
    font-size: 0.95rem;
}

.ma-legal-hero {
    position: relative;
    width: 100%;
    padding: 1.5rem 0;
    background: url('https://images.unsplash.com/photo-1556911223-e250e3daee2c?auto=format&fit=crop&q=80&w=1920') no-repeat center/cover;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ma-legal-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 1;
}

.ma-legal-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--max-width);
    padding: 0 var(--gutter);
}

.ma-legal-top-row {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .ma-legal-top-row {
        flex-direction: row;
        justify-content: space-between;
    }
}

.ma-housing-logos {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.ma-housing-brand-img {
    height: 55px;
    width: auto;
    object-fit: contain;
}
@media (min-width: 768px) {
    .ma-housing-brand-img { height: 65px; }
}

.ma-legal-socials {
    display: flex;
    gap: 1.5rem;
}

.ma-footer-social-link {
    font-size: 1.75rem;
    color: var(--remax-bridge-blue);
    transition: 0.3s;
}
@media (min-width: 768px) {
     .ma-footer-social-link { font-size: 2rem; }
}

.ma-footer-social-link:hover {
    color: var(--remax-blue);
    transform: scale(1.1);
}

.ma-legal-text-block {
    text-align: center;
    width: 100%;
}

.ma-legal-link {
    display: block;
    color: var(--remax-red);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
@media (min-width: 768px) {
     .ma-legal-link { font-size: 0.9rem; margin-bottom: 0.4rem; }
}

@media (max-width: 767px) {
    .ma-footer-col {
        padding: 0 0.75rem;
    }
}

.ma-legal-link:hover {
    color: var(--remax-dark-blue);
}

.ma-copyright-bar {
    color: rgba(12, 39, 73, 0.5);
    font-size: 0.75rem;
    margin-top: 1.5rem;
    font-weight: 600;
}

.ma-copyright-bar a {
    color: var(--remax-blue);
    text-decoration: none;
}

.ma-copyright-bar a:hover {
    text-decoration: underline;
}

/* --- PAGE CONTENT AREA --- */
.ma-page-content {
    padding: 3rem 0;
    min-height: 50vh;
}

@media (min-width: 768px) {
    .ma-page-content { padding: 4rem 0; }
}

/* =============================================
   LAND SALES PAGE
   ============================================= */

/* --- PAGE HERO --- */
.ma-land-hero {
    padding: 3rem 0 2rem;
    text-align: center;
    max-width: 52rem;
    margin: 0 auto;
}

.ma-land-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.ma-land-badge-line {
    height: 2px;
    width: 2.5rem;
    background-color: var(--remax-red);
}

.ma-land-badge-text {
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--remax-red);
}

.ma-land-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.02em;
    color: var(--remax-dark-blue);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.ma-land-title span {
    color: var(--remax-blue);
}

.ma-land-intro {
    color: rgba(12, 39, 73, 0.75);
    font-size: 1.05rem;
    line-height: 1.7;
    font-weight: 400;
    margin-bottom: 1.25rem;
}

.ma-land-quote {
    font-style: italic;
    font-weight: 600;
    color: var(--remax-bridge-blue);
    font-size: 1.15rem;
    position: relative;
    display: inline-block;
}

.ma-land-quote::before {
    content: '\201C';
    font-size: 3rem;
    color: var(--remax-red);
    position: absolute;
    top: -1rem;
    left: -1.5rem;
    font-weight: 900;
    line-height: 1;
    opacity: 0.3;
}

@media (min-width: 768px) {
    .ma-land-hero { padding: 5rem 0 3rem; }
    .ma-land-title { font-size: 6rem; margin-bottom: 2rem; }
    .ma-land-intro { font-size: 1.2rem; }
    .ma-land-quote { font-size: 1.3rem; }
}

@media (min-width: 1200px) {
    .ma-land-title { font-size: 7.5rem; }
}

/* --- FULL-WIDTH IMAGE CARD --- */
.ma-land-img-card {
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 20px 60px -10px rgba(0,14,53,0.12);
    border: 1px solid #fff;
    margin-bottom: 2rem;
}

.ma-land-img-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

@media (min-width: 768px) {
    .ma-land-img-card { border-radius: 3rem; margin-bottom: 2.5rem; }
    .ma-land-img-card img { height: 500px; }
}

@media (min-width: 1200px) {
    .ma-land-img-card img { height: 600px; }
}

/* --- SHOPPING CTA CARD --- */
.ma-land-shop-card {
    position: relative;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 20px 60px -10px rgba(0,14,53,0.15);
    margin-bottom: 4rem;
}

.ma-land-shop-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    filter: brightness(0.45);
}

.ma-land-shop-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 2rem;
    text-align: center;
}

.ma-land-shop-label {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 2rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

@media (min-width: 768px) {
    .ma-land-shop-card { border-radius: 3rem; margin-bottom: 6rem; }
    .ma-land-shop-card img { height: 500px; }
    .ma-land-shop-label { font-size: 6rem; margin-bottom: 2.5rem; }
}

/* --- SPLIT SECTIONS (alternating text/image) --- */
.ma-land-split {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 4rem;
    align-items: center;
}

.ma-land-split-text {
    flex: 1;
}

.ma-land-split-img {
    flex: 1;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 20px 50px -10px rgba(0,14,53,0.12);
    border: 1px solid #fff;
}

.ma-land-split-img img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.ma-land-split-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.ma-land-split-tag-line {
    height: 2px;
    width: 2rem;
    background-color: var(--remax-red);
}

.ma-land-split-tag-text {
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--remax-red);
}

.ma-land-split-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--remax-dark-blue);
    line-height: 1;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.ma-land-split-sub {
    font-size: 1rem;
    color: var(--remax-blue);
    font-weight: 700;
    margin-bottom: 1.25rem;
    font-style: italic;
}

.ma-land-split-body {
    color: rgba(12, 39, 73, 0.75);
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 400;
}

@media (min-width: 768px) {
    .ma-land-split {
        flex-direction: row;
        gap: 3.5rem;
        margin-bottom: 6rem;
    }
    .ma-land-split.ma-reversed { flex-direction: row-reverse; }
    .ma-land-split-img img { height: 450px; }
    .ma-land-split-title { font-size: 3.5rem; margin-bottom: 1rem; }
    .ma-land-split-body { font-size: 1.1rem; }
    .ma-land-split-img { border-radius: 3rem; }
}

@media (min-width: 1200px) {
    .ma-land-split-title { font-size: 4rem; }
    .ma-land-split-img img { height: 520px; }
}

/* --- EXPERTISE CARDS --- */
.ma-land-expertise-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.ma-land-expertise-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--remax-dark-blue);
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 1;
}

.ma-land-expertise-title span {
    color: var(--remax-red);
}

.ma-land-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.ma-land-card {
    background: #fff;
    border-radius: 2rem;
    padding: 2.25rem 2rem;
    box-shadow: 0 15px 40px -10px rgba(0,0,0,0.07);
    border: 1px solid rgba(0, 67, 255, 0.04);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.ma-land-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--remax-red);
    opacity: 0;
    transition: opacity 0.3s;
}

.ma-land-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px -10px rgba(0,0,0,0.12);
}

.ma-land-card:hover::before { opacity: 1; }

.ma-land-card-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    background-color: var(--remax-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.ma-land-card-icon i {
    font-size: 1.25rem;
    color: var(--remax-blue);
}

.ma-land-card-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--remax-dark-blue);
    margin-bottom: 0.75rem;
}

.ma-land-card-body {
    color: rgba(12, 39, 73, 0.7);
    font-size: 0.95rem;
    line-height: 1.65;
    font-weight: 400;
}

@media (min-width: 768px) {
    .ma-land-cards-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-bottom: 6rem; }
    .ma-land-card { border-radius: 2.5rem; padding: 2.75rem 2.25rem; }
    .ma-land-expertise-header { margin-bottom: 3.5rem; }
    .ma-land-expertise-title { font-size: 5rem; }
}

/* --- CONTACT SECTION --- */
.ma-land-contact {
    background: var(--remax-bridge-blue);
    border-radius: 2rem;
    padding: 2.5rem 1.5rem;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.ma-land-contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.ma-land-contact-inner {
    position: relative;
    z-index: 2;
    max-width: 38rem;
    margin: 0 auto;
}

.ma-land-contact-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-align: center;
}

.ma-land-contact-title span { color: var(--remax-red); }

.ma-land-contact-sub {
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.ma-land-form-group {
    margin-bottom: 1.25rem;
}

.ma-land-form-label {
    display: block;
    color: rgba(255,255,255,0.7);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ma-land-form-label .ma-required {
    color: var(--remax-red);
}

.ma-land-form-input,
.ma-land-form-textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    border: 2px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 500;
    outline: none;
    transition: border-color 0.3s, background 0.3s;
}

.ma-land-form-input::placeholder,
.ma-land-form-textarea::placeholder {
    color: rgba(255,255,255,0.3);
}

.ma-land-form-input:focus,
.ma-land-form-textarea:focus {
    border-color: var(--remax-blue);
    background: rgba(255,255,255,0.1);
}

.ma-land-form-textarea {
    min-height: 120px;
    resize: vertical;
}

.ma-land-form-char {
    text-align: right;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    margin-top: 0.35rem;
    font-weight: 600;
}

.ma-land-form-submit {
    margin-top: 0.75rem;
    text-align: center;
}

@media (min-width: 768px) {
    .ma-land-contact { border-radius: 3rem; padding: 4rem 3rem; margin-bottom: 6rem; }
    .ma-land-contact-title { font-size: 4.5rem; }
    .ma-land-form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }
}

/* --- DECORATIVE DIVIDER --- */
.ma-land-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 3rem 0;
}

.ma-land-divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(12,39,73,0.08), transparent);
}

.ma-land-divider-icon {
    color: var(--remax-red);
    font-size: 0.9rem;
    opacity: 0.5;
}

@media (min-width: 768px) {
    .ma-land-divider { margin: 4rem 0; }
}

/* =============================================
   SINGLE BLOG POST
   ============================================= */

/* --- Hero Banner --- */
.ma-post-hero {
    position: relative;
    background-color: var(--remax-bridge-blue);
    border-radius: 2rem;
    overflow: hidden;
    padding: 3rem 1.5rem 3.5rem;
    margin-top: 1rem;
}

.ma-post-hero-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 1;
}

.ma-post-hero-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.18;
    z-index: 0;
}

.ma-post-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(12,39,73,0.5) 0%, rgba(12,39,73,0.85) 100%);
    z-index: 1;
}

.ma-post-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .ma-post-hero { padding: 4.5rem 3rem 5rem; border-radius: 3rem; margin-top: 2rem; }
}

/* Back link */
.ma-post-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.75rem;
    transition: color 0.2s, gap 0.2s;
}
.ma-post-back:hover { color: white; gap: 0.75rem; }

/* Meta */
.ma-post-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.ma-post-sep { opacity: 0.4; }
.ma-post-cats a { color: var(--remax-red); font-weight: 700; }

/* Post title */
.ma-post-title {
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 2rem;
}
@media (min-width: 768px) {
    .ma-post-title { font-size: 3.5rem; }
}

/* Author bar */
.ma-post-author-bar {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.12);
}
.ma-post-author-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: var(--remax-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: white;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.ma-post-author-name {
    font-weight: 800;
    color: white;
    font-size: 0.95rem;
}
.ma-post-author-role {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    font-weight: 600;
}

/* --- Content Card --- */
.ma-post-card {
    background: white;
    border-radius: 2rem;
    padding: 2rem 1.5rem;
    box-shadow: 0 20px 60px -10px rgba(0,14,53,0.1);
    margin-top: 1.5rem;
}
@media (min-width: 768px) {
    .ma-post-card { padding: 3.5rem 4rem; border-radius: 3rem; }
}

/* Post body typography */
.ma-post-body {
    font-size: 1.1rem;
    line-height: 1.85;
    color: rgba(12, 39, 73, 0.85);
    font-weight: 400;
}

.ma-post-body h1,
.ma-post-body h2,
.ma-post-body h3,
.ma-post-body h4,
.ma-post-body h5,
.ma-post-body h6 {
    color: var(--remax-dark-blue);
    font-weight: 900;
    line-height: 1.15;
    margin: 2.25rem 0 0.75rem;
    letter-spacing: -0.02em;
}
.ma-post-body h2 { font-size: 1.85rem; }
.ma-post-body h3 { font-size: 1.5rem; }
.ma-post-body h4 { font-size: 1.25rem; }

.ma-post-body p { margin-bottom: 1.5rem; }

.ma-post-body a {
    color: var(--remax-blue);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.ma-post-body a:hover { color: var(--remax-red); }

.ma-post-body ul,
.ma-post-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}
.ma-post-body li { margin-bottom: 0.5rem; }

.ma-post-body img {
    width: 100%;
    height: auto;
    border-radius: 1.25rem;
    margin: 1.5rem 0;
}

.ma-post-body blockquote {
    border-left: 4px solid var(--remax-red);
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    background: var(--remax-cream);
    border-radius: 0 1rem 1rem 0;
    font-style: italic;
    font-weight: 600;
    color: var(--remax-bridge-blue);
}

.ma-post-body strong { color: var(--remax-dark-blue); font-weight: 800; }

.ma-post-body hr {
    border: none;
    border-top: 1px solid rgba(0,14,53,0.08);
    margin: 2.5rem 0;
}

/* Prev / Next nav */
.ma-post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,14,53,0.08);
}
.ma-post-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}
.ma-post-nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--remax-bridge-blue);
    transition: color 0.2s;
    max-width: 45%;
}
.ma-post-nav a:hover { color: var(--remax-blue); }
.ma-post-nav-next { text-align: right; }

/* --- Bottom CTA --- */
.ma-post-cta {
    position: relative;
    background: var(--remax-dark-blue);
    border-radius: 2rem;
    overflow: hidden;
    padding: 3rem 2rem;
    text-align: center;
    margin: 2.5rem auto 3rem;
    max-width: 820px;
}
@media (min-width: 768px) {
    .ma-post-cta { border-radius: 3rem; padding: 4rem 3rem; margin-bottom: 4rem; }
}

.ma-post-cta-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.ma-post-cta-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.ma-post-cta-title {
    font-size: 2rem;
    font-weight: 900;
    color: white;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.ma-post-cta-title span { color: var(--remax-red); }

@media (min-width: 768px) {
    .ma-post-cta-title { font-size: 3rem; }
}

/* ============================================================
   BLOG INDEX PAGE
   ============================================================ */

/* Break blog + single pages out of GeneratePress content containers */
body.blog .inside-site-content,
body.single .inside-site-content,
body.archive .inside-site-content {
    max-width: 100% !important;
    padding: 0 !important;
}
body.blog #primary,
body.single #primary,
body.archive #primary,
body.blog .content-area,
body.single .content-area,
body.archive .content-area {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    float: none !important;
}

.ma-blog-page {
    background: var(--remax-dark-blue);
    min-height: 100vh;
}

/* Hero */
.ma-blog-hero {
    position: relative;
    overflow: hidden;
    background: var(--remax-bridge-blue);
    border-bottom: 3px solid var(--remax-red);
    padding: 5rem 1.5rem 4rem;
    text-align: center;
}
.ma-blog-hero-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}
.ma-blog-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}
.ma-blog-hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 1;
    margin: 1rem 0 1.25rem;
}
.ma-blog-hero-title span { color: var(--remax-red); }
.ma-blog-hero-sub {
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
}
@media (min-width: 768px) {
    .ma-blog-hero-title { font-size: 5rem; }
    .ma-blog-hero { padding: 7rem 2rem 5rem; }
}

/* Grid */
.ma-blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 3rem 0;
}
@media (min-width: 640px) {
    .ma-blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .ma-blog-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Card */
.ma-blog-card {
    display: flex;
    flex-direction: column;
    background: var(--remax-bridge-blue);
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.07);
    transition: transform 0.25s, box-shadow 0.25s;
}
.ma-blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.4);
}
.ma-blog-card-img {
    width: 100%;
    aspect-ratio: 1200 / 628;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}
.ma-blog-card-img--fallback {
    background: var(--remax-dark-blue);
    background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 20px 20px;
}
.ma-blog-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}
.ma-blog-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.ma-blog-card-date {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.45);
}
.ma-blog-card-cat {
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--remax-red);
}
.ma-blog-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}
.ma-blog-card-excerpt {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.6;
    flex: 1;
}
.ma-blog-card-cta {
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--remax-red);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    cursor: pointer;
    transition: gap 0.2s;
}
.ma-blog-card:hover .ma-blog-card-cta { gap: 0.75rem; }

/* Pagination */
.ma-blog-pagination {
    padding-bottom: 3rem;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}
.ma-blog-pagination .page-numbers {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255,255,255,0.1);
    transition: 0.2s;
}
.ma-blog-pagination .page-numbers.current,
.ma-blog-pagination .page-numbers:hover {
    background: var(--remax-red);
    color: #fff;
    border-color: var(--remax-red);
}

/* ============================================================
   SINGLE BLOG POST
   ============================================================ */

.ma-single-page {
    background: var(--remax-dark-blue);
    min-height: 100vh;
}

/* Hero — plain block layout so the h1 gets full width and wraps naturally */
.ma-single-hero {
    position: relative;
    background: var(--remax-bridge-blue);
    border-bottom: 3px solid var(--remax-red);
    padding: 8rem 1.5rem 3rem;
}
.ma-single-hero-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 1;
}
.ma-single-hero-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.ma-single-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,14,53,0.92) 0%, rgba(12,39,73,0.6) 100%);
    z-index: 2;
}
.ma-single-hero-inner {
    position: relative;
    z-index: 3;
    max-width: 860px;
    margin: 0 auto;
}
.ma-single-back {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--remax-red);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    transition: gap 0.2s;
}
.ma-single-back:hover { gap: 0.75rem; }
.ma-single-meta {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.75rem;
}
.ma-single-meta a { color: rgba(255,255,255,0.5); }
.ma-single-meta-dot { opacity: 0.4; }
.ma-single-title {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
@media (min-width: 768px) {
    .ma-single-hero { padding: 10rem 2rem 4rem; }
    .ma-single-title { font-size: 3rem; }
}

/* Content Card */
.ma-single-card {
    background: #fff;
    border-radius: 2rem;
    padding: 2.5rem 1.5rem;
    margin: 2.5rem 0 3rem;
}
@media (min-width: 768px) {
    .ma-single-card { padding: 3.5rem 4rem; max-width: 860px; margin: 3rem auto 4rem; }
}

/* Post body typography */
.ma-post-body { color: var(--remax-charcoal); line-height: 1.8; font-size: 1rem; }
.ma-post-body h1, .ma-post-body h2, .ma-post-body h3,
.ma-post-body h4, .ma-post-body h5, .ma-post-body h6 {
    color: var(--remax-dark-blue);
    font-weight: 800;
    margin: 2rem 0 0.75rem;
    line-height: 1.2;
}
.ma-post-body h2 { font-size: 1.6rem; }
.ma-post-body h3 { font-size: 1.3rem; }
.ma-post-body p { margin-bottom: 1.25rem; }
.ma-post-body ul, .ma-post-body ol { margin: 0 0 1.25rem 1.5rem; }
.ma-post-body li { margin-bottom: 0.4rem; }
.ma-post-body a { color: var(--remax-red); text-decoration: underline; }
.ma-post-body img { border-radius: 1rem; margin: 1.5rem 0; }
.ma-post-body iframe,
.ma-post-body video {
    display: block;
    width: 100%;
    margin: 1.5rem 0;
    border-radius: 1rem;
    aspect-ratio: 16 / 9;
}

/* WordPress embed & video block wrappers */
.ma-post-body .wp-block-embed,
.ma-post-body .wp-block-video {
    margin: 1.5rem 0;
}
.ma-post-body .wp-block-embed__wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}
.ma-post-body .wp-has-aspect-ratio .wp-block-embed__wrapper::before {
    content: "";
    display: block;
    padding-top: 56.25%;
}
.ma-post-body .wp-has-aspect-ratio .wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
}
.ma-post-body .wp-block-video video {
    display: block;
    width: 100%;
    border-radius: 1rem;
}
.ma-post-body blockquote {
    border-left: 4px solid var(--remax-red);
    padding: 0.75rem 1.25rem;
    margin: 1.5rem 0;
    background: var(--remax-cream);
    border-radius: 0 0.75rem 0.75rem 0;
    font-style: italic;
    color: var(--remax-bridge-blue);
}

/* Post nav */
.ma-single-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.08);
    font-size: 0.85rem;
    font-weight: 700;
}
.ma-single-nav a {
    color: var(--remax-bridge-blue);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s;
}
.ma-single-nav a:hover { color: var(--remax-red); }
.ma-single-nav-next { text-align: right; margin-left: auto; }

/* ============================================================
   404 PAGE
   ============================================================ */

.ma-404-page {
    background: var(--remax-dark-blue);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 4rem 1.5rem;
    text-align: center;
}

.ma-404-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.ma-404-inner {
    position: relative;
    z-index: 2;
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ma-404-code {
    font-size: 10rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.05em;
    color: transparent;
    -webkit-text-stroke: 2px var(--remax-red);
    opacity: 0.25;
    margin-bottom: -1rem;
    pointer-events: none;
    user-select: none;
}

.ma-404-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 1.25rem;
}
.ma-404-title span { color: var(--remax-red); }

.ma-404-sub {
    color: rgba(255,255,255,0.5);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 420px;
    margin-bottom: 2.5rem;
}

.ma-404-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.ma-404-contact {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.4);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s, gap 0.2s;
}
.ma-404-contact:hover { color: #fff; gap: 0.75rem; }

@media (min-width: 768px) {
    .ma-404-code { font-size: 16rem; }
    .ma-404-title { font-size: 4rem; }
    .ma-404-actions { flex-direction: row; justify-content: center; }
}
