/* ==========================================================================
   House Made It — housemadeit.com
   Custom theme layer on top of Bootstrap 5 column grid
   ========================================================================== */

:root {
  --hmi-navy: #0b1b2b;
  --hmi-navy-2: #10263b;
  --hmi-navy-3: #17324c;
  --hmi-emerald: #0f9d7a;
  --hmi-emerald-dark: #0b7f63;
  --hmi-amber: #ffc247;
  --hmi-cream: #f6f4ef;
  --hmi-ink: #16222e;
  --hmi-muted: #5a6b7b;
  --hmi-line: rgba(11, 27, 43, .10);
  --hmi-radius: 18px;
  --hmi-shadow: 0 18px 44px rgba(11, 27, 43, .10);
  --hmi-shadow-lg: 0 30px 70px rgba(11, 27, 43, .18);
}

* { -webkit-font-smoothing: antialiased; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, -apple-system, sans-serif;
  color: var(--hmi-ink);
  background: #fff;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .display-title {
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.12;
  color: var(--hmi-navy);
}

p { color: var(--hmi-muted); line-height: 1.75; }

a { text-decoration: none; }

.section { padding: 84px 0; }
.section-sm { padding: 56px 0; }
.bg-cream { background: var(--hmi-cream); }
.bg-navy { background: var(--hmi-navy); }
.bg-navy p, .bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 { color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--hmi-emerald);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--hmi-emerald);
  display: inline-block;
}
.bg-navy .eyebrow, .hero .eyebrow { color: var(--hmi-amber); }
.bg-navy .eyebrow::before, .hero .eyebrow::before { background: var(--hmi-amber); }

