/* ============================================
   RedTapeRx — Brutalist Med-Tech
   Colors: vibrant red, stark white, black.
   Raw borders, heavy type, no soft edges.
   Archivo Black headings, Archivo body.
   ============================================ */

/* --- Reset & Base --- */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: #1A1A1A;
  background-color: #FAFAFA;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Focus --- */

:focus-visible {
  outline: 3px solid #E11D48;
  outline-offset: 2px;
}

/* --- Typography --- */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Archivo Black', 'Arial Black', sans-serif;
  font-weight: 400;
  line-height: 1.05;
  color: #0A0A0A;
  text-transform: uppercase;
}

a {
  color: #E11D48;
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: #BE123C;
}

/* ============================================
   Header
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #0A0A0A;
  border-bottom: 3px solid #E11D48;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

.nav-brand {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 400;
  font-size: clamp(0.875rem, 2vw, 1.125rem);
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-brand:hover {
  color: #FFFFFF;
}

.nav-brand-rx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #E11D48;
  color: #FFFFFF;
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.4rem;
  line-height: 1;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.25rem;
}

.nav-links a {
  font-family: 'Archivo', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #888888;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: #E11D48;
}

/* ============================================
   Hero
   ============================================ */

.hero {
  background-color: #0A0A0A;
  padding: 5rem 1.25rem 4rem;
  border-bottom: 3px solid #E11D48;
}

.hero-inner {
  max-width: 64rem;
  margin: 0 auto;
}

.hero-tag {
  display: inline-block;
  font-family: 'Archivo', sans-serif;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #E11D48;
  border: 2px solid #E11D48;
  padding: 0.375rem 0.75rem;
  margin-bottom: 2rem;
}

.hero-heading {
  font-size: clamp(2.25rem, 7vw, 5.5rem);
  line-height: 0.95;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  max-width: 52rem;
}

.hero-heading .red {
  color: #E11D48;
}

.hero-sub {
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  line-height: 1.7;
  color: #777777;
  max-width: 36rem;
  font-weight: 400;
}

/* ============================================
   Stats Bar
   ============================================ */

.stats-bar {
  background-color: #E11D48;
  border-bottom: 3px solid #0A0A0A;
}

.stats-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
}

