@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&family=Nunito:ital,wght@0,700;0,800;0,900;1,700&display=swap');

/* ===========================
   CSS CUSTOM PROPERTIES
   =========================== */
:root {
  --green: #87ff71;
  --yellow: #ffce5c;
  --dark: #192617;
  --dark-80: rgba(25,38,23,0.8);
  --dark-20: rgba(25,38,23,0.15);
  --white: #ffffff;
  --off-white: #f7ffed;
  --text: #0e1a0c;
  --text-muted: #3d5c38;

  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Nunito', 'DM Sans', sans-serif;

  --nav-h: 64px;
  --anchor-h: 44px;
  --radius: 0px;
  --max-w: 860px;
  --max-w-wide: 1100px;

  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
}

/* ===========================
   RESET & BASE
   =========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 17px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--off-white);
  overflow-x: hidden;
}

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

a { color: var(--dark); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 900;
  color: var(--dark);
}

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.5em; margin-bottom: 1em; }
li { margin-bottom: 0.4em; }

/* ===========================
   MEMPHIS DOT BACKGROUND
   =========================== */
.hero__dot-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, var(--dark) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  opacity: 0.13;
  pointer-events: none;
  z-index: 0;
}

/* ===========================
   MEMPHIS SHAPES
   =========================== */
.hero__shapes, .page-hero__shapes, .article-hero__shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.shape { position: absolute; display: block; }

.shape--tri.shape--a {
  width: 80px; height: 80px;
  background: var(--yellow);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  top: 12%; right: 8%;
  transform: rotate(22deg);
  opacity: 0.85;
}

.shape--circle.shape--b {
  width: 56px; height: 56px;
  background: var(--green);
  border-radius: 50%;
  bottom: 18%; left: 5%;
  opacity: 0.75;
}

.shape--rect.shape--c {
  width: 48px; height: 48px;
  background: var(--green);
  top: 30%; left: 12%;
  transform: rotate(15deg);
  opacity: 0.7;
}

.shape--squiggle.shape--d {
  width: 64px; height: 20px;
  border-bottom: 5px dashed var(--yellow);
  border-radius: 50%;
  bottom: 25%; right: 14%;
  transform: rotate(-10deg);
  opacity: 0.9;
}

/* ===========================
   HEADER / NAV
   =========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dark);
  border-bottom: 3px solid var(--green);
  height: var(--nav-h);
}

.header-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 var(--space-md);
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-logo__img { width: 36px; height: 36px; object-fit: contain; }

.brand-logo__text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--green);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  flex: 1;
  scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  min-height: 40px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  border-radius: 0;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}

.nav-link:hover {
  background: var(--green);
  color: var(--dark);
  text-decoration: none;
}

.nav-link--active {
  background: var(--yellow);
  color: var(--dark);
}

/* ===========================
   ANCHOR BAR (FAQ)
   =========================== */
.anchor-bar {
  position: sticky;
  top: var(--nav-h);
  z-index: 90;
  background: var(--yellow);
  border-bottom: 3px dotted var(--dark);
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  min-height: var(--anchor-h);
}
.anchor-bar::-webkit-scrollbar { display: none; }

.anchor-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  min-height: 40px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--dark);
  white-space: nowrap;
  border-right: 2px solid var(--dark-20);
  text-decoration: none;
  transition: background 0.15s;
}

.anchor-link:hover {
  background: var(--green);
  text-decoration: none;
}

.anchor-link--active {
  background: var(--dark);
  color: var(--green);
}

/* ===========================
   HOME HERO (100vh, stacked)
   =========================== */
.hero--home {
  position: relative;
  min-height: 100vh;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero__content {
  position: relative;
  z-index: 10;
  text-align: right;
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
  max-width: 680px;
  margin-left: auto;
  margin-right: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__eyebrow {
  display: inline-block;
  background: var(--yellow);
  color: var(--dark);
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  margin-bottom: var(--space-sm);
  align-self: flex-end;
}

.hero__h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  color: var(--green);
  font-weight: 900;
  margin-bottom: var(--space-sm);
  text-shadow: 4px 4px 0 var(--dark);
}

.hero__desc {
  color: rgba(255,255,255,0.82);
  font-size: 1rem;
  margin-bottom: var(--space-md);
  max-width: 480px;
  margin-left: auto;
}

.hero__media {
  position: relative;
  z-index: 5;
  width: 100%;
  max-height: 380px;
  overflow: hidden;
  margin-top: auto;
}

.hero__img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: top center;
  mix-blend-mode: luminosity;
  opacity: 0.7;
}