.section-title { font-size: clamp(1.8rem, 3.3vw, 2.75rem); margin-bottom: 16px; }
.section-lead { max-width: 640px; margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  border-radius: 999px;
  font-weight: 700;
  padding: .72rem 1.5rem;
  font-size: .95rem;
  border-width: 2px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-brand {
  background: var(--hmi-emerald);
  border-color: var(--hmi-emerald);
  color: #fff;
  box-shadow: 0 12px 26px rgba(15, 157, 122, .28);
}
.btn-brand:hover, .btn-brand:focus {
  background: var(--hmi-emerald-dark);
  border-color: var(--hmi-emerald-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(15, 157, 122, .34);
}
.btn-amber {
  background: var(--hmi-amber);
  border-color: var(--hmi-amber);
  color: var(--hmi-navy);
  box-shadow: 0 12px 26px rgba(255, 194, 71, .28);
}
.btn-amber:hover, .btn-amber:focus { background: #ffd276; border-color: #ffd276; color: var(--hmi-navy); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  border-color: rgba(11, 27, 43, .18);
  color: var(--hmi-navy);
}
.btn-ghost:hover { background: var(--hmi-navy); border-color: var(--hmi-navy); color: #fff; }
.btn-ghost-light {
  background: transparent;
  border-color: rgba(255, 255, 255, .35);
  color: #fff;
}
.btn-ghost-light:hover { background: #fff; border-color: #fff; color: var(--hmi-navy); }
.btn-sm-pill { padding: .55rem 1.15rem; font-size: .875rem; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--hmi-navy);
  color: rgba(255, 255, 255, .78);
  font-size: .82rem;
  padding: 9px 0;
}
.topbar a { color: rgba(255, 255, 255, .82); font-weight: 600; }
.topbar a:hover { color: var(--hmi-amber); }
.topbar .divider { color: rgba(255, 255, 255, .25); margin: 0 .65rem; }
.topbar .badge-soft {
  background: rgba(15, 157, 122, .18);
  color: #7ce0c6;
  font-weight: 700;
  letter-spacing: .04em;
  border-radius: 999px;
  padding: .28rem .7rem;
  font-size: .72rem;
}

/* ---------- Brand / logo (single line lockup) ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .62rem;
  white-space: nowrap;
  line-height: 1;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--hmi-emerald) 0%, #0b7f63 55%, var(--hmi-navy-3) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  box-shadow: 0 8px 18px rgba(15, 157, 122, .28);
}
.brand-mark svg { width: 22px; height: 22px; display: block; }
.brand-text {
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--hmi-navy);
  white-space: nowrap;
}
.brand-text .brand-dot { color: var(--hmi-emerald); }
.brand--light .brand-text { color: #fff; }
.brand--light .brand-text .brand-dot { color: var(--hmi-emerald); }

/* ---------- Navbar ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--hmi-line);
  transition: box-shadow .2s ease;
}
.site-header.is-stuck { box-shadow: 0 10px 30px rgba(11, 27, 43, .08); }
.navbar { padding: .85rem 0; }
.navbar .nav-link {
  font-weight: 700;
  font-size: .925rem;
  color: var(--hmi-navy);
  padding: .55rem .85rem !important;
  border-radius: 10px;
}
.navbar .nav-link:hover { color: var(--hmi-emerald); }
.navbar .nav-link.active {
  color: var(--hmi-emerald);
  position: relative;
}
.navbar .nav-link.active::after {
  content: "";
  position: absolute;
  left: .85rem;
  right: .85rem;
  bottom: .18rem;
  height: 2px;
  border-radius: 2px;
  background: var(--hmi-emerald);
}
.navbar-toggler { border: 1px solid var(--hmi-line); border-radius: 12px; padding: .45rem .6rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(15, 157, 122, .2); }
.nav-cta { margin-left: .4rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--hmi-navy);
  color: #fff;
  overflow: hidden;
  padding: 92px 0 104px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(15, 157, 122, .40), transparent 46%),
    radial-gradient(circle at 82% 8%, rgba(255, 194, 71, .20), transparent 40%),
    radial-gradient(circle at 70% 92%, rgba(23, 50, 76, .95), transparent 55%);
}
.hero > .container { position: relative; z-index: 2; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  letter-spacing: -.03em;
}
.hero p.lead {
  color: rgba(255, 255, 255, .80);
  font-size: 1.08rem;
  max-width: 560px;
  line-height: 1.8;
}
.hero-media {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--hmi-shadow-lg);
  border: 1px solid rgba(255, 255, 255, .16);
  aspect-ratio: 4 / 3;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-float {
  position: absolute;
  left: 18px;
  bottom: 18px;
  right: 18px;
  background: rgba(255, 255, 255, .95);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, .22);
}
.hero-float .icon-chip { flex: 0 0 auto; }
.hero-float strong { color: var(--hmi-navy); font-size: .95rem; display: block; line-height: 1.25; }
.hero-float span { color: var(--hmi-muted); font-size: .82rem; }
.hero-blob {
  position: absolute;
  width: 460px; height: 460px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .10);
  right: -140px; top: -120px;
  z-index: 1;
}

/* ---------- Pills / chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .78rem;
  font-weight: 700;
  padding: .38rem .8rem;
  border-radius: 999px;
  background: rgba(15, 157, 122, .10);
  color: var(--hmi-emerald-dark);
}
.chip-light { background: rgba(255, 255, 255, .12); color: #fff; }
.icon-chip {
  width: 44px; height: 44px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 157, 122, .10);
  color: var(--hmi-emerald-dark);
  flex: 0 0 auto;
}
.icon-chip svg { width: 22px; height: 22px; }
.icon-chip.chip-amber { background: rgba(255, 194, 71, .18); color: #a06a00; }
.icon-chip.chip-navy { background: rgba(11, 27, 43, .07); color: var(--hmi-navy); }

/* ---------- Service cards ---------- */
.service-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--hmi-line);
  border-radius: var(--hmi-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  box-shadow: 0 6px 18px rgba(11, 27, 43, .05);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--hmi-shadow);
  border-color: rgba(15, 157, 122, .35);
}
.service-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--hmi-cream);
}
.service-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.service-card:hover .service-thumb img { transform: scale(1.055); }
.service-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 27, 43, .38), rgba(11, 27, 43, 0) 55%);
  pointer-events: none;
}
.service-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: rgba(255, 255, 255, .94);
  color: var(--hmi-navy);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .34rem .62rem;
  border-radius: 999px;
}
.service-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.service-body h3 {
  font-size: 1.16rem;
  margin-bottom: 10px;
  letter-spacing: -.015em;
}
.service-body p {
  font-size: .925rem;
  margin-bottom: 18px;
  color: var(--hmi-muted);
}
.service-body .btn { margin-top: auto; align-self: flex-start; }
.service-body .btn svg { transition: transform .18s ease; }
.service-card:hover .service-body .btn svg { transform: translateX(3px); }

