/*
 Theme Name:   Meridians Estate Planning
 Theme URI:    https://meridians.law
 Description:  Custom WordPress theme for Meridians Estate Planning — modern estate planning for young families and career professionals. Built with Elementor compatibility, multi-location support, HubSpot CRM integration, and AI search optimization.
 Author:       Meridians
 Author URI:   https://meridians.law
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  meridians
 Requires at least: 6.0
 Tested up to: 6.7
 Requires PHP: 8.0

 ═══════════════════════════════════════════
 MERIDIANS DESIGN SYSTEM
 Deep navy authority meets organic warmth.
 Fraunces (display) + Outfit (body)
 ═══════════════════════════════════════════
*/

/* ═══ CSS CUSTOM PROPERTIES ═══ */
:root {
    /* Brand Colors */
    --m-deep-navy: #0a1628;
    --m-midnight: #162a42;
    --m-warm-gold: #c4a265;
    --m-aged-bronze: #a08045;
    --m-parchment: #e8e2d6;
    --m-terracotta: #d4a574;
    --m-white: #faf9f7;

    /* Semantic Colors */
    --m-bg-primary: var(--m-deep-navy);
    --m-bg-secondary: var(--m-midnight);
    --m-accent-primary: var(--m-warm-gold);
    --m-accent-secondary: var(--m-terracotta);
    --m-text-primary: var(--m-parchment);
    --m-text-light: rgba(232, 226, 214, 0.85);
    --m-text-muted: rgba(232, 226, 214, 0.55);
    --m-border: rgba(196, 162, 101, 0.1);
    --m-border-hover: rgba(196, 162, 101, 0.25);

    /* Typography */
    --m-font-display: 'Fraunces', Georgia, serif;
    --m-font-body: 'Outfit', -apple-system, sans-serif;

    /* Spacing Scale */
    --m-space-xs: 0.5rem;
    --m-space-sm: 1rem;
    --m-space-md: 2rem;
    --m-space-lg: 4rem;
    --m-space-xl: 6rem;
    --m-space-2xl: 8rem;

    /* Layout */
    --m-container: 1200px;
    --m-container-narrow: 800px;

    /* Transitions */
    --m-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --m-duration: 0.3s;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--m-font-body);
    font-weight: 400;
    color: var(--m-text-primary);
    background-color: var(--m-bg-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Subtle grain texture overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

/* ═══ TYPOGRAPHY ═══ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--m-font-display);
    font-weight: 400;
    line-height: 1.2;
    color: var(--m-text-primary);
}

h1 { font-size: clamp(2.8rem, 5.5vw, 4.2rem); font-weight: 300; }
h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 300; }
h3 { font-size: clamp(1.4rem, 2vw, 1.6rem); }
h4 { font-size: 1.2rem; }

h1 em, h2 em, h3 em {
    font-style: italic;
    color: var(--m-accent-primary);
}

p {
    color: var(--m-text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

a {
    color: var(--m-accent-primary);
    text-decoration: none;
    transition: color var(--m-duration) var(--m-ease);
}

a:hover {
    color: var(--m-parchment);
}

/* Focus styles for accessibility (WCAG 2.1 AA) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--m-accent-primary);
    outline-offset: 2px;
}

/* ═══ LAYOUT UTILITIES ═══ */
.m-container {
    max-width: var(--m-container);
    margin: 0 auto;
    padding: 0 2rem;
}

.m-container--narrow {
    max-width: var(--m-container-narrow);
}

.m-section {
    padding: var(--m-space-2xl) 0;
}

.m-section--alt {
    background-color: var(--m-bg-secondary);
    position: relative;
}

.m-section--alt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--m-border-hover), transparent);
}

/* ═══ SECTION LABEL ═══ */
.m-label {
    font-family: var(--m-font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--m-accent-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.m-label::before {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: var(--m-accent-primary);
}

.m-label--center {
    justify-content: center;
}

/* ═══ BUTTONS ═══ */
.m-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--m-font-body);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--m-duration) var(--m-ease);
    line-height: 1;
}

