/* ============================================================
   RemovedJunk.com — Main Stylesheet
   Mobile-first · High contrast · Accessible · Fast
   ============================================================ */

/* ----------------------------------------------------------
   1. Custom Properties (Design Tokens)
   ---------------------------------------------------------- */
:root {
  /* Colors */
  --c-bg:       #ffffff;
  --c-text:     #111111;
  --c-muted:    #555555;
  --c-border:   #dddddd;
  --c-surface:  #f5f5f5;
  --c-black:    #000000;
  --c-white:    #ffffff;
  --c-focus:    #0055cc;

  /* Typography */
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
          Helvetica, Arial, sans-serif;
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1.0625rem;  /* 17px */
  --text-lg:   1.125rem;   /* 18px */
  --text-xl:   1.375rem;   /* 22px */
  --text-2xl:  1.75rem;    /* 28px */
  --text-3xl:  2.25rem;    /* 36px */
  --text-4xl:  3rem;       /* 48px */
  --lh:        1.65;

  /* Spacing scale */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-24: 6rem;

  /* Layout */
  --container-max: 1200px;
  --container-pad: 1.25rem;
  --radius: 4px;
  --border: 1px solid var(--c-border);
  --transition: 180ms ease;
}

/* ----------------------------------------------------------
   2. Reset & Base
   ---------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: var(--lh);
  color: var(--c-text);
  background: var(--c-bg);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover { text-decoration: none; }

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, textarea, select { font: inherit; }

table {
   width: 100%;
   border-collapse: collapse;
   border: 1px solid black;
   margin: .75em 0;
}

table th,
table td {
   padding: .4em .2em;
}

table thead tr th {
   text-align: left;
}

table tbody tr {
   border-bottom: 1px solid black;
}

table tbody tr:nth-child(odd) {
   background: #cecece;
}

/* ----------------------------------------------------------
   3. Focus Styles (WCAG 2.2 AA)
   ---------------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 3px;
  border-radius: var(--radius);
}

/* ----------------------------------------------------------
   4. Skip Link
   ---------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  background: var(--c-black);
  color: var(--c-white);
  padding: var(--sp-2) var(--sp-6);
  font-weight: 700;
  font-size: var(--text-base);
  z-index: 9999;
  text-decoration: none;
  border-radius: 0 0 var(--radius) var(--radius);
  white-space: nowrap;
}
.skip-link:focus { top: 0; }

/* ----------------------------------------------------------
   5. Layout — Container & Sections
   ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

main { flex: 1; }

.section      { padding-block: var(--sp-12); }
.section--lg  { padding-block: var(--sp-16); }

.section--border { border-top: var(--border); }
.section--bg     { background: var(--c-surface); }

@media (min-width: 768px) {
  :root { --container-pad: 2rem; }
  .section     { padding-block: var(--sp-16); }
  .section--lg { padding-block: var(--sp-24); }
}

/* Grid helpers */
.grid   { display: grid; gap: var(--sp-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 899px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 599px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------
   6. Typography
   ---------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: .5em 0;
}
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

@media (min-width: 768px) {
  body { font-size: var(--text-lg); }
  h1   { font-size: var(--text-4xl); }
  h2   { font-size: var(--text-3xl); }
  h3   { font-size: var(--text-2xl); }
  h4   { font-size: var(--text-xl); }
}

p + p { margin-top: var(--sp-4); }

.lead {
  font-size: var(--text-xl);
  line-height: 1.45;
  color: var(--c-muted);
}
@media (min-width: 768px) { .lead { font-size: var(--text-2xl); } }

.section-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: var(--sp-3);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  align-items: center;
  font-size: var(--text-sm);
  color: var(--c-muted);
  margin-bottom: var(--sp-6);
  list-style: none;
}
.breadcrumb li + li::before {
  content: '›';
  margin-right: var(--sp-2);
  color: var(--c-border);
}
.breadcrumb a { color: var(--c-muted); }
.breadcrumb a:hover { color: var(--c-text); }

.steps__title {
   font-size: 1.25em;
   margin: .25em 0;
   font-weight: 600;
}

.callout-answer {
   padding: .5em;
   background: #cecece;
   border: 1px solid black;
   margin: .6em 0;
}

.callout-answer__label {
   font-size: 1.2em;
   font-weight: 600;
   margin-bottom: .3em;
}

/* ----------------------------------------------------------
   7. Buttons
   ---------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.75em 1.5em;
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition);
  white-space: nowrap;
  cursor: pointer;
}
.btn--primary {
  background: var(--c-black);
  color: var(--c-white);
  border-color: var(--c-black);
}
.btn--primary:hover {
  background: #333;
  border-color: #333;
  text-decoration: none;
}
.btn--outline {
  background: transparent;
  color: var(--c-black);
  border-color: var(--c-black);
}
.btn--outline:hover {
  background: var(--c-black);
  color: var(--c-white);
  text-decoration: none;
}
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
}

/* ----------------------------------------------------------
   8. Header & Navigation
   ---------------------------------------------------------- */
