/* ==========================================================================
   Maca Designs — macadesigns.nl
   Modern, luxurious dark design with pixel-craft accents.
   ========================================================================== */

:root {
  --bg: #101311;
  --bg-elev: #171b18;
  --card: #1c211d;
  --card-hover: #21271f;
  --text: #ede9df;
  --text-soft: #a8a396;
  --gold: #6fc5a0; /* brand mint */
  --gold-bright: #93d9b9;
  --gold-deep: #3b8a6b;
  --grass: #58b06c;
  --grass-bright: #74cc87;
  --grass-deep: #2e6b3e;
  --amber: #cfe39c;
  --sky: #7fb7d4;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --radius: 10px;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
  --shadow-soft: 0 6px 20px rgba(0, 0, 0, 0.35);
  --font-body: 'Outfit', 'Segoe UI', system-ui, sans-serif;
  --font-pixel: 'Silkscreen', 'Courier New', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}

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

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-bright); }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ---------- Type ---------- */

h1, h2, h3 { font-weight: 700; line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.2rem; }

.eyebrow {
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--grass-bright);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 9px; height: 9px;
  background: var(--grass);
  box-shadow: 3px 3px 0 var(--gold);
}

.lead { font-size: 1.12rem; font-weight: 300; color: var(--text-soft); max-width: 62ch; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 19, 17, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--text); }
.brand .brand-sub {
  display: block;
  font-family: var(--font-pixel);
  font-size: 0.56rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text-soft);
  font-weight: 500;
  font-size: 0.97rem;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.nav-links a.active { background: rgba(255, 255, 255, 0.09); color: var(--text); }
.nav-links a.nav-cta {
  background: var(--gold);
  color: #0c1a13;
  font-weight: 700;
  margin-left: 10px;
}
.nav-links a.nav-cta:hover { background: var(--gold-bright); color: #0c1a13; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 64px 0 72px;
  overflow: hidden;
  background-image:
    radial-gradient(ellipse 640px 420px at 82% 10%, rgba(111, 197, 160, 0.10), transparent 65%),
    radial-gradient(ellipse 560px 400px at 12% 90%, rgba(88, 176, 108, 0.09), transparent 65%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero h1 .accent { color: var(--gold); }
.hero h1 .accent-green { color: var(--grass-bright); }

.hero .lead { margin: 20px 0 30px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 16px 8px 12px;
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
  color: var(--grass-bright);
  margin-bottom: 22px;
}
.badge .dot {
  width: 10px; height: 10px;
  background: var(--grass);
  box-shadow: 0 0 10px rgba(88, 176, 108, 0.8);
}

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.15s, background 0.15s;
}
.btn-primary {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #0c1a13;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 0 var(--gold-deep), 0 10px 26px rgba(111, 197, 160, 0.22);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #a8e2c8, var(--gold-bright));
  color: #0c1a13;
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 6px 0 var(--gold-deep), 0 14px 32px rgba(111, 197, 160, 0.3);
}
.btn-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--gold-deep); }
.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 0 rgba(0, 0, 0, 0.45);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 6px 0 rgba(0, 0, 0, 0.45);
}
.btn-green {
  background: linear-gradient(180deg, var(--grass-bright), var(--grass));
  color: #0d1a10;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 4px 0 var(--grass-deep), 0 10px 26px rgba(88, 176, 108, 0.22);
}
.btn-green:hover {
  background: linear-gradient(180deg, #85d996, var(--grass-bright));
  color: #0d1a10;
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 6px 0 var(--grass-deep), 0 14px 32px rgba(88, 176, 108, 0.3);
}

/* Floating island hero art */
.hero-art { position: relative; }
.island { width: 112%; max-width: none; margin: -40px 0 -30px -6%; filter: drop-shadow(0 26px 40px rgba(0, 0, 0, 0.6)); }
.island .drift { animation: float 6s ease-in-out infinite; }
.island .drift-a { animation-duration: 7s; animation-delay: -2.4s; }
.island .drift-b { animation-duration: 8s; animation-delay: -4s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@media (prefers-reduced-motion: reduce) {
  .island .drift { animation: none; }
}

/* Pixel-word inside headings */
.hero h1 .px {
  font-family: var(--font-pixel);
  font-size: 0.74em;
  letter-spacing: -0.01em;
}

/* Signature brand ribbon */
.brand-strip {
  height: 5px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold) 30%, var(--grass) 70%, var(--grass-deep));
  box-shadow: 0 0 18px rgba(111, 197, 160, 0.35);
}

