/* KuyaYos — site-wide styles
 * Brand: navy-teal #1a6b8a (structure) + warm orange #e87722 (action).
 * Typography: Nunito Sans (self-hosted).
 * No external resources, no inline styles, strict CSP-friendly.
 */

/* Self-hosted Nunito Sans variable font.
 * If /assets/fonts/NunitoSans-Variable.woff2 isn't present yet, the system
 * fallback stack below keeps the site readable. See README for setup.
 */
@font-face {
  font-family: 'Nunito Sans';
  src: url('/assets/fonts/NunitoSans-Variable.woff2') format('woff2-variations'),
       url('/assets/fonts/NunitoSans-Variable.woff2') format('woff2');
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito Sans';
  src: url('/assets/fonts/NunitoSans-Italic-Variable.woff2') format('woff2-variations'),
       url('/assets/fonts/NunitoSans-Italic-Variable.woff2') format('woff2');
  font-weight: 200 1000;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Brand */
  --brand: #1a6b8a;
  --brand-700: #155674;
  --brand-800: #0f445d;
  --brand-900: #0a2f42;
  --brand-50: #e7f1f5;
  --brand-100: #cfe3eb;

  --action: #e87722;
  --action-700: #cb5f0d;
  --action-800: #a04a08;
  --action-50: #fdf0e4;

  /* Neutrals */
  --ink: #0f1c24;
  --ink-soft: #324a58;
  --slate-700: #4b5d68;
  --slate-500: #768691;
  --slate-300: #c2cdd4;
  --slate-200: #dde4e9;
  --slate-100: #eef2f5;
  --slate-50: #f6f8f9;
  --paper: #ffffff;
  --bg: #f8fafb;

  /* Effects */
  --radius: 0.875rem;
  --radius-sm: 0.5rem;
  --radius-lg: 1.25rem;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(15, 28, 36, 0.06);
  --shadow: 0 12px 32px -12px rgba(15, 28, 36, 0.15);
  --shadow-lg: 0 24px 56px -20px rgba(15, 28, 36, 0.22);
  --focus-ring: 0 0 0 3px rgba(232, 119, 34, 0.45);
  --focus-color: var(--action);

  /* Layout */
  --max: 1200px;
  --max-narrow: 760px;

  /* Type */
  --font-display: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  --font-system: var(--font-display);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern', 'liga', 'calt';
}

h1, h2, h3, h4 {
  color: var(--brand-900);
  line-height: 1.15;
  margin: 0 0 0.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 4.2vw + 1rem, 3.75rem); }
h2 { font-size: clamp(1.75rem, 2.4vw + 1rem, 2.5rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.0625rem; font-weight: 700; }

p {
  margin: 0 0 1rem;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--brand-800);
}

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

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

ul, ol {
  padding: 0;
  margin: 0;
  list-style: none;
}

/* Skip link ------------------------------------------------- */

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--brand);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  z-index: 100;
  transition: top 0.15s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 1rem;
}

/* Layout ---------------------------------------------------- */

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

.container--narrow {
  max-width: var(--max-narrow);
}

.section {
  padding: 4rem 0;
}

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

.section__lede {
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 1.0625rem;
  margin-bottom: 2.25rem;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--action-700);
  background: var(--action-50);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  margin: 0 0 1rem;
}

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

/* Buttons --------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn--small {
  padding: 0.55rem 1rem;
  font-size: 0.9375rem;
}

.btn--large {
  padding: 1rem 1.7rem;
  font-size: 1.0625rem;
}

.btn--primary {
  background: var(--action);
  color: #fff;
}

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

.btn--secondary {
  background: var(--brand);
  color: #fff;
}

.btn--secondary:hover {
  background: var(--brand-800);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}

.btn--ghost:hover {
  background: var(--brand);
  color: #fff;
}

.btn--ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

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

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

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--slate-200);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(150%) blur(8px);
  -webkit-backdrop-filter: saturate(150%) blur(8px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--brand-900);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

/* Text wordmark — split-colour "Kuya" + "Yos". Sharper than rendering
 * the full logo image at small sizes, and matches the brand spec. The
 * /assets/logo.png file is kept in the repo for og-image / future hero
 * usage but isn't referenced from the brand element any more. */