/* ---------- Feature / value blocks ---------- */
.feature-tile {
  height: 100%;
  padding: 26px 24px;
  border-radius: var(--hmi-radius);
  background: #fff;
  border: 1px solid var(--hmi-line);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-tile:hover { transform: translateY(-4px); box-shadow: var(--hmi-shadow); }
.feature-tile h3 { font-size: 1.06rem; margin: 16px 0 8px; }
.feature-tile p { font-size: .92rem; margin: 0; }

.step-tile { position: relative; padding: 24px 22px 8px; }
.step-num {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--hmi-navy);
  color: var(--hmi-amber);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .02em;
  margin-bottom: 16px;
}
.bg-navy .step-num { background: rgba(255, 255, 255, .10); }

/* ---------- Split / media rows ---------- */
.media-frame {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--hmi-shadow);
  border: 1px solid var(--hmi-line);
  aspect-ratio: 4 / 3;
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 14px;
  color: var(--hmi-muted);
  line-height: 1.6;
}
.check-list li strong { color: var(--hmi-navy); }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(15, 157, 122, .12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f9d7a' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 13px 13px;
  background-position: center;
  background-repeat: no-repeat;
}
.bg-navy .check-list li { color: rgba(255, 255, 255, .78); }
.bg-navy .check-list li strong { color: #fff; }

/* ---------- Page header ---------- */
.page-head {
  position: relative;
  background: var(--hmi-navy);
  color: #fff;
  padding: 76px 0 68px;
  overflow: hidden;
}
.page-head::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(15, 157, 122, .38), transparent 48%),
    radial-gradient(circle at 88% 78%, rgba(255, 194, 71, .16), transparent 42%);
}
.page-head > .container { position: relative; z-index: 2; }
.page-head h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 3.1rem); margin-bottom: 14px; }
.page-head p { color: rgba(255, 255, 255, .78); max-width: 620px; margin: 0 auto; }
.breadcrumb-hmi {
  display: flex;
  justify-content: center;
  gap: .5rem;
  font-size: .82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .55);
  margin-top: 18px;
}
.breadcrumb-hmi a { color: rgba(255, 255, 255, .80); }
.breadcrumb-hmi a:hover { color: var(--hmi-amber); }

/* ---------- Blog ---------- */
.post-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--hmi-line);
  border-radius: var(--hmi-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--hmi-shadow); }
.post-thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--hmi-cream); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.post-card:hover .post-thumb img { transform: scale(1.05); }
.post-body { padding: 22px; display: flex; flex-direction: column; flex: 1 1 auto; }
.post-meta {
  display: flex; align-items: center; gap: .55rem;
  font-size: .76rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--hmi-emerald-dark);
  margin-bottom: 12px;
}
.post-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(11, 27, 43, .28); }
.post-meta .post-topic { color: var(--hmi-muted); }
.post-body h3 { font-size: 1.16rem; line-height: 1.35; margin-bottom: 10px; }
.post-body h3 a { color: var(--hmi-navy); }
.post-body h3 a:hover { color: var(--hmi-emerald); }
.post-body p { font-size: .93rem; }
.post-body .read-more {
  margin-top: auto;
  font-weight: 800;
  font-size: .88rem;
  color: var(--hmi-emerald-dark);
  display: inline-flex; align-items: center; gap: .4rem;
}
.post-body .read-more:hover { color: var(--hmi-navy); }
.post-body .read-more svg { width: 16px; height: 16px; transition: transform .18s ease; }
.post-card:hover .read-more svg { transform: translateX(3px); }

