/* ==========================================================================
   JT Junk Solutions — Site Styles
   ========================================================================== */

:root {
  --primary: #a4161a;
  --primary-dark: #7a0e12;
  --primary-light: #fbe5e7;
  --black: #111111;
  --gray-900: #1a1a1a;
  --gray-800: #262626;
  --gray-700: #404040;
  --gray-600: #525252;
  --gray-500: #737373;
  --gray-400: #a3a3a3;
  --gray-300: #d4d4d4;
  --gray-200: #e5e5e5;
  --gray-100: #f5f5f5;
  --gray-50: #fafafa;
  --white: #ffffff;
  --success: #16a34a;
  --warning: #f59e0b;

  --container: 1200px;
  --container-narrow: 880px;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow: 0 4px 14px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 30px rgba(0,0,0,.12);

  --font-heading: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* Reset
   --------------------------------------------------------------------- */
*,
*::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: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--gray-900);
  margin: 0 0 .5em;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin: 0 0 1em; }

ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: .25em; }

/* Layout
   --------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.container-narrow { max-width: var(--container-narrow); }

.section { padding: 4rem 0; }
.section-tight { padding: 2.5rem 0; }
.section-alt { background: var(--gray-50); }
.section-dark { background: var(--gray-900); color: var(--gray-200); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--white); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .5rem;
}

.text-center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--gray-600); }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Buttons
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  font-family: var(--font-heading);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .18s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); }
.btn-dark { background: var(--gray-900); color: var(--white); }
.btn-dark:hover { background: var(--black); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--gray-900); }
.btn-ghost { background: transparent; color: var(--gray-900); border-color: var(--gray-300); }
.btn-ghost:hover { background: var(--gray-100); }
.btn-lg { padding: 1.05rem 2rem; font-size: 1rem; }

/* Header / Nav
   --------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.topbar {
  background: var(--gray-900);
  color: var(--gray-200);
  font-size: .85rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: .5rem;
  padding-bottom: .5rem;
  flex-wrap: wrap;
  gap: .5rem;
}
.topbar a { color: var(--gray-200); }
.topbar a:hover { color: var(--white); }
.topbar-info { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.topbar-info span { display: inline-flex; align-items: center; gap: .35rem; }

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 0;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--gray-900);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -.01em;
}
.brand:hover { text-decoration: none; }
.brand img { height: 64px; width: auto; display: block; }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav a {
  color: var(--gray-800);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .92rem;
  padding: .55rem .75rem;
  border-radius: var(--radius);
  transition: background .15s, color .15s;
}
.nav a:hover { background: var(--gray-100); color: var(--primary); text-decoration: none; }
.nav-cta { margin-left: .5rem; }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 240px;
  padding: .5rem;
  display: none;
  z-index: 110;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: .55rem .75rem;
  font-size: .9rem;
  font-weight: 500;
  border-radius: 6px;
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-900);
  position: relative;
  transition: transform .2s, top .2s, bottom .2s, opacity .2s;
}
.nav-toggle span::before { position: absolute; top: -7px; left: 0; }
.nav-toggle span::after  { position: absolute; bottom: -7px; left: 0; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { bottom: 0; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: fixed;
    top: var(--header-h, 80px);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    padding: .75rem 1.25rem 2rem;
    box-shadow: var(--shadow);
    gap: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    z-index: 99;
  }
  .nav.is-open { touch-action: pan-y; }
  .nav.is-open { display: flex; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid var(--gray-100); }
  .nav-cta { margin: .75rem 0 0; }
  .dropdown {
    position: static;
    border: 0;
    box-shadow: none;
    padding: 0 0 .5rem 1rem;
    display: block;
  }
}

/* Hero
   --------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--gray-900);
  color: var(--white);
  overflow: hidden;
  padding: 5rem 0 4.5rem;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(17,17,17,.7), rgba(17,17,17,.85)), var(--hero-img, none);
  background-size: cover;
  background-position: center;
  z-index: 0;
}
/* Home hero: responsive WebP via media queries (saves ~650KB on mobile) */
.hero-home::before {
  background-image: linear-gradient(rgba(17,17,17,.7), rgba(17,17,17,.85)), url('/assets/img/hero-mobile.webp');
}
@media (min-width: 1025px) {
  .hero-home::before {
    background-image: linear-gradient(rgba(17,17,17,.7), rgba(17,17,17,.85)), url('/assets/img/hero.webp');
  }
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: var(--white); margin-bottom: 1rem; }
.hero p { font-size: 1.2rem; color: rgba(255,255,255,.85); max-width: 720px; }
.hero-actions { margin-top: 1.75rem; display: flex; gap: .75rem; flex-wrap: wrap; }

.hero-trust {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  color: rgba(255,255,255,.85);
  font-size: .92rem;
}
.hero-trust span { display: inline-flex; align-items: center; gap: .55rem; }
.hero-trust .check {
  display: inline-block;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fca5a5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 8 6.5 11.5 13 5'/%3E%3C/svg%3E") center/contain no-repeat;
  flex-shrink: 0;
}

/* Social proof bar
   --------------------------------------------------------------------- */
.proof-bar {
  background: var(--gray-900);
  color: var(--white);
  padding: 1.25rem 0;
  border-bottom: 4px solid var(--primary);
}
.proof-bar .container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  text-align: center;
}
.proof-item {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .01em;
}
.proof-item .stars { transform: translateY(-1px); }
.proof-icon { width: 18px; height: 18px; flex-shrink: 0; }
.proof-divider {
  width: 1px;
  height: 24px;
  background: rgba(255,255,255,.2);
  display: none;
}
@media (min-width: 720px) {
  .proof-divider { display: inline-block; }
}

