/* =============================================
   ATLANTIC TITLE FIRM — SHARED STYLESHEET
   ============================================= */

/* GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* DESIGN TOKENS */
:root {
  --orange: #E8821A;
  --orange2: #C96F0F;
  --orange3: #FFF3E6;
  --charcoal: #3C3C3C;
  --navy: #1C2B3A;
  --navy2: #16222F;
  --white: #FFFFFF;
  --cream: #F8F7F5;
  --cream2: #F0EDEA;
  --gray: #6B6B6B;
  --border: #E0DDD8;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', sans-serif;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow2: 0 12px 48px rgba(0,0,0,0.14);
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--charcoal); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.15; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.6rem); }
em { font-style: italic; color: var(--orange); }
p { line-height: 1.8; color: var(--gray); font-weight: 300; }
ul { list-style: none; }
section { padding: 5.5rem 5%; }
.inner { max-width: 1200px; margin: 0 auto; }

/* TAG */
.tag { display: inline-flex; align-items: center; gap: 10px; font-size: 10px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: var(--orange); margin-bottom: 1rem; }
.tag::before { content: ''; width: 24px; height: 2px; background: var(--orange); }
.tag.light { color: rgba(255,255,255,0.5); }
.tag.light::before { background: rgba(255,255,255,0.3); }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.9rem 2rem; border-radius: 3px; border: none; cursor: pointer; transition: all 0.2s; }
.btn-orange { background: var(--orange); color: var(--white); }
.btn-orange:hover { background: var(--orange2); }
.btn-outline-w { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.45); }
.btn-outline-w:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.btn-outline { background: transparent; color: var(--orange); border: 1.5px solid var(--orange); }
.btn-outline:hover { background: var(--orange); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy2); }

/* ======== NAV ======== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem 0 2.5rem; height: 78px;
  background: rgba(255,255,255,0.98);
  box-shadow: 0 1px 10px rgba(0,0,0,0.08);
  transition: background 0.3s, box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.12); }
.nav-logo img { height: 60px; width: auto; display: block; }
.nav-links { flex: 1; display: flex; align-items: center; justify-content: center; gap: 1.25rem; list-style: none; margin: 0 2rem; padding: 0; }
.nav-links a { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--charcoal); transition: color 0.2s; white-space: nowrap; }
.nav-links { flex-wrap: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--orange); }
.nav-cta { background: var(--orange) !important; color: var(--white) !important; padding: 0.55rem 1.4rem !important; border-radius: 3px; }
.nav-cta:hover { background: var(--orange2) !important; color: var(--white) !important; }

/* Hamburger */
.nav-ham { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-ham span { display: block; width: 24px; height: 2px; background: var(--charcoal); border-radius: 2px; transition: all 0.3s; }
.nav-ham.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-ham.open span:nth-child(2) { opacity: 0; }
.nav-ham.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav Drawer */
.mobile-nav { display: none; position: fixed; top: 78px; left: 0; right: 0; background: var(--white); box-shadow: 0 8px 24px rgba(0,0,0,0.12); z-index: 999; padding: 1.5rem 5%; flex-direction: column; gap: 0; }
.mobile-nav.open { display: flex; }
.mobile-nav a { display: block; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--charcoal); padding: 0.9rem 0; border-bottom: 1px solid var(--border); transition: color 0.2s; }
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--orange); }
.mobile-nav .mob-cta-btn { margin-top: 1rem; background: var(--orange); color: var(--white) !important; text-align: center; padding: 0.9rem !important; border-radius: 3px; border-bottom: none !important; }

