/* ============================================================
   Microhuv — Independent Printer Help Blog
   Theme: dark blue, light blue, gray & white
   ============================================================ */

:root {
  --navy: #0A2342;
  --navy-2: #103A68;
  --deep: #061627;
  --blue: #1E77C4;
  --blue-2: #2B8CDE;
  --sky: #EAF5FD;
  --sky-2: #D6EAF9;
  --accent: #6CC6F5;
  --gray-1: #F4F7FA;
  --gray-2: #E2E9F0;
  --gray-3: #8493A3;
  --text: #273747;
  --white: #FFFFFF;
  --shadow: 0 14px 36px rgba(10, 35, 66, 0.10);
  --shadow-sm: 0 6px 18px rgba(10, 35, 66, 0.07);
  --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--navy);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

a { color: var(--blue); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--navy); }

svg { max-width: 100%; }

::selection { background: var(--sky-2); color: var(--navy); }

/* ---------- Buttons ---------- */
.btn { border-radius: 10px; font-weight: 600; padding: 0.7rem 1.4rem; transition: all 0.2s ease; }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover, .btn-primary:focus { background: var(--navy-2); border-color: var(--navy-2); color: #fff; transform: translateY(-2px); }
.btn-navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-navy:hover, .btn-navy:focus { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-2px); }
.btn-outline-blue { border: 1.5px solid var(--blue); color: var(--blue); background: transparent; }
.btn-outline-blue:hover { background: var(--blue); color: #fff; }
.btn-outline-light { border: 1.5px solid rgba(255,255,255,.65); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--navy); }
.btn-lg { padding: 0.85rem 1.7rem; font-size: 1rem; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--navy);
  box-shadow: 0 4px 20px rgba(6, 22, 39, 0.25);
}
.site-header .navbar { padding: 0.7rem 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-text {
  color: #fff;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}
.brand-text span { color: var(--accent); }
.brand-sub { display: block; font-size: 0.58rem; font-weight: 500; letter-spacing: 0.16em; color: #A9C4DC; text-transform: uppercase; margin-top: 3px; }
.nav-link {
  color: rgba(255,255,255,0.82) !important;
  font-weight: 500;
  font-size: 0.94rem;
  padding: 0.5rem 0.9rem !important;
  border-radius: 8px;
  margin: 0 2px;
}
.nav-link:hover, .nav-link:focus, .nav-link.active { color: #fff !important; background: rgba(255,255,255,0.12); }
.navbar-toggler { border: 1.5px solid rgba(255,255,255,.35); padding: 8px 9px; border-radius: 9px; }
.navbar-toggler:focus { box-shadow: none; }
.toggler-bar { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: 0.25s ease; }
.toggler-bar + .toggler-bar { margin-top: 5px; }
.navbar-toggler:not(.collapsed) .toggler-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggler:not(.collapsed) .toggler-bar:nth-child(2) { opacity: 0; }
.navbar-toggler:not(.collapsed) .toggler-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.header-cta { margin-left: 10px; }

/* ---------- Hero / Banner ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(125deg, var(--sky) 0%, #ffffff 52%, var(--gray-1) 100%);
  padding: 60px 0 78px;
}
.hero::before {
  content: "";
  position: absolute;
  width: 430px; height: 430px;
  border-radius: 50%;
  background: rgba(43,140,222,.07);
  top: -180px; right: -130px;
}
.hero::after {
  content: "";
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(43,140,222,.05);
  bottom: -150px; left: -90px;
}
.hero .container { position: relative; z-index: 1; }
.hero .row { align-items: center; }
.hero-content { order: 1; }        /* mobile: content on top */
.hero-visual { order: 2; }         /* mobile: illustration below */
@media (min-width: 992px) {
  .hero { padding: 86px 0 96px; }
  .hero-content { order: 2; }      /* desktop: content on RIGHT */
  .hero-visual { order: 1; }       /* desktop: illustration on LEFT */
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--blue);
  border: 1px solid var(--sky-2);
  border-radius: 100px; padding: 6px 15px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(2.15rem, 4.4vw, 3.4rem); margin: 22px 0 18px; }
.hero h1 .accent { color: var(--blue); }
.hero-lead { font-size: 1.08rem; color: #4B5D6E; max-width: 560px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 38px; padding-top: 26px; border-top: 1px solid var(--gray-2); }
.hero-stats .stat strong { display: block; font-size: 1.6rem; color: var(--navy); line-height: 1.1; }
.hero-stats .stat span { font-size: 0.82rem; color: var(--gray-3); font-weight: 500; }
.hero-art { width: 100%; max-width: 560px; margin: 0 auto; filter: drop-shadow(0 18px 28px rgba(10,35,66,.12)); }

/* ---------- Sections & headings ---------- */
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-alt { background: var(--gray-1); }
.section-blue { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; }
.section-blue h2, .section-blue h3, .section-blue h4 { color: #fff; }
.section-blue p { color: #C6D7E7; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  display: inline-block; color: var(--blue); font-size: 0.78rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 10px;
}
.section-blue .kicker { color: var(--accent); }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 14px; }
.section-head p { color: #5C6C7C; margin: 0; font-size: 1.02rem; }
.section-blue .section-head p { color: #C6D7E7; }

/* ---------- Cards & icons ---------- */
.card-soft {
  background: #fff; border: 1px solid var(--gray-2); border-radius: var(--radius);
  padding: 28px; height: 100%; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card-soft:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--sky-2); }
.card-soft h4 { font-size: 1.12rem; margin-bottom: 10px; }
.card-soft p { color: #617181; font-size: 0.94rem; margin-bottom: 0; }
.icon-box {
  width: 54px; height: 54px; border-radius: 15px; background: var(--sky);
  display: grid; place-items: center; color: var(--blue); margin-bottom: 18px;
}
.icon-box svg { width: 27px; height: 27px; }
.icon-box.light { background: rgba(255,255,255,.12); color: var(--accent); }
.icon-box.gray { background: var(--gray-1); color: var(--navy-2); }

.feature-row { display: flex; gap: 18px; align-items: flex-start; }
.feature-row .icon-box { flex: none; margin-bottom: 0; }

/* ---------- Steps ---------- */
.step-card { position: relative; padding-left: 76px; margin-bottom: 30px; }
.step-num {
  position: absolute; left: 0; top: 0;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1.15rem;
  box-shadow: 0 8px 18px rgba(10,35,66,.18);
}
.step-card h4 { font-size: 1.1rem; margin-bottom: 6px; }
.step-card p { color: #617181; font-size: 0.95rem; margin-bottom: 0; }

/* ---------- Lists ---------- */
.check-list { list-style: none; padding: 0; margin: 22px 0 0; }
.check-list li { position: relative; padding-left: 34px; margin-bottom: 14px; color: #4F6172; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 5px;
  width: 21px; height: 21px; border-radius: 50%; background: var(--sky);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E77C4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 13px; background-repeat: no-repeat; background-position: center;
}

/* ---------- Blog cards ---------- */
.post-card {
  background: #fff; border: 1px solid var(--gray-2); border-radius: var(--radius);
  overflow: hidden; height: 100%; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-thumb {
  height: 158px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--sky), #F8FCFF);
  border-bottom: 1px solid var(--sky-2); color: var(--blue);
}
.post-thumb svg { width: 78px; height: 78px; }
.post-thumb.alt { background: linear-gradient(135deg, #E8EFF6, #F7FAFC); color: var(--navy-2); }
.post-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-size: 0.76rem; color: var(--gray-3); font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.post-body h4 { font-size: 1.12rem; margin: 10px 0 10px; }
.post-body h4 a { color: var(--navy); }
.post-body h4 a:hover { color: var(--blue); }
.post-body p { color: #617181; font-size: 0.92rem; margin-bottom: 18px; flex: 1; }
.read-more { font-weight: 700; font-size: 0.88rem; color: var(--blue); }
.read-more:hover { color: var(--navy); }

/* ---------- Filter chips ---------- */
.filter-wrap { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filter-chip {
  background: #fff; border: 1px solid var(--gray-2); color: #5B6C7D;
  border-radius: 100px; padding: 7px 17px; font-size: 0.86rem; font-weight: 600; cursor: pointer;
  transition: .2s ease;
}
.filter-chip:hover { border-color: var(--blue-2); color: var(--blue); }
.filter-chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.search-box { position: relative; flex: 1; min-width: 240px; max-width: 330px; }
.search-box svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; color: var(--gray-3); }
.search-box input { padding-left: 42px; border-radius: 100px; border-color: var(--gray-2); font-size: 0.9rem; }
.search-box input:focus { border-color: var(--blue); box-shadow: 0 0 0 .2rem rgba(30,119,196,.12); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy) 0%, var(--blue) 100%);
  color: #fff; border-radius: 24px; padding: 48px; position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; right: -70px; top: -90px;
  width: 280px; height: 280px; border-radius: 50%; background: rgba(255,255,255,.07);
}
.cta-band h3, .cta-band h2 { color: #fff; }
.cta-band p { color: #D7E6F3; margin-bottom: 0; }
.cta-band .inner { position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: #A9BDD1; padding-top: 68px; }
.site-footer h5 { color: #fff; font-size: 0.95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer p { font-size: 0.9rem; color: #9FB3C7; }
.footer-brand .brand-text { font-size: 1.5rem; }
.footer-link { display: block; color: #A9BDD1; font-size: 0.9rem; padding: 4px 0; }
.footer-link:hover { color: var(--accent); padding-left: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.11); margin-top: 52px; padding: 20px 0; font-size: 0.85rem; }
.footer-bottom a { color: #A9BDD1; }
.footer-bottom a:hover { color: #fff; }
.footer-note { color: #7F97AE; font-size: 0.82rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(120deg, var(--sky), #fff 70%);
  border-bottom: 1px solid var(--sky-2);
  padding: 52px 0 58px;
}
.page-hero h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin: 12px 0 10px; }
.page-hero p { color: #5C6C7C; max-width: 700px; margin: 0; font-size: 1.05rem; }
.breadcrumb { background: transparent; padding: 0; margin-bottom: 14px; font-size: 0.82rem; }
.breadcrumb-item a { color: var(--blue); }
.breadcrumb-item.active { color: var(--gray-3); }
.breadcrumb-item + .breadcrumb-item::before { content: "/"; color: #B4C0CC; }

/* ---------- Article ---------- */
.article-body { font-size: 1.02rem; }
.article-body p { margin-bottom: 20px; color: #3E4F5F; }
.article-body p:first-of-type { font-size: 1.08rem; color: #33485B; }
.article-body h2 { font-size: 1.6rem; margin: 38px 0 14px; }
.article-body h3 { font-size: 1.22rem; margin: 28px 0 12px; }
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 22px; color: #3E4F5F; }
.article-body li { margin-bottom: 9px; }
.article-body strong { color: var(--navy); }
.article-callout {
  background: var(--sky); border-left: 4px solid var(--blue);
  border-radius: 0 12px 12px 0; padding: 18px 22px; margin: 28px 0; color: #31475B;
}
.article-callout strong { color: var(--blue); }
.toc-box { background: var(--gray-1); border: 1px solid var(--gray-2); border-radius: var(--radius); padding: 24px; }
.toc-box h5 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 12px; }
.toc-box a { display: block; font-size: 0.92rem; padding: 4px 0; color: #4F6172; }
.toc-box a:hover { color: var(--blue); padding-left: 4px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 0.84rem; color: var(--gray-3); font-weight: 600; }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta svg { width: 16px; height: 16px; color: var(--blue); }
.article-art {
  background: linear-gradient(135deg, var(--sky), #F8FCFF);
  border: 1px solid var(--sky-2); border-radius: 20px;
  min-height: 240px; display: grid; place-items: center; padding: 26px;
  margin-bottom: 32px;
}
.article-art svg { width: min(100%, 380px); color: var(--blue); }
.share-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--gray-2); }
.share-row .btn { font-size: 0.85rem; padding: 0.5rem 1rem; }
.helpful-box { background: var(--gray-1); border-radius: 14px; padding: 20px 24px; margin-top: 26px; }
.helpful-box p { margin: 0 0 10px; font-weight: 600; color: var(--navy); font-size: 0.95rem; }
.helpful-btn { background: #fff; border: 1px solid var(--gray-2); border-radius: 8px; padding: 6px 16px; font-size: 0.86rem; font-weight: 600; color: #5B6C7D; margin-right: 8px; }
.helpful-btn:hover, .helpful-btn.selected { border-color: var(--blue); color: var(--blue); background: var(--sky); }

/* ---------- Forms ---------- */
.form-label { font-weight: 600; font-size: 0.88rem; color: var(--navy); }
.form-control { border-radius: 10px; padding: 0.75rem 1rem; border-color: var(--gray-2); font-size: 0.94rem; }
.form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 0.2rem rgba(30,119,196,.14); }
textarea.form-control { min-height: 150px; }
.form-message { display: none; margin-top: 16px; padding: 12px 16px; border-radius: 10px; font-size: 0.9rem; font-weight: 600; }
.form-message.success { display: block; background: #E8F7EE; color: #1B6E43; border: 1px solid #BFE7D0; }
.form-message.error { display: block; background: #FDECEC; color: #A32B2B; border: 1px solid #F5CCCC; }
.contact-card { background: #fff; border: 1px solid var(--gray-2); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); height: 100%; }
.contact-card .icon-box { margin-bottom: 14px; }
.contact-card h5 { font-size: 1.02rem; margin-bottom: 4px; }
.contact-card p { color: #617181; font-size: 0.91rem; margin: 0; }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--gray-2); margin: 0; }
.quote-line { border-left: 3px solid var(--blue); padding-left: 18px; color: #4F6172; font-style: italic; }
.legal-body h2 { font-size: 1.45rem; margin: 34px 0 12px; }
.legal-body h3 { font-size: 1.12rem; margin: 24px 0 10px; }
.legal-body p, .legal-body li { color: #475969; }
.legal-body li { margin-bottom: 8px; }
.info-strip { background: var(--sky); border-radius: 14px; padding: 20px 24px; color: var(--navy); font-size: 0.95rem; }

/* ---------- Progress & back to top ---------- */
#progressBar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--accent); z-index: 1050; transition: width .1s linear; }
.back-to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 1040;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--blue); color: #fff; border: none;
  display: grid; place-items: center;
  box-shadow: 0 8px 22px rgba(10,35,66,.25);
  opacity: 0; pointer-events: none; transform: translateY(12px); transition: all .3s ease;
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.back-to-top:hover { background: var(--navy); color: #fff; }
.back-to-top svg { width: 20px; height: 20px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive tweaks ---------- */
/* Keep the wide vertical rhythm of g-5 without pushing rows past the
   container padding on small screens (Bootstrap's default gutter is 1.5rem). */
.row.g-5 { --bs-gutter-x: 1.5rem; --bs-gutter-y: 3rem; }

@media (max-width: 991.98px) {
  .section { padding: 68px 0; }
  .hero-art { max-width: 460px; }
  .header-cta { margin-left: 0; margin-top: 10px; }
  .navbar-collapse { background: var(--navy-2); border-radius: 0 0 14px 14px; padding: 10px 16px 18px; }
  .cta-band { padding: 36px 26px; }
}
@media (max-width: 575.98px) {
  body { font-size: 15.5px; }
  .hero { padding: 46px 0 58px; }
  .hero h1 { font-size: 2rem; }
  .hero-stats { gap: 20px; }
  .hero-stats .stat strong { font-size: 1.3rem; }
  .section { padding: 56px 0; }
  .card-soft { padding: 22px; }
  .step-card { padding-left: 0; }
  .step-num { position: static; margin-bottom: 12px; }
  .page-hero { padding: 38px 0 44px; }
  .cta-band { padding: 30px 22px; border-radius: 18px; }
  .article-art { min-height: 190px; }
  .footer-bottom { text-align: center; }
}