.m-btn--primary {
    color: var(--m-deep-navy);
    background: var(--m-accent-primary);
    padding: 1rem 2rem;
}

.m-btn--primary:hover {
    background: var(--m-parchment);
    color: var(--m-deep-navy);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(196, 162, 101, 0.2);
}

.m-btn--secondary {
    color: var(--m-parchment);
    background: transparent;
    padding: 1rem 0.5rem;
    border-bottom: 1px solid rgba(232, 226, 214, 0.2);
}

.m-btn--secondary:hover {
    color: var(--m-accent-primary);
    border-bottom-color: var(--m-accent-primary);
}

.m-btn--outline {
    color: var(--m-accent-primary);
    background: transparent;
    border: 1px solid var(--m-accent-primary);
    padding: 0.85rem 1.75rem;
}

.m-btn--outline:hover {
    background: var(--m-accent-primary);
    color: var(--m-deep-navy);
}

/* ═══ CARDS ═══ */
.m-card {
    background: var(--m-bg-secondary);
    border: 1px solid var(--m-border);
    border-radius: 3px;
    padding: 2.5rem;
    transition: all 0.4s var(--m-ease);
    position: relative;
    overflow: hidden;
}

.m-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--m-accent-primary);
    transition: height 0.4s var(--m-ease);
}

.m-card:hover {
    border-color: var(--m-border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
}

.m-card:hover::before {
    height: 100%;
}

.m-card h3 {
    margin-bottom: 0.75rem;
}

.m-card p {
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ═══ FORMS ═══ */
.m-form-group {
    margin-bottom: 1.25rem;
}

.m-form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--m-text-muted);
    margin-bottom: 0.5rem;
}

.m-form-group input,
.m-form-group select,
.m-form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(10, 22, 40, 0.6);
    border: 1px solid var(--m-border);
    border-radius: 2px;
    color: var(--m-parchment);
    font-family: var(--m-font-body);
    font-size: 0.9rem;
    transition: border-color var(--m-duration) var(--m-ease);
    outline: none;
}

.m-form-group input::placeholder,
.m-form-group textarea::placeholder {
    color: var(--m-text-muted);
}

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

.m-form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c4a265' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    cursor: pointer;
}

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

/* ═══ NAVIGATION ═══ */
.m-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1.25rem 0;
    transition: all 0.4s var(--m-ease);
    background: transparent;
}

.m-nav.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--m-border);
    padding: 0.75rem 0;
}

.m-nav__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--m-container);
    margin: 0 auto;
    padding: 0 2rem;
}

.m-nav__logo {
    font-family: var(--m-font-display);
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--m-parchment);
    text-decoration: none;
    letter-spacing: 0.04em;
}

.m-nav__logo span {
    display: block;
    font-family: var(--m-font-body);
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--m-accent-primary);
    margin-top: 2px;
}

.m-nav__links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    list-style: none;
}

.m-nav__links a {
    font-family: var(--m-font-body);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--m-text-light);
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: color var(--m-duration) var(--m-ease);
    position: relative;
}

.m-nav__links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--m-accent-primary);
    transition: width var(--m-duration) var(--m-ease);
}

.m-nav__links a:hover { color: var(--m-parchment); }
.m-nav__links a:hover::after { width: 100%; }

.m-nav__cta {
    font-family: var(--m-font-body);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--m-deep-navy) !important;
    background: var(--m-accent-primary);
    padding: 0.6rem 1.5rem;
    border-radius: 2px;
    text-decoration: none !important;
    letter-spacing: 0.05em;
    transition: all var(--m-duration) var(--m-ease);
}

.m-nav__cta::after { display: none !important; }

.m-nav__cta:hover {
    background: var(--m-parchment) !important;
    color: var(--m-deep-navy) !important;
    transform: translateY(-1px);
}

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

.m-nav__toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--m-parchment);
    margin: 6px 0;
    transition: 0.3s;
}

