/* ==========================================================================
   Diego Rosado Consulting
   Single stylesheet. No build step. Edit the tokens below to retheme.
   Layout: left aligned, one content column (max 72rem), full width colour
   bands for the "Three wins" and footer sections. Navy and white carry the
   page; gold is used for rules, numerals and small accents only.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --navy: #162a3e;        /* sampled from the logo */
  --navy-deep: #0f1e2e;
  --ink: #1c2633;         /* body text */
  --muted: #5b6677;       /* secondary text, 5.8:1 on white */
  --paper: #ffffff;
  --paper-2: #f3f5f8;     /* cool off white for alternating bands */
  --line: #dce1e8;
  --gold: #b19a62;        /* sampled from the logo; rules and accents */
  --gold-text: #836e3e;   /* gold for text on light backgrounds, 4.9:1 */
  --gold-light: #d9c48e;  /* gold for text on navy, 8.5:1 */
  --on-navy: #ffffff;
  --on-navy-soft: #c9d2de;

  --font-display: "Montserrat", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;

  --measure: 62ch;
  --container: 72rem;
  --gutter-left: max(1.25rem, env(safe-area-inset-left, 0px));
  --gutter-right: max(1.25rem, env(safe-area-inset-right, 0px));
  --section: clamp(4rem, 9vw, 7.5rem);
  --radius: 4px;
  --header-h: 4.5rem;
}

/* ---------- Fonts (local files, SIL Open Font License) ---------- */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/montserrat-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/montserrat-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/source-serif-4-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/source-serif-4-latin-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/source-serif-4-latin-600-normal.woff2") format("woff2");
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.125rem, 1.35rem + 3.1vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}
p { margin: 0; }
p + p { margin-top: 1em; }

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}
.band-navy :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--gold-light);
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-left: var(--gutter-left);
  padding-right: var(--gutter-right);
}

.section { padding-block: var(--section); }
.section-intro {
  max-width: var(--measure);
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--muted);
}

.measure { max-width: var(--measure); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: var(--gutter-left);
  top: -100%;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--navy);
  color: var(--on-navy);
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--radius) var(--radius);
}
.skip-link:focus { top: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 2.75rem; width: auto; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
}
.site-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--navy);
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--gold); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.55rem 0.8rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--navy);
  cursor: pointer;
}
.nav-toggle-bars {
  position: relative;
  width: 18px;
  height: 2px;
  background: var(--navy);
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--navy);
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 47.99rem) {
  .brand img { height: 2.25rem; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(22, 42, 62, 0.08);
  }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding-block: 0.5rem;
    padding-left: var(--gutter-left);
    padding-right: var(--gutter-right);
  }
  .site-nav a {
    display: block;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.0625rem;
  }
  .site-nav li:last-child a { border-bottom: 0; }
  /* Closed by default when JavaScript is available; always open without it. */
  .js .site-nav:not(.is-open) { display: none; }
  .no-js .nav-toggle { display: none; }
  .no-js .site-nav {
    position: static;
    box-shadow: none;
    border-bottom: 0;
  }
  .no-js .header-inner { flex-wrap: wrap; }
  .no-js .site-nav { flex-basis: 100%; }
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid var(--navy);
  background: var(--navy);
  color: var(--on-navy);
  transition: background-color 150ms ease, border-color 150ms ease;
}
.button:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.button-secondary {
  background: transparent;
  color: var(--navy);
}
.button-secondary:hover { background: var(--paper-2); border-color: var(--navy); }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 2rem;
}
.actions-note {
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(3.5rem, 8vw, 7rem) clamp(3.5rem, 8vw, 6.5rem);
}
.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: end;
}
.hero h1 { max-width: 20ch; }
.hero .lede {
  max-width: var(--measure);
  margin-top: 1.5rem;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  line-height: 1.55;
  color: var(--ink);
}
.hero-aside {
  border-left: 3px solid var(--gold);
  padding-left: 1.5rem;
  max-width: 34ch;
}
.hero-aside .tagline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  line-height: 1.2;
  color: var(--navy);
}
.hero-aside p { margin-top: 0.9rem; color: var(--muted); font-size: 1rem; }
.hero-aside a { display: inline-block; margin-top: 0.9rem; font-family: var(--font-display); font-weight: 600; font-size: 0.9375rem; }