/* ======== HERO — FULL (Home) ======== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-image: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&w=1920&q=80'); background-size: cover; background-position: center 55%; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(105deg, rgba(22,34,47,0.95) 0%, rgba(22,34,47,0.80) 55%, rgba(28,43,58,0.55) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 800px; padding-top: 78px; }
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero-sub { font-size: 18px; font-weight: 300; color: rgba(255,255,255,0.68); line-height: 1.8; max-width: 600px; margin-bottom: 2.5rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 2.5rem; margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid rgba(255,255,255,0.1); flex-wrap: wrap; }
.htrust { display: flex; align-items: center; gap: 12px; }
.htrust-icon { width: 44px; height: 44px; border: 1px solid rgba(255,255,255,0.18); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.htrust-icon svg { width: 18px; height: 18px; fill: var(--orange); }
.htrust-text { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.85); line-height: 1.5; }
.htrust-text span { display: block; font-size: 11px; font-weight: 300; color: rgba(255,255,255,0.4); }

/* ======== INNER HERO (Sub-pages) ======== */
.inner-hero { position: relative; padding: 9rem 5% 5rem; overflow: hidden; }
.inner-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.inner-hero-overlay { position: absolute; inset: 0; background: linear-gradient(105deg, rgba(22,34,47,0.96) 0%, rgba(22,34,47,0.85) 60%, rgba(28,43,58,0.70) 100%); }
.inner-hero-content { position: relative; z-index: 2; max-width: 700px; }
.inner-hero h1 { color: var(--white); margin-bottom: 1rem; }
.inner-hero p { color: rgba(255,255,255,0.65); font-size: 17px; max-width: 540px; }

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.25rem; font-size: 12px; color: rgba(255,255,255,0.4); }
.breadcrumb a { color: rgba(255,255,255,0.4); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span { color: rgba(255,255,255,0.6); }

/* ======== STATS BAR ======== */
.statsbar { background: var(--navy); padding: 2.75rem 5%; }
.stats-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat-n { font-family: var(--serif); font-size: 3.2rem; font-weight: 700; color: var(--white); line-height: 1; margin-bottom: 0.4rem; }
.stat-n em { color: var(--orange); font-style: normal; }
.stat-l { font-size: 11px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.4); }

/* ======== SERVICES ======== */
.services { background: var(--cream); }
.svc-intro { max-width: 580px; margin-bottom: 3.5rem; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.svc-card { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 2.25rem 2rem; position: relative; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s; cursor: pointer; display: block; text-decoration: none; color: inherit; }
a.svc-card, a.svc-card:visited, a.svc-card:hover, a.svc-card:focus { text-decoration: none; color: inherit; }
.svc-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform 0.3s; }
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow2); border-color: rgba(232,130,26,0.3); }
.svc-card:hover::before { transform: scaleX(1); }
.svc-icon { width: 52px; height: 52px; border-radius: 8px; background: var(--orange3); display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; }
.svc-icon svg { width: 24px; height: 24px; fill: var(--orange); }
.svc-n { position: absolute; top: 1.5rem; right: 1.75rem; font-family: var(--serif); font-size: 4rem; font-weight: 700; color: rgba(0,0,0,0.04); line-height: 1; }
.svc-title { font-family: var(--serif); font-size: 1.4rem; color: var(--navy); margin-bottom: 0.75rem; }
.svc-desc { font-size: 14px; color: var(--gray); line-height: 1.75; }
.svc-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 1.25rem; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); transition: gap 0.2s; cursor: pointer; }
.svc-link:hover { gap: 10px; }
.svc-list { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; }
.svc-list li { font-size: 13px; color: var(--charcoal); display: flex; align-items: flex-start; gap: 8px; line-height: 1.5; }
.svc-list li::before { content: '✓'; color: var(--orange); font-weight: 700; font-size: 12px; margin-top: 2px; flex-shrink: 0; }

