/*
Theme Name:  Mango Stock Mortgage
Theme URI:   https://www.mangostockmortgage.com
Author:      Mango Stock Mortgage
Author URI:  https://www.mangostockmortgage.com
Description: Custom WordPress theme for Mango Stock Mortgage — a licensed mortgage brokerage offering QM and Non-QM home loan products. NMLS# 2815478.
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mango-mortgage
Tags:        mortgage, finance, one-page, custom-colors, custom-logo, full-width-template
*/

/* ═══════════════════════════════════════
   MANGO STOCK MORTGAGE — MAIN STYLES
   Colors sourced directly from brand logo
═══════════════════════════════════════ */
:root {
  --forest:   #1a3d28;
  --forest2:  #234d34;
  --orange:   #f07020;
  --gold:     #f5b832;
  --charcoal: #4a4540;
  --white:    #ffffff;
  --off:      #f7f5f1;
  --muted:    #7a7268;
  --border:   rgba(26,61,40,0.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Instrument Sans', sans-serif;
  background: var(--off);
  color: var(--charcoal);
  overflow-x: hidden;
}

/* ── NAV ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  height: 70px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 56px;
  background: rgba(247,245,241,0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.site-branding img,
.custom-logo { height: 40px; width: auto; }
.main-navigation ul { display: flex; align-items: center; gap: 36px; list-style: none; margin: 0; padding: 0; }
.main-navigation a {
  font-family: 'Syne', sans-serif;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; color: var(--muted);
  transition: color 0.18s;
}
.main-navigation a:hover { color: var(--forest); }
.nav-cta-btn {
  background: var(--forest) !important; color: white !important;
  padding: 9px 22px; border-radius: 6px;
  transition: background 0.2s !important;
}
.nav-cta-btn:hover { background: var(--orange) !important; }

/* ── HERO ── */
.hero-section {
  padding-top: 70px; min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
}
.hero-left, .hero-l {
  background: var(--forest);
  padding: 100px 56px 88px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.hero-watermark {
  position: absolute; bottom: -10%; left: -15%;
  width: 85%; opacity: 0.05;
  filter: brightness(10); transform: rotate(-15deg); pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 32px;
  position: relative; z-index: 1;
}
.hero-eyebrow-bar { width: 28px; height: 2px; background: var(--gold); border-radius: 2px; }
.hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.8rem, 4vw, 5rem);
  font-weight: 800; line-height: 1.0;
  letter-spacing: -0.025em; color: white;
  margin-bottom: 10px; position: relative; z-index: 1;
}
.hero-rule {
  width: 72px; height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--gold));
  border-radius: 2px; margin-bottom: 28px; position: relative; z-index: 1;
}
.hero-subtitle {
  font-size: 1.05rem; line-height: 1.82; font-weight: 300;
  color: rgba(255,255,255,0.58);
  max-width: 400px; margin-bottom: 48px; position: relative; z-index: 1;
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; position: relative; z-index: 1; }
.hero-stats {
  display: flex; gap: 40px; margin-top: 64px;
  padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.1);
  position: relative; z-index: 1;
}
.stat-number { font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 800; color: white; line-height: 1; }
.stat-label  { font-size: 0.76rem; color: rgba(255,255,255,0.4); letter-spacing: 0.06em; margin-top: 4px; }
.hero-right, .hero-r {
  background: var(--white); padding: 100px 56px 88px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
  border-left: 1px solid rgba(26,61,40,0.06);
}
.hero-right-wm {
  position: absolute; top: -6%; right: -10%;
  width: 56%; opacity: 0.04; transform: rotate(12deg); pointer-events: none;
}
.hero-products-label {
  font-family: 'Syne', sans-serif; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 24px;
  display: flex; align-items: center; gap: 10px;
}
.hero-products-label::before { content: ''; width: 20px; height: 2px; background: var(--orange); border-radius: 2px; }
.product-cards-list { display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; list-style: none; }
.product-card-item {
  background: var(--off); border: 1px solid var(--border);
  border-radius: 10px; padding: 20px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.product-card-item:hover { border-color: rgba(240,112,32,0.3); box-shadow: 0 6px 24px rgba(26,61,40,0.07); transform: translateX(4px); }
.product-card-name { font-family: 'Syne', sans-serif; font-size: 0.94rem; font-weight: 700; color: var(--forest); margin-bottom: 3px; }
.product-card-desc { font-size: 0.8rem; color: var(--muted); font-weight: 300; }

/* ── BUTTONS ── */
.btn-primary {
  font-family: 'Syne', sans-serif;
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; padding: 14px 30px; border-radius: 6px;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  color: white; transition: opacity 0.2s, transform 0.2s;
  border: none; cursor: pointer; display: inline-block;
  box-shadow: 0 6px 20px rgba(240,112,32,0.35);
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-2px); color: white; }
.btn-ghost {
  font-family: 'Syne', sans-serif;
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; padding: 14px 30px; border-radius: 6px;
  border: 1.5px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.7);
  transition: border-color 0.2s, color 0.2s; display: inline-block;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.55); color: white; }

