/* ============================================================
   RHHM LLC — style.css
   90s Trapper Keeper x early-computer aesthetic
   ============================================================ */

:root {
  --hot-pink: #ff3ea5;
  --grape: #7b2ff7;
  --deep-grape: #4b1a91;
  --teal: #00e5cc;
  --sunshine: #ffe600;
  --tangerine: #ff8a3d;
  --ink: #1b0e2b;
  --paper: #fdf6ff;
  --cream: #fffaf0;
  --line: #1b0e2b;

  --font-display: 'Chewy', system-ui, sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;
  --font-terminal: 'VT323', 'Courier New', monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-mono);
  color: var(--ink);
  background:
    repeating-linear-gradient(
      135deg,
      var(--grape) 0px,
      var(--grape) 60px,
      var(--deep-grape) 60px,
      var(--deep-grape) 120px,
      var(--hot-pink) 120px,
      var(--hot-pink) 180px
    );
  background-attachment: fixed;
  position: relative;
}

/* CRT scanline overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 500;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.08) 0px,
    rgba(0, 0, 0, 0.08) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: multiply;
}

a {
  color: inherit;
}

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Marquee ---------- */
.marquee {
  background: var(--ink);
  color: var(--sunshine);
  font-family: var(--font-terminal);
  font-size: 22px;
  letter-spacing: 1px;
  padding: 6px 0;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 4px solid var(--sunshine);
  position: relative;
  z-index: 10;
}

.marquee__track {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 22s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ---------- Nav tabs (binder tabs) ---------- */
.tabnav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 14px 12px 0;
  flex-wrap: wrap;
  background: linear-gradient(to bottom, rgba(27,14,43,0.0), rgba(27,14,43,0.0));
}

.tabnav a {
  font-family: var(--font-display);
  font-size: 18px;
  text-decoration: none;
  color: var(--ink);
  background: var(--sunshine);
  border: 3px solid var(--ink);
  border-bottom: none;
  padding: 8px 18px 10px;
  border-radius: 14px 14px 0 0;
  box-shadow: 3px -3px 0 rgba(0,0,0,0.25);
  transform: rotate(-1deg);
  transition: transform 0.15s ease;
}

.tabnav a:nth-child(2) { background: var(--teal); transform: rotate(1deg); }
.tabnav a:nth-child(3) { background: var(--hot-pink); color: var(--cream); transform: rotate(-1.5deg); }
.tabnav a:nth-child(4) { background: var(--tangerine); transform: rotate(1.5deg); }

.tabnav a:hover {
  transform: translateY(-4px) rotate(0deg);
}

/* ---------- Binder / page shell ---------- */
main {
  position: relative;
  z-index: 1;
}

.binder {
  background: var(--paper);
  margin: 0 auto;
  border-left: 10px solid var(--ink);
  border-right: 10px solid var(--ink);
  box-shadow: 0 0 0 4px var(--sunshine), 12px 12px 0 rgba(0,0,0,0.35);
}

section {
  padding: 60px 0 40px;
  border-bottom: 3px dashed var(--grape);
}

section:last-of-type {
  border-bottom: none;
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding-top: 50px;
}

.logo {
  display: inline-block;
  margin-bottom: 10px;
}

.logo-wordmark {
  font-family: var(--font-display);
  font-size: clamp(52px, 12vw, 108px);
  line-height: 1;
  margin: 0;
  background: linear-gradient(115deg, var(--hot-pink), var(--tangerine), var(--sunshine), var(--teal), var(--grape));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: holo 6s ease-in-out infinite;
  text-shadow: none;
  letter-spacing: 2px;
}

@keyframes holo {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.tagline {
  font-family: var(--font-terminal);
  font-size: 28px;
  color: var(--deep-grape);
  margin-top: 0;
}

.badge-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 26px 0 10px;
}