/* ======== WHY ======== */
.why { background: var(--navy); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; margin-top: 3.5rem; }
.why-img { position: relative; border-radius: 8px; overflow: visible; }
.why-img img { width: 100%; height: 560px; object-fit: cover; display: block; border-radius: 8px; }
.why-badge { position: absolute; bottom: -1rem; right: -1rem; background: var(--orange); color: var(--white); padding: 1.5rem; border-radius: 8px; text-align: center; min-width: 150px; }
.why-badge-n { font-family: var(--serif); font-size: 2.5rem; font-weight: 700; line-height: 1; }
.why-badge-l { font-size: 10px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; opacity: 0.85; margin-top: 4px; }
.why-pts { display: flex; flex-direction: column; gap: 2rem; }
.wpt { display: flex; gap: 1.25rem; }
.wpt-icon { width: 44px; height: 44px; border-radius: 50%; background: rgba(232,130,26,0.15); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 4px; }
.wpt-icon svg { width: 20px; height: 20px; fill: var(--orange); }
.wpt h3 { font-size: 1.1rem; color: var(--white); margin-bottom: 0.4rem; }
.wpt p { font-size: 14px; color: rgba(255,255,255,0.45); line-height: 1.75; }

/* ======== HOW IT WORKS ======== */
.how { background: var(--white); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 3.5rem; position: relative; }
.steps::before { content: ''; position: absolute; top: 32px; left: 12%; right: 12%; height: 1px; background: var(--border); z-index: 0; }
.step { text-align: center; position: relative; z-index: 1; }
.step-n { width: 64px; height: 64px; border-radius: 50%; background: var(--navy); color: var(--white); font-family: var(--serif); font-size: 1.6rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; border: 3px solid var(--white); box-shadow: 0 0 0 1px var(--border); }
.step-n.active { background: var(--orange); }
.step h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 0.5rem; }
.step p { font-size: 13px; color: var(--gray); }

/* ======== COVERAGE ======== */
.coverage { background: var(--cream); }
.cov-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; margin-top: 3rem; }
.cov-video { border-radius: 8px; overflow: hidden; height: 420px; position: relative; }
.cov-video iframe { width: 100%; height: 100%; border: none; display: block; }
.county-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.ctag { font-size: 13px; font-weight: 500; color: var(--charcoal); padding: 0.5rem 0.75rem; background: var(--white); border: 1px solid var(--border); border-radius: 4px; display: flex; align-items: center; gap: 6px; transition: border-color 0.2s, color 0.2s; cursor: default; }
.ctag:hover { border-color: var(--orange); color: var(--orange); }
.ctag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); flex-shrink: 0; }
.ctag.highlight { background: var(--orange); color: var(--white); border-color: var(--orange); }
.ctag.highlight::before { background: var(--white); }

/* ======== TESTIMONIALS ======== */
.testimonials { background: var(--navy); }
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3.5rem; }
.tcard { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; padding: 2rem; }
.tcard-stars { color: var(--orange); letter-spacing: 2px; font-size: 14px; margin-bottom: 1rem; }
.tcard-text { font-family: var(--serif); font-size: 1.1rem; font-style: italic; color: rgba(255,255,255,0.85); line-height: 1.7; margin-bottom: 1.5rem; }
.tcard-author { display: flex; align-items: center; gap: 0.75rem; }
.tcard-av { width: 40px; height: 40px; border-radius: 50%; background: var(--orange); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--white); flex-shrink: 0; }
.tcard-name { font-size: 13px; font-weight: 600; color: var(--white); }
.tcard-role { font-size: 11px; color: rgba(255,255,255,0.35); margin-top: 2px; }

/* ======== PARTNERS / AGENT PORTAL ======== */
.partners { background: var(--white); }
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 3rem; }
.pcard { border: 1px solid var(--border); border-radius: 8px; padding: 2.5rem; display: flex; gap: 1.75rem; align-items: flex-start; transition: border-color 0.3s, box-shadow 0.3s; }
.pcard:hover { border-color: var(--orange); box-shadow: var(--shadow); }
.pcard-icon { width: 56px; height: 56px; border-radius: 8px; background: var(--orange3); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pcard-icon svg { width: 26px; height: 26px; fill: var(--orange); }
.pcard h3 { font-size: 1.25rem; color: var(--navy); margin-bottom: 0.5rem; }
.pcard p { font-size: 14px; color: var(--gray); line-height: 1.75; }
.pcard ul { margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.4rem; }
.pcard ul li { font-size: 13px; color: var(--charcoal); display: flex; align-items: center; gap: 8px; }
.pcard ul li::before { content: '✓'; color: var(--orange); font-weight: 700; font-size: 13px; }
.plink { display: inline-flex; align-items: center; gap: 6px; margin-top: 1rem; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); transition: gap 0.2s; }
.plink:hover { gap: 10px; }