/* ── BADGE ── */
.badge {
  font-family: 'Syne', sans-serif; font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 100px; white-space: nowrap; flex-shrink: 0;
}
.badge-qm   { background: rgba(26,61,40,0.09);  color: var(--forest); }
.badge-nqm  { background: rgba(240,112,32,0.12); color: var(--orange); }

/* ── TICKER ── */
.ticker-bar { background: var(--forest); padding: 13px 0; overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-flex; animation: msm-tick 32s linear infinite; }
.ticker-item {
  font-family: 'Syne', sans-serif; font-size: 0.67rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.3); padding: 0 30px;
  display: inline-flex; align-items: center; gap: 12px;
}
.ticker-item::after { content: ''; width: 3px; height: 3px; background: var(--orange); border-radius: 50%; }
@keyframes msm-tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── SECTION BASE ── */
.msm-section { padding: 112px 56px; }
.msm-section--white  { background: var(--white); border-top: 1px solid var(--border); }
.msm-section--off    { background: var(--off);   border-top: 1px solid var(--border); }
.msm-section--forest { background: var(--forest); }

.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Syne', sans-serif; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 22px;
}
.section-label::before { content: ''; width: 22px; height: 2px; background: var(--orange); border-radius: 2px; }
.section-label--light { color: var(--gold); }
.section-label--light::before { background: var(--gold); }

.section-heading {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 3vw, 3.2rem);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; color: var(--forest);
}
.section-heading--light { color: white; }
.section-rule {
  width: 52px; height: 2.5px;
  background: linear-gradient(90deg, var(--orange), var(--gold));
  border-radius: 2px; margin: 14px 0 22px;
}
.section-rule--center { margin: 14px auto 22px; }
.body-text { font-size: 1.02rem; line-height: 1.82; color: var(--muted); font-weight: 300; }
.body-text--light { color: rgba(255,255,255,0.5); }

/* ── ABOUT / BROKER ── */
.broker-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: center; }
.broker-visual { position: relative; }
.broker-logo-box {
  background: var(--off); border: 1px solid var(--border);
  border-radius: 20px; padding: 60px 44px;
  text-align: center; position: relative; overflow: hidden;
}
.broker-logo-box::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 55% 45%, rgba(240,112,32,0.08), transparent 65%);
}
.broker-logo-box img { width: 82%; position: relative; z-index: 1; filter: drop-shadow(0 20px 44px rgba(240,112,32,0.18)); animation: msm-bob 7s ease-in-out infinite; }
@keyframes msm-bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
.broker-floater {
  position: absolute; background: white; border: 1px solid var(--border);
  border-radius: 8px; padding: 11px 16px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.07);
  font-family: 'Syne', sans-serif; font-size: 0.73rem; font-weight: 700;
  display: flex; align-items: center; gap: 8px; color: var(--forest);
}
.broker-floater--dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; background: var(--orange); }
.broker-floater--dot-green { background: var(--forest); }
.broker-floater--left  { bottom: 18px; left: -18px; }
.broker-floater--right { top: 18px; right: -18px; }

.broker-points { display: flex; flex-direction: column; margin-top: 10px; }
.broker-point {
  padding: 22px 0; border-bottom: 1px solid var(--border);
  display: flex; gap: 20px; align-items: flex-start;
}
.broker-point:first-child { border-top: 1px solid var(--border); }
.broker-point-number { font-family: 'Syne', sans-serif; font-size: 0.68rem; font-weight: 800; color: var(--orange); min-width: 22px; padding-top: 2px; }
.broker-point-title  { font-family: 'Syne', sans-serif; font-size: 0.96rem; font-weight: 700; color: var(--forest); margin-bottom: 5px; }
.broker-point-body   { font-size: 0.9rem; color: var(--muted); line-height: 1.65; font-weight: 300; }

