/* ==========================================================================
   I Got Ransomware — a free small-business cybersecurity resource hub
   Built on safemode IT's actual brand tokens (pulled from safemodeit.com's
   theme.css .res-page design system) so this reads as part of the same site.
   ========================================================================== */

:root {
  --bg: #07090c;
  --bg-2: #0c1015;
  --bg-3: #11161d;
  --bg-card: #131923;
  --bg-card-hover: #171e29;
  --line: #1f2733;
  --line-2: #2a3340;
  --green: #70ad47;
  --green-bright: #8fcf63;
  --green-dim: #4d7a31;
  --green-dark: #4a8a2a;
  --text: #e6e9ee;
  --text-mute: #a7afbb;
  --text-dim: #6e7785;
  --white: #ffffff;
  --amber: #e8a940;
  --danger: #ef5350;
  --success: #4caf50;
  --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --container: 1180px;
  color-scheme: dark;
}

* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
[id] { scroll-margin-top: 110px; }

h1, h2, h3, h4 {
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em 0;
  letter-spacing: -0.01em;
  color: var(--white);
}
h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em 0; color: var(--text-mute); }
a { color: var(--green-bright); text-decoration: none; }
a:hover { color: var(--white); }
strong { color: var(--text); font-weight: 600; }
img, svg { max-width: 100%; }
ul, ol { color: var(--text-mute); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }

/* ---- Skip link ---- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--green); color: #07090c; padding: 10px 18px;
  border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---- Emergency bar ---- */