.brand__word {
  display: inline-flex;
  align-items: baseline;
  font-weight: 900;
  font-size: clamp(1.5rem, 0.9vw + 1.25rem, 1.85rem);
  letter-spacing: -0.025em;
  line-height: 1;
}

.brand__word-kuya {
  color: var(--brand);
}

.brand__word-yos {
  color: var(--action);
}

/* Footer override — "Kuya" reads as white on navy, "Yos" stays orange. */
.site-footer .brand__word-kuya {
  color: #fff;
}

.site-footer .brand__word-yos {
  color: var(--action);
}

/* Legacy / fallback styles kept for any old markup that still ships
 * with .brand__mark or .brand__logo. New brand markup uses
 * .brand__word with split children. */
.brand__mark,
.brand__logo {
  display: none;
}

.brand--footer {
  font-size: 1.125rem;
}

.brand--footer .brand__word {
  font-size: clamp(1.65rem, 1vw + 1.25rem, 2rem);
}

/* Nav toggle (no-JS checkbox hack) */

.nav-toggle {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.nav-toggle-label {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px 9px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid var(--slate-200);
  background: var(--paper);
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--brand-900);
  border-radius: 2px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.nav-toggle:focus-visible + .nav-toggle-label {
  outline: 3px solid var(--focus-color);
  outline-offset: 2px;
}

.site-nav {
  display: none;
  position: absolute;
  /* Drops below the header content. Using 100% of the header height
   * (whatever the logo decides it should be) avoids the brittle pixel
   * value that was here before. */
  top: 100%;
  right: 0;
  left: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--slate-200);
  padding: 1rem 1.25rem 1.25rem;
  box-shadow: var(--shadow);
}

.nav-toggle:checked ~ .site-nav {
  display: block;
}

.site-nav__list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.site-nav__list a {
  display: block;
  padding: 0.75rem 0.6rem;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.site-nav__list a:hover {
  background: var(--slate-50);
  color: var(--brand);
}

.site-nav__list a[aria-current="page"] {
  color: var(--brand);
}

.site-nav__list .btn {
  margin-top: 0.5rem;
}

@media (min-width: 880px) {
  .nav-toggle-label {
    display: none;
  }
  .site-nav {
    display: block;
    position: static;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }
  .site-nav__list {
    flex-direction: row;
    gap: 0.25rem;
    align-items: center;
  }
  .site-nav__list a {
    padding: 0.55rem 0.95rem;
  }
  .site-nav__list .btn {
    margin-top: 0;
    margin-left: 0.4rem;
  }
}

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

.hero {
  position: relative;
  background: var(--brand);
  color: #fff;
  padding: 3.5rem 0 4rem;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  /* subtle radial accent — orange glow upper-right */
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(closest-side, rgba(232, 119, 34, 0.28), transparent 75%);
  z-index: -1;
}

.hero::after {
  /* subtle radial accent — deeper teal lower-left */
  content: "";
  position: absolute;
  bottom: -300px;
  left: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(closest-side, rgba(10, 47, 66, 0.6), transparent 70%);
  z-index: -1;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
}

.hero__copy h1 {
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
  font-weight: 900;
}

.hero__copy h1 em {
  font-style: normal;
  color: var(--action);
}

.hero .lede {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 56ch;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.hero__chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hero__chips li::before {
  content: "✓";
  color: var(--action);
  font-weight: 800;
}

@media (min-width: 980px) {
  .hero {
    padding: 5rem 0 6rem;
  }
  .hero__inner {
    grid-template-columns: 1.1fr 1fr;
    gap: 3.5rem;
  }
}

/* Hero starter form ----------------------------------------- */

.hero-starter {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  color: var(--ink);
  position: relative;
}

.hero-starter__lead {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 0.25rem;
}

.hero-starter__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hero-starter__field label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.hero-starter__field select {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  padding: 0.85rem 1rem;
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-sm);
  background-color: var(--paper);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--brand) 50%),
    linear-gradient(-45deg, transparent 50%, var(--brand) 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.75rem;
  min-height: 52px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.hero-starter__field select:hover {
  border-color: var(--slate-300);
}

.hero-starter__field select:focus-visible {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--focus-ring);
}

