/*
Theme Name: AMICO
Theme URI: https://somosamico.com
Author: AMICO — Amistad Misionera en Cristo Obrero
Description: Custom theme reproducing the somosamico.com design system (pixel-matched migration from the static HTML/CSS site).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: amico
*/

/* ==========================================================================
   AMICO — Amistad Misionera en Cristo Obrero
   Design system
   ========================================================================== */

:root {
  --green: #17ab4d;
  --green-dark: #0b7a34;
  --green-bright: #2fd66b;
  --green-light: #e0f8e7;
  --gold: #e3a72e;
  --gold-dark: #b9800f;
  --gold-light: #fdf1da;
  --ink: #14231a;
  --black: #121212;
  --paper: #fbfaf6;
  --paper-alt: #e8f6ec;
  --white: #ffffff;
  --text: #2b2f2b;
  --muted: #5b645c;
  --line: #dcebe0;
  --shadow: 0 10px 30px -12px rgba(18, 33, 22, 0.22);
  --shadow-sm: 0 4px 14px -6px rgba(18, 33, 22, 0.18);
  --grad-green: linear-gradient(135deg, var(--green-bright), var(--green-dark));
  --grad-gold: linear-gradient(135deg, #f3c65c, var(--gold-dark));
  --radius: 18px;
  --radius-sm: 10px;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* Inline links inside body copy (not nav/buttons, which style themselves)
   need to visibly read as links, unlike the reset above. */
.lede a, p a {
  color: var(--green-dark);
  text-decoration: underline;
  font-weight: 800;
}
.section--dark .lede a, .section--dark p a {
  color: #7fe0a4;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.32;
  margin: 0 0 0.6em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); }

p { margin: 0 0 1.1em; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 76px 0;
}

.section--alt {
  background: var(--paper-alt);
}

.section--dark {
  background:
    radial-gradient(circle at 85% 20%, rgba(47, 214, 107, 0.22), transparent 55%),
    radial-gradient(circle at 10% 85%, rgba(227, 167, 46, 0.16), transparent 45%),
    var(--ink);
  color: #dce7de;
}
.section--dark h2, .section--dark h3 { color: #ffffff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--green);
  display: inline-block;
}

.section--dark .eyebrow { color: #7fe0a4; }

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 62ch;
}

.section-head {
  max-width: 780px;
  margin: 0 0 44px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  font-family: var(--sans);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--grad-green);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { box-shadow: var(--shadow), 0 0 0 4px var(--green-light); }

.btn--ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: #fff;
}
.btn--ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

.btn--outline {
  background: transparent;
  border-color: var(--green);
  color: var(--green-dark);
}
.btn--outline:hover { background: var(--green-light); }

