/* ============================================================
   Sell My Mobile Home Fast CA — design system
   Brand: orange #F8851A / ink #1B2628 (Infinite Legacy Property Solutions)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root{
  /* brand */
  --ink:        #1B2628;
  --ink-soft:   #4B5A5D;
  --ink-faint:  #7C8A8C;
  --orange:     #F8851A;
  --orange-dark:#DE7108;
  --orange-tint:#FFF1E2;

  /* neutrals */
  --bg:         #FFFFFF;
  --bg-soft:    #FAF7F2;
  --bg-deep:    #14181A;
  --border:     #E7E1D6;
  --border-soft:#F0ECE3;
  --white:      #FFFFFF;

  /* semantic */
  --success:    #3F7A4A;
  --success-tint:#EAF4EC;

  /* type */
  --font-head:  'Montserrat', system-ui, sans-serif;
  --font-body:  'Inter', system-ui, sans-serif;

  /* layout */
  --maxw:       1180px;
  --radius:     10px;
  --radius-lg:  16px;
  --shadow-sm:  0 1px 2px rgba(27,38,40,.06);
  --shadow-md:  0 8px 24px rgba(27,38,40,.10);
  --shadow-lg:  0 20px 48px rgba(27,38,40,.16);
}

*, *::before, *::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
html, body{ max-width:100%; overflow-x:hidden; }
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--bg);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{
  font-family:var(--font-head);
  color:var(--ink);
  line-height:1.15;
  margin:0 0 .5em;
  text-wrap:balance;
}
h1{ font-size:clamp(32px,5vw,54px); font-weight:800; letter-spacing:-.01em; }
h2{ font-size:clamp(26px,3.6vw,38px); font-weight:800; letter-spacing:-.005em; }
h3{ font-size:20px; font-weight:700; }
p{ margin:0 0 1em; color:var(--ink-soft); }
a{ color:var(--orange-dark); text-decoration:none; }
a:hover{ text-decoration:underline; }
img{ max-width:100%; display:block; }
ul{ margin:0; padding:0; }
button{ font-family:inherit; }

.container{ max-width:var(--maxw); margin:0 auto; padding:0 24px; }
/* grid/flex items default to min-width:auto, which refuses to shrink below
   the content's intrinsic width and silently breaks mobile layouts — reset it. */