/* ---------- Sections ---------- */

.section { padding: 56px 0; }
.section.alt { background: var(--bg-elev); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 700px; margin-bottom: 32px; }
.section-head .lead { margin-top: 12px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* Compact feature row (home) */
.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-soft);
}
.feature .card-icon { flex-shrink: 0; width: 44px; height: 44px; font-size: 1.25rem; border-radius: 8px; }
.feature h3 { font-size: 1.02rem; margin-bottom: 2px; }
.feature p { color: var(--text-soft); font-size: 0.9rem; font-weight: 300; line-height: 1.5; }

/* Feature cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s, background 0.15s;
}
.card:hover { transform: translateY(-4px); background: var(--card-hover); border-color: var(--line-strong); box-shadow: var(--shadow); }
.card h3 { margin: 16px 0 8px; }
.card p { color: var(--text-soft); font-size: 0.98rem; font-weight: 300; }

.card-icon {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 1.5rem;
  border: 1px solid var(--line);
}
.card-icon svg { width: 26px; height: 26px; image-rendering: pixelated; }
.card-icon.green { background: rgba(88, 176, 108, 0.14); }
.card-icon.orange { background: rgba(111, 197, 160, 0.14); }
.card-icon.amber { background: rgba(207, 227, 156, 0.12); }
.card-icon.sky { background: rgba(127, 183, 212, 0.12); }

/* ---------- Portfolio cards ---------- */

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.work-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  display: flex;
  flex-direction: column;
}
.work-card:hover {
  transform: translateY(-5px);
  border-color: rgba(111, 197, 160, 0.35);
  box-shadow: var(--shadow), 0 0 0 1px rgba(111, 197, 160, 0.15);
}

.work-thumb {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.work-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 62% 58% at 50% 46%, rgba(255, 255, 255, 0.07), transparent 70%);
}
.work-thumb::after {
  content: "";
  position: absolute;
  top: 10px; right: 10px;
  width: 6px; height: 6px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: -8px 0 rgba(255, 255, 255, 0.12), 0 8px rgba(255, 255, 255, 0.12);
}
.work-thumb svg { width: 46%; height: auto; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.5)); }
.work-thumb svg.pixel-icon {
  width: 40%;
  position: relative;
  z-index: 1;
  image-rendering: pixelated;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.5));
  transition: transform 0.2s ease;
}
.work-card:hover .work-thumb svg.pixel-icon { transform: translateY(-5px) scale(1.06); }

.work-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.work-body h3 { font-size: 1.12rem; }
.work-body p { color: var(--text-soft); font-size: 0.92rem; font-weight: 300; flex: 1; }

.tag {
  align-self: flex-start;
  font-family: var(--font-pixel);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 5px 10px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
}
.tag.green { background: rgba(88, 176, 108, 0.12); border-color: rgba(88, 176, 108, 0.3); color: var(--grass-bright); }
.tag.orange { background: rgba(111, 197, 160, 0.12); border-color: rgba(111, 197, 160, 0.3); color: var(--gold-bright); }
.tag.sky { background: rgba(127, 183, 212, 0.1); border-color: rgba(127, 183, 212, 0.3); color: var(--sky); }

.work-link { font-weight: 600; font-size: 0.93rem; margin-top: 6px; }

.work-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-soft);
}
.work-meta .stars { color: var(--amber); letter-spacing: 0.05em; }
.work-meta .coins { color: var(--grass-bright); }

