/* =========================================================
   S&S Law Associates — modern home page (v5)
   Uses tokens from style.css. Icons: inline Lucide SVG.
   ========================================================= */

.i { width: 22px; height: 22px; flex-shrink: 0; }
.btn .i { width: 19px; height: 19px; }
.m-soft { background: var(--bg-soft); }
.m-center { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 44px; }

/* section heads */
.m-head { max-width: 680px; margin-bottom: 52px; }
.m-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.m-head h2 { margin: 12px 0 0; }
.m-head p { margin-top: 14px; font-size: 1.05rem; color: var(--ink-500); }
.m-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-600);
}
.m-eyebrow .i { width: 16px; height: 16px; }
.m-eyebrow.light, .m-head.light .m-eyebrow { color: var(--gold-300); }

/* icon chips */
.m-ic {
  width: 52px; height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(201,162,39,.12); color: var(--gold-600);
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.m-ic .i { width: 24px; height: 24px; }
.m-ic.sm { width: 38px; height: 38px; border-radius: 10px; }
.m-ic.sm .i { width: 19px; height: 19px; }
.m-ic.gold { background: var(--gold-500); color: var(--navy-900); }

/* ---------------- HERO ---------------- */
.m-hero {
  position: relative; padding: calc(var(--nav-h) + 64px) 0 88px; overflow: hidden;
  background:
    radial-gradient(900px 480px at 85% 10%, rgba(201,162,39,.10), transparent 60%),
    radial-gradient(700px 420px at 0% 100%, rgba(20,58,102,.08), transparent 60%),
    var(--bg-soft);
}
.m-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(10,35,66,.09) 1px, transparent 1px); background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 90%); mask-image: linear-gradient(to bottom, #000 30%, transparent 90%);
}
.m-hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; }
.m-hero-grid > * { min-width: 0; }
.m-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 12px; border-radius: 50px;
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: .82rem; font-weight: 600; color: var(--navy-800);
}
.m-pill .i { width: 18px; height: 18px; color: var(--gold-600); }
.m-hero h1 { margin: 22px 0 20px; font-size: clamp(2.3rem, 4.6vw, 3.7rem); line-height: 1.1; }
.m-hero h1 .gold { color: var(--gold-600); font-style: italic; }
.m-lead { font-size: 1.12rem; line-height: 1.7; color: var(--ink-500); max-width: 560px; }
.m-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.m-btn-line { background: var(--white); color: var(--navy-800); border: 1.5px solid var(--line); }
.m-btn-line .i { color: #1faa53; }
.m-btn-line:hover { border-color: var(--navy-800); transform: translateY(-3px); }
.m-trust { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, auto); gap: 18px 28px; justify-content: start; }
.m-trust li { display: flex; align-items: center; gap: 12px; }
.m-trust .i { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--white); color: var(--gold-600); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.m-trust span { display: flex; flex-direction: column; font-size: .8rem; color: var(--ink-500); line-height: 1.35; }
.m-trust strong { color: var(--navy-800); font-size: .92rem; }

.m-hero-media { position: relative; padding: 0 0 28px 28px; }
.m-hero-media::before {
  content: ''; position: absolute; left: 0; bottom: 0; width: 72%; height: 78%; border-radius: 24px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
}
.m-hero-media::after {
  content: ''; position: absolute; right: -14px; top: -14px; width: 120px; height: 120px; border-radius: 24px;
  border: 2px solid var(--gold-400); opacity: .6;
}
.m-frame { position: relative; z-index: 1; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 4.4; background: var(--ink-100); }
.m-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.m-float {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px;
  background: var(--white); border-radius: 16px; padding: 14px 18px 14px 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.m-float .chip { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: var(--navy-800); color: var(--gold-400); }
.m-float span { display: flex; flex-direction: column; font-size: .78rem; color: var(--ink-500); line-height: 1.3; }
.m-float strong { font-family: var(--font-head); font-size: 1.15rem; color: var(--navy-800); }
.m-float-a { left: -6px; bottom: 56px; }
.m-float-b { right: -18px; top: 36px; }

/* ---------------- COURTS STRIP ---------------- */
.m-courts { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; }
.m-courts .container { display: flex; align-items: center; justify-content: center; gap: 18px 32px; flex-wrap: wrap; }
.m-courts .container > span { font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-300); }
.m-courts ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; }
.m-courts li { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--navy-800); }
.m-courts li .i { width: 18px; height: 18px; color: var(--gold-600); }

