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

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: #192617;
  color: #f0f0e8;
}

body, .memphis-body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  background: #192617;
  color: #f0f0e8;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: #87ff71; text-decoration: none; transition: color 0.2s, opacity 0.2s; }
a:hover, a:focus { color: #ffce5c; text-decoration: underline; outline: 2px dashed #87ff71; outline-offset: 3px; }

img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }

/* ============================================
   MEMPHIS PATTERNS & SHAPES
   ============================================ */
.page-wrapper { position: relative; overflow-x: hidden; }

/* Zigzag wave divider (SVG via CSS) */
.memphis-zz {
  width: 100%;
  height: 24px;
  background-image:
    repeating-linear-gradient(
      135deg,
      #87ff71 0px, #87ff71 4px,
      transparent 4px, transparent 12px
    );
  opacity: 0.25;
}

/* Repeating dot pattern overlay */
.dot-pattern {
  background-image: radial-gradient(circle, #ffce5c 1.5px, transparent 1.5px);
  background-size: 20px 20px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: #87ff71;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); color: #ffce5c; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.6rem); color: #87ff71; }
h4, h5, h6 { font-size: 1.1rem; color: #f0f0e8; }

p { margin-bottom: 1em; font-size: 1rem; line-height: 1.7; }

hr {
  border: none;
  border-top: 3px dashed #87ff71;
  margin: 1.5rem 0;
  opacity: 0.55;
}

/* Section scroll offset for sticky nav */
article[id] { scroll-margin-top: 96px; }

/* ============================================
   BUTTONS
   ============================================ */
.btn-cta {
  display: inline-block;
  background: #87ff71;
  color: #192617;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 1.75rem;
  border: 3px solid #192617;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.18s, transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
  box-shadow: 4px 4px 0 #ffce5c;
  min-height: 48px;
  align-items: center;
  white-space: nowrap;
}
.btn-cta:hover, .btn-cta:focus {
  background: #ffce5c;
  color: #192617;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #87ff71;
  outline: none;
  text-decoration: none;
}
.btn-cta-lg {
  font-size: 1.15rem;
  padding: 1rem 2.5rem;
  min-height: 56px;
}

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: #87ff71;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 1.75rem;
  border: 3px solid #87ff71;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.15s;
  text-decoration: none;
  min-height: 48px;
}
.btn-ghost:hover, .btn-ghost:focus {
  background: #87ff71;
  color: #192617;
  transform: translate(-2px, -2px);
  outline: none;
  text-decoration: none;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #192617;
  border-bottom: 3px solid #87ff71;
}

.header-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  border-bottom: 2px dashed rgba(135,255,113,0.22);
}

.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  outline: none;
}
.brand-link:hover { opacity: 0.85; text-decoration: none; }
.brand-logo { height: 40px; width: auto; }
.brand-text {
  font-size: 1.45rem;
  font-weight: 700;
  color: #87ff71;
  letter-spacing: -0.02em;
  text-shadow: 2px 2px 0 #ffce5c;
}

.header-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1.5rem;
  gap: 1rem;
}

/* Desktop aside nav inside header */
.desktop-nav-aside nav ul {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.desktop-nav-aside nav ul li a {
  display: block;
  color: #f0f0e8;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.55rem 0.85rem;
  border-radius: 4px;
  border: 2px solid transparent;
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  text-decoration: none;
}
.desktop-nav-aside nav ul li a:hover,
.desktop-nav-aside nav ul li a:focus {
  border-color: #87ff71;
  color: #87ff71;
  background: rgba(135,255,113,0.08);
  text-decoration: none;
  outline: none;
}

.header-cta { font-size: 0.9rem; padding: 0.55rem 1.25rem; min-height: 40px; }

/* Hamburger */
.hamburger {
  background: none;
  border: 2px solid #87ff71;
  border-radius: 4px;
  padding: 0.5rem 0.6rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}
.ham-bar {
  display: block;
  width: 22px;
  height: 2.5px;
  background: #87ff71;
  border-radius: 2px;
  transition: transform 0.22s, opacity 0.22s;
}
.hamburger[aria-expanded="true"] .ham-bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] .ham-bar:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] .ham-bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================
   FULLSCREEN MENU
   ============================================ */
.fullscreen-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #192617;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.fullscreen-menu[hidden] { display: none; }

