/* ============================================================
   CENTRAL OHIO TALENT NETWORK — Design System v2
   Navy #0A2540 · Gold #F2B01E · White · Paper
   Archivo (display) + Public Sans (body)
   ============================================================ */

:root {
  /* Brand */
  --navy: #0A2540;
  --navy-deep: #071A30;
  --gold: #F2B01E;
  --gold-deep: #D99A0B;
  --white: #FFFFFF;
  --paper: #F7F8F9;

  /* Text */
  --ink: #16283A;
  --ink-soft: #33475B;
  --ink-muted: #5B6B7B;
  --ink-faint: #8A99A8;
  --text-muted-on-navy: #A9BACB;
  --line-on-navy: rgba(255, 255, 255, 0.16);

  /* Lines & surfaces */
  --line: #E4E9EE;
  --line-strong: #D3DBE3;
  --surface: #FFFFFF;
  --surface-raise: #FBFCFD;

  /* Type */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Public Sans", "Segoe UI", Arial, sans-serif;
  --text-xs: clamp(0.78rem, 0.74rem + 0.2vw, 0.85rem);
  --text-sm: clamp(0.88rem, 0.85rem + 0.2vw, 0.95rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --text-lg: clamp(1.15rem, 1.05rem + 0.5vw, 1.3rem);
  --text-xl: clamp(1.4rem, 1.2rem + 1vw, 1.9rem);
  --text-2xl: clamp(1.8rem, 1.4rem + 1.9vw, 2.6rem);
  --text-3xl: clamp(2.2rem, 1.6rem + 2.8vw, 3.4rem);

  /* Spacing (4px system) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Shape & motion */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(10, 37, 64, 0.06);
  --shadow-md: 0 4px 14px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 14px 36px rgba(10, 37, 64, 0.14);
  --transition: 180ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ============ BASE ============ */

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: var(--text-3xl);
}
h2 {
  font-size: var(--text-2xl);
}
h3 {
  font-size: var(--text-lg);
}

p {
  text-wrap: pretty;
}

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--gold-deep);
}

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

.container {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(var(--space-5), 4vw, var(--space-10));
}

/* ============ HEADER ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  max-width: 1120px;
  margin-inline: auto;
  padding: var(--space-3) clamp(var(--space-5), 4vw, var(--space-10));
  display: flex;
  align-items: center;
  gap: var(--space-5);
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

.brand__mark {
  flex: none;
  width: 38px;
  height: 38px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-base);
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--navy);
}

.wordmark em {
  font-style: normal;
  color: var(--gold-deep);
}

.site-header__spacer {
  flex: 1;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9999px;
  padding: 3px;
}

.lang-switch button {
  appearance: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  padding: var(--space-1) var(--space-3);
  border-radius: 9999px;
  transition: color var(--transition), background var(--transition);
}

.lang-switch button[aria-pressed="true"] {
  background: var(--navy);
  color: var(--white);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--navy);
  text-decoration: none;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--line-strong);
  border-radius: 9999px;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}

.header-phone:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.header-phone svg {
  color: var(--gold-deep);
  flex: none;
}

.header-phone:hover svg {
  color: var(--gold);
}

/* ============ BUTTONS ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-base);
  text-decoration: none;
  padding: var(--space-4) var(--space-8);
  border-radius: 9999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition),
    background var(--transition), border-color var(--transition), color var(--transition);
}

.btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-deep);
  box-shadow: 0 6px 18px rgba(242, 176, 30, 0.35);
}

.btn--gold:hover {
  background: #FFC53D;
  color: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(242, 176, 30, 0.45);
}

.btn--outline {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.btn--outline:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
  transform: translateY(-2px);
}

/* ============ HERO ============ */

.hero {
  position: relative;
  background-color: var(--navy-deep);
  background-image: linear-gradient(
      180deg,
      rgba(7, 26, 48, 0.78) 0%,
      rgba(7, 26, 48, 0.68) 55%,
      rgba(7, 26, 48, 0.92) 100%
    ),
    url("../img/hero.jpg");
  background-size: cover;
  background-position: center 30%;
  color: var(--white);
}

.hero__inner {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
  padding: clamp(var(--space-16), 9vw, var(--space-24)) clamp(var(--space-5), 4vw, var(--space-10)) clamp(var(--space-16), 8vw, var(--space-20));
}