/* ---------------- CARDS ---------------- */
.m-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.m-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.m-card {
  position: relative; display: block; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 28px 26px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.m-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.m-card:hover .m-ic { background: var(--navy-800); color: var(--gold-400); }
.m-card h3 { font-size: 1.12rem; margin: 20px 0 8px; }
.m-card p { font-size: .92rem; color: var(--ink-500); line-height: 1.6; }
.m-pa { color: inherit; }
.m-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: .84rem; font-weight: 600; color: var(--gold-600); }
.m-more .i { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.m-pa:hover .m-more .i { transform: translateX(4px); }

/* ---------------- OVERSEAS (dark) ---------------- */
.m-dark { position: relative; overflow: hidden; color: rgba(255,255,255,.8);
  background: radial-gradient(700px 420px at 100% 0%, rgba(201,162,39,.16), transparent 60%), linear-gradient(135deg, var(--navy-900), var(--navy-700)); }
.m-dark h2, .m-dark h4 { color: var(--white); }
.m-dark p { color: rgba(255,255,255,.75); }
.m-ov { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.m-ov > * { min-width: 0; }
.m-ov-copy h2 { margin: 14px 0 16px; }
.m-ov-list { list-style: none; padding: 0; margin: 26px 0 8px; display: grid; gap: 12px; }
.m-ov-list li { display: flex; align-items: center; gap: 14px; color: var(--white); font-weight: 500; }
.m-ov-list .m-ic { background: rgba(201,162,39,.16); color: var(--gold-300); }
.m-ov-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.m-glass { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: 18px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); transition: transform .35s var(--ease), border-color .35s; }
.m-glass:hover { transform: translateY(-5px); border-color: var(--gold-500); }
.m-glass small { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-300); }
.m-glass h4 { font-size: 1.05rem; margin: 4px 0 6px; }
.m-glass p { font-size: .88rem; }

/* advocates section spacing tweak */
.m-soft .adv-card { border-radius: 18px; }

/* ---------------- STATS ---------------- */
.m-stats { background: var(--navy-800); padding: 56px 0; }
.m-stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.m-stat { display: flex; align-items: center; gap: 16px; padding: 6px 0; }
.m-stat > .i { width: 54px; height: 54px; padding: 14px; border-radius: 14px; background: rgba(201,162,39,.14); color: var(--gold-400); }
.m-stat .num { font-family: var(--font-head); font-size: 2.1rem; font-weight: 700; color: var(--white); line-height: 1; }
.m-stat .lbl { margin-top: 6px; font-size: .84rem; color: rgba(255,255,255,.7); }

