/* Magnify Real Estate Group - Master Stylesheet */
@font-face {
    font-family: 'Gistesy';
    src: url('fonts/Gistesy.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Geometos';
    src: url('fonts/geometos-neue-bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --navy: #092A6D;
    --navy-deep: #061E4F;
    --navy-darkest: #030F28;
    --ivory: #F7F5F0;
    --brass: #B99A5F;
    --sky: #E8EDF7;
}
body, html { font-family: 'Source Sans 3', sans-serif; color: var(--navy); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* ===== HEADER ===== */
.mre-header { position: absolute; top: 0; left: 0; right: 0; z-index: 9999; background: transparent; }
/* .mre-header.scrolled removed - header not sticky */
body.admin-bar .mre-header { top: 32px; }
.header-logo-row { display: flex; align-items: center; max-width: 1280px; margin: 0 auto; padding: 12px 32px; border-bottom: 1px solid rgba(185,154,95,0.4); }
.header-logo-row img { height: 40px; width: auto; }
.header-divider { height: 1px; background: var(--brass); opacity: 0.4; }
.header-nav-row { display: flex; align-items: center; justify-content: flex-end; max-width: 1280px; margin: 0 auto; padding: 10px 32px; gap: 48px !important; }
.header-nav-row nav { display: flex !important; align-items: center; gap: 48px !important; }
.header-nav-row a:not(.phone-cta) { font-family: 'Jost', sans-serif; font-size: 14px !important; white-space: nowrap; font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em; color: rgba(255,255,255,0.85); transition: color 0.2s; }
.header-nav-row a:not(.phone-cta):hover, .header-nav-row a.active { color: #fff; }
.phone-cta { display: inline-flex; white-space: nowrap; margin-left: 0.5rem; align-items: center; gap: 8px; border: 1px solid var(--brass); padding: 10px 22px; font-family: 'Jost', sans-serif; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: #fff; transition: all 0.2s; }
.phone-cta:hover { background: var(--brass); border-color: var(--brass); color: var(--navy); }

/* ===== HERO ===== */
.mre-hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; background: var(--navy); padding-top: 110px; }
.mre-hero .bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.mre-hero .overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(6,30,79,0.75) 0%, rgba(9,42,109,0.4) 50%, transparent 100%); }
.hero-content { position: relative; z-index: 10; padding: 60px 0 100px; max-width: 52%; }
.kicker { font-family: 'Jost', sans-serif; text-transform: uppercase; letter-spacing: 0.35em; font-weight: 600; font-size: 0.72rem; display: inline-flex; align-items: center; gap: 1rem; color: var(--brass); }
.kicker::before { content: ''; display: inline-block; width: 2.5rem; height: 1px; background: var(--brass); }
.display-head { font-family: 'Geometos', 'Jost', sans-serif; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.08; font-weight: 700; }
.script-accent { font-family: 'Gistesy', cursive; font-weight: 400; font-style: normal; line-height: 1.2; }
.mre-hero h1 { margin-top: 20px; font-size: 3.8rem; color: #fff; }
.mre-hero .script-accent { margin-top: 12px; font-size: 2.8rem; color: var(--brass); }
.mre-hero .body-text { margin-top: 24px; font-size: 1rem; line-height: 1.75; color: rgba(255,255,255,0.8); max-width: 560px; }
.btn-row { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }
.btn-gold { display: inline-flex; align-items: center; gap: 10px; background: var(--brass); padding: 15px 30px; font-family: 'Jost', sans-serif; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; color: var(--navy); transition: background 0.2s; }
.btn-gold:hover { background: #C8A96F; }
.btn-outline { display: inline-flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,0.5); padding: 15px 30px; font-family: 'Jost', sans-serif; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; color: #fff; background: transparent; transition: all 0.2s; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.05); }
.btn-outline-navy { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--navy); padding: 13px 26px; font-family: 'Jost', sans-serif; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; color: var(--navy); margin-top: 28px; transition: all 0.2s; }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }

/* ===== BIG 4 CARDS ===== */
.big4-section { position: relative; padding: 0 0 96px; background: var(--ivory); }
.big4-navy-top { position: absolute; top: 0; left: 0; right: 0; height: 160px; background: var(--navy-deep); }
.big4-grid { position: relative; z-index: 10; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: -80px; }
.big4-card { display: flex; flex-direction: column; gap: 16px; background: #fff; padding: 36px 28px; position: relative; border: 1px solid rgba(9,42,109,0.06); transition: transform 0.2s; }
.big4-card:hover { transform: translateY(-4px); }
.big4-card::before, .big4-card::after { content: ''; position: absolute; width: 22px; height: 22px; border-color: var(--brass); border-style: solid; }
.big4-card::before { top: 12px; left: 12px; border-width: 2px 0 0 2px; }
.big4-card::after { bottom: 12px; right: 12px; border-width: 0 2px 2px 0; }
.big4-card .icon { width: 48px; height: 48px; border: 1px solid rgba(9,42,109,0.12); display: flex; align-items: center; justify-content: center; color: var(--navy); }
.big4-card h3 { font-family: 'Jost', sans-serif; font-size: 0.88rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--navy); }
.big4-card p { font-size: 0.82rem; line-height: 1.65; color: rgba(9,42,109,0.6); flex: 1; }
.big4-card .explore { font-family: 'Jost', sans-serif; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; color: var(--brass); display: inline-flex; align-items: center; gap: 6px; }

/* ===== STEPHANIE SECTION ===== */
.steph-section { background: var(--ivory); padding: 96px 0; }
.steph-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.steph-portrait { position: relative; }
.steph-portrait img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: center 34%; }
.steph-portrait::before, .steph-portrait::after { content: ''; position: absolute; width: 32px; height: 32px; border-color: var(--brass); border-style: solid; }
.steph-portrait::before { top: -8px; left: -8px; border-width: 2px 0 0 2px; }
.steph-portrait::after { bottom: -8px; right: -8px; border-width: 0 2px 2px 0; }
.steph-text .kicker { color: rgba(9,42,109,0.6); }
.steph-text h2 { margin-top: 16px; font-size: 2.2rem; color: var(--navy); }
.steph-text .body-text { margin-top: 20px; font-size: 0.95rem; line-height: 1.8; color: rgba(9,42,109,0.7); }

/* ===== MARKET BAND ===== */
.market-band { position: relative; overflow: hidden; background: var(--navy); padding: 96px 0; color: #fff; }
.market-band .bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.2; }
.market-band .overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(6,30,79,0.9), rgba(9,42,109,0.7)); }
.market-grid { position: relative; z-index: 10; display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: center; }
.market-grid .kicker { color: var(--brass); }
.market-grid h2 { margin-top: 16px; font-size: 2.2rem; color: #fff; }
.market-grid .body-text { margin-top: 16px; font-size: 0.95rem; line-height: 1.8; color: rgba(255,255,255,0.7); }
.cred-panel { display: flex; flex-direction: column; gap: 16px; }
.cred-card { border: 1px solid rgba(255,255,255,0.2); padding: 22px 26px; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.cred-card .abbr { font-family: 'Jost', sans-serif; font-size: 1.4rem; font-weight: 700; letter-spacing: 0.04em; }
.cred-card .label { font-family: 'Jost', sans-serif; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.2em; color: rgba(255,255,255,0.6); }

/* ===== CONTACT ===== */
.contact-section { background: var(--navy); padding: 80px 0; color: #fff; }
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; }
.contact-left .kicker { color: var(--brass); }
.contact-left h2 { margin-top: 16px; font-size: 2rem; color: #fff; }
.contact-left .script-accent { margin-top: 8px; font-size: 2rem; color: var(--brass); }
.contact-left .body-text { margin-top: 16px; font-size: 0.9rem; line-height: 1.7; color: rgba(255,255,255,0.65); }
.contact-info { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; font-size: 0.85rem; }
.contact-info a { color: rgba(255,255,255,0.85); display: flex; align-items: center; gap: 8px; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-family: 'Jost', sans-serif; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.2em; color: rgba(255,255,255,0.5); }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid rgba(255,255,255,0.2); background: transparent; padding: 12px 14px; font-size: 0.85rem; color: #fff; font-family: inherit; transition: border-color 0.2s; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--brass); }
.contact-form textarea { resize: none; min-height: 110px; }
.btn-send { margin-top: 8px; background: var(--brass); padding: 15px 30px; font-family: 'Jost', sans-serif; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; color: var(--navy); border: none; cursor: pointer; transition: background 0.2s; }
.btn-send:hover { background: #C8A96F; }

/* ===== FOOTER ===== */
.mre-footer-main { background: #071E4F; padding: 64px 0 36px; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-logo { height: 34px; width: auto; margin-bottom: 14px; }
.footer-script { font-family: 'Gistesy', cursive; font-size: 1.5rem; color: var(--brass); margin-bottom: 14px; }
.footer-desc { font-size: 0.78rem; line-height: 1.7; color: rgba(255,255,255,0.55); margin-bottom: 16px; }
.social-icons { display: flex; gap: 8px; }
.social-icons a { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 600; color: #fff; transition: all 0.2s; }
.social-icons a:hover { border-color: var(--brass); color: var(--brass); }
.footer-col-header { font-family: 'Jost', sans-serif; font-size: 0.65rem; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 20px; display: inline-flex; align-items: center; gap: 1rem; }
.footer-col-header::before { content: ''; width: 1.5rem; height: 1px; background: rgba(255,255,255,0.3); }
.footer-nav a { display: block; font-family: 'Jost', sans-serif; font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: #fff; margin-bottom: 12px; transition: color 0.2s; }
.footer-nav a:hover { color: var(--brass); }
.footer-contact a, .footer-contact p { font-size: 0.82rem; color: rgba(255,255,255,0.8); margin-bottom: 12px; display: block; }
.footer-logos { background: #051838; padding: 40px 0; }
.footer-logos-inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: 32px; align-items: center; max-width: 800px; margin: 0 auto; }
.footer-logos-inner .divider { width: 1px; height: 56px; background: rgba(255,255,255,0.15); }
.logo-card { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.logo-card img { height: 48px; width: auto; background: #fff; padding: 8px 14px; border-radius: 2px; }
.logo-card span { font-family: 'Jost', sans-serif; font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.25em; color: rgba(255,255,255,0.45); }
.footer-compliance { background: var(--navy-darkest); padding: 24px 0; border-top: 1px solid rgba(255,255,255,0.08); }
.compliance-text { font-size: 0.68rem; line-height: 1.7; color: rgba(255,255,255,0.4); }
.compliance-text p { margin-bottom: 8px; }

/* ===== INNER PAGE HERO ===== */
.inner-hero { position: relative; min-height: 56vh; display: flex; align-items: center; overflow: hidden; background: var(--navy); padding-top: 110px; }
.inner-hero .bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.inner-hero .overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(6,30,79,0.8) 0%, rgba(9,42,109,0.5) 60%, transparent 100%); }
.inner-hero .hero-content { padding: 40px 0 60px; }
.inner-hero h1 { font-size: 3.2rem; color: #fff; margin-top: 16px; }
.inner-hero .script-accent { font-size: 2.2rem; color: var(--brass); margin-top: 8px; }

/* ===== CONTENT SECTIONS ===== */
.content-section { padding: 80px 0; }
.content-section.ivory { background: var(--ivory); }
.content-section.white { background: #fff; }
.content-section.navy { background: var(--navy); color: #fff; }
.section-header { margin-bottom: 40px; }
.section-header .kicker { margin-bottom: 8px; }
.section-header h2 { font-size: 2rem; }

/* Steps Grid */
.steps-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-top: 40px; }
.step-card { padding: 32px; border: 1px solid rgba(9,42,109,0.08); background: #fff; }
.step-card .step-num { font-family: 'Jost', sans-serif; font-size: 2.4rem; font-weight: 700; color: rgba(9,42,109,0.1); margin-bottom: 12px; }
.step-card h3 { font-family: 'Jost', sans-serif; font-size: 0.92rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--navy); margin-bottom: 10px; }
.step-card p { font-size: 0.88rem; line-height: 1.7; color: rgba(9,42,109,0.65); }

/* FAQ */
.faq-section { padding: 80px 0; background: #fff; }
.faq-list { max-width: 800px; }
.faq-item { border-bottom: 1px solid rgba(9,42,109,0.1); padding: 24px 0; }
.faq-item h3 { font-family: 'Jost', sans-serif; font-size: 0.92rem; font-weight: 700; color: var(--navy); margin-bottom: 12px; cursor: pointer; }
.faq-item p { font-size: 0.88rem; line-height: 1.7; color: rgba(9,42,109,0.65); }

/* Team Feature + Four-Person Grid */
.team-feature { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: center; }
.team-feature-photo { position: relative; }
.team-feature-photo::before, .team-feature-photo::after { content: ''; position: absolute; width: 32px; height: 32px; border-color: var(--brass); border-style: solid; z-index: 2; pointer-events: none; }
.team-feature-photo::before { top: -8px; left: -8px; border-width: 2px 0 0 2px; }
.team-feature-photo::after { right: -8px; bottom: -8px; border-width: 0 2px 2px 0; }
.team-feature-photo img { display: block; width: 100%; aspect-ratio: 3/2; object-fit: cover; object-position: center; }
.team-feature-copy .kicker { color: rgba(9,42,109,0.6); }
.team-feature-copy h2 { margin-top: 16px; font-size: 1.8rem; color: var(--navy); }
.team-feature-copy p { margin-top: 18px; font-size: 0.95rem; line-height: 1.8; color: rgba(9,42,109,0.7); }
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 64px; }
.team-card { min-width: 0; text-align: left; background: #fff; border: 1px solid rgba(9,42,109,0.1); box-shadow: 0 18px 42px -34px rgba(6,30,79,0.5); overflow: hidden; }
.team-card .photo { display: block; width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center 22%; margin: 0; }
.team-card-copy { padding: 20px 18px 22px; border-top: 3px solid var(--brass); }
.team-card h3 { font-family: 'Jost', sans-serif; font-size: 0.88rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--navy); }
.team-card p { font-size: 0.82rem; line-height: 1.5; color: rgba(9,42,109,0.6); margin-top: 6px; }

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

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

/* Force white headings in dark sections - override Divi default h2{color:#333} */
.market-band h2, .market-grid h2, .market-band .display-head { color: #fff; }
.contact-section h2, .contact-left h2, .contact-section .display-head { color: #fff; }
.mre-hero h1, .mre-hero .display-head { color: #fff; }
.inner-hero h1, .inner-hero .display-head { color: #fff; }
@media (max-width: 768px) {
    .wrap { padding: 0 24px; }
    .header-logo-row { padding: 14px 20px; }
    .header-logo-row img { height: 28px; }
    .header-nav-row { padding: 10px 20px; flex-direction: column; gap: 10px !important; }
    .header-nav-row nav { width: 100%; gap: 0.55rem 1.25rem !important; flex-wrap: wrap; justify-content: center; }
    .header-nav-row nav a { font-size: 0.6rem !important; letter-spacing: 0.1em; }
    .phone-cta { position: static; margin-left: 0; padding: 8px 16px; font-size: 0.6rem; }
    .mre-hero { min-height: 75vh; padding-top: 140px; }
    .inner-hero { padding-top: 170px; }
    .mre-hero h1 { font-size: 2rem; }
    .mre-hero .script-accent { font-size: 1.6rem; }
    .mre-hero .body-text { font-size: 0.85rem; }
    .hero-content { padding: 30px 0 50px; max-width: 100%; }
    .btn-row { flex-direction: column; gap: 12px; }
    .btn-row a { text-align: center; display: block; }
    .big4-grid { grid-template-columns: 1fr !important; gap: 16px; }
    .intro-grid { grid-template-columns: 1fr !important; }
    .intro-portrait { max-width: 250px; margin: 0 auto 2rem; }
    .market-content { grid-template-columns: 1fr !important; gap: 2rem; }
    .market-content .cred-panel { overflow: hidden; }
    .cred-card { padding: 16px; }
    .cred-card .cred-abbr { font-size: 1.4rem; }
    .cred-card .cred-full { font-size: 0.7rem; }
    .contact-grid { grid-template-columns: 1fr !important; }
    .footer-grid { grid-template-columns: 1fr !important; gap: 2rem; }
    .broker-logos { flex-direction: column; gap: 1.5rem; align-items: flex-start; }
    .broker-logos img { max-width: 200px; }
    .steps-grid { grid-template-columns: 1fr !important; }
    .steph-grid { grid-template-columns: 1fr; gap: 36px; }
    .steph-portrait { max-width: 560px; margin: 0 auto; }
    .team-feature { grid-template-columns: 1fr; gap: 36px; }
    .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
    .faq-section { padding: 50px 0; }
    .section-band { padding: 50px 0; }
    .display-head { font-size: 1.5rem; }
    h2.display-head { font-size: 1.5rem; }
    .kicker { font-size: 0.6rem; letter-spacing: 0.2em; }
}

@media (max-width: 480px) {
    .wrap { padding: 0 16px; }
    .header-logo-row { padding: 10px 16px; }
    .header-logo-row img { height: 22px; }
    .header-nav-row { padding: 8px 16px; gap: 8px !important; }
    .header-nav-row nav { gap: 0.45rem 1rem !important; }
    .header-nav-row nav a { font-size: 0.58rem !important; letter-spacing: 0.08em; }
    .phone-cta { font-size: 0.55rem; padding: 6px 12px; }
    .mre-hero { padding-top: 160px; }
    .inner-hero { padding-top: 170px; }
    .mre-hero h1 { font-size: 1.6rem; }
    .mre-hero .script-accent { font-size: 1.3rem; }
    .hero-content { padding: 20px 0 40px; }
    .big4-card { padding: 16px; }
    .team-grid { grid-template-columns: 1fr; }
    .team-card .photo { aspect-ratio: 5/6; }
    .display-head { font-size: 1.3rem; }
}
/* FIX: Override Divi h2 color in dark sections */
.market-band h2,.market-grid h2,.market-band .display-head{color:#fff !important;}
.contact-section h2,.contact-left h2,.contact-section .display-head{color:#fff !important;}
.mre-hero h1,.inner-hero h1{color:#fff !important;}

/* === OVERRIDE DIVI DEFAULT h2 COLOR (must be after all media queries) === */
.market-band h2,
.market-grid h2,
.market-band .display-head {
  color: #fff !important;
}
.contact-section h2,
.contact-left h2,
.contact-section .display-head {
  color: #fff !important;
}
.mre-hero h1,
.inner-hero h1 {
  color: #fff !important;
}