/* ======== FAQ ======== */
.faq-section { background: var(--cream); }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: 3rem; align-items: start; }
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; transition: border-color 0.2s; }
.faq-item.open { border-color: var(--orange); }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem; cursor: pointer; font-weight: 500; font-size: 15px; color: var(--navy); user-select: none; }
.faq-q svg { width: 18px; height: 18px; fill: var(--orange); flex-shrink: 0; transition: transform 0.3s; }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; font-size: 14px; color: var(--gray); line-height: 1.75; padding: 0 1.5rem; transition: max-height 0.35s ease, padding 0.35s ease; }
.faq-item.open .faq-a { max-height: 400px; padding: 0 1.5rem 1.25rem; }
.faq-cta { background: var(--navy); border-radius: 8px; padding: 2.5rem; display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; }
.faq-cta h3 { color: var(--white); }
.faq-cta p { font-size: 14px; color: rgba(255,255,255,0.45); line-height: 1.75; }

/* Full-width FAQ — 2-column grid */
.faq-full { max-width: 1200px; margin: 3rem auto 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 760px) {
  .faq-full { grid-template-columns: 1fr; gap: 0.75rem; max-width: 780px; }
}

/* ======== CONTACT ======== */
.contact-section { display: grid; grid-template-columns: 1fr 1fr; }
.contact-left { background: var(--navy); padding: 5rem 4rem; display: flex; flex-direction: column; justify-content: center; }
.contact-right { padding: 5rem 4rem; display: flex; flex-direction: column; justify-content: center; background: var(--white); }
.cinfo-item { display: flex; align-items: flex-start; gap: 1rem; margin-top: 2rem; }
.cinfo-icon { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cinfo-icon svg { width: 16px; height: 16px; fill: var(--orange); }
.cinfo-label { font-size: 10px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 3px; }
.cinfo-val { font-size: 15px; font-weight: 500; color: var(--white); }
.cinfo-val a { color: var(--white); transition: color 0.2s; }
.cinfo-val a:hover { color: var(--orange); }
.cform { display: flex; flex-direction: column; }
.crow { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.cfield { display: flex; flex-direction: column; margin-bottom: 1rem; }
.cfield label { font-size: 10px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gray); margin-bottom: 6px; }
.cfield input, .cfield select, .cfield textarea { border: 1px solid var(--border); border-radius: 4px; padding: 0.75rem 1rem; font-family: var(--sans); font-size: 14px; color: var(--navy); background: var(--cream); outline: none; transition: border-color 0.2s; appearance: none; width: 100%; max-width: 100%; box-sizing: border-box; }
.cfield input:focus, .cfield select:focus, .cfield textarea:focus { border-color: var(--orange); background: var(--white); }
.cfield textarea { resize: none; }
.csub { width: 100%; padding: 1rem; background: var(--orange); color: var(--white); border: none; border-radius: 4px; cursor: pointer; font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; transition: background 0.2s; }
.csub:hover { background: var(--orange2); }

/* ======== FOOTER ======== */
footer { background: var(--navy2); padding: 4rem 5% 2rem; }
.ftop { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.07); }
.flogo { display: inline-block; background: #ffffff; padding: 18px 26px; border-radius: 8px; margin-bottom: 1.25rem; box-shadow: 0 8px 24px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.6); line-height: 0; }
.flogo img { height: 48px; width: auto; display: block; }
.fdesc { font-size: 13px; color: rgba(255,255,255,0.35); line-height: 1.8; max-width: 280px; margin-bottom: 1.5rem; }
.fsocials { display: flex; gap: 0.75rem; }
.fsoc { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: border-color 0.2s, background 0.2s; }
.fsoc:hover { border-color: var(--orange); background: rgba(232,130,26,0.12); }
.fsoc svg { width: 14px; height: 14px; fill: rgba(255,255,255,0.45); }
.fcol h4 { font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 1.25rem; }
.fcol ul { display: flex; flex-direction: column; gap: 0.6rem; }
.fcol ul li a { font-size: 13px; color: rgba(255,255,255,0.45); transition: color 0.2s; }
.fcol ul li a:hover { color: var(--orange); }
.fbot { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; flex-wrap: wrap; gap: 1rem; }
.fbot p { font-size: 12px; color: rgba(255,255,255,0.2); }
.fbot-links { display: flex; gap: 1.5rem; }
.fbot-links a { font-size: 12px; color: rgba(255,255,255,0.25); transition: color 0.2s; }
.fbot-links a:hover { color: var(--orange); }

/* ======== MOBILE STICKY CTA ======== */
.mob-cta { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 999; background: var(--orange); color: var(--white); padding: 1rem; text-align: center; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; box-shadow: 0 -4px 20px rgba(0,0,0,0.2); }
.mob-cta svg { width: 16px; height: 16px; fill: var(--white); vertical-align: middle; margin-right: 6px; }

/* ======== ORDER MODAL ======== */
.moverlay { display: none; position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,0.72); backdrop-filter: blur(4px); padding: 3rem 1rem; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.moverlay.active { display: block; }
.mbox { background: var(--white); border-radius: 12px; padding: 2.5rem; width: 100%; max-width: 520px; position: relative; animation: mIn 0.25s ease; box-sizing: border-box; margin: 0 auto; }
@media (max-width: 600px) {
  .moverlay { padding: 1.25rem 0.75rem; }
  .mbox { padding: 1.75rem 1.25rem; max-width: 100%; }
  .mbox .crow { grid-template-columns: 1fr; gap: 0; }
  .mbox .cfield input, .mbox .cfield select, .mbox .cfield textarea { width: 100%; max-width: 100%; box-sizing: border-box; }
  .mtitle { font-size: 1.5rem; }
  .mclose { top: 0.5rem; right: 0.5rem; font-size: 22px; padding: 8px; }
}
@keyframes mIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.mclose { position: absolute; top: 1rem; right: 1rem; background: none; border: none; cursor: pointer; font-size: 18px; color: var(--gray); padding: 4px; transition: color 0.2s; }
.mclose:hover { color: var(--navy); }
.mtag { font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--orange); margin-bottom: 0.5rem; }
.mtitle { font-family: var(--serif); font-size: 1.9rem; color: var(--navy); margin-bottom: 0.5rem; }
.msub { font-size: 13px; color: var(--gray); margin-bottom: 2rem; line-height: 1.6; }