.badge {
  font-family: var(--font-terminal);
  font-size: 18px;
  background: var(--ink);
  color: var(--sunshine);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 6px 16px;
  transform: rotate(-2deg);
}
.badge:nth-child(2) { transform: rotate(2deg); background: var(--hot-pink); color: var(--cream); }
.badge:nth-child(3) { transform: rotate(-1deg); background: var(--teal); color: var(--ink); }

/* ---------- Headings ---------- */
h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 6vw, 46px);
  color: var(--hot-pink);
  -webkit-text-stroke: 1.5px var(--ink);
  text-align: center;
  margin: 0 0 30px;
}

/* ---------- System window (About / business info) ---------- */
.window {
  border: 3px solid var(--ink);
  border-radius: 10px;
  background: var(--cream);
  box-shadow: 6px 6px 0 rgba(0,0,0,0.3);
  overflow: hidden;
  max-width: 720px;
  margin: 0 auto;
}

.window__titlebar {
  background: linear-gradient(90deg, var(--grape), var(--hot-pink));
  color: var(--cream);
  font-family: var(--font-terminal);
  font-size: 20px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.window__dots {
  display: flex;
  gap: 6px;
}

.window__dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  background: var(--sunshine);
  border: 1.5px solid var(--ink);
}
.window__dots span:nth-child(2) { background: var(--teal); }
.window__dots span:nth-child(3) { background: var(--hot-pink); }

.window__body {
  padding: 22px 26px 26px;
}

.field {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dotted rgba(27,14,43,0.35);
  font-size: 16px;
}
.field:last-child { border-bottom: none; }

.field dt {
  font-family: var(--font-terminal);
  font-size: 19px;
  color: var(--grape);
  min-width: 150px;
  flex-shrink: 0;
}

.field dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.5;
}

.field a {
  color: var(--hot-pink);
  font-weight: bold;
  text-decoration: underline wavy;
}

.about-copy {
  max-width: 680px;
  margin: 26px auto 0;
  font-size: 16px;
  line-height: 1.7;
}

/* ---------- Focus / pedagogy-technology-culture cards ---------- */
.folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
}

.folder {
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 6px 6px 16px 16px;
  padding: 22px 18px 20px;
  position: relative;
  box-shadow: 5px 5px 0 rgba(0,0,0,0.25);
}

.folder::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 18px;
  width: 60px;
  height: 18px;
  background: inherit;
  border: 3px solid var(--ink);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
}

.folder:nth-child(1) { background: #ffe9f6; }
.folder:nth-child(2) { background: #e6fffb; }
.folder:nth-child(3) { background: #fff9db; }

.folder h3 {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 6px 0 10px;
  color: var(--deep-grape);
}

.folder p {
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
}

/* ---------- Contact ---------- */
.contact-panel {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.floppy {
  width: 90px;
  height: auto;
  display: block;
  margin: 0 auto 18px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 22px 0;
  font-size: 18px;
  line-height: 2.1;
}

.contact-list a {
  font-weight: bold;
  color: var(--grape);
  text-decoration: underline wavy var(--hot-pink);
}

.mail-btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 22px;
  background: var(--sunshine);
  border: 3px solid var(--ink);
  color: var(--ink);
  padding: 14px 34px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 5px 5px 0 rgba(0,0,0,0.3);
  transition: transform 0.15s ease;
}

.mail-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 rgba(0,0,0,0.3);
}

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-terminal);
  text-align: center;
  padding: 30px 20px 40px;
  font-size: 18px;
}

footer .foot-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

footer .foot-badges span {
  border: 2px solid var(--sunshine);
  color: var(--sunshine);
  padding: 4px 12px;
  border-radius: 6px;
}

footer small {
  display: block;
  margin-top: 10px;
  color: #cbb8f5;
  font-family: var(--font-mono);
  font-size: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .field { flex-direction: column; gap: 2px; }
  .field dt { min-width: 0; }
  .binder { border-left-width: 6px; border-right-width: 6px; }
  section { padding: 44px 0 30px; }
}