/* ── PRODUCTS ── */
.products-intro { text-align: center; max-width: 600px; margin: 0 auto 64px; }
.products-grid  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.loan-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; padding: 34px 30px;
  position: relative; overflow: hidden;
  transition: box-shadow 0.22s, transform 0.22s, border-color 0.22s;
}
.loan-card:hover { box-shadow: 0 14px 44px rgba(26,61,40,0.09); transform: translateY(-4px); border-color: rgba(240,112,32,0.22); }
.loan-card-watermark { position: absolute; bottom: -10px; right: -10px; width: 72px; opacity: 0.05; transform: rotate(-10deg); pointer-events: none; }
.loan-card-tag {
  font-family: 'Syne', sans-serif; font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 100px; display: inline-block; margin-bottom: 18px;
}
.loan-card-tag--qm  { background: rgba(26,61,40,0.08);  color: var(--forest); }
.loan-card-tag--nqm { background: rgba(240,112,32,0.12); color: var(--orange); }
.loan-card h3 { font-family: 'Syne', sans-serif; font-size: 1.05rem; font-weight: 800; color: var(--forest); margin-bottom: 10px; }
.loan-card p  { font-size: 0.88rem; color: var(--muted); line-height: 1.72; font-weight: 300; }

/* ── CTA BAND ── */
.cta-band {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between;
  gap: 48px; flex-wrap: wrap; padding: 100px 56px;
}
.cta-band-ghost { position: absolute; right: -4%; top: 50%; transform: translateY(-50%); height: 150%; opacity: 0.05; filter: brightness(10); pointer-events: none; }
.cta-band-content { position: relative; z-index: 1; }
.cta-band-action  { position: relative; z-index: 1; flex-shrink: 0; }
.cta-band-content h2 { color: white; max-width: 500px; margin-bottom: 10px; }
.cta-band-content p  { color: rgba(255,255,255,0.48); font-weight: 300; font-size: 1rem; }

/* ── FAQ ── */
.faq-layout { display: grid; grid-template-columns: 300px 1fr; gap: 96px; align-items: start; }
.faq-sidebar { position: sticky; top: 90px; }
.faq-sidebar-deco { margin-top: 44px; width: 88px; opacity: 0.14; filter: grayscale(1) contrast(1.1); }
.faq-list    { display: flex; flex-direction: column; }
.faq-item    { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-question {
  width: 100%; background: none; border: none; cursor: pointer;
  padding: 26px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-family: 'Syne', sans-serif; font-size: 0.96rem; font-weight: 700;
  color: var(--forest); text-align: left; transition: color 0.18s;
}
.faq-question:hover { color: var(--orange); }
.faq-icon {
  width: 30px; height: 30px; min-width: 30px;
  border: 1.5px solid var(--border); border-radius: 50%;
  position: relative; flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}
.faq-icon::before, .faq-icon::after {
  content: ''; position: absolute; background: var(--forest); border-radius: 2px;
  top: 50%; left: 50%; transition: transform 0.3s, background 0.2s;
}
.faq-icon::before { width: 12px; height: 1.5px; transform: translate(-50%,-50%); }
.faq-icon::after  { width: 1.5px; height: 12px; transform: translate(-50%,-50%); }
.faq-item.is-open .faq-question { color: var(--orange); }
.faq-item.is-open .faq-icon { background: var(--orange); border-color: var(--orange); }
.faq-item.is-open .faq-icon::before,
.faq-item.is-open .faq-icon::after { background: white; }
.faq-item.is-open .faq-icon::after { transform: translate(-50%,-50%) rotate(90deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.38s ease, padding 0.28s; font-size: 0.94rem; line-height: 1.82; color: var(--muted); font-weight: 300; }
.faq-item.is-open .faq-answer { max-height: 260px; padding: 0 0 24px; }

/* ── CONTACT ── */
.contact-grid  { display: grid; grid-template-columns: 1fr 1.5fr; gap: 96px; align-items: start; }
.contact-detail { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; font-size: 0.93rem; color: var(--charcoal); }
.contact-detail-dot { width: 7px; height: 7px; background: var(--orange); border-radius: 50%; flex-shrink: 0; }
.contact-detail a { text-decoration: none; color: inherit; }
.contact-logo-wrap { margin-top: 52px; padding-top: 36px; border-top: 1px solid var(--border); }
.contact-logo-wrap img { height: 34px; opacity: 0.6; }

.contact-form-wrap { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 48px 44px; }
.form-row-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.form-group label { font-family: 'Syne', sans-serif; font-size: 0.67rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--forest); }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--off); border: 1px solid var(--border); border-radius: 8px;
  padding: 13px 15px; font-family: 'Instrument Sans', sans-serif; font-size: 0.93rem; color: var(--charcoal);
  outline: none; appearance: none; transition: border-color 0.18s, box-shadow 0.18s; width: 100%;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(240,112,32,0.1); }
