/*
Theme Name: LoanShield Review
Theme URI: https://loanguardreview.com
Author: LoanShield Review
Description: Original responsive editorial theme for LoanShield Review guides.
Version: 1.0.0
Text Domain: loanshield-review
*/

/* ============================================================
   LoanShield Review — editorial ink/teal/amber design system
   ============================================================ */

:root {
  --ink:       #14202e;
  --ink-2:     #1c2c40;
  --ink-3:     #0d1622;
  --paper:     #f8f5ee;
  --paper-2:   #f1ebdf;
  --card:      #fffdf7;
  --line:      #e2dbc9;
  --line-dark: #cfc5ac;
  --teal:      #0d7a68;
  --teal-deep: #0a5b4e;
  --teal-hi:   #35d6ab;
  --amber:     #f2a71b;
  --amber-hi:  #ffc94d;
  --amber-soft:#fdf0d2;
  --coral:     #e4572e;
  --muted:     #5d6a7a;
  --shadow:    6px 6px 0 rgba(20, 32, 46, .09);
  --shadow-lg: 9px 9px 0 rgba(20, 32, 46, .12);
  --radius:    14px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 85% -100px, rgba(13, 122, 104, .06), transparent 60%),
    var(--paper);
}

img, svg { max-width: 100%; display: inline-block; vertical-align: middle; }

a { color: var(--teal); text-decoration-color: rgba(13, 122, 104, .35); text-underline-offset: 3px; }
a:hover { color: var(--teal-deep); }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .5em; font-weight: 700; }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon-s { width: 1em; height: 1em; }

.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }

.visually-hidden, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link:focus {
  position: fixed; top: .5rem; left: .5rem; z-index: 200;
  background: var(--amber); color: var(--ink); padding: .5rem 1rem;
  border-radius: 8px; font-weight: 700; text-decoration: none;
}

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

::selection { background: var(--amber-hi); color: var(--ink); }

/* ---------- top bar + header ---------- */
.topbar {
  background: var(--amber); color: var(--ink);
  font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: .4rem 0; text-align: center;
}
.topbar .container { display: flex; justify-content: space-between; gap: 1rem; }
.topbar span:last-child { text-align: right; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 245, 238, .92);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--ink);
}
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(13, 22, 34, .12); }

.header-inner { display: flex; align-items: center; gap: 1.25rem; padding: .7rem 0; }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: 40px; height: 40px; }
.brand-text { font-family: var(--font-display); font-size: 1.35rem; line-height: 1; display: flex; flex-direction: column; }
.brand-text strong { font-weight: 900; letter-spacing: -.01em; }
.brand-text em { font-style: italic; font-weight: 600; font-size: .72em; color: var(--teal); letter-spacing: .08em; }

.nav-drawer { display: flex; align-items: center; gap: 1.1rem; margin-left: auto; }

.site-nav { display: flex; gap: 1.4rem; }
.site-nav a {
  color: var(--ink); font-weight: 600; font-size: .95rem; text-decoration: none;
  padding: .3rem 0; border-bottom: 3px solid transparent;
}
.site-nav a:hover { color: var(--teal); border-bottom-color: var(--amber); }

.header-search { display: flex; align-items: center; gap: .3rem; }
.header-search input {
  width: 170px; padding: .45rem .7rem; font: inherit; font-size: .9rem;
  border: 1.5px solid var(--ink); border-radius: 999px; background: var(--card);
}
.header-search button {
  display: inline-grid; place-items: center; width: 36px; height: 36px;
  background: var(--ink); color: var(--paper); border: none; border-radius: 50%; cursor: pointer;
}
.header-search button:hover { background: var(--teal); }

.nav-toggle {
  display: none; margin-left: auto; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 2px solid var(--ink); border-radius: 10px;
  background: var(--card); color: var(--ink); cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: inline-block; }