.emergency-bar {
  background: linear-gradient(90deg, #2a1610, #1a1108);
  border-bottom: 1px solid #4a2f1a;
  padding: 10px 0;
  font-size: 0.9rem;
}
.emergency-bar .container { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; text-align: center; }
.emergency-bar strong { color: var(--amber); }
.emergency-bar a { border-bottom: 1px solid rgba(232,169,64,0.4); font-weight: 600; color: var(--amber); }
.emergency-bar a:hover { color: #fff; border-bottom-color: #fff; }

.client-soc-bar {
  background: linear-gradient(90deg, #16210f, #0f1a0a);
  border-bottom: 1px solid #2e4a1f;
  padding: 10px 0;
  font-size: 0.9rem;
}
.client-soc-bar .container { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; text-align: center; }
.client-soc-bar strong { color: var(--green-bright); }
.client-soc-bar a.soc-phone { border-bottom: 1px solid rgba(143,207,99,0.4); font-weight: 700; color: var(--green-bright); white-space: nowrap; }
.client-soc-bar a.soc-phone:hover { color: #fff; border-bottom-color: #fff; }

/* ---- Header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7, 9, 12, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { max-width: 1360px; }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 34px; width: auto; display: block; }
.brand-logo { display: flex; align-items: center; transition: opacity 0.15s ease, transform 0.15s ease; }
.brand-logo:hover { opacity: 0.85; transform: translateY(-1px); }
.brand__divider { width: 1px; height: 26px; background: var(--line-2); flex-shrink: 0; }
.brand__sub {
  font-family: 'Exo 2', sans-serif; font-weight: 600; font-size: 0.98rem;
  color: var(--text); letter-spacing: -0.01em; white-space: nowrap;
}
.brand__sub a.brand__link {
  color: var(--green-bright); text-decoration: none;
  border-bottom: 1px solid transparent; transition: border-color 0.15s ease, color 0.15s ease;
}
.brand__sub a.brand__link:hover { color: var(--white); border-bottom-color: var(--green-bright); }

.main-nav { display: flex; align-items: center; gap: 2px; min-width: 0; }
.main-nav > ul { list-style: none; display: flex; align-items: center; gap: 1px; margin: 0; padding: 0; }
.main-nav a.nav-link {
  display: inline-flex; align-items: center; gap: 4px; position: relative;
  padding: 10px 11px; border-radius: 8px; font-size: 0.89rem; font-weight: 500;
  color: var(--text-mute); border: none; white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}
.main-nav a.nav-link::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 0; height: 2px;
  background: var(--green-bright); border-radius: 2px; transform: translateX(-50%);
  transition: width 0.22s ease;
}
.main-nav a.nav-link:hover, .main-nav a.nav-link:focus { color: var(--white); background: var(--bg-card); transform: translateY(-1px); }
.main-nav a.nav-link:hover::after, .main-nav a.nav-link:focus::after { width: 58%; }
.main-nav a.nav-link[aria-current="page"] { color: var(--white); background: var(--bg-card); }
.main-nav a.nav-link[aria-current="page"]::after { width: 58%; }
.nav-caret { display: inline-block; font-size: 0.75em; transition: transform 0.25s ease; }
.has-dropdown:hover .nav-caret, .has-dropdown:focus-within .nav-caret { transform: rotate(180deg); }
.main-nav li.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow); padding: 8px; display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-6px); pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
li.has-dropdown:hover .dropdown, li.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.dropdown a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 0.9rem; color: var(--text-mute); border: none; transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease; }
.dropdown a:hover { background: var(--bg-card); color: var(--white); padding-left: 16px; }
.dropdown a small { display: block; color: var(--text-dim); font-size: 0.78rem; font-weight: 400; margin-top: 2px; }

.header-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-toggle { display: none; }

@media (max-width: 1300px) {
  .brand__divider, .brand__sub { display: none; }
}

@media (max-width: 980px) {
  .main-nav { position: fixed; inset: 62px 0 0 0; background: var(--bg); overflow-y: auto;
    padding: 18px 24px 40px; transform: translateX(100%); transition: transform 0.2s ease; }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; align-items: stretch; width: 100%; gap: 4px; }
  .main-nav a.nav-link { white-space: normal; }
  .dropdown {
    position: static; display: none; box-shadow: none; border: none; background: var(--bg-2); margin: 4px 0 8px 12px;
    opacity: 1; visibility: visible; transform: none; pointer-events: auto;
  }
  li.has-dropdown.is-open .dropdown { display: flex; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line);
    background: var(--bg-card); color: var(--text); cursor: pointer; flex-shrink: 0;
  }
}
@media (max-width: 700px) {
  .header-cta .btn-lg-label { display: none; }
  .header-cta .btn { padding: 10px 14px; }
  .header-cta .btn::after { content: 'Free Help'; }
}
@media (max-width: 420px) {
  .site-header__inner { gap: 10px; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 0.92rem;
  padding: 11px 20px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; text-align: center; white-space: nowrap;
  transition: transform 0.12s, border-color 0.15s, background 0.15s, color 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #07090c; border-color: var(--green); }
.btn-primary:hover { background: var(--green-bright); border-color: var(--green-bright); color: #07090c; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--green); color: var(--white); }
.btn-lg { padding: 14px 26px; font-size: 0.98rem; }
.btn-sm { padding: 8px 14px; font-size: 0.82rem; }
.btn-block { width: 100%; }

/* ---- Page hero (inner pages) ---- */
.page-hero { padding: 44px 0 52px; border-bottom: 1px solid var(--line); }
.page-hero__eyebrow, .section__eyebrow {
  display: inline-block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.16em; color: var(--green-bright); margin-bottom: 14px;
}
.page-hero p.lede { font-size: 1.12rem; max-width: 720px; }
.page-hero .btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

/* ---- Breadcrumb ---- */
.breadcrumb { font-size: 0.82rem; color: var(--text-dim); padding: 22px 0 0; }
.breadcrumb a { color: var(--text-mute); }
.breadcrumb a:hover { color: var(--green-bright); }
.breadcrumb__sep { margin: 0 8px; color: var(--text-dim); }

/* ---- Stats ---- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; margin: 0 0 8px;
}
.stat { background: var(--bg-2); padding: 22px; }
.stat__num { font-family: 'Exo 2', sans-serif; font-size: 1.5rem; font-weight: 800; color: var(--green-bright); display: block; margin-bottom: 6px; }
.stat__label { font-size: 0.78rem; color: var(--text-mute); line-height: 1.45; }
.stat__src { font-size: 0.68rem; color: var(--text-dim); display: block; margin-top: 6px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---- Section ---- */
.section { padding: 56px 0; border-top: 1px solid var(--line); }
.section--tight { padding: 40px 0; }
.section h2 { max-width: 760px; }
.lede { font-size: 1.06rem; max-width: 760px; margin-bottom: 32px; }

/* ---- Category / service tiles ---- */
.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.tile {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 26px; display: flex; flex-direction: column; transition: border-color 0.15s, transform 0.15s;
}
.tile:hover { border-color: var(--green-dim); transform: translateY(-2px); }
.tile__icon {
  width: 40px; height: 40px; background: rgba(112,173,71,0.12); border: 1px solid rgba(112,173,71,0.3);
  border-radius: 9px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; color: var(--green-bright);
}
.tile h3 { font-size: 1.05rem; margin-bottom: 8px; }
.tile p { font-size: 0.92rem; margin-bottom: 14px; }
.tile__link { font-size: 0.86rem; font-weight: 600; margin-top: auto; }
@media (max-width: 920px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .tile-grid { grid-template-columns: 1fr; } }

/* ---- Numbered step cards ---- */
.step-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }
.step-grid--single { grid-template-columns: 1fr; max-width: 820px; }
.step {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 24px 26px; display: flex; gap: 18px; align-items: flex-start;
}
.step__num {
  font-family: 'Exo 2', sans-serif; font-weight: 800; font-size: 0.95rem; flex-shrink: 0;
  width: 34px; height: 34px; border-radius: 50%; background: rgba(112,173,71,0.14);
  border: 1px solid var(--green-dim); color: var(--green-bright); display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 1.02rem; margin-bottom: 6px; }
.step p { font-size: 0.93rem; margin-bottom: 0; }
@media (max-width: 760px) { .step-grid { grid-template-columns: 1fr; } }

/* ---- Callouts ---- */
.callout { border-radius: var(--r-md); padding: 22px 26px; margin: 24px 0; border: 1px solid var(--line); background: var(--bg-2); }
.callout h4 { font-size: 1rem; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.callout p:last-child { margin-bottom: 0; }
.callout--danger { border-color: rgba(239,83,80,0.35); background: linear-gradient(160deg, #1c1110, #171313); }
.callout--danger h4 { color: #ff8a87; }
.callout--success { border-color: var(--green-dim); background: linear-gradient(160deg, #1a1d14, #131713); }
.callout--success h4 { color: var(--green-bright); }
.callout--info { border-color: var(--line-2); background: var(--bg-3); }
.callout--info h4 { color: var(--text); }

/* ---- Resource / template cards ---- */
.res-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }
.res-card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 24px 26px; display: flex; flex-direction: column; gap: 10px;
}
.res-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.res-card h3 { font-size: 1.02rem; margin-bottom: 0; }
.res-card p { font-size: 0.92rem; margin-bottom: 0; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; padding: 5px 10px; border-radius: 999px; white-space: nowrap;
}
.badge--soon { background: rgba(232,169,64,0.14); color: var(--amber); border: 1px solid rgba(232,169,64,0.35); }
.badge--ready { background: rgba(112,173,71,0.14); color: var(--green-bright); border: 1px solid rgba(112,173,71,0.35); }
.badge--free { background: rgba(112,173,71,0.14); color: var(--green-bright); border: 1px solid rgba(112,173,71,0.35); }
@media (max-width: 720px) { .res-grid { grid-template-columns: 1fr; } }

/* ---- Credential / checklist ---- */
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; margin-top: 20px; }
.check-item { display: flex; align-items: flex-start; gap: 12px; font-size: 0.95rem; color: var(--text-mute); padding: 4px 0; }
.check-item__mark {
  width: 22px; height: 22px; flex-shrink: 0; background: rgba(112,173,71,0.15); border: 1px solid var(--green-dim);
  border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--green-bright); font-weight: 700; font-size: 0.85rem; margin-top: 2px;
}
.check-item strong { color: var(--text); display: block; }
@media (max-width: 720px) { .check-grid { grid-template-columns: 1fr; } }

/* ---- Table ---- */
.table-wrap { overflow-x: auto; margin: 24px 0; border: 1px solid var(--line); border-radius: var(--r-md); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 560px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-3); color: var(--text); font-family: 'Exo 2', sans-serif; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; }
td { color: var(--text-mute); }
tr:last-child td { border-bottom: none; }

/* ---- Accordion (glossary / FAQ) ---- */
.accordion { margin-top: 8px; }
details.acc-item { border-bottom: 1px solid var(--line); padding: 4px 0; }
details.acc-item summary {
  cursor: pointer; list-style: none; padding: 16px 4px; font-family: 'Exo 2', sans-serif;
  font-weight: 600; font-size: 1rem; color: var(--text); display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
details.acc-item summary::-webkit-details-marker { display: none; }
details.acc-item summary::after { content: '+'; color: var(--green-bright); font-size: 1.3rem; font-weight: 400; flex-shrink: 0; }
details.acc-item[open] summary::after { content: '\2212'; }
details.acc-item .acc-body { padding: 0 4px 18px; font-size: 0.95rem; color: var(--text-mute); }

/* ---- Glossary index ---- */
.glossary-jump { display: flex; flex-wrap: wrap; gap: 6px; margin: 24px 0 8px; }
.glossary-jump a {
  padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 8px; font-size: 0.82rem; font-weight: 600; color: var(--text-mute);
}
.glossary-jump a:hover { border-color: var(--green); color: var(--white); }
.gloss-term { padding: 18px 0; border-bottom: 1px solid var(--line); }
.gloss-term dt { font-family: 'Exo 2', sans-serif; font-weight: 700; color: var(--white); font-size: 1.02rem; margin-bottom: 6px; }
.gloss-term dd { margin: 0; color: var(--text-mute); font-size: 0.94rem; }

/* ---- CTA band ---- */
.cta-band { background: linear-gradient(135deg, #0c1218, #0a0d11); border-top: 1px solid var(--green-dim); border-bottom: 1px solid var(--line); margin-top: 8px; padding: 60px 0; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; top: -50%; right: -10%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(112,173,71,0.08), transparent 60%); pointer-events: none; }
.cta-band__inner { position: relative; }
.cta-band h2 { max-width: 720px; margin-bottom: 14px; }
.cta-band p { font-size: 1.04rem; max-width: 640px; margin-bottom: 26px; }
.cta-band .btn-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.cta-band__fine { font-size: 0.86rem; color: var(--text-dim); margin-top: 16px; }

/* ---- Form (consultation) ---- */
.form-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line-2); border-radius: 8px; color: var(--text);
  padding: 11px 14px; font-family: inherit; font-size: 0.94rem;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--green); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-grid-2 { grid-template-columns: 1fr; } }

/* ---- Related links footer block ---- */
.related { background: var(--bg-2); border-top: 1px solid var(--line); padding: 44px 0; }
.related h3 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-dim); margin-bottom: 16px; }
.related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related__card { display: block; padding: 16px 20px; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r-sm); transition: border-color 0.15s; }
.related__card:hover { border-color: var(--green-dim); color: inherit; }
.related__kicker { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--green-bright); font-weight: 600; }
.related__title { display: block; color: var(--text); font-family: 'Exo 2', sans-serif; font-weight: 600; margin-top: 6px; font-size: 0.96rem; }
@media (max-width: 860px) { .related__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .related__grid { grid-template-columns: 1fr; } }