.stat-block {
  padding: 2rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

.stat-block:last-child {
  border-bottom: none;
}

.stat-value {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: #FFFFFF;
  line-height: 1;
  margin-bottom: 0.375rem;
  text-transform: uppercase;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   Problem Section
   ============================================ */

.problem-section {
  padding: 4rem 1.25rem;
  max-width: 64rem;
  margin: 0 auto;
}

.problem-label {
  font-family: 'Archivo', sans-serif;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #E11D48;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #E11D48;
  display: inline-block;
}

.problem-heading {
  font-size: clamp(1.75rem, 4vw, 3rem);
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
  max-width: 40rem;
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.problem-card {
  border: 2px solid #E8E8E8;
  padding: 1.75rem 1.25rem;
  position: relative;
}

.problem-card + .problem-card {
  border-top: none;
}

.problem-card-num {
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.75rem;
  color: #E11D48;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
  display: block;
}

.problem-card h3 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.problem-card p {
  font-size: 0.9375rem;
  color: #666666;
  line-height: 1.65;
}

/* ============================================
   Solution / Platform
   ============================================ */

.solution-section {
  background-color: #0A0A0A;
  border-top: 3px solid #E11D48;
  border-bottom: 3px solid #E11D48;
  padding: 4rem 1.25rem;
}

.solution-inner {
  max-width: 64rem;
  margin: 0 auto;
}

.solution-label {
  font-family: 'Archivo', sans-serif;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #E11D48;
  margin-bottom: 1.5rem;
}

.solution-heading {
  font-size: clamp(1.75rem, 4vw, 3rem);
  color: #FFFFFF;
  margin-bottom: 1rem;
  max-width: 36rem;
}

.solution-sub {
  font-size: 1rem;
  color: #888888;
  max-width: 36rem;
  margin-bottom: 3rem;
  line-height: 1.7;
}

.solution-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.solution-feature {
  border: 1px solid #333333;
  padding: 1.75rem 1.25rem;
}

.solution-feature + .solution-feature {
  border-top: none;
}

.solution-feature-tag {
  font-family: 'Archivo', sans-serif;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #0A0A0A;
  background-color: #E11D48;
  display: inline-block;
  padding: 0.25rem 0.5rem;
  margin-bottom: 0.75rem;
}

.solution-feature h3 {
  font-size: 1.125rem;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.solution-feature p {
  font-size: 0.9375rem;
  color: #888888;
  line-height: 1.65;
}

/* ============================================
   Testimonials
   ============================================ */

.testimonials-section {
  padding: 4rem 1.25rem;
  max-width: 64rem;
  margin: 0 auto;
}

.testimonials-label {
  font-family: 'Archivo', sans-serif;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #E11D48;
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #E11D48;
  display: inline-block;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.testimonial {
  border: 2px solid #E8E8E8;
  padding: 2rem 1.25rem;
}

.testimonial + .testimonial {
  border-top: none;
}

.testimonial-text {
  font-size: 1rem;
  color: #333333;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-style: normal;
}

.testimonial-attr {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-name {
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0A0A0A;
}

.testimonial-role {
  font-size: 0.75rem;
  color: #999999;
  font-weight: 400;
}

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
  background-color: #E11D48;
  padding: 4rem 1.25rem;
  text-align: center;
  border-top: 3px solid #0A0A0A;
}

.cta-inner {
  max-width: 40rem;
  margin: 0 auto;
}

.cta-heading {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.cta-sub {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.cta-button {
  display: inline-block;
  font-family: 'Archivo Black', sans-serif;
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #E11D48;
  background-color: #FFFFFF;
  padding: 1rem 2.5rem;
  border: 2px solid #FFFFFF;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.cta-button:hover {
  background-color: transparent;
  color: #FFFFFF;
}

/* ============================================
   Portfolio CTA
   ============================================ */

.portfolio-cta {
  text-align: center;
  padding: 3.5rem 1.25rem;
  max-width: 64rem;
  margin: 0 auto;
}

.portfolio-cta-label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #AAAAAA;
  margin-bottom: 1rem;
}

.portfolio-cta-link {
  font-family: 'Archivo', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #E11D48;
  border: 2px solid #E11D48;
  padding: 0.875rem 2rem;
  display: inline-block;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.portfolio-cta-link:hover {
  background-color: #E11D48;
  color: #FFFFFF;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
  background-color: #0A0A0A;
  border-top: 3px solid #E11D48;
  padding: 2.5rem 1.25rem;
}

.footer-inner {
  max-width: 64rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 400;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #FFFFFF;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-nav a {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #666666;
  transition: color 0.15s ease;
}

.footer-nav a:hover {
  color: #E11D48;
}

.footer-rule {
  border-top: 1px solid #222222;
}

.footer-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-copy {
  font-size: 0.6875rem;
  color: #555555;
  max-width: 36rem;
  line-height: 1.6;
}

.footer-credit {
  font-size: 0.6875rem;
  color: #555555;
  white-space: nowrap;
}

.footer-credit a {
  color: #888888;
  text-decoration: underline;
  text-decoration-color: #333333;
  text-underline-offset: 2px;
}

.footer-credit a:hover {
  color: #E11D48;
  text-decoration-color: #E11D48;
}

/* ============================================
   Responsive — 640px+
   ============================================ */

@media (min-width: 640px) {
  .nav {
    padding: 1rem 2rem;
  }

  .hero {
    padding: 7rem 2rem 5rem;
  }

  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-block {
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2.5rem 2rem;
  }

  .stat-block:nth-child(2n) {
    border-right: none;
  }

  .problem-section {
    padding: 5rem 2rem;
  }

  .problem-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .problem-card + .problem-card {
    border-top: 2px solid #E8E8E8;
  }

  .problem-card:nth-child(2n) {
    border-left: none;
  }

  .solution-section {
    padding: 5rem 2rem;
  }

  .solution-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .solution-feature + .solution-feature {
    border-top: 1px solid #333333;
  }

  .solution-feature:nth-child(2n) {
    border-left: none;
  }

  .testimonials-section {
    padding: 5rem 2rem;
  }

  .cta-section {
    padding: 5rem 2rem;
  }

  .portfolio-cta {
    padding: 4rem 2rem;
  }

  .site-footer {
    padding: 2.5rem 2rem;
  }

  .nav-links {
    gap: 1.75rem;
  }
}

/* ============================================
   Responsive — 900px+
   ============================================ */

@media (min-width: 900px) {
  .hero {
    padding: 8rem 2rem 6rem;
  }

  .stats-inner {
    grid-template-columns: repeat(4, 1fr);
  }

  .stat-block {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
  }

  .stat-block:last-child {
    border-right: none;
  }

  .problem-section {
    padding: 6rem 2rem;
  }

  .problem-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .problem-card:nth-child(2n) {
    border-left: 2px solid #E8E8E8;
  }

  .problem-card:nth-child(n+2) {
    border-left: none;
  }

  .problem-card:first-child {
    border-left: 2px solid #E8E8E8;
  }

  .solution-section {
    padding: 6rem 2rem;
  }

  .solution-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .solution-feature:nth-child(2n) {
    border-left: 1px solid #333333;
  }

  .solution-feature:nth-child(3n+1) {
    border-left: 1px solid #333333;
  }

  .testimonials-section {
    padding: 6rem 2rem;
  }

  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonial + .testimonial {
    border-top: 2px solid #E8E8E8;
  }

  .testimonial:nth-child(n+2) {
    border-left: none;
  }

  .cta-section {
    padding: 6rem 2rem;
  }

  .nav-links {
    gap: 2.25rem;
  }

  .portfolio-cta {
    padding: 4.5rem 2rem;
  }
}

/* Mobile nav fix — hide cramming link list on phones (brand stays) */
@media (max-width: 639px) {
  .nav-links { display: none; }
}