/* ═══ HERO ═══ */
.m-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.m-hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 40%, rgba(22, 42, 66, 0.8), transparent),
        radial-gradient(ellipse 50% 50% at 20% 80%, rgba(196, 162, 101, 0.06), transparent),
        radial-gradient(ellipse 40% 40% at 80% 90%, rgba(212, 165, 116, 0.04), transparent);
}

.m-hero__lines {
    position: absolute;
    inset: 0;
    opacity: 0.08;
}

.m-hero__lines svg {
    width: 100%;
    height: 100%;
}

.m-hero__content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding-top: 4rem;
}

.m-hero__eyebrow {
    font-family: var(--m-font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--m-accent-primary);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.m-hero__eyebrow::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--m-accent-primary);
}

.m-hero h1 {
    margin-bottom: 1.75rem;
}

.m-hero__sub {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--m-text-light);
    line-height: 1.8;
    max-width: 540px;
    margin-bottom: 2.5rem;
}

.m-hero__actions {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    flex-wrap: wrap;
}

/* ═══ TRUST BAR ═══ */
.m-trust {
    padding: 3rem 0;
    border-top: 1px solid var(--m-border);
    border-bottom: 1px solid var(--m-border);
}

.m-trust__inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.m-trust__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--m-text-muted);
    letter-spacing: 0.05em;
}

.m-trust__item svg {
    width: 18px;
    height: 18px;
    stroke: var(--m-accent-primary);
    fill: none;
    stroke-width: 1.5;
}

/* ═══ SERVICES GRID ═══ */
.m-services__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.m-services__card .learn-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--m-accent-primary);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: gap var(--m-duration) var(--m-ease);
}

.m-services__card:hover .learn-more {
    gap: 0.85rem;
}

/* ═══ APPROACH SECTION ═══ */
.m-approach__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.m-approach__steps {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin-top: 2.5rem;
}

.m-approach__step {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.m-approach__step-num {
    font-family: var(--m-font-display);
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--m-accent-primary);
    line-height: 1;
    min-width: 36px;
}

.m-approach__step h4 {
    font-family: var(--m-font-body);
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.m-approach__step p {
    font-size: 0.88rem;
    line-height: 1.6;
}

/* ═══ FAQ ═══ */
.m-faq__layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.m-faq__item {
    border-bottom: 1px solid var(--m-border);
}

.m-faq__question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 1.5rem 0;
    font-family: var(--m-font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--m-text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: color var(--m-duration) var(--m-ease);
}

.m-faq__question:hover { color: var(--m-accent-primary); }

.m-faq__question .toggle {
    font-size: 1.2rem;
    color: var(--m-accent-primary);
    transition: transform var(--m-duration) var(--m-ease);
    flex-shrink: 0;
}

.m-faq__item.open .m-faq__question .toggle {
    transform: rotate(45deg);
}

.m-faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--m-ease), padding 0.4s var(--m-ease);
}

.m-faq__item.open .m-faq__answer {
    max-height: 300px;
    padding-bottom: 1.5rem;
}

.m-faq__answer p {
    font-size: 0.9rem;
    line-height: 1.8;
}

/* ═══ TESTIMONIALS ═══ */
.m-testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.m-testimonial {
    background: var(--m-bg-primary);
    border: 1px solid var(--m-border);
    padding: 2.5rem;
    border-radius: 3px;
    position: relative;
}

.m-testimonial__quote {
    font-family: var(--m-font-display);
    font-size: 4rem;
    color: var(--m-accent-primary);
    opacity: 0.3;
    line-height: 1;
    position: absolute;
    top: 1.5rem;
    left: 2rem;
}

.m-testimonial p {
    font-size: 0.92rem;
    font-style: italic;
    position: relative;
    z-index: 1;
    margin-bottom: 1.5rem;
    padding-top: 1.5rem;
}

.m-testimonial__author {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--m-parchment);
}

.m-testimonial__author span {
    display: block;
    font-weight: 300;
    color: var(--m-text-muted);
    font-size: 0.78rem;
    margin-top: 2px;
}

/* ═══ STATS ═══ */
.m-stats__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.m-stat {
    text-align: center;
    padding: 2.5rem 2rem;
}