.container > *{ min-width:0; }
.steps > *, .local-facts > *, .area-grid > *, .footer-grid > *{ min-width:0; }
.section{ padding:72px 0; }
.section-soft{ background:var(--bg-soft); }
.section-deep{ background:var(--bg-deep); color:#EDE7DA; }
.section-deep h2, .section-deep h3{ color:#F3EFE6; }
.section-deep p{ color:#B9AF9C; }

.eyebrow{
  display:inline-block;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:12.5px;
  font-weight:700;
  color:var(--orange-dark);
  margin:0 0 12px;
}
.section-head{ max-width:680px; margin:0 auto 44px; text-align:center; }
.section-head p{ font-size:17px; }

/* ---- buttons ---- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:15px 28px;
  border-radius:999px;
  font-weight:700;
  font-size:16px;
  border:2px solid transparent;
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space:nowrap;
}
.btn:hover{ text-decoration:none; }
.btn-primary{
  background:var(--orange);
  color:#fff;
  box-shadow:0 6px 18px rgba(248,133,26,.35);
}
.btn-primary:hover{ background:var(--orange-dark); transform:translateY(-1px); }
.btn-ghost{
  background:transparent;
  border-color:var(--border);
  color:var(--ink);
}
.btn-ghost:hover{ border-color:var(--ink); }
.btn-on-dark{
  background:transparent;
  border-color:rgba(237,231,218,.35);
  color:#F3EFE6;
}
.btn-on-dark:hover{ border-color:#F3EFE6; }
.btn-block{ width:100%; }
.btn-lg{ padding:18px 32px; font-size:17.5px; }

/* ---- header ---- */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--border-soft);
}
.site-header .container{ position:relative; }
.site-header .container{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; padding-top:14px; padding-bottom:14px;
}
.brand{ display:flex; align-items:center; flex:none; }
.brand img{ height:38px; width:auto; }
.brand .brand-compact{ display:none; height:34px; }
.header-actions{ display:flex; align-items:center; gap:18px; flex:none; }
.header-cta{ flex:none; }
.header-phone{
  display:flex; align-items:center; gap:8px;
  font-family:var(--font-head); font-weight:700; font-size:16px;
  color:var(--ink);
}
.header-phone svg{ flex:none; }
.lang-switch{
  font-size:13px; font-weight:600; color:var(--ink-soft);
  border:1px solid var(--border); border-radius:999px; padding:6px 12px;
}
.lang-switch:hover{ border-color:var(--ink); text-decoration:none; }
.main-nav{ display:flex; gap:26px; }
.main-nav a{ color:var(--ink-soft); font-weight:600; font-size:14.5px; }
.main-nav a:hover{ color:var(--ink); text-decoration:none; }
.nav-toggle{
  display:none; align-items:center; justify-content:center;
  width:40px; height:40px; border-radius:8px; border:1px solid var(--border);
  background:#fff; cursor:pointer; flex:none;
}
.nav-toggle svg{ pointer-events:none; }

@media (max-width:860px){
  .nav-toggle{ display:flex; }
  .main-nav{
    display:none;
    position:absolute; top:100%; left:0; right:0;
    flex-direction:column; gap:0;
    background:#fff; border-bottom:1px solid var(--border-soft);
    padding:8px 24px 18px;
    box-shadow:var(--shadow-md);
  }
  .main-nav.is-open{ display:flex; }
  .main-nav a{ padding:12px 0; border-bottom:1px solid var(--border-soft); }
  .header-phone span.phone-label{ display:none; }
}

@media (max-width:640px){
  .header-actions{ gap:10px; }
  .lang-switch{ padding:6px 9px; font-size:12px; }
  .header-cta{ display:none; }
  .brand .brand-full{ display:none; }
  .brand .brand-compact{ display:block; }
}

/* ---- hero ---- */
.hero{
  position:relative;
  overflow:hidden;
  padding:64px 0 84px;
  background:
    radial-gradient(1100px 480px at 82% -10%, var(--orange-tint), transparent 60%),
    linear-gradient(180deg, #FFFFFF 0%, #FDFBF8 100%);
}
.hero .container{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:56px;
  align-items:center;
}
.hero-copy .trust-row{
  display:flex; flex-wrap:wrap; gap:10px 22px; margin-top:22px;
}
.hero-copy .trust-row span{
  display:flex; align-items:center; gap:7px;
  font-size:14px; font-weight:600; color:var(--ink-soft);
}
.hero-copy .trust-row svg{ flex:none; color:var(--success); }
.hero-badge{
  display:inline-flex; align-items:center; gap:8px;
  background:var(--orange-tint); color:var(--orange-dark);
  font-weight:700; font-size:13px;
  padding:8px 14px; border-radius:999px; margin-bottom:18px;
}

/* ---- Founder / trust story ---- */
.founder-stats{
  display:flex; flex-wrap:wrap; gap:10px; margin-bottom:22px;
}
.founder-stat{
  display:inline-flex; align-items:center; gap:8px;
  background:var(--orange-tint); color:var(--orange-dark);
  font-weight:700; font-size:13px;
  padding:9px 16px; border-radius:999px;
}
.founder-stat svg{ flex:none; }
.founder-block .prose-lead{
  font-size:19px; color:var(--ink); font-weight:500; line-height:1.6;
}
.photo-gallery{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:20px;
  margin:28px 0 8px;
}
.photo-card{
  border-radius:var(--radius-lg); overflow:hidden;
  border:1px solid var(--border); box-shadow:var(--shadow-sm); background:#fff;
}
.photo-card img{ display:block; width:100%; height:230px; object-fit:cover; }
.photo-card .caption{
  padding:14px 16px; font-size:13.5px; color:var(--ink-soft); font-weight:600; line-height:1.4;
}

/* mobile home silhouette illustration (pure CSS/SVG, no stock photo) */
.hero-art{
  position:relative;
  aspect-ratio:1/.86;
  border-radius:var(--radius-lg);
  background:linear-gradient(160deg, #FFDDB3 0%, var(--orange) 55%, var(--orange-dark) 100%);
  box-shadow:var(--shadow-lg);
  overflow:hidden;
}
.hero-art svg{ position:absolute; inset:0; width:100%; height:100%; }

/* ---- lead form ---- */
.lead-card{
  background:var(--white);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-md);
  padding:28px;
}
.lead-card h3{ margin-bottom:4px; }
.lead-card .lead-sub{ font-size:14px; color:var(--ink-faint); margin-bottom:18px; }
.field{ margin-bottom:14px; }
.field label{
  display:block; font-size:13px; font-weight:700; color:var(--ink);
  margin-bottom:6px;
}
.field input, .field select, .field textarea{
  width:100%;
  padding:13px 14px;
  border:1.5px solid var(--border);
  border-radius:9px;
  font-family:var(--font-body);
  font-size:15.5px;
  color:var(--ink);
  background:#fff;
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline:none; border-color:var(--orange);
  box-shadow:0 0 0 4px var(--orange-tint);
}
.form-fineprint{
  font-size:12px; color:var(--ink-faint); margin-top:12px; text-align:center;
}
.form-success{
  display:none;
  text-align:center; padding:20px 8px;
}
.form-success.is-visible{ display:block; }
.form-success svg{ color:var(--success); margin-bottom:10px; }

/* inline hero form variant (used in hero) */
.hero-form-wrap{ margin-top:8px; }

/* ---- trust bar ---- */
.trust-bar{ padding:34px 0; border-top:1px solid var(--border-soft); border-bottom:1px solid var(--border-soft); background:var(--bg-soft); }
.trust-bar .container{
  display:grid; grid-template-columns:repeat(4,1fr); gap:20px;
  text-align:center;
}
.trust-item{ display:flex; flex-direction:column; align-items:center; gap:8px; }
.trust-item svg{ color:var(--orange); }
.trust-item strong{ font-family:var(--font-head); font-size:15px; }
.trust-item span{ font-size:13px; color:var(--ink-faint); }
@media (max-width:760px){
  .trust-bar .container{ grid-template-columns:repeat(2,1fr); }
}

/* ---- steps ---- */
.steps{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
.step-card{
  background:var(--white); border:1px solid var(--border); border-radius:var(--radius-lg);
  padding:30px 26px; box-shadow:var(--shadow-sm);
}
.step-num{
  width:42px; height:42px; border-radius:10px;
  background:var(--ink); color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-head); font-weight:800; font-size:19px;
  margin-bottom:16px;
}
@media (max-width:860px){ .steps{ grid-template-columns:1fr; } }

.founder-grid{ display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center; }
@media (max-width:860px){ .founder-grid{ grid-template-columns:1fr; } }

/* ---- comparison table ---- */
.compare{ overflow-x:auto; border-radius:var(--radius-lg); border:1px solid var(--border); box-shadow:var(--shadow-sm); }
.compare table{ width:100%; border-collapse:collapse; min-width:560px; background:#fff; }
.compare th, .compare td{ padding:16px 20px; text-align:left; border-bottom:1px solid var(--border-soft); font-size:14.5px; }
.compare th{ font-family:var(--font-head); font-size:13px; text-transform:uppercase; letter-spacing:.04em; background:var(--bg-soft); }
.compare th.col-us{ color:var(--orange-dark); }
.compare td.yes{ color:var(--success); font-weight:700; }
.compare td.no{ color:#B4544A; }
.compare tr:last-child td{ border-bottom:none; }

/* ---- FAQ ---- */
.faq-item{ border-bottom:1px solid var(--border-soft); }
.faq-item summary{
  cursor:pointer; list-style:none;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:20px 4px; font-family:var(--font-head); font-weight:700; font-size:16.5px;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item .faq-icon{ flex:none; transition:transform .2s ease; color:var(--orange); }
.faq-item[open] .faq-icon{ transform:rotate(45deg); }
.faq-item p{ padding:0 4px 20px; max-width:70ch; }

/* ---- service area ---- */
.area-group-title{
  font-family:var(--font-head); font-size:15px; font-weight:700; letter-spacing:.02em;
  color:var(--ink-soft); margin:28px 0 12px; text-transform:uppercase;
}
.area-group-title:first-of-type{ margin-top:6px; }
.area-grid{
  display:grid; grid-template-columns:repeat(auto-fill,minmax(190px,1fr)); gap:12px;
}
.area-chip{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 18px; border:1px solid var(--border); border-radius:10px;
  font-weight:600; font-size:14.5px; color:var(--ink); background:#fff;
}
.area-chip:hover{ border-color:var(--orange); text-decoration:none; }
.area-chip svg{ color:var(--ink-faint); }

/* ---- CTA band ---- */
.cta-band{
  background:linear-gradient(135deg, var(--ink) 0%, #263335 100%);
  color:#fff; border-radius:var(--radius-lg);
  padding:48px; text-align:center;
}
.cta-band h2{ color:#fff; }
.cta-band p{ color:#C9CFCF; max-width:60ch; margin-left:auto; margin-right:auto; }

/* ---- footer ---- */
.site-footer{ background:var(--bg-deep); color:#B9AF9C; padding:56px 0 28px; }
.footer-grid{
  display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:36px;
  padding-bottom:36px; border-bottom:1px solid rgba(237,231,218,.12);
}
.footer-grid h4{ color:#F3EFE6; font-size:13px; text-transform:uppercase; letter-spacing:.08em; margin-bottom:14px; }
.footer-grid ul{ display:flex; flex-direction:column; gap:9px; }
.footer-grid a{ color:#B9AF9C; font-size:14px; }
.footer-grid a:hover{ color:#F3EFE6; }
.footer-brand img{ height:34px; margin-bottom:14px; }
.footer-brand p{ color:#8A8172; font-size:13.5px; max-width:34ch; }
.footer-bottom{
  display:flex; flex-wrap:wrap; gap:12px; justify-content:space-between; align-items:center;
  padding-top:22px; font-size:12.5px; color:#7C7568;
}
.footer-bottom a{ color:#9A9182; }
@media (max-width:860px){
  .footer-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:560px){
  .footer-grid{ grid-template-columns:1fr; }
}

/* ---- generic content page ---- */
.prose{ max-width:760px; margin:0 auto; }
.prose h2{ margin-top:1.6em; }
.prose ul{ margin:0 0 1.2em; padding-left:22px; }
.prose li{ margin-bottom:.5em; color:var(--ink-soft); }
.page-hero{
  background:var(--bg-soft); border-bottom:1px solid var(--border-soft);
  padding:52px 0;
}
.breadcrumb{ font-size:13px; color:var(--ink-faint); margin-bottom:10px; }
.breadcrumb a{ color:var(--ink-faint); }

/* ---- city page specific ---- */
.city-hero .container{ grid-template-columns:1fr; max-width:820px; text-align:center; }
.city-hero .hero-form-wrap{ max-width:520px; margin:28px auto 0; }
.local-facts{
  display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin:36px 0;
}
.local-fact{
  background:var(--bg-soft); border:1px solid var(--border-soft); border-radius:12px; padding:20px;
}
.local-fact strong{ display:block; font-family:var(--font-head); font-size:15px; margin-bottom:4px; }
.local-fact span{ font-size:13.5px; color:var(--ink-faint); }
@media (max-width:760px){ .local-facts{ grid-template-columns:1fr; } }

@media (max-width:980px){
  .hero .container{ grid-template-columns:1fr; }
  .hero-art{ order:-1; max-width:420px; margin:0 auto; }
}

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible{
  outline:3px solid var(--orange); outline-offset:2px;
}

@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  .btn{ transition:none; }
}
