/* ============================================================
   Rise Realty DFW — shared stylesheet
   Loaded AFTER each page's inline <style> so it overrides.
   Contains: responsive nav, mobile polish, accessibility,
   and normalized shared components.
   ============================================================ */

/* ===== RESPONSIVE NAV — overrides base rules ===== */
body > nav{position:fixed;top:0;left:0;right:0;z-index:500;height:70px;background:#fff;
 border-bottom:1px solid #E4E3DF;display:flex;align-items:center;justify-content:space-between;
 padding:0 5%;box-shadow:0 1px 10px rgba(15,42,94,.05)}
.nav-logo{display:flex;align-items:center;gap:9px;flex-shrink:0;text-decoration:none;min-width:0}
.nav-logo img{height:34px;width:auto;display:block}
.nav-logo img.is-broken{display:none}
.nav-logo .logo-fallback{display:none;font-family:'Playfair Display',Georgia,serif;font-weight:700;
 font-size:17px;color:#0F2A5E;letter-spacing:.01em;white-space:nowrap;line-height:1}
.nav-logo .logo-fallback span{color:#F5A623}
.nav-logo img.is-broken + .logo-fallback{display:block}

.nav-links{display:flex;gap:20px;list-style:none;align-items:center;margin:0;padding:0}
.nav-links li{list-style:none}
.nav-links a{font-size:14px;font-weight:500;color:#2A2A2A;text-decoration:none;
 white-space:nowrap;transition:color .2s}
.nav-links a:hover,.nav-links a.active{color:#F5A623}
.nav-phone{font-weight:600;color:#0F2A5E !important}
.nav-cta{background:#F5A623;color:#fff !important;padding:10px 18px;border-radius:3px;
 font-weight:600 !important;white-space:nowrap}
.nav-cta:hover{background:#D4891A;color:#fff !important}

/* hamburger */
.nav-toggle{display:none;flex-direction:column;justify-content:center;gap:5px;
 width:44px;height:44px;background:none;border:none;cursor:pointer;padding:10px;
 margin-right:-10px;flex-shrink:0}
.nav-toggle span{display:block;height:2px;width:100%;background:#0F2A5E;border-radius:2px;
 transition:transform .28s ease,opacity .2s ease}
.nav-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.nav-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.nav-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

@media (max-width:1080px){ .nav-links{gap:14px} .nav-links a{font-size:13px} .nav-cta{padding:9px 14px} }

@media (max-width:900px){
  body > nav{padding:0 5%}
  .nav-toggle{display:flex}
  .nav-links{
    position:fixed;top:70px;left:0;right:0;
    display:flex;flex-direction:column;align-items:stretch;gap:0;
    background:#fff;padding:6px 5% 18px;
    border-bottom:1px solid #E4E3DF;box-shadow:0 12px 28px rgba(15,42,94,.10);
    transform:translateY(-140%);transition:transform .3s ease;
    max-height:calc(100vh - 70px);overflow-y:auto;
  }
  .nav-links.open{transform:translateY(0)}
  .nav-links li{width:100%}
  .nav-links a{display:block;width:100%;padding:15px 2px;font-size:16px;
    border-bottom:1px solid #F2F1EE;white-space:normal}
  .nav-links li:last-child a{border-bottom:none}
  .nav-phone{font-size:16px !important}
  .nav-cta{text-align:center;margin-top:12px;padding:15px 18px;font-size:16px;border-radius:3px}
  .nav-cta:hover{background:#F5A623}
}
@media (max-width:360px){ .nav-logo img{height:28px} .nav-logo .logo-fallback{font-size:15px} }


/* ===== MOBILE / RESPONSIVE POLISH ===== */
html,body{max-width:100%;overflow-x:hidden}
img,table{max-width:100%}

/* Hero: image column grows with its content, never clips */
.hero-img-col,.hero-left{background:#0B1526}

@media (max-width:1024px){
  .hero{grid-template-columns:1fr !important;min-height:0 !important}
  .hero-img-col,.hero-left{height:auto !important;min-height:0 !important;position:relative !important}
  .hero-img-col > img,.hero-left > img{position:absolute !important;inset:0;width:100%;height:100%;object-fit:cover}
  .hero-overlay{position:absolute !important;inset:0}
  .hero-content{position:relative;z-index:2;min-height:0 !important;padding:56px 6% 60px !important}
  .hero-form-col,.hero-form{border-left:none !important;padding:44px 6% !important}
  .hero-headline{font-size:clamp(28px,7.5vw,40px) !important}
  .hero-sub,.hero-tagline{max-width:100% !important}
}

@media (max-width:640px){
  .hero-actions{flex-direction:column;align-items:stretch;gap:10px}
  .hero-actions .btn-gold,.hero-actions .btn-outline{width:100%;text-align:center;padding:15px 20px}
  .hero-trust-row{gap:20px 28px;flex-wrap:wrap}
  .trust-pills{gap:8px}
  .cta-actions{flex-direction:column;align-items:stretch}
  .cta-actions > a{width:100%;text-align:center}
  .section{padding:56px 6% !important}
}

/* Comparison table: scrolls instead of breaking layout */
.compare-table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch;white-space:nowrap}
.compare-table thead,.compare-table tbody,.compare-table tr{display:table;width:100%;table-layout:fixed}
@media (max-width:640px){
  .compare-table{white-space:normal}
  .compare-table td,.compare-table th{padding:11px 9px !important;font-size:12px !important}
}

/* Cities footer grid */
@media (max-width:1024px){ .cities-footer > div,.cities-grid{grid-template-columns:repeat(4,1fr) !important} }
@media (max-width:640px){ .cities-footer > div,.cities-grid{grid-template-columns:repeat(2,1fr) !important} }

/* Tap targets */
@media (max-width:900px){
  a[href^="tel:"],.btn-gold,.btn-white,.btn-outline,.form-submit{min-height:46px;
    display:inline-flex;align-items:center;justify-content:center}
  .form-group input,.form-group select,.form-group textarea{font-size:16px} /* stops iOS zoom-on-focus */
}


/* ===== ACCESSIBILITY ===== */
.skip-link{position:absolute;left:-9999px;top:0;z-index:9999;background:#0F2A5E;color:#fff;
 padding:12px 20px;font-size:14px;font-weight:600;text-decoration:none;border-radius:0 0 4px 0}
.skip-link:focus{left:0}

/* Visible keyboard focus (was invisible before) */
a:focus-visible,button:focus-visible,input:focus-visible,
select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{
  outline:3px solid #F5A623;outline-offset:2px;border-radius:2px}
.hero-content a:focus-visible,.cta-content a:focus-visible,
.testimonials-section a:focus-visible,footer a:focus-visible{outline-color:#F5A623}

/* Screen-reader-only utility */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
 clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;
   transition-duration:.01ms !important;scroll-behavior:auto !important}
}

/* Form validation feedback */
.form-group input:invalid:not(:placeholder-shown),
.form-group select:invalid:not(:placeholder-shown){border-color:#C0392B}
.form-group input:valid:not(:placeholder-shown){border-color:#4A9E5C}


/* ===== COMPONENT NORMALIZATION =====
   These components previously rendered differently on different pages
   (e.g. .btn-gold was inline-block on the homepage but block on the blog).
   Defined once here so every page matches. */

.btn-gold{display:inline-flex;align-items:center;justify-content:center;gap:8px;
 background:#F5A623;color:#fff;font-weight:600;font-size:15px;padding:15px 32px;
 border-radius:3px;border:none;cursor:pointer;font-family:'Inter',sans-serif;
 text-align:center;min-height:46px;line-height:1.2;
 transition:background .2s ease,transform .15s ease}
.btn-gold:hover{background:#D4891A;transform:translateY(-1px)}
.btn-gold:active{transform:translateY(0)}

.btn-outline{display:inline-flex;align-items:center;justify-content:center;gap:8px;
 background:transparent;color:#fff;font-weight:500;font-size:15px;padding:14px 30px;
 border-radius:3px;border:1.5px solid rgba(255,255,255,.4);text-align:center;
 min-height:46px;line-height:1.2;transition:border-color .2s ease,background .2s ease}
.btn-outline:hover{border-color:#F5A623;background:rgba(245,166,35,.10)}

.btn-white{display:inline-flex;align-items:center;justify-content:center;gap:8px;
 background:#fff;color:#0F2A5E;font-weight:700;font-size:15px;padding:15px 34px;
 border-radius:3px;text-align:center;min-height:46px;line-height:1.2;
 transition:transform .15s ease,box-shadow .15s ease}
.btn-white:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(0,0,0,.2)}

/* Sidebar CTA button on the blog should still fill its column */
.sidebar-cta .btn-gold{display:flex;width:100%}
.questions-actions .btn-gold,.questions-actions .btn-navy{display:flex;width:100%}

/* Footer — one definition for all pages */
.footer-brand img{height:28px;margin-bottom:14px;filter:brightness(0) invert(1)}
.footer-brand p{font-size:13px;color:rgba(255,255,255,.35);line-height:1.7;
 max-width:250px;margin-bottom:14px}
.footer-col h5{font-size:10px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;
 color:rgba(255,255,255,.26);margin-bottom:14px}
.footer-col a{display:block;font-size:13px;color:rgba(255,255,255,.5);
 margin-bottom:9px;transition:color .2s}
.footer-col a:hover{color:#F5A623}
.footer-bottom{display:flex;justify-content:space-between;align-items:center;
 flex-wrap:wrap;gap:10px;padding:16px 6%;background:#0a0a0a}
.footer-bottom p{font-size:11px;color:rgba(255,255,255,.22)}

/* Cities strip — one definition for all pages */
.cities-footer{background:#111;padding:44px 6% 32px}
.cities-footer h5,.cities-footer > p{font-size:10px;font-weight:700;letter-spacing:.14em;
 text-transform:uppercase;color:rgba(255,255,255,.25);margin-bottom:20px}
.cities-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:6px 16px}
.cities-grid a{font-size:11px;color:rgba(255,255,255,.38);text-decoration:none;line-height:1.8}
.cities-grid a:hover{color:#F5A623}

/* Print */
@media print{
  body > nav,.nav-toggle,.cities-footer,.carousel-controls,.skip-link{display:none!important}
  body{color:#000;background:#fff}
  a[href^="http"]::after{content:" (" attr(href) ")";font-size:10px;color:#555}
}

/* ===== FORM SUCCESS STATE ===== */
.form-success{background:#fff;border:1px solid #E4E3DF;border-top:3px solid #F5A623;
 border-radius:4px;padding:36px 30px;text-align:center;outline:none;
 box-shadow:0 4px 20px rgba(15,42,94,.07)}
.form-success-mark{width:56px;height:56px;border-radius:50%;background:#FEF0D0;
 color:#F5A623;font-size:28px;line-height:56px;margin:0 auto 16px;font-weight:700}
.form-success h3{font-family:'Playfair Display',Georgia,serif;font-size:22px;
 color:#0F2A5E;margin-bottom:10px;line-height:1.25}
.form-success p{font-size:14px;color:#5A5A5A;line-height:1.75;margin-bottom:10px}
.form-success-note{font-size:13px;color:#8C8C8C;margin-top:14px;padding-top:14px;
 border-top:1px solid #F2F1EE}
.form-success-note a{color:#F5A623;font-weight:600}
button[aria-busy="true"]{opacity:.7;cursor:wait}

/* ===== STICKY MOBILE ACTION BAR =====
   On a phone, a seller in a stressful moment shouldn't have to scroll
   to find how to reach us. Always-visible call + offer buttons. */
.rise-actionbar{position:fixed;left:0;right:0;bottom:0;z-index:600;display:none;
 background:#fff;border-top:1px solid #E4E3DF;
 box-shadow:0 -4px 20px rgba(15,42,94,.12);
 padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px));
 gap:10px}
.rise-actionbar a{flex:1;display:flex;align-items:center;justify-content:center;gap:7px;
 min-height:50px;border-radius:4px;font-size:15px;font-weight:700;
 text-decoration:none;line-height:1.2;text-align:center}
.rise-actionbar .ab-call{background:#F5A623;color:#fff}
.rise-actionbar .ab-call:active{background:#D4891A}
.rise-actionbar .ab-offer{background:#fff;color:#0F2A5E;border:1.5px solid #0F2A5E}
.rise-actionbar .ab-offer:active{background:#F8F7F4}

@media (max-width:900px){
  .rise-actionbar{display:flex}
  body{padding-bottom:76px}
  /* keep the mobile menu clear of the bar */
  .nav-links{max-height:calc(100vh - 150px)}
}
@media print{.rise-actionbar{display:none!important}}

/* ============================================================
   ACCESSIBILITY — COLOR CONTRAST (WCAG 2.1 AA)
   The brand gold #F5A623 measures only 2.03:1 against white.
   AA requires 4.5:1 for body text. Two corrections:

   1. Gold TEXT on light backgrounds -> --gold-text (#9C6208, 5.04:1)
      Same bronze/gold family, just deep enough to read.
   2. Gold BUTTONS keep the bright brand gold as the fill, but the
      label becomes navy (6.85:1 vs 2.03:1 for white).
      This is the same approach Amazon uses on its yellow buttons.

   Gold on navy and gold on the dark footer already pass (6.85:1
   and 8.76:1) and are deliberately left untouched.

   TO REVERT the button change, delete the .btn-gold/.form-submit/
   .nav-cta/.ab-call color rules in the BUTTONS block below.
   ============================================================ */
:root{--gold-text:#9C6208}

/* --- 1. Gold text on light backgrounds --- */
.eyebrow,
.how-step-num,
.step-label,
.team-title,
.blog-card-tag,
.blog-featured-tag,
.blog-card-link,
.blog-featured-link,
.founder-tag,
.form-required-note,
.contact-card a,
.form-success-note a,
.map-detail-row a,
.category-list a:hover,
.btn-ghost:hover{color:var(--gold-text)}

.form-required-note{background:#FEF0D0}
.founder-tag{background:#FEF0D0;color:var(--gold-text)}

/* Links that sit on the cream pull-quote background */
.answer-callout a,.city-pullquote a,.story-pullquote a{color:var(--gold-text)}

/* --- 2. Buttons: bright gold fill, navy label --- */
.btn-gold,
.form-submit,
.nav-cta,
.rise-actionbar .ab-call{color:#0F2A5E !important;font-weight:700}
.btn-gold:hover,
.form-submit:hover,
.nav-cta:hover,
.rise-actionbar .ab-call:active{color:#0F2A5E !important}

/* --- Gold on DARK backgrounds is already compliant — restore it --- */
.testimonials-section .eyebrow,
.cta-content .eyebrow,
.values-section .eyebrow,
.page-hero-content .eyebrow,
.hero-content .eyebrow,
.stats-bar .eyebrow,
.myths-section .eyebrow{color:#F5A623}

/* Muted gray text was 3.36:1 — nudge to pass AA */
.form-disclaimer,.badge-label,.blog-card-date,.recent-post-date,
.contact-method .sub,.form-intro p,.form-box > p{color:#6B6B6B}

/* Cream (#FEF0D0) backgrounds need a slightly deeper gold — 5.12:1 */
:root{--gold-text-cream:#8F5A06}
.form-required-note,
.founder-tag,
.blog-card-tag,
.blog-featured-tag{color:var(--gold-text-cream)}

/* Lock background scrolling while the mobile menu is open */
body.nav-open{overflow:hidden;position:relative}

/* ===== FORM CONSENT (TCPA) ===== */
.form-consent{margin:16px 0 6px}
.consent-row{display:flex;gap:9px;align-items:flex-start;cursor:pointer;
 font-size:10.5px;line-height:1.5;color:#6B6B6B;font-weight:400;font-style:italic}
.consent-row input[type="checkbox"]{flex-shrink:0;width:15px;height:15px;margin:1px 0 0;
 accent-color:#F5A623;cursor:pointer}
.consent-row a{color:#9C6208;text-decoration:underline}
.consent-row strong{color:#2A2A2A;font-weight:600}
.consent-row input:invalid{outline:2px solid #C0392B;outline-offset:2px}

/* ===== GUARD: only the site header nav is fixed =====
   .nearby-links (city pages) and .links (404) are <nav> elements too.
   A bare `nav{position:fixed}` rule previously pinned them to the top
   of the viewport. Scoped to `body > nav` above; this is belt-and-braces. */
nav.nearby-links,
nav.links,
main nav,
footer nav,
.blog-sidebar nav{position:static;height:auto;background:transparent;
 border:none;box-shadow:none;padding:0;z-index:auto;display:flex}
nav.nearby-links{flex-wrap:wrap;gap:10px}
nav.links{gap:10px 26px;flex-wrap:wrap;justify-content:center}

/* ===== FRIENDLY FORM VALIDATION ===== */
.field-error{display:none;font-size:12px;color:#B02A1E;line-height:1.5;margin-top:6px;
 padding-left:2px}
.field-error.visible{display:block}
.form-group input.has-error,.form-group select.has-error,
.form-group textarea.has-error{border-color:#B02A1E;background:#FDF6F5}
.form-consent .field-error{padding-left:28px}
.consent-row input.has-error{outline:2px solid #B02A1E;outline-offset:2px}

/* Text button in the sticky mobile bar */
.rise-actionbar .ab-text{background:#fff;color:#0F2A5E;border:1.5px solid #E4E3DF;
 flex:0 0 88px;font-size:14px}
.rise-actionbar .ab-text:active{background:#F8F7F4}
@media (max-width:360px){.rise-actionbar .ab-text{flex:0 0 66px;font-size:13px}}

/* ===== FRIENDLY FORM ERRORS ===== */
.field-error{display:none;font-size:11.5px;line-height:1.45;color:#B3261E;
 margin-top:5px;font-weight:500;font-style:normal}
.field-error.visible{display:block}
.form-group input.has-error,.form-group select.has-error,
.form-group textarea.has-error{border-color:#B3261E;background:#FEF6F5}
.consent-row input.has-error{outline:2px solid #B3261E;outline-offset:2px}
.form-consent .field-error{margin-top:8px}

/* ===== SMS BUTTON IN STICKY BAR ===== */
.rise-actionbar .ab-text{background:#0F2A5E;color:#fff;max-width:96px;flex:0 0 auto;
 padding:0 14px}
.rise-actionbar .ab-text:active{background:#1A3A7A}
.rise-actionbar .ab-text .rise-ico,.rise-actionbar .ab-text svg{width:16px;height:16px}
@media (max-width:380px){.rise-actionbar .ab-text{max-width:72px;font-size:13px}}

/* ===== FORCE LIGHT SCHEME =====
   Without this, browsers/webviews in dark mode auto-invert the page:
   white backgrounds go near-black while navy headings stay navy,
   which makes headings unreadable. */
:root{color-scheme:light}
html{background:#fff}
main,article,.post-body,.legal-body{background:#fff}