/* Article */
.article-wrap { max-width: 780px; margin: 0 auto; }
.article-body h2 { font-size: 1.45rem; margin: 34px 0 12px; }
.article-body h3 { font-size: 1.12rem; margin: 26px 0 10px; }
.article-body p { font-size: 1rem; }
.article-body ul { color: var(--hmi-muted); line-height: 1.8; }
.article-hero {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--hmi-shadow);
  aspect-ratio: 16 / 9;
  margin-bottom: 34px;
}
.article-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
blockquote.pull {
  border-left: 4px solid var(--hmi-emerald);
  background: var(--hmi-cream);
  padding: 18px 22px;
  border-radius: 0 14px 14px 0;
  margin: 24px 0;
  color: var(--hmi-navy);
  font-weight: 600;
  line-height: 1.7;
}
.author-strip {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--hmi-cream);
  border: 1px solid var(--hmi-line);
}
.author-strip strong { color: var(--hmi-navy); display: block; font-size: .95rem; }
.author-strip span { font-size: .84rem; color: var(--hmi-muted); }

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--hmi-line);
  border-radius: 22px;
  padding: 30px;
  box-shadow: var(--hmi-shadow);
}
.form-label { font-weight: 700; font-size: .86rem; color: var(--hmi-navy); margin-bottom: .4rem; }
.form-control, .form-select {
  border-radius: 12px;
  border: 1.5px solid rgba(11, 27, 43, .14);
  padding: .72rem .9rem;
  font-size: .95rem;
  background: #fff;
}
.form-control:focus, .form-select:focus {
  border-color: var(--hmi-emerald);
  box-shadow: 0 0 0 4px rgba(15, 157, 122, .14);
}
.form-check-input:checked { background-color: var(--hmi-emerald); border-color: var(--hmi-emerald); }
.form-check-label { font-size: .88rem; color: var(--hmi-muted); }
.form-text { font-size: .8rem; color: var(--hmi-muted); }
.alert-hmi {
  border-radius: 14px;
  border: 1px solid rgba(15, 157, 122, .28);
  background: rgba(15, 157, 122, .08);
  color: var(--hmi-emerald-dark);
  font-weight: 600;
  font-size: .9rem;
}

/* Contact sidebar */
.contact-card {
  border: 1px solid var(--hmi-line);
  border-radius: 18px;
  padding: 22px;
  background: #fff;
  height: 100%;
  transition: box-shadow .2s ease, transform .2s ease;
}
.contact-card:hover { box-shadow: var(--hmi-shadow); transform: translateY(-3px); }
.contact-card h3 { font-size: 1rem; margin: 14px 0 6px; }
.contact-card p, .contact-card a { font-size: .92rem; color: var(--hmi-muted); margin: 0; }
.contact-card a:hover { color: var(--hmi-emerald-dark); }

/* ---------- Newsletter band ---------- */
.subscribe-band {
  position: relative;
  background: var(--hmi-navy);
  border-radius: 26px;
  padding: 46px 40px;
  overflow: hidden;
  color: #fff;
}
.subscribe-band::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 8% 20%, rgba(15, 157, 122, .40), transparent 46%),
    radial-gradient(circle at 92% 90%, rgba(255, 194, 71, .18), transparent 42%);
}
.subscribe-band > * { position: relative; z-index: 2; }
.subscribe-band h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 10px; }
.subscribe-band p { color: rgba(255, 255, 255, .78); margin-bottom: 0; }
.subscribe-band .form-control { border: none; }
.subscribe-band .form-control:focus { box-shadow: 0 0 0 4px rgba(255, 255, 255, .22); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background: linear-gradient(120deg, var(--hmi-navy) 0%, var(--hmi-navy-3) 58%, #0d5f4c 100%);
  border-radius: 26px;
  padding: 48px 42px;
  color: #fff;
  overflow: hidden;
}
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 2.8vw, 2.2rem); margin-bottom: 12px; }
.cta-band p { color: rgba(255, 255, 255, .78); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--hmi-navy); color: rgba(255, 255, 255, .70); padding-top: 68px; }
.site-footer h3 {
  color: #fff;
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 800;
}
.site-footer p { color: rgba(255, 255, 255, .62); font-size: .92rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255, 255, 255, .70); font-size: .92rem; transition: color .16s ease, padding-left .16s ease; }
.footer-links a:hover { color: var(--hmi-amber); padding-left: 4px; }
.footer-contact { list-style: none; padding: 0; margin: 18px 0 0; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 12px; font-size: .92rem; color: rgba(255, 255, 255, .70); }
.footer-contact li svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--hmi-emerald); margin-top: 2px; }
.footer-contact a { color: rgba(255, 255, 255, .72); }
.footer-contact a:hover { color: var(--hmi-amber); }
.footer-bottom {
  margin-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 20px 0;
  font-size: .86rem;
  color: rgba(255, 255, 255, .55);
}
.footer-bottom a { color: rgba(255, 255, 255, .70); }
.footer-bottom a:hover { color: var(--hmi-amber); }
.social-row { display: flex; gap: 10px; margin-top: 20px; }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .08);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  transition: background .18s ease, transform .18s ease;
}
.social-row a:hover { background: var(--hmi-emerald); transform: translateY(-2px); }
.social-row svg { width: 17px; height: 17px; }