.site-header {
  border-bottom: 2px solid var(--c-black);
  background: var(--c-white);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem;
  gap: var(--sp-4);
}

/* Nav CTA buttons — inside nav-menu, mobile + desktop */
.nav-cta-item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-3) 0;
  border-top: var(--border);
  margin-top: var(--sp-2);
}
.nav-cta-btn {
  width: 100%;
  text-align: center;
  padding: 0.6em 1em;
  font-size: var(--text-sm);
}
@media (min-width: 768px) {
  .nav-cta-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--sp-2);
    padding: 0;
    border-top: none;
    margin-top: 0;
    margin-left: auto;
    flex-shrink: 0;
  }
  .nav-cta-btn { width: auto; }
}

/* Quote modal — hidden by default, shown with .quote-modal--open */
.quote-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
}
.quote-modal--open { display: flex; }
.quote-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.quote-modal__box {
  position: relative;
  background: var(--c-white);
  border-radius: var(--radius);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--sp-6) var(--sp-4) var(--sp-4);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.quote-modal__close {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  background: none;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: var(--c-black);
  padding: var(--sp-1);
}
.quote-modal__close:hover { opacity: 0.6; }

/* Logo */
.site-logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 1;
}
.site-logo__text {
  font-size: 1.0625rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--c-black);
}
@media (min-width: 480px) {
  .site-logo__text { font-size: 1.125rem; }
}

/* Hamburger button */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  border: 2px solid var(--c-black);
  border-radius: var(--radius);
  flex-shrink: 0;
  background: none;
}
.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--c-black);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Nav menu — mobile hidden by default */
.nav-menu {
  display: none;
  list-style: none;
}
.nav-menu.is-open {
  display: block;
  position: fixed;
  top: 3.5rem; /* header height */
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--c-white);
  border-top: 2px solid var(--c-black);
  padding: var(--sp-4) var(--container-pad);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Desktop nav */
@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .nav-menu {
    display: flex !important;
    align-items: stretch;
    gap: 0;
    position: static;
    background: none;
    border: none;
    padding: 0;
    overflow: visible;
  }
}

/* Nav items */
.nav-item {
  position: relative;
}
@media (max-width: 767px) {
  .nav-item {
    border-bottom: var(--border);
  }
  .nav-item:last-child { border-bottom: none; }
}

.nav-link {
  display: flex;
  align-items: center;
  padding: var(--sp-3) var(--sp-4);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--c-text);
  white-space: nowrap;
  border-radius: var(--radius);
  height: 100%;
}
.nav-link:hover,
.nav-link--active { background: var(--c-surface); }

@media (max-width: 767px) {
  .nav-link { padding: var(--sp-4) var(--sp-2); font-size: var(--text-base); }
}

/* Dropdown button */
.nav-dropdown-btn {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  width: 100%;
  height: 100%;
  padding: var(--sp-3) var(--sp-4);
  font-weight: 600;
  font-size: 0.9375rem;
  text-align: left;
  color: var(--c-text);
  border-radius: var(--radius);
  white-space: nowrap;
}
.nav-dropdown-btn:hover { background: var(--c-surface); }

@media (max-width: 767px) {
  .nav-dropdown-btn {
    padding: var(--sp-4) var(--sp-2);
    font-size: var(--text-base);
  }
}

.nav-arrow {
  font-size: 0.6875rem;
  margin-left: auto;
  transition: transform var(--transition);
}
.nav-dropdown-btn[aria-expanded="true"] .nav-arrow,
.nav-item.is-open > .nav-dropdown-btn .nav-arrow {
  transform: rotate(180deg);
}

/* Dropdown list */
.nav-dropdown {
  display: none;
  list-style: none;
}
.nav-item.is-open > .nav-dropdown { display: block; }

/* Mobile dropdown */
@media (max-width: 767px) {
  .nav-dropdown {
    background: var(--c-surface);
    border-radius: var(--radius);
    margin-block: var(--sp-2);
    padding: var(--sp-2);
  }
}

/* Desktop dropdown */
@media (min-width: 768px) {
  .nav-dropdown {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    min-width: 250px;
    background: var(--c-white);
    border: 2px solid var(--c-black);
    border-radius: var(--radius);
    padding: var(--sp-2);
    box-shadow: 4px 4px 0 var(--c-black);
    z-index: 200;
  }
  /* Also open on hover for mouse users */
  .nav-item.has-dropdown:hover > .nav-dropdown { display: block; }
  .nav-item.has-dropdown:hover > .nav-dropdown-btn .nav-arrow { transform: rotate(180deg); }
}