.menu-close {
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  background: none;
  border: 2px solid #87ff71;
  color: #87ff71;
  font-size: 2rem;
  line-height: 1;
  width: 52px;
  height: 52px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.menu-close:hover { background: #87ff71; color: #192617; }

.fullscreen-nav-list {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.fullscreen-nav-list li a {
  display: block;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 700;
  color: #f0f0e8;
  padding: 0.6rem 1.5rem;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: 4px;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.fullscreen-nav-list li:nth-child(odd) a { color: #87ff71; }
.fullscreen-nav-list li:nth-child(even) a { color: #ffce5c; }
.fullscreen-nav-list li a:hover,
.fullscreen-nav-list li a:focus {
  background: rgba(135,255,113,0.12);
  border-color: #87ff71;
  color: #fff;
  text-decoration: none;
  outline: none;
}

/* Memphis decorative shapes inside menu */
.menu-deco {
  position: absolute;
  pointer-events: none;
}
.menu-deco-tri {
  top: 10%;
  left: 6%;
  width: 0;
  height: 0;
  border-left: 50px solid transparent;
  border-right: 50px solid transparent;
  border-bottom: 86px solid #ffce5c;
  opacity: 0.18;
  transform: rotate(15deg);
}
.menu-deco-circle {
  bottom: 12%;
  right: 8%;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 6px dotted #87ff71;
  opacity: 0.2;
}
.menu-deco-sq {
  bottom: 20%;
  left: 10%;
  width: 60px;
  height: 60px;
  border: 5px solid #87ff71;
  opacity: 0.15;
  transform: rotate(30deg);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  position: relative;
  min-height: 70vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 2rem;
  padding: 4rem 2rem 3rem;
  overflow: hidden;
  background: #192617;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(135,255,113,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.hero-copy {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 2;
}
.hero-collage {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  height: 420px;
}

.hero-eyebrow {
  display: inline-block;
  background: #ffce5c;
  color: #192617;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.75rem;
  border-radius: 2px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  clip-path: polygon(0 0, 96% 0, 100% 100%, 4% 100%);
}

.hero-h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #87ff71;
  text-shadow: 3px 3px 0 rgba(255,206,92,0.3);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-sub {
  color: rgba(240,240,232,0.8);
  font-size: 1.05rem;
  max-width: 500px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Collage frames */
.collage-frame {
  position: absolute;
  border-radius: 4px;
  overflow: visible;
}
.collage-frame-a {
  top: 0;
  left: 0;
  width: 68%;
  z-index: 2;
  transform: rotate(-3deg);
}
.collage-frame-a img,
.collage-frame-a .collage-placeholder {
  border: 4px solid #87ff71;
  border-radius: 4px;
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.collage-frame-b {
  bottom: 0;
  right: 0;
  width: 60%;
  z-index: 3;
  transform: rotate(4deg);
}
.collage-frame-b img,
.collage-frame-b .collage-placeholder {
  border: 4px solid #ffce5c;
  border-radius: 4px;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.collage-placeholder {
  background: linear-gradient(135deg, #2a3d28 0%, #1e2b1c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.collage-placeholder-b {
  background: linear-gradient(135deg, #3a3010 0%, #2b2510 100%);
}

.floating-badge {
  position: absolute;
  background: #ffce5c;
  color: #192617;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.3rem 0.8rem;
  border-radius: 2px;
  border: 2px solid #192617;
  letter-spacing: 0.06em;
  white-space: nowrap;
  box-shadow: 2px 2px 0 #87ff71;
  z-index: 5;
  clip-path: polygon(0 0, 93% 0, 100% 50%, 93% 100%, 0 100%);
}
.badge-top { top: -14px; left: 10%; transform: rotate(-5deg); }
.badge-bot { bottom: -14px; right: 5%; transform: rotate(3deg); background: #87ff71; }

/* Hero decorative shapes */
.hero-deco { position: absolute; pointer-events: none; }
.hero-deco-zz {
  top: 0;
  right: 0;
  width: 120px;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    rgba(255,206,92,0.07) 0, rgba(255,206,92,0.07) 6px,
    transparent 6px, transparent 18px
  );
}
.hero-deco-tri {
  bottom: 10%;
  left: 2%;
  width: 0;
  height: 0;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 70px solid #87ff71;
  opacity: 0.12;
  transform: rotate(20deg);
}
.hero-deco-dots {
  top: 15%;
  right: 5%;
  width: 90px;
  height: 90px;
  background-image: radial-gradient(circle, #ffce5c 2px, transparent 2px);
  background-size: 14px 14px;
  opacity: 0.28;
  border-radius: 4px;
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.site-main {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.main-article {
  width: 100%;
}

.content-section {
  width: 100%;
}

/* Style injected content (page.content) */
.content-section h2 {
  color: #ffce5c;
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
}
.content-section h2 + hr {
  border-top: 3px dashed #87ff71;
  margin-bottom: 1.25rem;
}
.content-section h3 {
  color: #87ff71;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}
.content-section h3 + hr {
  border-top: 2px dotted #ffce5c;
  margin-bottom: 1rem;
}
.content-section p {
  color: rgba(240,240,232,0.88);
  margin-bottom: 1em;
}
.content-section ul, .content-section ol {
  padding-left: 1.5rem;
  margin-bottom: 1em;
  list-style: disc;
}
.content-section ol { list-style: decimal; }
.content-section li { margin-bottom: 0.4em; color: rgba(240,240,232,0.85); }
.content-section a { color: #87ff71; text-decoration: underline; }
.content-section a:hover { color: #ffce5c; }
.content-section strong { color: #ffce5c; font-weight: 700; }
.content-section em { color: #87ff71; font-style: italic; }
.content-section blockquote {
  border-left: 5px solid #87ff71;
  padding: 0.75rem 1.25rem;
  background: rgba(135,255,113,0.07);
  border-radius: 0 4px 4px 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: rgba(240,240,232,0.8);
}
.content-section table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.content-section th {
  background: rgba(135,255,113,0.15);
  color: #87ff71;
  padding: 0.6rem 0.9rem;
  border: 1px solid rgba(135,255,113,0.25);
  text-align: left;
}
.content-section td {
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(135,255,113,0.12);
  color: rgba(240,240,232,0.8);
}
.content-section tr:nth-child(even) td { background: rgba(135,255,113,0.04); }
.content-section article {
  border-top: 2px solid rgba(135,255,113,0.18);
  padding-top: 2.5rem;
  margin-top: 2.5rem;
}
.content-section article:first-child { border-top: none; padding-top: 0; margin-top: 0; }

/* Glass card inside content if any */
.content-section .card, .glass-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(135,255,113,0.18);
  border-radius: 4px;
  padding: 1.25rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  position: relative;
  background: #0f1a0e;
  border-top: 4px solid #87ff71;
  padding-top: 0;
  overflow: hidden;
}

.footer-cta-block {
  background: #87ff71;
  text-align: center;
  padding: 2.5rem 1.5rem;
  position: relative;
}
.footer-cta-label {
  color: #192617;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.footer-cta-block .btn-cta {
  background: #192617;
  color: #87ff71;
  border-color: #192617;
  box-shadow: 4px 4px 0 #ffce5c;
}
.footer-cta-block .btn-cta:hover {
  background: #ffce5c;
  color: #192617;
}

.footer-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
}

.footer-brand-col .brand-text { font-size: 1.2rem; }
.footer-brand-col .brand-logo { height: 36px; margin-bottom: 0.75rem; }
.footer-brand-desc {
  color: rgba(240,240,232,0.65);
  font-size: 0.92rem;
  margin-top: 0.75rem;
  max-width: 280px;
  line-height: 1.6;
}

.footer-address {
  font-style: normal;
  margin-top: 1rem;
  font-size: 0.88rem;
  color: rgba(240,240,232,0.5);
}
.footer-address a { color: #87ff71; font-size: 0.88rem; }

.footer-links-title {
  color: #ffce5c;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-links-col ul li {
  margin-bottom: 0.4rem;
}
.footer-links-col ul li a {
  color: rgba(240,240,232,0.7);
  font-size: 0.92rem;
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 0.1rem 0;
  transition: color 0.15s;
  text-decoration: none;
}
.footer-links-col ul li a:hover { color: #87ff71; text-decoration: none; }

.footer-bottom {
  border-top: 1px dashed rgba(135,255,113,0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-copy {
  color: rgba(240,240,232,0.45);
  font-size: 0.82rem;
}
.footer-notice {
  color: rgba(255,206,92,0.6);
  font-size: 0.8rem;
  text-align: right;
}

/* Footer deco */
.footer-deco { position: absolute; pointer-events: none; }
.footer-deco-tri {
  top: 30%;
  right: 4%;
  width: 0;
  height: 0;
  border-left: 35px solid transparent;
  border-right: 35px solid transparent;
  border-bottom: 60px solid #87ff71;
  opacity: 0.08;
  transform: rotate(-12deg);
}
.footer-deco-sq {
  bottom: 15%;
  left: 3%;
  width: 50px;
  height: 50px;
  border: 4px solid #ffce5c;
  opacity: 0.1;
  transform: rotate(22deg);
}

/* ============================================
   PARALLAX & STAGGER ANIMATIONS
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
  .collage-frame-a {
    transition: transform 0.1s linear;
  }
  .collage-frame-b {
    transition: transform 0.12s linear;
  }

  .stagger-item {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .stagger-item.is-visible {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .collage-frame-a, .collage-frame-b { transition: none; }
  .stagger-item { opacity: 1; transform: none; transition: none; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .header-nav-row { display: none; }

  .hero-section {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    min-height: auto;
    padding: 2.5rem 1rem 2rem;
    gap: 2rem;
  }
  .hero-copy { grid-column: 1; grid-row: 1; }
  .hero-collage {
    grid-column: 1;
    grid-row: 2;
    height: 260px;
    width: 100%;
  }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .btn-cta-lg, .btn-ghost { width: 100%; text-align: center; justify-content: center; }

  .footer-body {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1rem 1.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }
  .footer-notice { text-align: left; }
  .site-main { padding: 2rem 1rem 3rem; }
}

@media (max-width: 480px) {
  .header-brand-row { padding: 0.6rem 1rem; }
  .brand-text { font-size: 1.15rem; }
  .hero-h1 { font-size: 1.75rem; }
  .fullscreen-nav-list li a { font-size: 1.3rem; }
}

@media (min-width: 769px) {
  .hamburger { display: flex; }
}

button[aria-expanded]{min-width:44px;min-height:44px}