.hero-starter__submit {
  margin-top: 0.4rem;
  width: 100%;
}

.hero-starter__small {
  font-size: 0.8125rem;
  color: var(--slate-500);
  margin: 0.4rem 0 0;
  text-align: center;
}

@media (min-width: 540px) {
  .hero-starter {
    padding: 2rem;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1rem;
  }
  .hero-starter__lead,
  .hero-starter__submit,
  .hero-starter__small {
    grid-column: 1 / -1;
  }
}

/* Social-proof ribbons -------------------------------------- */

.ribbon {
  background: var(--paper);
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
  padding: 1.75rem 0;
}

.ribbon--tinted {
  background: var(--brand-50);
  border-color: var(--brand-100);
}

.ribbon__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.ribbon__label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--slate-500);
  margin: 0;
}

.ribbon__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  width: 100%;
}

.ribbon__logo-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  min-width: 110px;
  padding: 0 1rem;
  background: var(--slate-100);
  color: var(--slate-500);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.ribbon__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: center;
}

.ribbon__stars {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  color: var(--action);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  line-height: 1;
}

.ribbon__rating-text {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--brand-900);
}

.ribbon__rating-source {
  color: var(--slate-500);
  font-weight: 500;
}

@media (min-width: 720px) {
  .ribbon__inner {
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
  }
  .ribbon__label {
    flex-shrink: 0;
  }
}

/* How it works ---------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  counter-reset: step;
  margin-top: 1.25rem;
}

.step {
  background: var(--paper);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.step:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--slate-300);
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--brand);
  color: #fff;
  border-radius: 12px;
  font-weight: 900;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.step:nth-child(2) .step__num {
  background: var(--action);
}

.step__title {
  margin-bottom: 0.4rem;
}

.step p {
  color: var(--ink-soft);
  margin: 0;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

/* Trades ---------------------------------------------------- */

.trades {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.trade-card {
  background: var(--paper);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.trade-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--slate-300);
}

.trade-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand);
  margin-bottom: 0.85rem;
}

.trade-card h3 {
  margin-bottom: 0.35rem;
}

.trade-card p {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  margin: 0;
}
/* Mobile dropdown for the trades grid. Markup is <details open> by default so
 * it works without JS. A small inline script in index.html removes `open` on
 * viewports < 768px so users tap to expand. Desktop hides the <summary>. */

.trades-toggle {
  margin-top: 1.25rem;
}

.trades-toggle .trades {
  margin-top: 0.85rem;
}

.trades-toggle__summary {
  list-style: none;
  cursor: pointer;
  padding: 0.95rem 1.15rem;
  background: var(--paper);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  font-weight: 700;
  color: var(--brand-900);
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.trades-toggle__summary::-webkit-details-marker {
  display: none;
}

.trades-toggle__summary::after {
  content: "";
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
  flex-shrink: 0;
}

.trades-toggle[open] .trades-toggle__summary::after {
  transform: rotate(-135deg);
}

.trades-toggle__summary:hover {
  background: var(--brand-50);
  border-color: var(--brand-100);
}

.trades-toggle__summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

@media (min-width: 768px) {
  .trades-toggle__summary {
    display: none;
  }
  .trades-toggle .trades {
    margin-top: 1.25rem;
  }
}

/* CTA repeat (dual button) ---------------------------------- */

.cta-repeat {
  background: var(--brand);
  color: #fff;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.cta-repeat::before {
  content: "";
  position: absolute;
  top: -250px;
  right: -150px;
  width: 600px;
  height: 600px;
  background: radial-gradient(closest-side, rgba(232, 119, 34, 0.22), transparent 75%);
  z-index: -1;
}

.cta-repeat__inner {
  text-align: center;
  position: relative;
}

.cta-repeat h2 {
  color: #fff;
  margin-bottom: 0.6rem;
}

.cta-repeat p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.0625rem;
  max-width: 52ch;
  margin: 0 auto 1.5rem;
}

