/* ==========================================================================
   Juan Anzures Jr. — professional site
   One stylesheet. No frameworks, no dependencies, no web fonts.
   Typography-led, generous whitespace, calm and professional.
   ========================================================================== */

/* ---- Tokens -------------------------------------------------------------- */
:root {
  /* Color */
  --bg:          #ffffff;
  --bg-alt:      #f6f6f4;
  --bg-ink:      #14171c;
  --ink:         #101317;
  --ink-2:       #333a44;
  --muted:       #5d6672;
  --line:        #e6e5e1;
  --line-2:      #d6d5d0;
  --accent:      #1f4b7f;
  --accent-dark: #163a64;
  --accent-soft: #eef3f9;
  --on-ink:      #f5f5f3;
  --on-ink-mute: #a4acb8;
  --on-ink-line: #2c323b;
  --focus:       #2f6fbf;

  /* Type — system stack: zero network requests, native feel on every OS */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;

  /* Rhythm */
  --maxw:        1120px;
  --maxw-text:   68ch;
  --pad:         clamp(1.25rem, 5vw, 2.5rem);
  --section-y:   clamp(4rem, 10vw, 8rem);
  --radius:      14px;
  --radius-sm:   10px;
}

/* ---- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(1.0625rem, 1.02rem + 0.22vw, 1.1875rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 650;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 1.6rem + 4.2vw, 4.25rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.875rem, 1.4rem + 2.1vw, 2.875rem); }
h3 { font-size: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem); line-height: 1.25; }
h4 { font-size: 1.0625rem; letter-spacing: -0.01em; }

p  { margin: 0 0 1.15rem; max-width: var(--maxw-text); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.15rem; padding-left: 1.25rem; }
li { margin-bottom: .4rem; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 3px;
}

hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---- Layout -------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}
/* Narrow reading column. The container keeps the full page width so the left
   gutter matches every other section; the children carry the measure. */
.wrap--narrow > * { max-width: 780px; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 7vw, 5rem); }
.section--alt { background: var(--bg-alt); }
.section--ink { background: var(--bg-ink); color: var(--on-ink); }
.section--ink h2, .section--ink h3 { color: var(--on-ink); }
.section--ink p { color: var(--on-ink-mute); }
.section--line { border-top: 1px solid var(--line); }

.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head p { color: var(--muted); font-size: 1.0625em; }

.eyebrow {
  display: block;
  margin-bottom: 1rem;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.section--ink .eyebrow { color: var(--on-ink-mute); }

.lede {
  font-size: clamp(1.1875rem, 1.05rem + 0.7vw, 1.5rem);
  line-height: 1.5;
  color: var(--ink-2);
  letter-spacing: -0.012em;
}

.muted { color: var(--muted); }

/* Skip link */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: .75rem 1.25rem;
  background: var(--ink);
  color: #fff;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip:focus { left: 0; color: #fff; }

/* ---- Header / navigation ------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.brand {
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}
.brand:hover { color: var(--ink); text-decoration: none; }

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-list li { margin: 0; }
.nav-list a {
  display: inline-block;
  padding: .35rem 0;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
}
.nav-list a:hover { color: var(--ink); text-decoration: none; }
.nav-list a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 0 var(--accent);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  padding: .5rem .75rem;
  margin-right: -.75rem;
  font: inherit;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--ink);
  background: none;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle .bars,
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.nav-toggle .bars { position: relative; }
.nav-toggle .bars::before,
.nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after  { top: 6px; }

@media (max-width: 880px) {
  .nav { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    display: none;
    flex-basis: 100%;
    border-top: 1px solid var(--line);
    padding-block: .5rem 1.25rem;
  }
  .nav-menu.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a {
    padding: .85rem .25rem;
    font-size: 1.0625rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-list li:last-child a { border-bottom: 0; }
  .nav-list a[aria-current="page"] { box-shadow: inset 3px 0 0 0 var(--accent); padding-left: .85rem; }
}

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .9rem 1.6rem;
  font-size: 1rem;
  font-weight: 550;
  line-height: 1.2;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  border-radius: 100px;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { text-decoration: none; }
.btn svg { width: 16px; height: 16px; flex: none; }

.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--accent); color: #fff; }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--bg-alt); color: var(--ink); border-color: var(--ink); }

.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--bg-alt); color: var(--ink); }

.btn--outline-light { background: transparent; color: var(--on-ink); border-color: var(--on-ink-line); }
.btn--outline-light:hover { background: rgba(255,255,255,.08); color: var(--on-ink); border-color: var(--on-ink-mute); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .875rem;
  margin-top: 2.25rem;
}

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 550;
  font-size: .9375rem;
}
.link-arrow svg { width: 15px; height: 15px; transition: transform .18s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---- Hero ---------------------------------------------------------------- */
.hero { padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3.5rem, 8vw, 6rem); }
.hero h1 { max-width: 16ch; margin-bottom: .55em; }
.hero .lede { max-width: 46ch; }
.hero-note {
  margin-top: 1.25rem;
  max-width: 46ch;
  font-size: 1.0625rem;
  color: var(--muted);
}

