/*
Theme Name: AM | Software as a Hobby
Theme URI: https://am-software-as-a-hobby.dev/
Author: AM | Software as a Hobby
Description: Minimal, responsive software/product theme for AM | Software as a Hobby. Elementor-compatible and includes live NEXTlegal Consultants Studio stable-release integration.
Version: 1.2.5
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: am-software
*/

/* ==========================================================================
   1. Tokens
   Eén plek voor kleur, ruimte, ronding en typografie. Elke waarde staat
   hieronder precies één keer; er zijn geen losse overschrijvingen verderop.
   ========================================================================== */

:root {
  /* Kleur */
  --am-bg: #08111f;
  --am-surface: rgba(255, 255, 255, .045);
  --am-surface-2: rgba(255, 255, 255, .065);
  --am-line: rgba(255, 255, 255, .11);
  --am-line-strong: rgba(255, 255, 255, .2);

  --am-text: #f7f9fc;      /* koppen */
  --am-body: #ccd7e7;      /* lopende tekst */
  --am-muted: #8fa0b8;     /* labels, datums, bijzaken */

  --am-gold: #f4be3f;      /* merkkleur: knoppen en nadruk */
  --am-gold-soft: rgba(244, 190, 63, .1);
  --am-gold-line: rgba(244, 190, 63, .34);
  --am-success: #77e0ad;   /* alleen status: live / laatste versie */

  /* Kleuren van de vier stappen in "How it gets built" */
  --am-step-1: #f4be3f;
  --am-step-2: #59a8ff;
  --am-step-3: #55d6b2;
  --am-step-4: #c98cff;

  /* Maat en ruimte */
  --am-max: 1880px;        /* breed canvas: bijna volledige desktopbreedte */
  --am-measure: 68ch;      /* leesbare regellengte */
  --am-gap: 16px;
  --am-gap-lg: 26px;
  --am-pad: clamp(24px, 2.2vw, 46px);

  /* Ronding: twee waarden, niet meer */
  --am-radius: 20px;
  --am-radius-sm: 14px;

  /* Schaduw: alleen voor het ene element dat los van de pagina staat */
  --am-shadow: 0 22px 60px rgba(0, 0, 0, .34);
}

/* ==========================================================================
   2. Basis
   ========================================================================== */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 14% -6%, rgba(244, 190, 63, .07), transparent 30rem),
    var(--am-bg);
  color: var(--am-body);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--am-gold); }
img { max-width: 100%; height: auto; }
svg { display: block; }

h1, h2, h3 {
  color: var(--am-text);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 4.4vw, 4.1rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.5rem); }
h3 { font-size: 1.1rem; letter-spacing: -.015em; }

p { margin: 0; text-wrap: pretty; }

/* Elk tekstblok deelt dezelfde uitlijning, regellengte en maten. */
.am-container,
.am-hero-copy,
.am-card,
.am-content,
.am-product-heading,
.am-section-head { text-align: left; }

/* ==========================================================================
   3. Layout
   ========================================================================== */

.am-container {
  width: 100%;
  max-width: var(--am-max);
  margin-inline: auto;
  padding-inline: var(--am-pad);
}

.am-main { min-height: 70vh; }
.am-page { padding: clamp(48px, 5vw, 76px) 0 clamp(56px, 6vw, 90px); }
.am-section { padding: clamp(30px, 3.5vw, 52px) 0; }
.am-section:first-child { padding-top: 0; }

.am-eyebrow {
  color: var(--am-gold);
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 14px;
}

.am-lead {
  color: var(--am-body);
  font-size: clamp(1.05rem, 1.3vw, 1.22rem);
  line-height: 1.6;
  max-width: var(--am-measure);
  margin: 18px 0 0;
}

.am-small { color: var(--am-muted); font-size: .85rem; line-height: 1.5; }

.am-section-head { margin-bottom: 22px; }
.am-section-head p { max-width: var(--am-measure); color: var(--am-body); }

/* ==========================================================================
   4. Header
   ========================================================================== */

.am-site-header {
  position: sticky;
  top: 0;
  z-index: 99;
  background: rgba(8, 17, 31, .82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--am-line);
}
.am-nav {
  min-height: 74px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}
.am-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--am-text);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.02em;
}
.am-brand:hover { color: var(--am-text); }
.am-brand { justify-self: start; }
.am-menu-wrap { justify-self: center; }
.am-brand-star { color: var(--am-gold); width: 22px; height: 22px; flex: 0 0 auto; }
.am-brand-star svg { width: 100%; height: 100%; fill: currentColor; }
.am-brand-name { font-weight: 900; }
.am-brand-divider { color: var(--am-gold-line); }
.am-brand-sub { font-weight: 650; color: var(--am-text); }