/* ---- Footer ---- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 30px; }
.footer-brand a { display: inline-flex; align-items: center; transition: opacity 0.15s ease; }
.footer-brand a:hover { opacity: 0.85; }
.footer-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); margin-bottom: 14px; }
.footer-col h4 a { color: inherit; font-size: inherit; text-transform: inherit; letter-spacing: inherit; transition: color 0.15s ease; }
.footer-col h4 a:hover { color: var(--green-bright); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-mute); font-size: 0.92rem; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--green-bright); }
.footer-note { font-size: 0.86rem; color: var(--text-mute); max-width: 340px; }
.footer-note a { color: var(--green-bright); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.15s ease, color 0.15s ease; }
.footer-note a:hover { color: var(--white); border-bottom-color: var(--green-bright); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; color: var(--text-mute);
}
.footer-social a:hover { border-color: var(--green); color: var(--green-bright); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.82rem; color: var(--text-dim); }
.footer-bottom a { color: var(--text-dim); }
.footer-bottom a:hover { color: var(--green-bright); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---- Utility ---- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; margin-left: auto; margin-right: auto; }
.sources-note { font-size: 0.8rem; color: var(--text-dim); margin-top: 8px; }
.sources-note a { color: var(--text-dim); border-bottom: 1px dotted var(--text-dim); }
.sources-note a:hover { color: var(--green-bright); }