.hero .kicker {
  color: var(--gold);
  border-color: rgba(242, 176, 30, 0.4);
  background: rgba(242, 176, 30, 0.1);
}

.hero h1 {
  color: var(--white);
  margin: var(--space-5) auto var(--space-5);
  max-width: 18ch;
  margin-inline: auto;
}

.hero__sub {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  max-width: 58ch;
  margin-inline: auto;
}

.hero__sub strong {
  color: var(--gold);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.hero__note {
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  color: var(--text-muted-on-navy);
}

/* Client-area hero variant */
.hero--clients {
  background-image: linear-gradient(
      180deg,
      rgba(7, 26, 48, 0.82) 0%,
      rgba(7, 26, 48, 0.72) 55%,
      rgba(7, 26, 48, 0.94) 100%
    ),
    url("../img/door-office.jpg");
  background-position: center;
}

/* Client-area header badge */
.client-badge {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-deep);
  background: rgba(242, 176, 30, 0.1);
  border: 1px solid rgba(242, 176, 30, 0.4);
  border-radius: 9999px;
  padding: var(--space-1) var(--space-4);
  white-space: nowrap;
}

/* Four-up grid (client page) */
.doors.doors--four {
  grid-template-columns: repeat(4, 1fr);
}

/* Flat door card — no photo, number-led (client page) */
.door--flat {
  transform: none;
}

.door--flat:hover {
  transform: none;
  box-shadow: var(--shadow-md);
}

.door--flat .door__body {
  gap: var(--space-3);
}

.door--flat .door__voice {
  margin-top: var(--space-2);
  border-top: none;
  padding-top: 0;
  color: var(--ink-muted);
  font-weight: 500;
}

.door--flat h3 {
  font-size: var(--text-base);
}

/* ============ KICKER ============ */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  background: rgba(242, 176, 30, 0.12);
  border: 1px solid rgba(242, 176, 30, 0.35);
  border-radius: 9999px;
  padding: var(--space-2) var(--space-4);
}

/* ============ SECTIONS ============ */

.section {
  padding: clamp(var(--space-16), 7vw, var(--space-24)) 0;
}

.section--paper {
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.section__inner {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(var(--space-5), 4vw, var(--space-10));
}

/* Centered section header — the symmetry spine of the page */
.section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-12);
}

.section__head::before {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  border-radius: 9999px;
  background: var(--gold);
  margin: 0 auto var(--space-6);
}

.section__head h2 {
  margin-bottom: var(--space-4);
}

.section__lede {
  font-size: var(--text-lg);
  color: var(--ink-muted);
  line-height: 1.6;
  max-width: 52ch;
  margin-inline: auto;
}

/* ============ THREE DOORS (image cards) ============ */

.doors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  align-items: stretch;
}

.door {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.door:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-strong);
}

.door__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--navy);
}

.door__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

.door:hover .door__media img {
  transform: scale(1.05);
}

.door__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 37, 64, 0) 60%, rgba(10, 37, 64, 0.35) 100%);
}

.door__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--space-6);
  gap: var(--space-4);
}

.door h3 {
  font-size: var(--text-lg);
}

.door__cities {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.door__handle {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--navy);
  background: rgba(10, 37, 64, 0.06);
  border: 1px solid rgba(10, 37, 64, 0.12);
  text-decoration: none;
  padding: var(--space-1) var(--space-3);
  border-radius: 9999px;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.door__handle::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--gold);
  flex: none;
}

.door__handle:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.door__roles {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.door__roles li {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9999px;
  padding: var(--space-1) var(--space-3);
}

.door__voice {
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gold-deep);
  letter-spacing: 0.01em;
}

.doors-note,
.languages-note {
  text-align: center;
  max-width: 68ch;
  margin: var(--space-8) auto 0;
  color: var(--ink-muted);
  font-size: var(--text-sm);
}

.doors-note a,
.languages-note a {
  font-weight: 700;
  white-space: nowrap;
}

/* Location badge overlaid on the door photo */
.door__place {
  position: absolute;
  left: var(--space-4);
  bottom: var(--space-4);
  z-index: 1;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(7, 26, 48, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  padding: var(--space-1) var(--space-3);
  backdrop-filter: blur(4px);
}

/* ============ STEPS ============ */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  box-shadow: var(--shadow-sm);
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-lg);
  box-shadow: 0 4px 12px rgba(10, 37, 64, 0.25);
}

.step h3 {
  font-size: var(--text-lg);
}