/* ---------- kicker / lede / titles ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--teal); margin: 0 0 .6rem;
}
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal-hi); box-shadow: 0 0 0 0 rgba(53, 214, 171, .6); animation: pulse 2.2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(53, 214, 171, .55); }
  70% { box-shadow: 0 0 0 10px rgba(53, 214, 171, 0); }
  100% { box-shadow: 0 0 0 0 rgba(53, 214, 171, 0); }
}

.lede { font-size: 1.12rem; color: var(--muted); max-width: 56ch; margin: 0 0 1.4rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font: inherit; font-weight: 700; font-size: .95rem;
  padding: .72rem 1.35rem; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--ink); text-decoration: none; line-height: 1.2;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--amber); color: var(--ink); box-shadow: var(--shadow); }
.btn-primary:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-lg); color: var(--ink); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; opacity: .92; }
.btn-ghost:hover { background: rgba(20, 32, 46, .06); }
.btn-dark { background: var(--ink); color: var(--paper); box-shadow: 6px 6px 0 rgba(13, 22, 34, .25); }
.btn-dark:hover { transform: translate(-2px, -2px); color: var(--amber-hi); }
.btn-lg { padding: .9rem 1.7rem; font-size: 1rem; }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 8% -60px, rgba(53, 214, 171, .12), transparent 55%),
    radial-gradient(700px 380px at 95% 110%, rgba(242, 167, 27, .12), transparent 55%),
    var(--ink);
  color: var(--paper);
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 3rem; align-items: center; }

.hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.3rem);
  font-weight: 900; letter-spacing: -.02em; margin: 0 0 1rem;
}
.hero h1 em { font-style: italic; color: var(--amber-hi); }
.hero .lede { color: #c8d2dd; }
.hero .kicker { color: var(--teal-hi); }

.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 0 0 2rem; }

.hero-stats {
  display: flex; gap: 2.2rem; list-style: none; margin: 0; padding: 0;
  border-top: 1px solid rgba(248, 245, 238, .18); padding-top: 1.2rem;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-display); font-size: 1.7rem; font-weight: 900; color: var(--amber-hi); }
.hero-stats span { font-size: .82rem; color: #9fabb9; letter-spacing: .04em; }

.hero-panel {
  background: var(--card); color: var(--ink);
  border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 1.6rem; position: relative;
}
.hero-panel h2 { font-size: 1.35rem; margin: .7rem 0 .5rem; }
.hero-panel h2 a { color: var(--ink); text-decoration: none; }
.hero-panel h2 a:hover { color: var(--teal); text-decoration: underline; }
.hero-panel p { color: var(--muted); font-size: .95rem; margin: 0 0 1rem; }
.panel-tag {
  display: inline-block; background: var(--ink); color: var(--amber-hi);
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: 999px;
}

/* ---------- ticker ---------- */
.ticker {
  display: flex; align-items: stretch; overflow: hidden;
  background: var(--ink-3); color: var(--paper);
  border-top: 2px solid var(--amber); border-bottom: 2px solid var(--amber);
}
.ticker-label {
  flex: none; display: grid; place-items: center; padding: 0 1.1rem;
  background: var(--amber); color: var(--ink);
  font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
}
.ticker-track {
  display: flex; align-items: center; gap: 2.2rem; white-space: nowrap;
  padding: .55rem 0; animation: ticker 60s linear infinite; will-change: transform;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track a { color: var(--paper); text-decoration: none; font-size: .92rem; font-weight: 500; }
.ticker-track a:hover { color: var(--amber-hi); }
.ticker-sep { color: var(--amber); font-size: .6rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- ads ----------
   Wrappers exist only when ad code is set; hidden slots render nothing. */
.ad-wrap { margin: 1.6rem auto; width: min(1180px, 100% - 2.5rem); }
.ad-wrap > * { max-width: 100%; }
.ad-wrap > iframe, .ad-wrap > ins { display: block; margin-inline: auto; }
.ad-in-grid { display: grid; }

/* ---------- sections ---------- */
.section { padding: clamp(2.6rem, 6vw, 4.5rem) 0; }
.section-alt { background: var(--paper-2); border-block: 1.5px solid var(--line); }

.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1rem; margin-bottom: 2.2rem;
}
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 900; margin: 0; }
.section-sub { color: var(--muted); max-width: 38ch; margin: 0 0 .4rem; }