/* ---------- Legal pages ---------- */
.legal-body h2 { font-size: 1.28rem; margin: 32px 0 12px; }
.legal-body h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.legal-body p, .legal-body li { font-size: .96rem; color: var(--hmi-muted); line-height: 1.8; }
.legal-toc {
  background: var(--hmi-cream);
  border: 1px solid var(--hmi-line);
  border-radius: 18px;
  padding: 22px 24px;
  position: sticky;
  top: 100px;
}
.legal-toc h3 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--hmi-muted); margin-bottom: 14px; }
.legal-toc ol { padding-left: 1.1rem; margin: 0; }
.legal-toc li { margin-bottom: 8px; font-size: .9rem; }
.legal-toc a { color: var(--hmi-navy); font-weight: 600; }
.legal-toc a:hover { color: var(--hmi-emerald-dark); }

/* ---------- Utility ---------- */
.text-emerald { color: var(--hmi-emerald-dark) !important; }
.text-amber { color: #a06a00 !important; }
.rounded-hmi { border-radius: var(--hmi-radius) !important; }
.shadow-hmi { box-shadow: var(--hmi-shadow) !important; }
.divider-line { height: 1px; background: var(--hmi-line); border: 0; opacity: 1; }
.hover-lift { transition: transform .2s ease, box-shadow .2s ease; }
.hover-lift:hover { transform: translateY(-4px); box-shadow: var(--hmi-shadow); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .section { padding: 66px 0; }
  .hero { padding: 68px 0 78px; }
  .hero-media { margin-top: 44px; }
  .navbar-collapse {
    margin-top: 14px;
    padding: 14px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--hmi-line);
    box-shadow: var(--hmi-shadow);
  }
  .navbar .nav-link.active::after { display: none; }
  .nav-cta { margin: 10px 0 0; display: flex; }
  .nav-cta .btn { width: 100%; }
  .legal-toc { position: static; margin-bottom: 28px; }
  .topbar .tb-hide { display: none; }
}
@media (max-width: 767.98px) {
  .topbar { font-size: .78rem; }
  .topbar .tb-hide-sm { display: none; }
  .subscribe-band, .cta-band { padding: 32px 24px; border-radius: 20px; }
  .form-card { padding: 22px; }
  .brand-text { font-size: 1.16rem; }
  .brand-mark { width: 36px; height: 36px; border-radius: 11px; }
  .footer-bottom { text-align: center; }
  .footer-bottom .fb-right { margin-top: 10px; text-align: center !important; }
}

/* ---------- Anchor target highlight (services.html deep links) ---------- */
.service-card.anchor-flash,
.anchor-flash {
  border-color: var(--hmi-emerald) !important;
  box-shadow: 0 0 0 4px rgba(15, 157, 122, .18), var(--hmi-shadow) !important;
}
.is-invalid {
  border-color: #d9534f !important;
  background-image: none;
}

/* ---------- Eyebrow centring ---------- */
.eyebrow-center { justify-content: center; }

/* ---------- Process step icons ---------- */
.step-tile .step-icon { margin-bottom: 18px; }