.am-menu { display: flex; gap: 6px; align-items: center; list-style: none; margin: 0; padding: 0; }
.am-menu a {
  display: block;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--am-body);
  font-weight: 650;
  font-size: .95rem;
}
.am-menu a:hover { background: var(--am-surface-2); color: var(--am-text); }
.am-menu .current-menu-item > a,
.am-menu .current_page_item > a {
  background: var(--am-gold-soft);
  box-shadow: inset 0 0 0 1px var(--am-gold-line);
  color: var(--am-text);
}


.am-header-motto {
  justify-self: end;
  max-width: 220px;
  text-align: right;
  color: var(--am-text);
  font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
  font-style: italic;
  font-size: .79rem;
  line-height: 1.18;
  opacity: .96;
  white-space: nowrap;
}
.am-header-motto::after {
  content: "";
  display: block;
  width: 68px;
  height: 3px;
  margin: 7px 0 0 auto;
  border-radius: 999px;
  background: var(--am-gold);
  transform: rotate(-4deg);
  box-shadow: 0 0 14px rgba(244,190,63,.22);
}

.am-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--am-line);
  border-radius: var(--am-radius-sm);
  background: transparent;
  color: var(--am-text);
  cursor: pointer;
}
.am-mobile-toggle svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }

/* ==========================================================================
   5. Knoppen
   ========================================================================== */

.am-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.am-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--am-line-strong);
  border-radius: var(--am-radius-sm);
  font-weight: 800;
  font-size: .97rem;
  white-space: nowrap;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.am-btn:hover { transform: translateY(-1px); border-color: var(--am-gold-line); color: var(--am-text); }
.am-btn-primary { background: var(--am-gold); color: #07111f; border-color: transparent; }
.am-btn-primary:hover { background: #ffd15c; color: #07111f; }

/* ==========================================================================
   6. Hero
   ========================================================================== */

.am-hero { padding: clamp(40px, 4.5vw, 72px) 0 clamp(24px, 3vw, 40px); }
.am-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(520px, .72fr);
  gap: clamp(32px, 4vw, 72px);
  align-items: center;
}
.am-hero-copy { max-width: none; min-width: 0; }
.am-hero-copy h1 { margin-bottom: 14px; }

@media (min-width: 1280px) {
  .am-hero-copy h1 { white-space: nowrap; font-size: clamp(3rem, 3.8vw, 4.1rem); }
}

.am-script-line {
  color: var(--am-gold);
  font-size: clamp(1.25rem, 1.9vw, 1.85rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.02em;
  max-width: 30ch;
  margin: 0;
}

.am-hero-art { display: flex; justify-content: center; align-items: center; min-width: 0; }
.am-hero-art img {
  width: min(100%, 620px);
  filter: drop-shadow(var(--am-shadow));
}

/* Vier gelijke kolommen. subgrid houdt icoon, kop en toelichting
   op één lijn, ongeacht hoeveel regels de tekst nodig heeft. */
.am-hero-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: auto auto auto;
  gap: 10px var(--am-gap-lg);
  margin: 34px 0 0;
}
.am-hero-feature {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  gap: inherit;
  row-gap: 10px;
  min-width: 0;
}
.am-hero-feature strong { color: var(--am-text); font-size: .95rem; line-height: 1.25; }
.am-hero-feature small { color: var(--am-muted); font-size: .85rem; line-height: 1.45; }

.am-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--am-gold-line);
  border-radius: var(--am-radius-sm);
  background: var(--am-gold-soft);
  color: var(--am-gold);
}
.am-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@supports not (grid-template-rows: subgrid) {
  .am-hero-feature { display: flex; flex-direction: column; gap: 10px; }
}

/* ==========================================================================
   7. Kaarten en rasters
   ========================================================================== */

.am-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--am-surface);
  border: 1px solid var(--am-line);
  border-radius: var(--am-radius);
  padding: 26px;
}
.am-card p { color: var(--am-body); font-size: .96rem; line-height: 1.55; max-width: var(--am-measure); }
.am-card .am-small { max-width: 48ch; }