.nav-dropdown__link {
  display: block;
  padding: var(--sp-3);
  text-decoration: none;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.nav-dropdown__link:hover { background: var(--c-surface); }

.nav-dropdown__label {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
}
.nav-dropdown__desc {
  display: block;
  font-size: var(--text-sm);
  color: var(--c-muted);
  margin-top: 2px;
  line-height: 1.4;
}

/* ----------------------------------------------------------
   9. Hero
   ---------------------------------------------------------- */
.hero { padding-block: var(--sp-12) var(--sp-16); }
.hero__content { max-width: 760px; }
.hero h1 { margin-bottom: var(--sp-6); }
.hero .lead { margin-bottom: var(--sp-8); }

@media (min-width: 768px) {
  .hero { padding-block: var(--sp-16) var(--sp-24); }
}

/* ----------------------------------------------------------
   10. Question Cards
   ---------------------------------------------------------- */
.question-card {
  display: block;
  padding: var(--sp-6);
  border: 2px solid var(--c-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--c-text);
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}
.question-card:hover {
  border-color: var(--c-black);
  box-shadow: 3px 3px 0 var(--c-black);
  transform: translate(-1px, -1px);
  text-decoration: none;
}
.question-card__q {
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--sp-3);
}
.question-card__meta {
  font-size: var(--text-sm);
  color: var(--c-muted);
}
@media (min-width: 768px) {
  .question-card__q { font-size: var(--text-lg); }
}

/* ----------------------------------------------------------
   11. Split Section (Two Columns)
   ---------------------------------------------------------- */
.split {
  display: grid;
  gap: var(--sp-12);
}
@media (min-width: 768px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-16);
  }
}

.split__side h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-4);
  border-bottom: 2px solid var(--c-black);
}
@media (min-width: 768px) {
  .split__side h2 { font-size: var(--text-3xl); }
}

.split__list {
  list-style: none;
  margin-top: var(--sp-4);
}
.split__list li {
  padding-block: var(--sp-3);
  border-bottom: var(--border);
  font-size: var(--text-base);
}
.split__list li:last-child { border-bottom: none; }
.split__list a {
  font-weight: 600;
  text-decoration: none;
  color: var(--c-text);
}
.split__list a:hover { text-decoration: underline; }

@media (min-width: 768px) {
  .split__list li { font-size: var(--text-lg); }
}

/* ----------------------------------------------------------
   12. Category Cards
   ---------------------------------------------------------- */
.cat-card {
  display: block;
  padding: var(--sp-6);
  border: 2px solid var(--c-black);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--c-text);
  transition:
    box-shadow var(--transition),
    transform var(--transition);
}
.cat-card:hover {
  box-shadow: 4px 4px 0 var(--c-black);
  transform: translate(-2px, -2px);
  text-decoration: none;
}
.cat-card__label {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: var(--sp-2);
}
.cat-card__title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--sp-3);
  line-height: 1.2;
}
.cat-card__desc {
  font-size: var(--text-base);
  color: var(--c-muted);
  line-height: 1.5;
}
.cat-card__cta {
  display: inline-block;
  margin-top: var(--sp-4);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ----------------------------------------------------------
   13. Footer
   ---------------------------------------------------------- */
.site-footer {
  border-top: 2px solid var(--c-black);
  padding-block: var(--sp-12);
  margin-top: auto;
  background: var(--c-white);
}
.site-footer__grid {
  display: grid;
  gap: var(--sp-8);
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand__logo {
  font-size: 1.0625rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--c-black);
  display: inline-block;
  margin-bottom: var(--sp-3);
}
.footer-brand__desc {
  font-size: var(--text-sm);
  color: var(--c-muted);
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h3 {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: var(--sp-4);
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: var(--sp-2); }
.footer-col a {
  font-size: var(--text-sm);
  text-decoration: none;
  color: var(--c-text);
}
.footer-col a:hover { text-decoration: underline; }

.site-footer__bottom {
  border-top: var(--border);
  margin-top: var(--sp-8);
  padding-top: var(--sp-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  justify-content: space-between;
  align-items: center;
}
.site-footer__copy {
  font-size: var(--text-sm);
  color: var(--c-muted);
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  list-style: none;
}
.footer-legal a {
  font-size: var(--text-sm);
  color: var(--c-muted);
  text-decoration: none;
}
.footer-legal a:hover { text-decoration: underline; }

/* ----------------------------------------------------------
   14. Utilities
   ---------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.text-muted  { color: var(--c-muted); }
.text-sm     { font-size: var(--text-sm); }
.font-bold   { font-weight: 700; }
.mt-4  { margin-top: var(--sp-4);  }
.mt-6  { margin-top: var(--sp-6);  }
.mt-8  { margin-top: var(--sp-8);  }
.mb-4  { margin-bottom: var(--sp-4); }
.mb-6  { margin-bottom: var(--sp-6); }
.mb-8  { margin-bottom: var(--sp-8); }

/* ----------------------------------------------------------
   15. Print
   ---------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .nav-toggle, .btn-group { display: none !important; }
  body { font-size: 12pt; color: #000; background: #fff; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #555; }
  h1, h2, h3 { page-break-after: avoid; }
  .question-card, .cat-card { border: 1px solid #ccc !important; page-break-inside: avoid; }
  .split { display: block; }
  .grid  { display: block; }
  .grid > * { margin-bottom: 1.5rem; }
}