/* Guarantee cards
   --------------------------------------------------------------------- */
.guarantee {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.guarantee h3 {
  margin: 0 0 .5rem;
  font-size: 1.1rem;
}
.guarantee p {
  margin: 0;
  color: var(--gray-700);
  font-size: .95rem;
}

/* Cards
   --------------------------------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--gray-300);
}
.card h3 { margin-top: 0; }
.card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.card-link {
  display: block;
  color: inherit;
}
.card-link:hover { text-decoration: none; }

/* Service tile (with image) */
.tile {
  display: block;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: inherit;
  transition: transform .18s, box-shadow .18s;
}
.tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}
.tile-img {
  aspect-ratio: 16/10;
  background: var(--gray-200) center/cover no-repeat;
}
.tile-body { padding: 1.25rem 1.25rem 1.5rem; }
.tile-body h3 { margin: 0 0 .35rem; font-size: 1.15rem; }
.tile-body p { color: var(--gray-600); font-size: .95rem; margin: 0 0 .5rem; }
.tile-link { font-family: var(--font-heading); font-weight: 700; font-size: .85rem; color: var(--primary); text-transform: uppercase; letter-spacing: .05em; }

/* Steps / process
   --------------------------------------------------------------------- */
.steps { counter-reset: step; }
.step {
  position: relative;
  padding-left: 4.5rem;
  padding-bottom: 2rem;
  border-left: 2px solid var(--gray-200);
  margin-left: 1.5rem;
}
.step:last-child { padding-bottom: 0; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -1.5rem;
  top: -.25rem;
  width: 3rem;
  height: 3rem;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
}
.step h3 { margin: 0 0 .35rem; }

/* CTA strip
   --------------------------------------------------------------------- */
.cta-strip {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}
.cta-strip h2 { color: var(--white); }
.cta-strip p { color: rgba(255,255,255,.92); font-size: 1.1rem; max-width: 640px; margin: 0 auto 1.5rem; }
.cta-strip .btn-outline { border-color: var(--white); color: var(--white); }
.cta-strip .btn-outline:hover { background: var(--white); color: var(--primary); }
.cta-strip .btn-dark { background: var(--gray-900); }
.cta-strip .actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* Testimonials
   --------------------------------------------------------------------- */
.review {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  height: 100%;
}
.stars { display: inline-flex; gap: 2px; line-height: 0; }
.stars span {
  display: inline-block;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f5b50a'%3E%3Cpath d='M12 2l2.9 6.9 7.5.6-5.7 4.9 1.7 7.3L12 17.8 5.6 21.7l1.7-7.3L1.6 9.5l7.5-.6z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.review p { color: var(--gray-700); font-size: 1rem; margin: 0; }
.review-author { font-weight: 700; color: var(--gray-900); font-size: .9rem; margin-top: auto; }
.review-author small { display: block; color: var(--gray-500); font-weight: 400; }

/* FAQ (accordion using <details>)
   --------------------------------------------------------------------- */
.faq details {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: .75rem;
  padding: 0;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.25rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gray-900);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--primary);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 1.25rem 1.25rem; color: var(--gray-700); }

/* Forms
   --------------------------------------------------------------------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: .35rem;
  font-size: .9rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .75rem .85rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font: inherit;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(211,30,44,.15);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

/* Footer
   --------------------------------------------------------------------- */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 3.5rem 0 1.5rem;
}
.site-footer h4,
.site-footer .footer-h {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.site-footer a { color: var(--gray-300); }
.site-footer a:hover { color: var(--white); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35rem; font-size: .92rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.footer-brand { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.footer-brand img { height: 96px; width: auto; }
.footer-brand strong { font-family: var(--font-heading); color: var(--white); font-size: 1.1rem; }
.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .85rem;
  color: var(--gray-400);
}
.social-links { display: flex; gap: .75rem; margin-top: 1rem; }
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
  transition: background .15s;
}
.social-links a:hover { background: var(--primary); }
.social-links svg { width: 18px; height: 18px; fill: var(--white); }

/* Breadcrumbs
   --------------------------------------------------------------------- */
.breadcrumbs {
  font-size: .85rem;
  color: var(--gray-500);
  padding: 1rem 0;
}
.breadcrumbs a { color: var(--gray-600); }
.breadcrumbs span[aria-current="page"] { color: var(--gray-900); font-weight: 600; }
.breadcrumbs .sep { margin: 0 .35rem; color: var(--gray-400); }

/* Utilities
   --------------------------------------------------------------------- */
.muted { color: var(--gray-500); }
.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: 1rem !important; }
.mt-3 { margin-top: 1.5rem !important; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.gap-2 { gap: 1rem; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }

.tag {
  display: inline-block;
  background: var(--gray-100);
  color: var(--gray-700);
  padding: .25rem .6rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  margin: 0 .25rem .25rem 0;
}
.tag-primary { background: var(--primary-light); color: var(--primary-dark); }

.checklist { list-style: none; padding: 0; }
.checklist li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: .65rem;
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .35rem;
  width: 1.25rem;
  height: 1.25rem;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3.5 8 6.5 11 12.5 5'/%3E%3C/svg%3E") center/65% no-repeat;
  border-radius: 50%;
}

/* Two-column with image */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; gap: 2rem; }
}
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* Print
   --------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .cta-strip, .nav-toggle { display: none; }
}

/* Skip link / a11y
   --------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: var(--white);
  padding: .75rem 1rem;
  z-index: 200;
}
.skip-link:focus { left: 0; }