.am-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: var(--am-gap);
  align-items: stretch;
}
@media (min-width: 860px) {
  .am-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.am-kicker {
  align-self: start;
  display: inline-block;
  white-space: nowrap;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(119, 224, 173, .1);
  border: 1px solid rgba(119, 224, 173, .26);
  color: var(--am-success);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ==========================================================================
   8. "How it gets built"
   ========================================================================== */

.am-build-card {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 4vw, 68px);
  align-items: center;
  padding: clamp(26px, 3vw, 42px);
  background: var(--am-surface-2);
}
.am-build-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 26px;
  align-items: center;
}
.am-build-text { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.am-build-text h2 { max-width: 22ch; }
.am-build-quote {
  color: var(--am-gold);
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1.45;
  max-width: 34ch;
}
.am-build-text > p:last-child { color: var(--am-body); font-size: .96rem; line-height: 1.6; max-width: 46ch; }

.am-build-pa {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(145deg, #ffe27a, var(--am-gold) 45%, #b97709);
  justify-self: end;
}
.am-build-pa img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
  background: var(--am-bg);
  border: 3px solid var(--am-bg);
}

/* Vier stappen, gelijke opbouw, één kleur. */
.am-process {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  grid-template-rows: auto auto auto;
  gap: 10px clamp(10px, 1.4vw, 22px);
  align-items: start;
}
.am-process > b {
  grid-row: 1;
  align-self: center;
  justify-self: center;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--am-line-strong);
  font-size: 1.3rem;
  font-weight: 400;
}
.am-process-step {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  row-gap: 10px;
  min-width: 0;
}
/* Vaste kolommen: stap, pijl, stap, pijl, stap, pijl, stap. */
.am-process-step:nth-of-type(1) { grid-column: 1; }
.am-process-step:nth-of-type(2) { grid-column: 3; }
.am-process-step:nth-of-type(3) { grid-column: 5; }
.am-process-step:nth-of-type(4) { grid-column: 7; }
.am-process > b:nth-of-type(1) { grid-column: 2; }
.am-process > b:nth-of-type(2) { grid-column: 4; }
.am-process > b:nth-of-type(3) { grid-column: 6; }

/* Elke stap zijn eigen kleur: icoon en label. */
.am-process-step:nth-of-type(1) { --step: var(--am-step-1); }
.am-process-step:nth-of-type(2) { --step: var(--am-step-2); }
.am-process-step:nth-of-type(3) { --step: var(--am-step-3); }
.am-process-step:nth-of-type(4) { --step: var(--am-step-4); }
.am-process-step .am-icon {
  color: var(--step);
  border-color: color-mix(in srgb, var(--step) 45%, transparent);
  background: color-mix(in srgb, var(--step) 11%, transparent);
}
.am-process-step strong { color: var(--step); }

.am-process-step strong { font-size: .95rem; line-height: 1.25; }
.am-process-step small { color: var(--am-muted); font-size: .85rem; line-height: 1.45; }

@supports not (grid-template-rows: subgrid) {
  .am-process { grid-template-rows: none; }
  .am-process-step { display: flex; flex-direction: column; gap: 10px; }
  .am-process > b { grid-row: auto; }
}

/* ==========================================================================
   9. Projectkaarten op de homepage
   Drie gelijke kolommen, identieke opbouw: icoon, kop, tekst, voetregel.
   De voetregel staat door margin-top:auto in alle kaarten op dezelfde hoogte.
   ========================================================================== */

.am-project-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--am-gap);
  align-items: stretch;
}
.am-project-card { gap: 12px; }
.am-project-card h3 { margin-top: 2px; }
.am-project-card p { font-size: .93rem; line-height: 1.5; }
.am-project-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 8px;
}
.am-mini-link { color: var(--am-gold); font-weight: 800; font-size: .87rem; }
.am-mini-version { color: var(--am-muted); font-size: .82rem; font-weight: 700; letter-spacing: .02em; }
.am-mini-version strong { color: var(--am-success); font-weight: 800; }

/* ==========================================================================
   10. Release-kaarten
   ========================================================================== */

.am-release {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: var(--am-gap-lg);
  background: var(--am-surface-2);
}
.am-release-main { display: flex; flex-direction: column; gap: 10px; }
.am-version { color: var(--am-text); font-size: clamp(2rem, 3.6vw, 3.2rem); font-weight: 900; letter-spacing: -.05em; line-height: 1; }
.am-release-meta { color: var(--am-body); font-size: .95rem; }
.am-release-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  border-left: 1px solid var(--am-line);
  padding-left: var(--am-gap-lg);
}
.am-status { display: flex; align-items: center; gap: 9px; color: var(--am-text); font-weight: 700; font-size: .95rem; }
.am-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--am-success); box-shadow: 0 0 0 5px rgba(119, 224, 173, .12); }
.am-release-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }
.am-release-tags span {
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--am-line);
  background: var(--am-surface);
  color: var(--am-muted);
  font-size: .76rem;
  white-space: nowrap;
}
.am-release-stack { display: grid; gap: var(--am-gap); margin-top: 28px; }

/* ==========================================================================
   11. Productsecties (Software-pagina)
   ========================================================================== */