.step p {
  color: var(--ink-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}

/* ============ PAY STRIP ============ */

.pay-strip {
  background:
    radial-gradient(1200px 400px at 85% -10%, rgba(242, 176, 30, 0.12), transparent 60%),
    var(--navy);
  color: var(--white);
  border-top: 4px solid var(--gold);
  padding: clamp(var(--space-16), 7vw, var(--space-24)) 0;
  text-align: center;
}

.pay-strip .section__inner {
  max-width: 720px;
}

.pay-strip h2 {
  color: var(--white);
  margin-bottom: var(--space-4);
}

.pay-strip p {
  color: var(--text-muted-on-navy);
  font-size: var(--text-lg);
  line-height: 1.6;
}

/* ============ JOB DROP SCHEDULE ============ */

.drops {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.drop {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  box-shadow: var(--shadow-sm);
}

.drop strong {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(242, 176, 30, 0.14);
  border: 1px solid rgba(242, 176, 30, 0.4);
  border-radius: 9999px;
  padding: var(--space-2) var(--space-4);
}

.drop span {
  color: var(--ink-muted);
  font-size: var(--text-sm);
}

/* ============ FAQ ============ */

.faq {
  max-width: 760px;
  margin-inline: auto;
}

.faq > div > h2 {
  text-align: center;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.faq details[open] {
  border-color: rgba(242, 176, 30, 0.55);
  box-shadow: var(--shadow-md);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--ink);
  transition: color var(--transition);
}

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

.faq summary:hover {
  color: var(--gold-deep);
}

.faq summary::after {
  content: "+";
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  border: 1.5px solid var(--line-strong);
  color: var(--ink-muted);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}

.faq details[open] summary::after {
  content: "–";
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-deep);
}

.faq details p {
  padding: 0 var(--space-6) var(--space-5);
  color: var(--ink-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* ============ FOOTER ============ */

.site-footer {
  background: var(--navy-deep);
  color: var(--text-muted-on-navy);
  border-top: 4px solid var(--gold);
}

.site-footer__inner {
  max-width: 1120px;
  margin-inline: auto;
  padding: clamp(var(--space-10), 5vw, var(--space-16)) clamp(var(--space-5), 4vw, var(--space-10)) var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-10);
}

.footer-brand .wordmark {
  color: var(--white);
  font-size: var(--text-lg);
}

.footer-brand p {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  max-width: 30ch;
  line-height: 1.6;
}

.footer-col__title {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-4);
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-list a {
  color: var(--text-muted-on-navy);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 600;
  transition: color var(--transition);
}

.footer-list a:hover {
  color: var(--gold);
}

.footer-phone {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-lg);
  color: var(--white);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-phone:hover {
  color: var(--gold);
}

.footer-pool {
  display: inline-flex;
  align-items: center;
  margin-top: var(--space-3);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--gold);
  text-decoration: none;
  border: 1px solid rgba(242, 176, 30, 0.45);
  border-radius: 9999px;
  padding: var(--space-2) var(--space-4);
  transition: background var(--transition), color var(--transition);
}

.footer-pool:hover {
  background: var(--gold);
  color: var(--navy-deep);
}

.footer-bottom {
  border-top: 1px solid var(--line-on-navy);
  padding-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  color: var(--text-muted-on-navy);
}

/* ============ LANGUAGE VISIBILITY ============ */

html[data-lang="en"] [data-lang="es"],
html[data-lang="en"] [data-lang="ht"],
html[data-lang="es"] [data-lang="en"],
html[data-lang="es"] [data-lang="ht"],
html[data-lang="ht"] [data-lang="en"],
html[data-lang="ht"] [data-lang="es"] {
  display: none !important;
}

/* ============ RESPONSIVE ============ */

@media (max-width: 1024px) {
  .doors {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }
}

@media (max-width: 1024px) {
  .doors.doors--four {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .doors,
  .steps,
  .drops {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }

  .doors.doors--four {
    max-width: 720px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .site-header__inner {
    flex-wrap: wrap;
    row-gap: var(--space-2);
    padding-block: var(--space-3);
  }

  .site-header__inner .brand {
    flex: 1 1 100%;
  }

  .header-phone {
    font-size: var(--text-sm);
    padding: var(--space-2) var(--space-3);
  }

  .doors.doors--four {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .hero__actions .btn {
    width: 100%;
  }
}