/* ======== REVEAL ANIMATION ======== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ======== BLOG ======== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3.5rem; }
.blog-card { background: var(--white); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow2); }
.blog-img { height: 200px; overflow: hidden; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.blog-card:hover .blog-img img { transform: scale(1.04); }
.blog-body { padding: 1.75rem; }
.blog-cat { font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange); margin-bottom: 0.6rem; }
.blog-title { font-family: var(--serif); font-size: 1.25rem; color: var(--navy); margin-bottom: 0.75rem; line-height: 1.35; }
.blog-excerpt { font-size: 13px; color: var(--gray); line-height: 1.75; }
.blog-meta { display: flex; align-items: center; gap: 1rem; margin-top: 1.25rem; font-size: 11px; color: rgba(107,107,107,0.6); font-weight: 500; }
.blog-meta span { display: flex; align-items: center; gap: 4px; }

/* ======== ABOUT PAGE ======== */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 3rem; }
.team-card { background: var(--white); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; text-align: center; transition: box-shadow 0.3s; }
.team-card:hover { box-shadow: var(--shadow2); }
.team-avatar { height: 200px; background: var(--navy); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 3.5rem; color: rgba(255,255,255,0.15); }
.team-body { padding: 1.25rem; }
.team-name { font-family: var(--serif); font-size: 1.15rem; color: var(--navy); margin-bottom: 3px; }
.team-role { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange); }
.team-county { font-size: 12px; color: var(--gray); margin-top: 4px; }