/* Page header (interior pages) */
.page-head { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 5vw, 3.5rem); }
.page-head h1 { max-width: 18ch; font-size: clamp(2.25rem, 1.5rem + 3.4vw, 3.75rem); }
.page-head .lede { max-width: 52ch; }

/* ---- Cards & grids ------------------------------------------------------- */
.grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }

.card {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.section--alt .card { background: #fff; }
.card h3 { margin-bottom: .5rem; }
.card p  { color: var(--muted); font-size: .9875em; margin-bottom: 0; }

.card--ink {
  background: #1b1f26;
  border-color: var(--on-ink-line);
}
.card--ink h3 { color: var(--on-ink); }
.card--ink p  { color: var(--on-ink-mute); }

/* Stat / result cards */
.stat { display: flex; flex-direction: column; }
.stat .stat-value {
  display: block;
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--accent);
  margin-bottom: .6rem;
}
.stat .stat-label {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  margin-bottom: .4rem;
  color: var(--ink);
}
.stat p { font-size: .9375rem; color: var(--muted); }

.stat--text .stat-value {
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* ---- Numbered / principle list ------------------------------------------ */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding: clamp(1.75rem, 4vw, 2.5rem) 0 clamp(1.75rem, 4vw, 2.5rem) clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line);
  margin: 0;
}
.steps > li:last-child { border-bottom: 1px solid var(--line); }
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: clamp(1.75rem, 4vw, 2.5rem);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.steps h3 { margin-bottom: .5rem; }
.steps p  { color: var(--muted); }

/* ---- Tag list ------------------------------------------------------------ */
.tags { display: flex; flex-wrap: wrap; gap: .625rem; margin: 0; padding: 0; list-style: none; }
.tags li {
  margin: 0;
  padding: .5rem 1rem;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--accent-soft);
  border-radius: 100px;
}
.section--ink .tags li { background: #21262e; color: var(--on-ink); }

/* ---- Checklist ----------------------------------------------------------- */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: .85rem;
  color: var(--ink-2);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .58em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.checklist strong { color: var(--ink); font-weight: 600; }

/* ---- Testimonials -------------------------------------------------------- */
.quote {
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 3vw, 2.25rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.quote blockquote {
  margin: 0 0 1.25rem;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.5;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.quote blockquote p { max-width: none; }
.quote figcaption {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted);
}
.quote figcaption svg { width: 16px; height: 16px; flex: none; color: var(--accent); }

/* Inline pull quote used inside body copy */
.pullquote {
  margin: clamp(2rem, 4vw, 3rem) 0;
  padding-left: clamp(1.25rem, 3vw, 2rem);
  border-left: 3px solid var(--accent);
}
.pullquote blockquote {
  margin: 0 0 .75rem;
  font-size: clamp(1.1875rem, 1.05rem + 0.6vw, 1.4375rem);
  line-height: 1.45;
  letter-spacing: -0.018em;
  color: var(--ink);
}
.pullquote blockquote p { max-width: none; margin: 0; }
.pullquote figcaption { font-size: .875rem; color: var(--muted); }

/* ---- Prose blocks -------------------------------------------------------- */
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.prose h3 { margin-top: 2rem; margin-bottom: .5rem; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }

/* ---- Split (label + content) --------------------------------------------- */
.split {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .split { grid-template-columns: minmax(200px, 280px) 1fr; }
}
.split-aside h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }

/* ---- Call-to-action band ------------------------------------------------- */
.cta-band h2 { max-width: 20ch; }
.cta-band p  { max-width: 52ch; }

/* ---- Footer -------------------------------------------------------------- */
.site-footer {
  padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.footer-top {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  margin-bottom: 3rem;
}
@media (min-width: 720px) {
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer-top h2 {
  font-size: 1.125rem;
  letter-spacing: -0.015em;
  margin-bottom: .75rem;
}
.footer-top p { font-size: .9375rem; color: var(--muted); max-width: 34ch; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: .6rem; }
.footer-list a { font-size: .9375rem; color: var(--ink-2); }
.footer-list a:hover { color: var(--accent); }
.footer-list a svg { width: 15px; height: 15px; display: inline-block; vertical-align: -2px; margin-right: .45rem; color: var(--muted); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-size: .875rem;
  color: var(--muted);
}
.footer-bottom p { margin: 0; font-size: inherit; }

/* ---- Utilities ----------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.stack-lg > * + * { margin-top: clamp(2rem, 4vw, 3rem); }

/* ---- Print --------------------------------------------------------------- */
@media print {
  .site-header, .nav-toggle, .btn-row, .skip { display: none !important; }
  body { font-size: 11pt; }
  .section { padding-block: 1.5rem; }
}