.form-group textarea { min-height: 108px; resize: vertical; }
.wpcf7-submit,
.form-submit-btn {
  width: 100%; padding: 15px; background: var(--forest); color: white; border: none; border-radius: 8px;
  font-family: 'Syne', sans-serif; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; transition: background 0.2s; margin-top: 6px;
}
.wpcf7-submit:hover,
.form-submit-btn:hover { background: var(--orange); }

/* ── FOOTER ── */
.site-footer { background: var(--forest); padding: 64px 56px 36px; }
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 48px; flex-wrap: wrap;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand img { height: 38px; filter: brightness(0) invert(1); opacity: 0.8; margin-bottom: 14px; display: block; }
.footer-brand p { font-size: 0.86rem; color: rgba(255,255,255,0.32); line-height: 1.72; max-width: 250px; font-weight: 300; }
.footer-nav-col h4 { font-family: 'Syne', sans-serif; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 18px; }
.footer-nav-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-nav-col a { text-decoration: none; font-size: 0.88rem; color: rgba(255,255,255,0.5); transition: color 0.18s; }
.footer-nav-col a:hover { color: var(--gold); }
.footer-bottom { padding-top: 30px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.nmls-badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(245,184,50,0.35); border-radius: 4px; padding: 7px 18px; font-family: 'Syne', sans-serif; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.footer-copyright { font-size: 0.8rem; color: rgba(255,255,255,0.22); }
.footer-legal { font-size: 0.75rem; color: rgba(255,255,255,0.18); line-height: 1.7; max-width: 640px; font-weight: 300; }
.footer-legal a { color: rgba(255,255,255,0.28); }

/* ── REVEAL ANIMATION ── */
.msm-reveal { opacity: 0; transform: translateY(22px); transition: opacity .68s ease, transform .68s ease; }
.msm-reveal.is-visible { opacity: 1; transform: none; }
.msm-reveal.delay-1 { transition-delay: .1s; }
.msm-reveal.delay-2 { transition-delay: .2s; }

/* ── WORDPRESS CORE ── */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--muted); margin-top: 8px; }
.alignleft   { float: left;  margin: 0 20px 20px 0; }
.alignright  { float: right; margin: 0 0 20px 20px; }
.aligncenter { display: block; margin: 0 auto 20px; }
img { max-width: 100%; height: auto; }
a { color: var(--orange); }
a:hover { color: var(--forest); }

/* ── RESPONSIVE ── */
@media (max-width: 1040px) {
  .products-grid { grid-template-columns: 1fr 1fr; }
  .broker-grid   { grid-template-columns: 1fr; gap: 56px; }
  .broker-visual { order: -1; }
  .broker-floater { display: none; }
}
@media (max-width: 840px) {
  .hero-section    { grid-template-columns: 1fr; }
  .hero-right, .hero-r { padding-top: 60px; padding-bottom: 80px; }
  .faq-layout      { grid-template-columns: 1fr; gap: 48px; }
  .contact-grid    { grid-template-columns: 1fr; gap: 48px; }
  .faq-sidebar     { position: static; }
  .products-grid   { grid-template-columns: 1fr; }
  .cta-band        { flex-direction: column; text-align: center; }
  .msm-section, .site-footer { padding-left: 24px; padding-right: 24px; }
  .site-header     { padding: 0 24px; }
  .cta-band        { padding: 80px 24px; }
  .form-row-2col   { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 32px 24px; }
  .main-navigation { display: none; }
}