.m-stat__number {
    font-family: var(--m-font-display);
    font-size: 3rem;
    font-weight: 300;
    color: var(--m-accent-primary);
    line-height: 1;
    margin-bottom: 0.75rem;
}

.m-stat h4 {
    font-family: var(--m-font-body);
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.m-stat p {
    font-size: 0.85rem;
    line-height: 1.7;
}

/* ═══ INTAKE FORM SECTION ═══ */
.m-intake__layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: start;
}

.m-intake__benefits {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.m-intake__benefits li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.88rem;
    color: var(--m-text-light);
}

.m-intake__benefits li svg {
    width: 16px;
    height: 16px;
    stroke: var(--m-accent-primary);
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}

.m-intake__form {
    background: var(--m-bg-secondary);
    border: 1px solid var(--m-border);
    border-radius: 3px;
    padding: 3rem;
}

.m-intake__form h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.m-intake__form .form-subtitle {
    font-size: 0.85rem;
    color: var(--m-text-muted);
    margin-bottom: 2rem;
}

.m-form-disclaimer {
    font-size: 0.72rem;
    color: var(--m-text-muted);
    margin-top: 1rem;
    line-height: 1.6;
}

/* ═══ CTA SECTION ═══ */
.m-cta {
    text-align: center;
}

.m-cta p {
    max-width: 520px;
    margin: 0 auto 2.5rem;
}

/* ═══ FOOTER ═══ */
.m-footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--m-border);
}

.m-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.m-footer__brand p {
    font-size: 0.85rem;
    color: var(--m-text-muted);
    line-height: 1.7;
    max-width: 280px;
    margin-top: 1rem;
}

.m-footer__col h4 {
    font-family: var(--m-font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--m-accent-primary);
    margin-bottom: 1.25rem;
}

.m-footer__col ul {
    list-style: none;
}

.m-footer__col li {
    margin-bottom: 0.6rem;
}

.m-footer__col a {
    font-size: 0.85rem;
    color: var(--m-text-muted);
    transition: color var(--m-duration) var(--m-ease);
}

.m-footer__col a:hover { color: var(--m-parchment); }

.m-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(196, 162, 101, 0.06);
    font-size: 0.75rem;
    color: var(--m-text-muted);
}

.m-footer__legal a {
    color: var(--m-text-muted);
    margin-left: 1.5rem;
}

.m-footer__legal a:hover { color: var(--m-accent-primary); }

/* ═══ BLOG STYLES ═══ */
.m-blog__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.m-blog-card {
    background: var(--m-bg-secondary);
    border: 1px solid var(--m-border);
    border-radius: 3px;
    overflow: hidden;
    transition: all 0.4s var(--m-ease);
}

.m-blog-card:hover {
    border-color: var(--m-border-hover);
    transform: translateY(-4px);
}

.m-blog-card__image {
    aspect-ratio: 16/9;
    background: var(--m-bg-primary);
    overflow: hidden;
}

.m-blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--m-ease);
}

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

.m-blog-card__content {
    padding: 2rem;
}