/* ---------- Stats strip ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  text-align: center;
}
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 16px;
  box-shadow: var(--shadow-soft);
}
.stat .num {
  font-weight: 700;
  font-size: 2.1rem;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  line-height: 1;
}
.stat .hearts { display: flex; gap: 5px; justify-content: center; height: 2.1rem; align-items: center; }
.stat .hearts svg { width: 26px; height: 26px; image-rendering: pixelated; }
.stat .label {
  margin-top: 10px;
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-soft);
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-grid .lead { margin-bottom: 16px; }
.about-grid p + p { margin-top: 14px; color: var(--text-soft); font-weight: 300; }

.values { display: grid; gap: 16px; margin-top: 10px; }
.value {
  display: flex;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-soft);
}
.value .card-icon { flex-shrink: 0; width: 46px; height: 46px; font-size: 1.3rem; }
.value h3 { font-size: 1.04rem; margin-bottom: 4px; }
.value p { color: var(--text-soft); font-size: 0.92rem; font-weight: 300; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow-soft);
  text-align: center;
}
.contact-card .card-icon { margin: 0 auto 16px; }
.contact-card h3 { margin-bottom: 8px; }
.contact-card p { color: var(--text-soft); font-weight: 300; margin-bottom: 20px; }

.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow-soft);
}
.faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-pixel);
  color: var(--gold);
  font-size: 1rem;
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--text-soft); font-weight: 300; font-size: 0.96rem; }

/* ---------- CTA band ---------- */

.cta-band {
  background:
    radial-gradient(ellipse 500px 260px at 88% 0%, rgba(111, 197, 160, 0.14), transparent 65%),
    linear-gradient(135deg, #1e241f, #171b18);
  border: 1px solid var(--line-strong);
  color: var(--text);
  border-radius: 14px;
  padding: 40px 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.cta-band h2 { color: var(--text); margin-bottom: 8px; }
.cta-band p { color: var(--text-soft); font-weight: 300; max-width: 46ch; }
.cta-band::before, .cta-band::after {
  content: "";
  position: absolute;
  width: 7px; height: 7px;
  background: var(--gold);
  opacity: 0.85;
}
.cta-band::before { top: 12px; left: 12px; box-shadow: 8px 0 var(--gold-deep), 0 8px var(--gold-deep); }
.cta-band::after { bottom: 12px; right: 12px; box-shadow: -8px 0 var(--gold-deep), 0 -8px var(--gold-deep); }

/* ---------- Footer ---------- */

.site-footer {
  background: #0b0d0b;
  color: var(--text-soft);
  margin-top: 56px;
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent 5%, rgba(111, 197, 160, 0.55), transparent 95%) 1;
  padding: 44px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.site-footer .brand { color: var(--text); margin-bottom: 12px; }
.site-footer p { font-size: 0.92rem; font-weight: 300; }
.site-footer h4 {
  font-family: var(--font-pixel);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer ul a { color: var(--text-soft); font-size: 0.95rem; }
.site-footer ul a:hover { color: var(--text); }
.footer-note {
  padding-top: 24px;
  font-size: 0.8rem;
  color: #6f6b61;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  padding: 48px 0 40px;
  background-image: radial-gradient(ellipse 600px 320px at 85% 0%, rgba(111, 197, 160, 0.07), transparent 65%);
}
.page-hero .lead { margin-top: 16px; }

/* ---------- Focus states ---------- */

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .hero-art { margin-top: 0; }
  .island { width: 100%; margin: -20px 0 -10px; }
  .grid-3, .work-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .grid-3, .grid-2, .work-grid, .contact-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 20px;
    gap: 4px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a.nav-cta { margin-left: 0; text-align: center; }
  .hero { padding: 40px 0 52px; }
  .section { padding: 44px 0; }
  .cta-band { padding: 32px 26px; }
  .feature-row { grid-template-columns: 1fr; }
}