/* Values grid */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.val-card { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 2rem; text-align: center; transition: border-color 0.3s, box-shadow 0.3s; }
.val-card:hover { border-color: var(--orange); box-shadow: var(--shadow); }
.val-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--orange3); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; }
.val-icon svg { width: 26px; height: 26px; fill: var(--orange); }
.val-card h3 { font-size: 1.15rem; color: var(--navy); margin-bottom: 0.5rem; }
.val-card p { font-size: 14px; }

/* ======== LOCATIONS PAGE ======== */
.locations-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
.loc-card { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 1.5rem; transition: border-color 0.3s, box-shadow 0.3s; }
.loc-card:hover { border-color: var(--orange); box-shadow: var(--shadow); }
.loc-region { font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange); margin-bottom: 0.5rem; }
.loc-county { font-family: var(--serif); font-size: 1.25rem; color: var(--navy); margin-bottom: 0.5rem; }
.loc-cities { font-size: 12px; color: var(--gray); line-height: 1.7; }

/* ======== PAGE CTA BAND ======== */
.cta-band { background: var(--orange); padding: 4rem 5%; text-align: center; }
.cta-band, .cta-band * { color: var(--white) !important; }
.cta-band h2 { margin-bottom: 0.75rem; }
.cta-band p { color: rgba(255,255,255,0.85) !important; font-size: 16px; margin-bottom: 2rem; }
.cta-band .btn-outline-w { border-color: rgba(255,255,255,0.6); }
.cta-band .btn { color: var(--orange) !important; }
.cta-band .btn-outline-w { color: var(--white) !important; }

/* ======== REVIEWS ======== */
.rating-banner { background: var(--navy); padding: 3rem 5%; }
.rating-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.rating-score { font-family: var(--serif); font-size: 3.5rem; font-weight: 700; color: var(--white); line-height: 1; }
.rating-stars { color: var(--orange); font-size: 18px; letter-spacing: 3px; margin: 0.4rem 0; }
.rating-label { font-size: 12px; color: rgba(255,255,255,0.4); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; }