/* ===========================
   PAGE HERO (inner pages)
   =========================== */
.page-hero {
  position: relative;
  background: var(--dark);
  overflow: hidden;
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
  min-height: 260px;
  display: flex;
  align-items: flex-end;
}

.page-hero--faq { background: var(--dark); }
.page-hero--about { background: var(--dark); }
.page-hero--privacy { background: var(--dark); }

.page-hero__content {
  position: relative;
  z-index: 10;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  text-align: right;
}

.page-hero__h1 {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  color: var(--green);
  font-weight: 900;
  margin-bottom: var(--space-xs);
}

.page-hero__desc {
  color: rgba(255,255,255,0.75);
  font-size: 0.97rem;
}

/* ===========================
   ARTICLE HERO
   =========================== */
.article-hero {
  position: relative;
  background: var(--dark);
  overflow: hidden;
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.article-hero__content {
  position: relative;
  z-index: 10;
  text-align: right;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.article-hero__h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  color: var(--green);
  font-weight: 900;
  margin-bottom: var(--space-xs);
}

.article-hero__media {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.article-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  mix-blend-mode: luminosity;
}

.article-meta {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: var(--space-xs);
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  min-height: 48px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.95rem;
  border: 3px solid var(--dark);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s, background 0.12s;
  border-radius: 0;
}

.btn:hover { transform: translate(-2px, -2px); text-decoration: none; }
.btn:active { transform: translate(1px, 1px); }

.btn--primary {
  background: var(--green);
  color: var(--dark);
  margin-top: var(--space-sm);
  align-self: flex-end;
}

.btn--cta {
  background: var(--yellow);
  color: var(--dark);
}

/* ===========================
   MAIN WRAP + CONTENT
   =========================== */
.main-wrap {
  background: var(--off-white);
  border-left: 6px solid var(--green);
}

.main-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md);
}

/* ===========================
   ARTICLE BODY (prose)
   =========================== */
.article-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
}

.article-body h2 {
  font-size: 1.35rem;
  font-weight: 900;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xs);
  color: var(--dark);
  border-left: 5px solid var(--green);
  padding-left: var(--space-sm);
}

.article-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
  color: var(--dark);
}

.article-body p { margin-bottom: 1.1em; }

.article-body a {
  color: var(--dark);
  text-decoration: underline;
  text-decoration-color: var(--green);
  text-underline-offset: 3px;
}

.article-body a:hover {
  background: var(--green);
  text-decoration: none;
}

.article-body ul, .article-body ol {
  margin-bottom: 1.1em;
  padding-left: 1.6em;
}

.article-body li { margin-bottom: 0.5em; }

.article-body blockquote {
  border-left: 4px solid var(--yellow);
  background: rgba(255,206,92,0.12);
  padding: var(--space-sm) var(--space-md);
  margin: var(--space-md) 0;
  font-style: italic;
}

.article-body code {
  background: var(--dark);
  color: var(--green);
  padding: 2px 6px;
  font-size: 0.88em;
}

.article-body pre {
  background: var(--dark);
  color: var(--green);
  padding: var(--space-md);
  overflow-x: auto;
  margin-bottom: 1.2em;
}

.article-body--prose {
  max-width: 700px;
}

/* ===========================
   TIME / DATE
   =========================== */
.page-date {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--yellow);
  background: transparent;
  letter-spacing: 0.05em;
}

/* ===========================
   SECTION TITLES & HR
   =========================== */
.section-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 0;
}

.section-hr {
  border: none;
  border-top: 4px solid var(--green);
  margin: var(--space-xs) 0 var(--space-md);
}

/* ===========================
   CARDS SECTION (home)
   =========================== */
.cards-section {
  background: var(--white);
  padding: var(--space-lg) var(--space-md);
  max-width: var(--max-w-wide);
  margin: 0 auto;
}

.card-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-sm);
  list-style: none;
  padding: 0;
  margin: 0;
}

.card-item { margin: 0; }

.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-md);
  background: var(--dark);
  color: var(--white);
  text-decoration: none;
  border: 3px solid var(--dark);
  transition: transform 0.15s, background 0.15s;
  height: 100%;
}