@media (min-width: 60rem) {
  .hero-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 4rem; align-items: center; }
  .hero-aside { justify-self: end; }
}

/* ---------- Services ---------- */
.service-list {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.service {
  display: grid;
  gap: 0.75rem 3rem;
  padding-block: 2rem;
  border-bottom: 1px solid var(--line);
}
.service-summary {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--navy);
  margin-top: 0.5rem;
}
.service-body { max-width: var(--measure); min-width: 0; }
.service-body p + p { margin-top: 0.75em; }
@media (min-width: 48rem) {
  .service { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); padding-block: 2.5rem; }
}

/* ---------- How it works ---------- */
.band-soft { background: var(--paper-2); }
.steps {
  list-style: none;
  counter-reset: step;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  gap: 2.5rem 3rem;
}
.step {
  counter-increment: step;
  min-width: 0;
  padding-top: 1.25rem;
  border-top: 2px solid var(--gold);
}
.step::before {
  content: counter(step);
  display: block;
  font-family: var(--font-body);
  font-size: 2.25rem;
  line-height: 1;
  color: var(--gold-text);
  margin-bottom: 1rem;
  font-variant-numeric: lining-nums;
}
.step h3 { margin-bottom: 0.6rem; }
.step p { color: var(--ink); }
@media (min-width: 48rem) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Three wins ---------- */
.band-navy {
  background: var(--navy);
  color: var(--on-navy);
}
.band-navy h2 { color: var(--on-navy); }
.band-navy .section-intro { color: var(--on-navy-soft); }
.band-navy a { color: var(--on-navy); }
.wins {
  list-style: none;
  margin: 3.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 2rem 0;
}
.win {
  min-width: 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(177, 154, 98, 0.55);
}
.win h3 {
  color: var(--gold-light);
  font-size: 1.125rem;
  margin-bottom: 0.6rem;
}
.win p { color: var(--on-navy); }
.wins-close {
  margin-top: 3rem;
  max-width: var(--measure);
  padding-left: 1.5rem;
  border-left: 3px solid var(--gold);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--on-navy);
}
@media (min-width: 48rem) {
  .wins { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 3rem; }
}

/* ---------- Founder ---------- */
.founder-grid {
  display: grid;
  gap: 2.5rem 4rem;
  align-items: start;
}
.founder-mark {
  width: min(100%, 16rem);
  padding: 1.75rem;
  border: 1px solid var(--line);
  background: var(--paper);
}
.founder-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--navy);
  margin-top: 1.5rem;
}
.founder-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--gold-text);
  margin-top: 0.15rem;
}
.founder-text { max-width: var(--measure); min-width: 0; }
.founder-text h2 { margin-bottom: 1.25rem; }
@media (min-width: 48rem) {
  .founder-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: 2.5rem 4rem;
  align-items: start;
}
.contact-text { max-width: var(--measure); min-width: 0; }
.contact-text .actions { margin-top: 1.75rem; }
.contact-details {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  min-width: 0;
}
.contact-details li {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.contact-details .label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
.contact-details .value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--navy);
  overflow-wrap: anywhere;
}
.contact-details .value a { text-decoration-color: var(--gold); }
@media (min-width: 48rem) {
  .contact-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: var(--on-navy-soft);
  border-top: 3px solid var(--gold);
  padding-block: 3rem 2.5rem;
  font-size: 0.9375rem;
}
.footer-grid {
  display: grid;
  gap: 2rem 3rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--on-navy);
}
.footer-brand small {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.9375rem;
  color: var(--on-navy-soft);
}
.site-footer a { color: var(--on-navy); text-decoration-color: rgba(255, 255, 255, 0.4); }
.site-footer a:hover { text-decoration-color: var(--gold-light); }
.footer-nav ul,
.footer-contact ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.footer-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--gold-light);
  margin-bottom: 0.75rem;
}
.footer-legal {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  font-size: 0.875rem;
}
@media (min-width: 48rem) {
  .footer-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .nav-toggle, .skip-link { display: none; }
  .band-navy, .site-footer { background: #fff; color: #000; }
  a { color: #000; }
}