.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 246, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 3px solid;
  border-image: var(--grad-green) 1;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
}
.brand__mark { width: 44px; height: 44px; flex-shrink: 0; }
.brand__text small {
  display: block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 42px;
  height: 42px;
  border-radius: 8px;
}
.nav__toggle:hover { background: var(--paper-alt); }
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px auto;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__menu a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.93rem;
  color: var(--text);
  transition: background 0.15s ease, color 0.15s ease;
}
.nav__menu a:hover { background: var(--green-light); color: var(--green-dark); }
.nav__menu a.is-active { background: var(--grad-green); color: #fff; }

.nav__menu .nav__cta {
  background: var(--grad-gold);
  color: var(--ink);
  margin-left: 6px;
  box-shadow: var(--shadow-sm);
}
.nav__menu .nav__cta:hover { box-shadow: var(--shadow); }
.nav__menu .nav__cta.is-active { background: var(--grad-gold); color: var(--ink); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 12%, rgba(47, 214, 107, 0.32), transparent 55%),
    radial-gradient(circle at 14% 88%, rgba(227, 167, 46, 0.22), transparent 45%),
    linear-gradient(180deg, #0f1b13 0%, #14231a 55%, #16281c 100%);
  color: #eef4ee;
  padding: 96px 0 84px;
  border-bottom: 4px solid;
  border-image: linear-gradient(90deg, var(--green-bright), var(--gold)) 1;
}

.hero__globe {
  position: absolute;
  right: -140px;
  top: -80px;
  width: 520px;
  height: 520px;
  opacity: 0.16;
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero .eyebrow { color: #7fe0a4; }

.hero h1 { color: #fff; }

.hero__verse {
  border-left: 3px solid var(--green);
  padding-left: 18px;
  margin: 26px 0 30px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: #d8e6da;
}
.hero__verse cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: #7fe0a4;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.hero__card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 30px;
  backdrop-filter: blur(6px);
}
.hero__card-mark { width: 120px; height: 120px; margin: 0 auto 18px; }
.hero__card p { color: #cbdccd; text-align: center; margin-bottom: 4px; }
.hero__card strong { display: block; text-align: center; color: #fff; font-family: var(--serif); font-size: 1.05rem; margin-bottom: 4px; }

/* ==========================================================================
   Cards / grids
   ========================================================================== */

.grid {
  display: grid;
  gap: 26px;
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card { position: relative; overflow: hidden; }
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--grad-green);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.grid--3 .card:nth-child(3n+2)::before,
.grid--4 .card:nth-child(4n+2)::before { background: var(--grad-gold); }
.grid--3 .card:nth-child(3n+3)::before,
.grid--4 .card:nth-child(4n+3)::before { background: linear-gradient(135deg, #4fb8c9, #0f7a86); }

.card__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--grad-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.grid--3 .card:nth-child(3n+2) .card__icon,
.grid--4 .card:nth-child(4n+2) .card__icon { background: var(--grad-gold); }
.grid--3 .card:nth-child(3n+3) .card__icon,
.grid--4 .card:nth-child(4n+3) .card__icon { background: linear-gradient(135deg, #4fb8c9, #0f7a86); }
.card__icon svg { width: 26px; height: 26px; }

.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }

/* Quote block */
.quote {
  position: relative;
  border-left: 4px solid var(--green);
  background: var(--green-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 26px 28px;
  font-family: var(--serif);
  font-size: 1.08rem;
  color: var(--ink);
  font-style: italic;
}
.quote cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--green-dark);
}

/* Ideal / checklist */
.ideal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.ideal-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.ideal-list li:nth-child(3n+2) { border-left-color: var(--gold-dark); }
.ideal-list li:nth-child(3n+3) { border-left-color: #0f7a86; }
.ideal-list .tick {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--grad-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 900;
  margin-top: 2px;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 30px;
  border-left: 2px solid var(--line);
}
.timeline__item { position: relative; padding-bottom: 34px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -37px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--grad-green);
  box-shadow: 0 0 0 4px var(--green-light);
}
.timeline__item:nth-child(3n+2)::before { background: var(--grad-gold); box-shadow: 0 0 0 4px var(--gold-light); }
.timeline__year {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--green-dark);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

/* Accordion (prayers) */
.accordion { display: grid; gap: 16px; }
.accordion details {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.accordion details:nth-child(2) { border-left-color: var(--gold-dark); }
.accordion details:nth-child(3) { border-left-color: #0f7a86; }
.accordion summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .plus {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--grad-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  transition: transform 0.2s ease;
}
.accordion details:nth-child(2) summary .plus { background: var(--grad-gold); }
.accordion details:nth-child(3) summary .plus { background: linear-gradient(135deg, #4fb8c9, #0f7a86); }
.accordion details[open] summary .plus { transform: rotate(45deg); }
.accordion__body {
  padding: 0 26px 28px;
  color: var(--muted);
  white-space: pre-line;
  font-size: 1.02rem;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.accordion__body .signature {
  display: block;
  margin-top: 18px;
  text-align: right;
  font-style: italic;
  color: var(--green-dark);
  font-weight: 700;
}

/* Works / mission list */
.work {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.work:last-child { border-bottom: none; }
.work__letter {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--grad-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.3rem;
  box-shadow: var(--shadow-sm);
}
.work:nth-child(3n+2) .work__letter { background: var(--grad-gold); }
.work:nth-child(3n+3) .work__letter { background: linear-gradient(135deg, #4fb8c9, #0f7a86); }
.work h3 { margin-bottom: 8px; }
.work p { color: var(--muted); margin-bottom: 0; }

.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--grad-green);
  color: #fff;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.tag__flag {
  width: 20px;
  height: 15px;
  flex: none;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.6);
  object-fit: cover;
}
.tag-row .tag:nth-child(2n) { background: var(--grad-gold); color: var(--ink); }
.tag-row .tag:nth-child(3n) { background: linear-gradient(135deg, #4fb8c9, #0f7a86); }

/* Bio / founder */
.bio-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 46px;
  align-items: start;
}
.bio-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 6px solid var(--gold-dark);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 100px;
}
.bio-card__mark {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--grad-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.bio-card__mark svg { width: 46px; height: 46px; }
.bio-card dl { margin: 18px 0 0; }
.bio-card dt {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-dark);
  font-weight: 800;
  margin-top: 14px;
}
.bio-card dd { margin: 4px 0 0; color: var(--muted); }

.cv-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.cv-list li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.95rem;
}
.cv-list li:last-child { border-bottom: none; }
.cv-list .yr { font-weight: 800; color: var(--green-dark); }

.spirit-point {
  margin-bottom: 30px;
}
.spirit-point__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--grad-green);
  color: #fff;
  font-weight: 800;
  margin-right: 12px;
  font-family: var(--serif);
  box-shadow: var(--shadow-sm);
}
.grid--2 .card:nth-child(2n) .spirit-point__num { background: var(--grad-gold); }

/* ==========================================================================
   Forms (contact)
   ========================================================================== */

.form-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 6px solid;
  border-image: var(--grad-green) 1;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
}

.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px var(--green-light);
}
.field textarea { min-height: 170px; resize: vertical; }
.field-hint { font-size: 0.85rem; color: var(--muted); margin-top: 6px; }
.field-required { color: var(--gold-dark); }
.field input[type="file"] {
  padding: 10px 12px;
  font-size: 0.9rem;
}

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.privacy-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--green-light);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 28px;
  color: var(--green-dark);
  font-size: 0.94rem;
}
.privacy-note svg { width: 24px; height: 24px; flex-shrink: 0; margin-top: 2px; }

.form-alert {
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 20px;
  font-weight: 700;
  display: none;
}
.form-alert.is-visible { display: block; }
.form-alert--ok { background: var(--green-light); color: var(--green-dark); }
.form-alert--error { background: #fdeceb; color: #b3271f; }

.confirm {
  text-align: center;
  padding: 40px 20px;
}
.confirm__mark {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--grad-green);
  color: #fff;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--ink);
  color: #cfe0d2;
  padding: 60px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.footer-brand__mark { width: 40px; height: 40px; }
.footer-brand strong { font-family: var(--serif); color: #fff; font-size: 1.1rem; }
.site-footer p { color: #a9bcac; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { color: #cfe0d2; transition: color 0.15s ease; }
.footer-links a:hover { color: #7fe0a4; }
.footer-safeguard {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 40px;
  padding: 18px 20px;
  background: rgba(227, 167, 46, 0.1);
  border: 1px solid rgba(227, 167, 46, 0.3);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  line-height: 1.55;
  color: #e8d9b8;
}
.footer-safeguard svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--gold); }
.footer-safeguard a { color: #f3c65c; font-weight: 700; text-decoration: underline; }
.footer-safeguard a:hover { color: #ffdb85; }
.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: #8ea391;
}

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   404
   ========================================================================== */

.notfound {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__globe { display: none; }
  .bio-grid { grid-template-columns: 1fr; }
  .bio-card { position: static; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 20px 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav__menu.is-open { max-height: 620px; }
  .nav__menu a { padding: 13px 14px; }
  .nav__menu .nav__cta { margin-left: 0; text-align: center; }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .cv-list li { grid-template-columns: 1fr; gap: 2px; }
  .work { grid-template-columns: 48px 1fr; }
  .form-wrap { padding: 26px; }
}