.m-blog-card__meta {
    font-size: 0.75rem;
    color: var(--m-text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.m-blog-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.m-blog-card h3 a {
    color: var(--m-parchment);
}

.m-blog-card h3 a:hover {
    color: var(--m-accent-primary);
}

/* Single blog post */
.m-post {
    max-width: 760px;
    margin: 0 auto;
    padding-top: 8rem;
}

.m-post__header {
    margin-bottom: 3rem;
}

.m-post__meta {
    font-size: 0.8rem;
    color: var(--m-text-muted);
    margin-bottom: 1rem;
}

.m-post__content {
    font-size: 1.05rem;
    line-height: 1.9;
}

.m-post__content h2 {
    font-size: 1.6rem;
    margin: 2.5rem 0 1rem;
}

.m-post__content h3 {
    font-size: 1.3rem;
    margin: 2rem 0 0.75rem;
}

.m-post__content ul, .m-post__content ol {
    margin: 1rem 0 1rem 1.5rem;
    color: var(--m-text-light);
}

.m-post__content li {
    margin-bottom: 0.5rem;
}

.m-post__content blockquote {
    border-left: 3px solid var(--m-accent-primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-family: var(--m-font-display);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--m-accent-primary);
}

/* ═══ LOCATION PAGES ═══ */
.m-location__hero {
    padding: 10rem 0 4rem;
}

.m-location__map {
    aspect-ratio: 16/7;
    background: var(--m-bg-secondary);
    border: 1px solid var(--m-border);
    border-radius: 3px;
    margin-bottom: var(--m-space-lg);
}

/* ═══ CLIENT PORTAL ═══ */
.m-portal {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 6rem;
}

.m-portal__box {
    background: var(--m-bg-secondary);
    border: 1px solid var(--m-border);
    border-radius: 3px;
    padding: 3rem;
    width: 100%;
    max-width: 480px;
    text-align: center;
}

.m-portal__box h2 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.m-portal__box p {
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* ═══ SCROLL ANIMATIONS ═══ */
.m-fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ═══ HERO SCROLL INDICATOR ═══ */
.m-hero__scroll {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--m-text-muted);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: m-pulse-down 2s ease infinite;
}

.m-hero__scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--m-accent-primary), transparent);
}

@keyframes m-pulse-down {
    0%, 100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
    50% { opacity: 1; transform: translateX(-50%) translateY(6px); }
}

/* ═══ APPROACH VISUAL ═══ */
.m-approach__visual {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.m-approach__symbol {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 1px solid rgba(196, 162, 101, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.m-approach__symbol::before {
    content: '';
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    border: 1px solid rgba(196, 162, 101, 0.1);
}

.m-approach__symbol::after {
    content: '';
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 1px solid rgba(196, 162, 101, 0.08);
}

.m-approach__quote {
    font-family: var(--m-font-display);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--m-accent-primary);
    text-align: center;
    max-width: 200px;
    line-height: 1.4;
    z-index: 1;
}

@media (max-width: 968px) {
    .m-approach__visual { display: none; }
}

/* ═══ CHATBOT WIDGET POSITIONING ═══ */
#hubspot-messages-iframe-container {
    z-index: 99 !important;
}

/* ═══ ELEMENTOR OVERRIDES ═══ */
/* Ensure Elementor inherits Meridians brand styles */
.elementor-section {
    font-family: var(--m-font-body);
}

.elementor-heading-title {
    font-family: var(--m-font-display);
    color: var(--m-text-primary);
}

.elementor-widget-text-editor {
    color: var(--m-text-light);
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 968px) {
    .m-nav__links { display: none; }
    .m-nav__toggle { display: block; }

    .m-nav__links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 22, 40, 0.98);
        backdrop-filter: blur(20px);
        padding: 2rem;
        gap: 1.25rem;
        border-bottom: 1px solid var(--m-border);
    }

    .m-services__grid { grid-template-columns: 1fr; }
    .m-approach__grid { grid-template-columns: 1fr; }
    .m-faq__layout { grid-template-columns: 1fr; gap: 2rem; }
    .m-intake__layout { grid-template-columns: 1fr; gap: 3rem; }
    .m-testimonials__grid { grid-template-columns: 1fr; }
    .m-stats__grid { grid-template-columns: 1fr; }
    .m-blog__grid { grid-template-columns: 1fr; }
    .m-footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .m-form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .m-container { padding: 0 1.25rem; }
    .m-hero__content { padding-top: 2rem; }
    .m-hero__actions { flex-direction: column; align-items: flex-start; }
    .m-intake__form { padding: 2rem 1.5rem; }
    .m-footer__grid { grid-template-columns: 1fr; }
    .m-trust__inner { gap: 1.5rem; }
}

/* ═══ PRINT STYLES ═══ */
@media print {
    body { background: white; color: black; }
    .m-nav, .m-footer, .m-hero__lines, body::before { display: none; }
    a { color: black; text-decoration: underline; }
}