.cta-repeat__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  align-items: center;
}

/* FAQ (used on /faq/ page) ---------------------------------- */

.faq {
  background: var(--paper);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.faq[open] {
  border-color: var(--brand-100);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.4rem;
  font-weight: 700;
  color: var(--brand-900);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 1.0625rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
  flex-shrink: 0;
}

.faq[open] summary::after {
  transform: rotate(-135deg);
}

.faq summary:hover {
  background: var(--brand-50);
}

.faq__body {
  padding: 0 1.4rem 1.3rem;
  color: var(--ink-soft);
}

.faq__body p {
  margin: 0;
}

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

.site-footer {
  background: var(--brand-900);
  color: rgba(255, 255, 255, 0.84);
  padding: 3.5rem 0 1.5rem;
  margin-top: 0;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-footer a:hover {
  color: var(--action);
}

.site-footer .brand,
.site-footer .brand__word {
  color: #fff;
}

.site-footer .brand__mark {
  background: var(--action);
}

.site-footer .brand__mark::after {
  background: var(--brand-50);
}

.site-footer .muted {
  color: rgba(255, 255, 255, 0.6);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 1.5fr 1.5fr 1fr 1fr;
    gap: 2.5rem;
  }
}

.nap p {
  margin: 0 0 0.25rem;
  font-style: normal;
}

.footer-nav__title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 0.85rem;
  font-weight: 800;
}

.footer-nav ul,
.footer-social ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.site-footer__base {
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.site-footer__base p {
  margin: 0;
}

.site-footer__base a {
  font-size: 0.9rem;
}


/* Form page header auto-hide -------------------------------- */
.form-header-autohide .site-header {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  will-change: transform;
}

.form-header-autohide.form-header-is-hidden .site-header {
  transform: translateY(-100%);
  box-shadow: none;
}

.form-header-autohide:has(.nav-toggle:checked) .site-header {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .form-header-autohide .site-header {
    transition: none;
  }
}

/* Selection + high-contrast --------------------------------- */

::selection {
  background: var(--action);
  color: #fff;
}

@media (prefers-contrast: more) {
  .trade-card,
  .step,
  .faq {
    border-color: var(--ink-soft);
  }
}
/* Trades dropdown fix:
   desktop = always visible,
   mobile = closed by default unless tapped open */
@media (min-width: 768px) {
  #trades details.trades-toggle {
    display: block;
  }

  #trades details.trades-toggle > summary.trades-toggle__summary {
    display: none !important;
  }

  #trades details.trades-toggle > ul.trades,
  #trades details.trades-toggle:not([open]) > ul.trades,
  #trades details.trades-toggle[open] > ul.trades {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem;
    margin-top: 1.25rem;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

@media (max-width: 767px) {
  #trades details.trades-toggle > summary.trades-toggle__summary {
    display: flex !important;
  }

  #trades details.trades-toggle:not([open]) > ul.trades {
    display: none !important;
  }

  #trades details.trades-toggle[open] > ul.trades {
    display: grid !important;
  }
}


/* === KuyaYos trades dropdown final fix START === */
/* Desktop = jobs always visible.
   Mobile = closed by default; opens when the Browse all trades details is tapped. */

@media (min-width: 768px) {
  #trades .trades-toggle {
    display: none !important;
  }

  #trades ul.trades {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem;
    margin-top: 1.25rem;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

@media (max-width: 767px) {
  #trades .trades-toggle {
    display: block !important;
    margin-top: 1.25rem;
  }

  #trades .trades-toggle__summary {
    display: flex !important;
  }

  #trades .trades-toggle:not([open]) + ul.trades {
    display: none !important;
  }

  #trades .trades-toggle[open] + ul.trades {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem;
    margin-top: 0.85rem;
  }
}
/* === KuyaYos trades dropdown final fix END === */