.card:hover {
  background: var(--green);
  color: var(--dark);
  transform: translate(-3px, -3px);
  box-shadow: 3px 3px 0 var(--dark);
  text-decoration: none;
}

.card__num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--yellow);
  letter-spacing: 0.1em;
}

.card:hover .card__num { color: var(--dark); }

.card__title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.3;
}

.card__desc {
  font-size: 0.82rem;
  line-height: 1.5;
  opacity: 0.75;
  margin-top: auto;
}

/* ===========================
   SUB LIST (ol>li>a+small)
   =========================== */
.sub-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sub-list__item {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  padding: 12px 0;
  border-bottom: 2px dotted var(--dark-20);
  counter-increment: sub-counter;
}

.sub-list__item::before {
  content: counter(sub-counter, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.78rem;
  color: var(--text-muted);
  min-width: 28px;
  flex-shrink: 0;
}

ol.sub-list { counter-reset: sub-counter; }

.sub-list__link {
  font-weight: 700;
  font-size: 0.97rem;
  color: var(--dark);
  text-decoration: underline;
  text-decoration-color: var(--green);
  text-underline-offset: 3px;
  flex: 1;
}

.sub-list__link:hover {
  background: var(--green);
  text-decoration: none;
}

.sub-list__desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ===========================
   RELATED / BACK-LINKS SECTIONS
   =========================== */
.related-links, .related-section, .back-links, .about-links, .privacy-links {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md);
  background: var(--off-white);
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
  background: var(--dark);
  color: var(--white);
  border-top: 5px solid var(--yellow);
}

.footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-md);
  max-width: var(--max-w-wide);
  margin: 0 auto;
  border-bottom: 2px dashed rgba(255,255,255,0.15);
  flex-wrap: wrap;
}

.footer-cta__text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--green);
  margin: 0;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md);
}

.footer-dl { margin: 0; }

.footer-dl dt {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.88rem;
  color: var(--yellow);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid rgba(255,255,255,0.12);
}

.footer-dl dd {
  margin: 0 0 8px;
  padding: 0;
}

.footer-dl dd a {
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  transition: color 0.12s;
}

.footer-dl dd a:hover {
  color: var(--green);
}

.footer-bar {
  background: rgba(0,0,0,0.35);
  text-align: center;
  padding: var(--space-sm);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}

/* ===========================
   STAGGER ANIMATION
   =========================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.stagger-item {
  animation: fadeUp 0.4s ease both;
  animation-delay: calc(var(--i, 0) * 80ms);
}

@media (prefers-reduced-motion: reduce) {
  .stagger-item { animation: none; }
  .btn:hover { transform: none; }
  .card:hover { transform: none; }
}

/* ===========================
   MOBILE RESPONSIVE
   =========================== */
@media (max-width: 768px) {
  :root {
    --space-lg: 32px;
    --space-xl: 48px;
  }

  .header-inner {
    padding: 0 var(--space-sm);
    gap: var(--space-sm);
  }

  .brand-logo__text { font-size: 1rem; }

  .nav-link {
    padding: 10px 10px;
    font-size: 0.78rem;
    min-height: 44px;
  }

  .hero__content {
    padding: var(--space-lg) var(--space-sm) var(--space-md);
    margin-right: var(--space-sm);
    max-width: 100%;
  }

  .hero__h1 { font-size: 1.9rem; }

  .page-hero {
    padding: var(--space-lg) var(--space-sm) var(--space-md);
    min-height: 200px;
  }

  .page-hero__h1 { font-size: 1.5rem; }

  .article-hero {
    padding: var(--space-lg) var(--space-sm) var(--space-md);
  }

  .article-hero__h1 { font-size: 1.4rem; }

  .main-content {
    padding: var(--space-md) var(--space-sm);
  }

  .cards-section {
    padding: var(--space-md) var(--space-sm);
  }

  .card-list {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xs);
  }

  .footer-cols {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .footer-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .related-links, .related-section, .back-links, .about-links, .privacy-links {
    padding: var(--space-md) var(--space-sm);
  }

  .sub-list__desc { display: none; }
}

@media (max-width: 480px) {
  .card-list { grid-template-columns: 1fr; }

  .shape--tri.shape--a { width: 50px; height: 50px; }
  .shape--circle.shape--b { width: 36px; height: 36px; }
  .shape--rect.shape--c { width: 32px; height: 32px; }
}