.am-product-section { padding: clamp(30px, 3.5vw, 48px) 0; border-bottom: 1px solid var(--am-line); }
.am-product-section:last-child { border-bottom: 0; padding-bottom: 8px; }
.am-product-heading {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
  margin-bottom: 22px;
}
.am-product-heading > div { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.am-product-heading p { color: var(--am-body); font-size: 1.02rem; line-height: 1.6; max-width: var(--am-measure); }
.am-product-features { margin-top: 18px; }
.am-product-meta { margin-top: 18px; }
.am-product-meta p { color: var(--am-body); font-size: .92rem; max-width: none; }

/* ==========================================================================
   12. Losse tekstpagina's
   ========================================================================== */

.am-content { max-width: var(--am-measure); display: flex; flex-direction: column; gap: 18px; }
.am-content p, .am-content li { color: var(--am-body); }
.am-content strong { color: var(--am-text); }
.am-content ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 8px; }
.am-content hr { border: 0; border-top: 1px solid var(--am-line); margin: 22px 0; width: 100%; }
.am-content .am-lead { margin: 0; }

.am-quote { color: var(--am-text); font-size: clamp(1.4rem, 2.4vw, 2.1rem); line-height: 1.3; max-width: 40ch; }
.am-quote small { display: block; color: var(--am-muted); font-size: .92rem; margin-top: 14px; }

/* ==========================================================================
   13. Footer
   ========================================================================== */

.am-site-footer { border-top: 1px solid var(--am-line); padding: 26px 0 34px; color: var(--am-muted); }
.am-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  flex-wrap: wrap;
  font-size: .88rem;
}

/* ==========================================================================
   14. Elementor
   ========================================================================== */

.elementor-page .am-page { padding-top: 26px; }
.elementor-page .entry-content { max-width: none; }

/* ==========================================================================
   15. Responsive
   Uitlijning blijft op elke breedte links; alleen het aantal kolommen wijzigt.
   ========================================================================== */

@media (max-width: 1240px) {
  .am-header-motto { display: none; }
}

@media (max-width: 1180px) {
  .am-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .am-hero-art { justify-content: flex-start; }
  .am-hero-art img { width: min(70vw, 420px); }
  .am-build-card { grid-template-columns: 1fr; gap: 34px; }
  .am-product-heading { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 900px) {
  .am-nav { display: flex; justify-content: space-between; }
  .am-menu-wrap { justify-self: auto; }
  .am-menu-wrap {
    display: none;
    position: absolute;
    left: var(--am-pad);
    right: var(--am-pad);
    top: 66px;
    background: #0c1728;
    border: 1px solid var(--am-line);
    border-radius: var(--am-radius-sm);
    padding: 8px;
    box-shadow: var(--am-shadow);
  }
  .am-menu-wrap.is-open { display: block; }
  .am-menu { flex-direction: column; align-items: stretch; }
  .am-menu a { border-radius: 10px; }
  
.am-header-motto {
  justify-self: end;
  max-width: 220px;
  text-align: right;
  color: var(--am-text);
  font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
  font-style: italic;
  font-size: .79rem;
  line-height: 1.18;
  opacity: .96;
  white-space: nowrap;
}
.am-header-motto::after {
  content: "";
  display: block;
  width: 68px;
  height: 3px;
  margin: 7px 0 0 auto;
  border-radius: 999px;
  background: var(--am-gold);
  transform: rotate(-4deg);
  box-shadow: 0 0 14px rgba(244,190,63,.22);
}

.am-mobile-toggle { display: inline-flex; }

  .am-release { grid-template-columns: 1fr; }
  .am-release-side { border-left: 0; border-top: 1px solid var(--am-line); padding: 18px 0 0; }

  .am-hero-features { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
  .am-hero-feature { grid-row: auto; grid-template-rows: none; display: flex; flex-direction: column; }

  .am-process { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; row-gap: 24px; }
  .am-process-step,
  .am-process-step:nth-of-type(1),
  .am-process-step:nth-of-type(2),
  .am-process-step:nth-of-type(3),
  .am-process-step:nth-of-type(4) { grid-column: auto; grid-row: auto; grid-template-rows: none; display: flex; flex-direction: column; }
  .am-process > b { display: none; }
}

@media (max-width: 760px) {
  .am-build-copy { grid-template-columns: 1fr; }
  .am-build-pa { width: 112px; height: 112px; justify-self: start; grid-row: 1; }
}

@media (max-width: 560px) {
  :root { --am-pad: 20px; }
  body { font-size: 16px; }
  .am-card { padding: 21px; }
  .am-hero-features { grid-template-columns: 1fr; gap: 20px; }
  .am-hero-art img { width: min(100%, 340px); }
  .am-brand-sub, .am-brand-divider { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .am-btn { transition: none; }
  .am-btn:hover { transform: none; }
}

/* v1.2.3 — footer simplified */
.am-footer-inner { justify-content: flex-start; }