/* ---------- services grid ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.4rem;
}
.service-card {
  display: flex; flex-direction: column; gap: .55rem;
  background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.5rem 1.4rem 1.3rem;
  color: var(--ink); text-decoration: none; position: relative; overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.service-card:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-lg); }
.service-card:hover .service-cta { color: var(--teal); }
.service-num {
  position: absolute; top: .5rem; right: .9rem;
  font-family: var(--font-display); font-size: 2.6rem; font-weight: 900;
  color: var(--paper-2); -webkit-text-stroke: 1.5px var(--line-dark); line-height: 1;
}
.service-icon {
  width: 52px; height: 52px; display: grid; place-items: center;
  background: var(--teal); color: #fff; border-radius: 12px; margin-bottom: .3rem;
  box-shadow: 3px 3px 0 rgba(13, 122, 104, .25);
}
.service-icon .icon { width: 1.6em; height: 1.6em; }
.service-card h3 { font-size: 1.18rem; margin: 0; }
.service-card p { margin: 0; color: var(--muted); font-size: .93rem; flex: 1; }
.service-cta {
  display: inline-flex; align-items: center; gap: .4rem; align-self: flex-start;
  font-weight: 700; font-size: .88rem; color: var(--ink);
}

/* ---------- steps band ---------- */
.steps-band { background: var(--teal-deep); color: var(--paper); padding: clamp(2.4rem, 5vw, 3.6rem) 0; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.step { border-top: 3px solid var(--amber); padding-top: 1.1rem; }
.step-n { font-family: var(--font-display); font-size: 1.5rem; font-weight: 900; color: var(--amber-hi); }
.step h3 { color: #fff; font-size: 1.25rem; }
.step p { color: #bfe8dc; margin: 0; font-size: .95rem; }

/* ---------- article cards ---------- */
.articles-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.4rem; align-items: stretch;
}
.card {
  background: var(--card); border: 1.5px solid var(--line-dark);
  border-radius: var(--radius); padding: 1.4rem 1.35rem 1.2rem;
  display: flex; flex-direction: column; gap: .6rem;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow); border-color: var(--ink); }

.card-top { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: var(--amber-soft); color: var(--ink);
  border: 1px solid var(--line-dark); border-radius: 999px; padding: .28rem .7rem;
  text-decoration: none;
}
.chip .icon { width: 1em; height: 1em; }
.chip:hover { border-color: var(--ink); }
.chip-count { opacity: .65; }
.chip-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.8rem; }
.chip-active { background: var(--ink); color: var(--amber-hi); border-color: var(--ink); }
.chip-big { font-size: .8rem; padding: .45rem .95rem; }

.card-meta { font-size: .78rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.card-title { font-size: 1.22rem; margin: 0; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--teal); text-decoration: underline; text-decoration-color: var(--amber); }
.card-excerpt { color: var(--muted); font-size: .94rem; margin: 0; flex: 1; }
.card-foot {
  display: flex; justify-content: space-between; align-items: center; gap: .8rem;
  border-top: 1.5px dashed var(--line); padding-top: .8rem; margin-top: .2rem;
}
.card-foot time { font-size: .8rem; color: var(--muted); font-weight: 600; }
.read-more {
  display: inline-flex; align-items: center; gap: .35rem;
  font-weight: 700; font-size: .88rem; text-decoration: none; color: var(--teal);
}
.read-more:hover { color: var(--ink); }

/* ---------- quote band ---------- */
.quote-band { background: var(--amber); padding: clamp(2.8rem, 6vw, 4.5rem) 0; }
.quote-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 2rem; }
.quote-shield { width: 64px; height: 64px; color: var(--ink); }
.quote-band blockquote { margin: 0; flex: 1; min-width: 260px; }
.quote-band blockquote p {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem); line-height: 1.15; color: var(--ink); margin: 0;
}