/* ======== RESPONSIVE ======== */
@media (max-width: 1024px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .cov-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .why-img img { height: 360px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .ftop { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  section { padding: 4rem 5%; }
  .nav-links { display: none; }
  .nav-ham { display: flex; }
  .hero-sub { font-size: 16px; }
  .hero-trust { gap: 1.5rem; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .svc-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .tgrid { grid-template-columns: 1fr; }
  .pgrid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .contact-section { grid-template-columns: 1fr; }
  .contact-left, .contact-right { padding: 3rem 5%; }
  .ftop { grid-template-columns: 1fr; gap: 2rem; }
  .blog-grid { grid-template-columns: 1fr; }
  .locations-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; }
  .crow { grid-template-columns: 1fr; }
  .rating-inner { grid-template-columns: repeat(2, 1fr); }
  .mob-cta { display: block; }
  body { padding-bottom: 60px; }
  .inner-hero { padding: 7rem 5% 3.5rem; }
}

@media (max-width: 480px) {
  .stats-inner { grid-template-columns: 1fr; }
  .locations-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .rating-inner { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; justify-content: center; }
  /* Video stays visible on mobile — uses responsive 16:9 aspect ratio */
  .cov-video { height: auto; aspect-ratio: 16/9; }
}

/* ────────────────────────────────────────────────────────────────
   Service-page stat block (2x2 → 1col on tiny) + 4-step process grid
   Used on all SEO service pages built in 2026 batch
   ──────────────────────────────────────────────────────────────── */
.stat-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.5rem; }
.steps-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
@media (max-width: 1024px) {
  .steps-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
@media (max-width: 600px) {
  .stat-grid-2 { gap: 1rem; }
  .stat-grid-2 .stat-n { font-size: 2rem !important; }
  .stat-grid-2 .stat-l { font-size: 11px; }
}
@media (max-width: 480px) {
  .steps-grid-4 { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* ────────────────────────────────────────────────────────────────
   Mobile overflow safety net + hero typography fits 390px viewport
   ──────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  html, body { overflow-x: hidden; max-width: 100vw; }
  h1, h2, h3, p, .tag, .agent-hero-firm, .agent-badge { overflow-wrap: anywhere; word-break: break-word; }
  .hero h1, .agent-hero-name { font-size: clamp(1.65rem, 7vw, 2.2rem) !important; line-height: 1.15; }
  .hero-sub { font-size: 14.5px; }
  .agent-hero-title, .hero-eyebrow, .tag { font-size: 0.7rem; letter-spacing: 0.05em; }
  .agent-hero-firm { font-size: 0.82rem; }
  .agent-badges { gap: 0.4rem; }
  .agent-badge { font-size: 0.7rem; padding: 0.3rem 0.7rem; }
  /* CTA buttons */
  .btn, .btn-orange, .btn-outline, .btn-outline-w { font-size: 0.85rem; padding: 0.75rem 1rem; }
  /* Stack dual CTA buttons vertically */
  .hero-actions { flex-direction: column !important; gap: 0.75rem !important; align-items: stretch !important; }
  .hero-actions .btn { width: 100% !important; max-width: 100% !important; box-sizing: border-box; justify-content: center; }
  .cta-band > .inner > div { flex-direction: column !important; gap: 0.75rem !important; }
  .cta-band .btn { width: 100%; max-width: 320px; justify-content: center; }
  .cta-band h2 { font-size: 1.5rem !important; }
  /* Stats / agent count blocks */
  .stat-n, .stat-num { font-size: 1.75rem !important; }
  /* Service / feature row cards should never sit two-up on mobile */
  .why-grid, .feature-grid, .stats-inner { grid-template-columns: 1fr !important; }
}

/* Hide "Order Title" CTAs on MOBILE only — top-bar button, hamburger item, and sticky bottom bar.
   Desktop (>768px) keeps the Order Title button as-is. */
@media (max-width: 768px) {
  .nav-cta { display: none !important; }
  .mob-cta-btn { display: none !important; }
  .mob-cta { display: none !important; }
}

/* ── Closing Cost Calculator — mobile fit (durable; survives page reverts) ── */
@media (max-width: 600px) {
  .calc-row { grid-template-columns: 1fr !important; }
  table[style*="min-width:520px"], .calc-card table, .breakdown table { min-width: 0 !important; font-size: 13px; }
  [style*="repeat(3,1fr)"] { grid-template-columns: 1fr !important; }
  .brow { flex-wrap: wrap; gap: 4px 10px; }
  .brow-label { min-width: 0; flex: 1 1 auto; }
  .brow-val { flex: 0 0 auto; }
}

/* ===== Related Articles (blog cluster internal links) ===== */
.rel-articles{background:var(--cream,#f7f5f2);padding:3.5rem 5%;border-top:1px solid var(--border,#e0ddd8);}
.rel-articles .rel-inner{max-width:1000px;margin:0 auto;}
.rel-eyebrow{font-family:'Inter',Arial,sans-serif;font-size:11px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:var(--orange,#E8821A);margin-bottom:.4rem;}
.rel-articles h2{font-family:'Inter',Arial,sans-serif;color:var(--navy,#1C2B3A);font-size:1.5rem;margin:0 0 1.5rem;}
.rel-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.1rem;}
.rel-grid a{display:block;background:#fff;border:1px solid var(--border,#e0ddd8);border-radius:8px;padding:1.2rem 1.25rem;text-decoration:none;color:var(--navy,#1C2B3A);font-family:'Inter',Arial,sans-serif;font-weight:600;font-size:14.5px;line-height:1.45;transition:border-color .2s,transform .2s;}
.rel-grid a:hover{border-color:var(--orange,#E8821A);transform:translateY(-2px);}
.rel-grid a .rel-arrow{color:var(--orange,#E8821A);font-weight:700;}
@media(max-width:760px){.rel-grid{grid-template-columns:1fr;}}