/* ---------------- TESTIMONIALS ---------------- */
.m-test { position: relative; margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 30px 28px; display: flex; flex-direction: column; transition: box-shadow .35s, transform .35s var(--ease); }
.m-test:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.m-test .q { position: absolute; top: 24px; right: 24px; width: 34px; height: 34px; color: var(--gold-400); opacity: .45; }
.m-test .stars { display: flex; gap: 3px; color: var(--gold-500); }
.m-test .stars svg { width: 16px; height: 16px; }
.m-test blockquote { margin: 18px 0 24px; font-size: .97rem; line-height: 1.7; color: var(--ink-700); flex: 1; }
.m-test figcaption { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.m-test .av { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; color: var(--gold-400); background: var(--navy-800); }
.m-test figcaption > span:last-child { display: flex; flex-direction: column; font-size: .8rem; color: var(--ink-500); }
.m-test strong { color: var(--navy-800); font-size: .95rem; }

/* ---------------- HOW IT WORKS ---------------- */
.m-steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.m-steps .funnel-line { top: 36px; left: 12.5%; right: 12.5%; }
.m-step { position: relative; z-index: 1; text-align: center; }
.m-step-ic { position: relative; width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 20px; display: flex; align-items: center; justify-content: center;
  background: var(--white); color: var(--navy-800); border: 1px solid var(--line); box-shadow: var(--shadow); transition: background .35s, color .35s, transform .35s var(--ease); }
.m-step-ic .i { width: 30px; height: 30px; }
.m-step-ic b { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; background: var(--gold-500); color: var(--navy-900); font-size: .78rem; display: flex; align-items: center; justify-content: center; }
.m-step:hover .m-step-ic { background: var(--navy-800); color: var(--gold-400); transform: translateY(-4px); }
.m-step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.m-step p { font-size: .9rem; color: var(--ink-500); }

/* ---------------- CTA ---------------- */
.m-cta-band { padding: 24px 0 96px; }
.m-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: 48px 52px; border-radius: 24px; color: rgba(255,255,255,.8);
  background: radial-gradient(500px 300px at 100% 0%, rgba(201,162,39,.22), transparent 60%), linear-gradient(135deg, var(--navy-800), var(--navy-600)); }
.m-cta-inner > div:first-child { flex: 1 1 380px; min-width: 0; }
.m-cta-inner h2 { color: var(--white); margin-bottom: 10px; }
.m-cta-inner p { color: rgba(255,255,255,.78); max-width: 520px; }
.m-cta-meta { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: .88rem; }
.m-cta-meta li { display: flex; align-items: center; gap: 8px; }
.m-cta-meta .i { width: 18px; height: 18px; color: var(--gold-400); }
.m-cta-btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 1100px) {
  .m-trust { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
  .m-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .m-hero-media { max-width: 520px; margin: 0 auto; width: 100%; }
  /* floating cards become a clean row under the photo — nothing overlaps */
  .m-hero-media { padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .m-hero-media::before, .m-hero-media::after { display: none; }
  .m-frame { grid-column: 1 / -1; aspect-ratio: 4 / 4.2; }
  .m-float { position: static; padding: 12px; box-shadow: var(--shadow-sm); }
  .m-float .chip { width: 38px; height: 38px; padding: 9px; }
  .m-grid4, .m-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m-ov { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .m-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .m-steps .funnel-line { display: none; }
}
@media (max-width: 768px) {
  .m-hero { padding: calc(var(--nav-h) + 36px) 0 64px; }
  .m-grid3 { grid-template-columns: minmax(0, 1fr); }
  .m-cta-inner { padding: 36px 24px; }
}
@media (max-width: 560px) {
  .m-trust { grid-template-columns: minmax(0, 1fr); }
  .m-grid4, .m-stats-grid, .m-ov-steps, .m-steps { grid-template-columns: minmax(0, 1fr); }
  .m-cta .btn, .m-center .btn, .m-cta-btns .btn { width: 100%; }
  .m-cta-btns { width: 100%; }
  .m-courts li { font-size: .84rem; }
  .m-card { padding: 24px 22px; }
  .m-head { margin-bottom: 36px; }
}
@media (max-width: 360px) {
  .m-hero-media { grid-template-columns: minmax(0, 1fr); }
}

/* mobile refinements */
@media (max-width: 768px) {
  .to-top { display: none !important; }
  .m-courts .container { flex-direction: column; gap: 14px; }
  .m-courts ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; width: 100%; max-width: 440px; }
  .m-courts li { align-items: flex-start; font-size: .84rem; line-height: 1.35; }
  .m-courts li .i { margin-top: 1px; }
}
@media (max-width: 560px) {
  .m-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; align-items: start; padding: 20px; }
  .m-card .m-ic { width: 44px; height: 44px; border-radius: 12px; grid-row: span 3; }
  .m-card .m-ic .i { width: 21px; height: 21px; }
  .m-card h3 { margin: 2px 0 6px; font-size: 1.05rem; }
  .m-card p { font-size: .9rem; }
  .m-card .m-more { margin-top: 10px; }
}