/* ---------- disclaimer strip ---------- */
.disclaimer-strip { padding: 1.4rem 0; }
.disclaimer-inner {
  display: flex; gap: .9rem; align-items: flex-start;
  background: #fdf3e4; border: 1.5px solid var(--amber); border-radius: var(--radius);
  padding: 1rem 1.3rem; color: #6b5527; font-size: .9rem;
}
.disclaimer-inner .icon { color: var(--amber); margin-top: .15rem; }
.disclaimer-inner p { margin: 0; }

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  background:
    radial-gradient(800px 300px at 90% -80px, rgba(242, 167, 27, .14), transparent 55%),
    var(--ink);
  color: var(--paper); padding: clamp(2.6rem, 5vw, 4rem) 0;
  border-bottom: 4px solid var(--amber);
}
.page-title { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 900; margin: 0 0 .6rem; }
.page-hero .lede { color: #c8d2dd; margin-bottom: 0; }
.page-hero .kicker { color: var(--teal-hi); }

.search-bar { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.search-bar input {
  flex: 1; min-width: 220px; padding: .8rem 1.1rem; font: inherit;
  border: 2px solid var(--paper); border-radius: 999px; background: var(--card);
}

/* ---------- empty state ---------- */
.empty-state {
  text-align: center; padding: 3.5rem 1.5rem;
  border: 2px dashed var(--line-dark); border-radius: var(--radius); background: var(--card);
}
.empty-state .icon { width: 48px; height: 48px; color: var(--muted); }
.empty-state h2, .empty-state .page-title { margin-top: .6rem; }
.empty-state p { color: var(--muted); margin: 0 auto 1.4rem; max-width: 44ch; }

/* ---------- article layout ---------- */
.article-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 330px;
  gap: 3rem; padding: clamp(2.4rem, 5vw, 3.6rem) 0;
}
.article-body { min-width: 0; }

.breadcrumb { font-size: .82rem; font-weight: 600; margin-bottom: 1.4rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb span { color: var(--line-dark); margin: 0 .35rem; }

.article-head { border-bottom: 3px solid var(--ink); padding-bottom: 1.5rem; margin-bottom: 1.8rem; }
.article-title { font-size: clamp(1.9rem, 4.2vw, 2.9rem); font-weight: 900; line-height: 1.08; margin: .8rem 0 .7rem; }
.article-lede { font-size: 1.15rem; color: var(--muted); margin: 0 0 1rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: .55rem; font-size: .85rem; font-weight: 600; color: var(--muted); }

.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin-top: 1rem; }
.share-row span { font-size: .82rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.share-row a {
  font-size: .82rem; font-weight: 700; text-decoration: none;
  border: 1.5px solid var(--ink); border-radius: 999px; padding: .3rem .85rem; color: var(--ink);
}
.share-row a:hover { background: var(--ink); color: var(--amber-hi); }

.prose { font-size: 1.05rem; }
.prose > p:first-child::first-letter {
  font-family: var(--font-display); font-weight: 900; font-size: 3.4em;
  float: left; line-height: .82; padding: .06em .12em 0 0; color: var(--teal);
}
.prose h2 {
  font-size: 1.55rem; font-weight: 800; margin: 2.1em 0 .6em;
  padding-left: .7rem; border-left: 5px solid var(--amber);
}
.prose p { margin: 0 0 1.1em; }
.prose ul { margin: 0 0 1.2em; padding-left: 1.3rem; }
.prose li { margin-bottom: .55em; }
.prose li::marker { color: var(--teal); }
.prose a { font-weight: 600; }
.prose blockquote {
  margin: 1.8em 0; padding: 1.1em 1.3em;
  background: var(--ink); color: var(--paper);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.prose blockquote p {
  font-family: var(--font-display); font-style: italic; font-weight: 600;
  font-size: 1.18rem; margin: 0; color: var(--amber-hi);
}
.prose strong { font-weight: 700; }

/* ---------- prev / next ---------- */
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.4rem; }
.pn-link {
  display: flex; flex-direction: column; gap: .3rem; text-decoration: none;
  border: 1.5px solid var(--line-dark); border-radius: var(--radius);
  background: var(--card); padding: 1rem 1.1rem; color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.pn-link:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow); border-color: var(--ink); }
.pn-link span { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pn-link strong { font-family: var(--font-display); font-size: 1rem; line-height: 1.3; }
.pn-next { text-align: right; align-items: flex-end; }

/* ---------- sidebar ---------- */
.article-sidebar { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
.ad-sidebar { position: sticky; top: 90px; margin: 0; width: 100%; }
.side-box {
  background: var(--card); border: 1.5px solid var(--line-dark);
  border-radius: var(--radius); padding: 1.3rem 1.25rem;
}
.side-box h3 { font-size: 1.05rem; margin: 0 0 .8rem; padding-bottom: .5rem; border-bottom: 2px solid var(--amber); }
.side-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .65rem; }
.side-list a { font-weight: 600; font-size: .93rem; text-decoration: none; color: var(--ink); }
.side-list a:hover { color: var(--teal); }
.side-list .count { color: var(--muted); font-weight: 500; font-size: .82rem; }
.side-cta { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.side-cta h3 { color: var(--amber-hi); border-bottom-color: var(--teal); }
.side-cta p { font-size: .92rem; color: #c8d2dd; margin: 0 0 1rem; }

/* ---------- forms ---------- */
.contact-form, .news-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-field { display: flex; flex-direction: column; gap: .35rem; }
.form-field label { font-weight: 700; font-size: .9rem; }
.form-field input, .form-field textarea {
  font: inherit; padding: .75rem .95rem;
  border: 1.5px solid var(--ink); border-radius: 10px; background: var(--card);
}
.form-field textarea { resize: vertical; }

.form-errors, .form-success {
  border-radius: var(--radius); padding: 1rem 1.2rem;
}
.form-errors { background: #fbe9e2; border: 1.5px solid var(--coral); color: #7c2d12; }
.form-errors ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.form-success { background: #e3f6ee; border: 1.5px solid var(--teal); color: var(--teal-deep); display: flex; gap: .7rem; align-items: flex-start; }
.form-success h2 { margin: 0 0 .3rem; font-size: 1.3rem; }
.form-success p { margin: 0; }
.form-success .icon { color: var(--teal); margin-top: .2rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink-3); color: #c8d2dd; margin-top: 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 2.5rem; padding: clamp(2.6rem, 5vw, 4rem) 0 2rem;
}
.footer-col h3 {
  font-family: var(--font-body); font-size: .8rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; color: var(--amber-hi);
  margin: 0 0 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.footer-col a { color: #c8d2dd; text-decoration: none; font-size: .92rem; }
.footer-col a:hover { color: var(--teal-hi); }
.footer-col .count { color: #77828f; font-size: .82rem; }
.footer-about p { font-size: .92rem; color: #9fabb9; }

.brand-light { color: var(--paper); margin-bottom: 1rem; }
.brand-light .brand-text em { color: var(--teal-hi); }

.social-row { display: flex; gap: .6rem; margin-top: 1.2rem; }
.social-row a {
  display: grid; place-items: center; width: 40px; height: 40px;
  background: var(--ink-2); border: 1.5px solid #33465e; border-radius: 10px; color: #c8d2dd;
  transition: transform .15s ease, background .15s ease;
}
.social-row a:hover { background: var(--amber); color: var(--ink); transform: translateY(-3px); border-color: var(--amber); }
.social-row svg { width: 19px; height: 19px; }

.footer-news p { font-size: .92rem; color: #9fabb9; margin: 0 0 1rem; }
.news-form { flex-direction: row; }
.news-form input[type="email"] {
  flex: 1; min-width: 0; font: inherit; font-size: .92rem; padding: .65rem .9rem;
  border: 1.5px solid #33465e; border-radius: 999px; background: var(--ink-2); color: var(--paper);
}
.news-form input::placeholder { color: #77828f; }
.news-form button {
  font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer;
  background: var(--amber); color: var(--ink); border: none; border-radius: 999px; padding: .65rem 1.3rem;
}
.news-form button:hover { background: var(--amber-hi); }

.site-footer .ad-wrap { margin: 0 auto; }
.footer-bottom { border-top: 1.5px solid #263549; padding: 1.2rem 0; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; font-size: .82rem; color: #77828f; }
.footer-bottom nav { display: flex; gap: 1.2rem; }
.footer-bottom a { color: #9fabb9; }

/* ---------- to top ---------- */
.to-top {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90;
  width: 46px; height: 46px; border-radius: 12px; cursor: pointer;
  background: var(--ink); color: var(--amber-hi); border: 2px solid var(--amber);
  font-size: 1.15rem; opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .header-search input { width: 130px; }
  .site-nav { gap: 1rem; }
}

@media (max-width: 1020px) {
  .article-layout { grid-template-columns: 1fr; }
  .ad-sidebar { position: static; }
  .article-sidebar { order: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .hero-panel { max-width: 520px; }
  .steps-grid { grid-template-columns: 1fr; gap: 1.6rem; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-drawer {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 2px solid var(--ink);
    box-shadow: 0 14px 26px rgba(13, 22, 34, .18);
    padding: .4rem 1.25rem 1.1rem;
  }
  body.nav-open .nav-drawer { display: flex; }
  .site-nav { flex-direction: column; gap: 0; }
  .site-nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .site-nav a:last-child { border-bottom: none; }
  .header-search { margin-top: .9rem; }
  .header-search input { flex: 1; width: auto; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .topbar-hide { display: none; }
  .topbar .container { justify-content: center; }
  .hero-stats { gap: 1.4rem; }
  .articles-grid, .services-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .prevnext { grid-template-columns: 1fr; }
  .pn-next { text-align: left; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .article-layout { gap: 2rem; }
  .ad-wrap { margin: 1.2rem auto; }
  .quote-inner { flex-direction: column; align-items: flex-start; }
  .prose > p:first-child::first-letter { font-size: 2.9em; }
  .section-head { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; flex-wrap: wrap; white-space: normal; }
  .pulse-dot { animation: none; }
  *, *::before, *::after { transition: none !important; }
}
