/* =========================================================
   Clarity ASL Interpreting LLC: stylesheet (draft)
   Visual identity matches the business card: deep navy, gold stripe + rule,
   bold serif all-caps name, clean sans-serif secondary text.
   Mobile-first. All text colors checked for WCAG AA contrast.
   ========================================================= */

:root {
  --navy:      #121F3B;  /* card background; white on navy = 16.3:1 */
  --navy-700:  #1b2b4d;
  --navy-600:  #25385f;
  --gold:      #C9A45C;  /* card gold; on navy = 7.0:1 (AA for all text sizes) */
  --gold-soft: #d8b978;  /* hover on navy */
  --gold-ink:  #7A5C1E;  /* gold for text on light backgrounds = 6.2:1 on white */
  --ivory:     #f8f5ef;
  --ivory-2:   #efe8da;
  --mist:      #eef1f6;
  --ink:       #1b2436;
  --ink-muted: #475866;  /* 7.3:1 on white, 6.8:1 on ivory */
  --on-navy-muted: #c8d2e0; /* 10.7:1 on navy */
  --line:      #d9dee6;
  --white:     #ffffff;

  --ph-bg: #fff1bf;      /* draft placeholder highlight */
  --ph-border: #b38a1e;
  --ph-ink: #4d3700;     /* 10:1 on --ph-bg */

  --focus: var(--navy);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(18, 31, 59, .06), 0 8px 24px rgba(18, 31, 59, .08);
  --container: 1120px;
  --sans: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Playfair Display", Georgia, "Times New Roman", Times, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}

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

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy); }
h1, h2 { font-family: var(--serif); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); letter-spacing: -0.005em; }
h3 { font-size: 1.25rem; font-family: var(--sans); }
p { margin: 0 0 1em; }

a { color: var(--navy); text-decoration-color: var(--gold-ink); text-underline-offset: .2em; }
a:hover { color: var(--gold-ink); }

/* Focus: always visible */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
.site-header, .hero, .reach-card, .site-footer { --focus: var(--gold); }

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

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Placeholder highlight (draft only) ---------- */
.ph {
  background: var(--ph-bg);
  color: var(--ph-ink);
  border: 1px dashed var(--ph-border);
  border-radius: 4px;
  padding: 0 .3em;
  font-family: var(--sans);
  font-weight: 400; font-style: normal; letter-spacing: normal; text-transform: none;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ---------- Gold label (card-style small caps) ---------- */
.gold-label {
  font-family: var(--sans);
  font-size: .875rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}
.gold-label span { padding: 0 .35em; }
.eyebrow {
  font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-ink); margin-bottom: .75rem;
  display: flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); flex: none; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--gold); color: var(--navy); font-weight: 700;
  padding: .75rem 1rem; border-radius: var(--radius-sm); text-decoration: none;
}
.skip-link:focus { top: 1rem; outline: 3px solid var(--white); outline-offset: 2px; }
main:focus { outline: none; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgba(201, 164, 92, .45);
  color: var(--white);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .5rem 1rem; min-height: 68px;
}
.brand { display: inline-flex; align-items: stretch; gap: .75rem; color: var(--white); text-decoration: none; padding: .35rem 0; }
.brand:hover { color: var(--white); }
.brand-stripe { width: 5px; background: var(--gold); border-radius: 2px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.125rem; letter-spacing: .02em; white-space: nowrap; }
.brand-sub { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-top: .15rem; }

.nav-toggle { display: none; }
.site-nav { width: 100%; }
.site-nav ul { list-style: none; margin: 0; padding: 0 0 .75rem; display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.site-nav a { display: inline-block; color: var(--white); text-decoration: none; font-weight: 700; padding: .5rem .25rem; }
.site-nav a:hover { color: var(--gold); }

.js .nav-toggle {
  display: inline-flex; align-items: center; gap: .55rem;
  font: inherit; font-weight: 700; color: var(--white);
  background: transparent; border: 2px solid var(--gold); border-radius: 999px;
  padding: .45rem .95rem; min-height: 44px; cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; 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; }
.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); }

.js .site-nav { display: none; }
.js .site-nav.is-open { display: block; }
.js .site-nav ul { flex-direction: column; gap: 0; padding-bottom: 1rem; }
.js .site-nav li a { display: block; padding: .8rem .25rem; border-top: 1px solid rgba(255,255,255,.14); }
.js .site-nav .nav-cta { margin-top: .6rem; border-top: 0; text-align: center; }

.nav-cta { background: var(--gold); color: var(--navy) !important; border-radius: 999px; padding: .55rem 1.1rem !important; }
.nav-cta:hover { background: var(--gold-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .75rem 1.4rem; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 1.0625rem;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.btn-primary { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.08); color: var(--white); border-color: var(--white); }
.btn-dark { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-dark:hover { background: var(--navy-600); border-color: var(--navy-600); color: var(--white); }
.btn-dark:focus-visible { outline-color: var(--gold-ink); }
.btn-block { width: 100%; }
@media (prefers-reduced-motion: no-preference) { .btn:hover { transform: translateY(-1px); } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(800px 460px at 100% 0%, rgba(37, 56, 95, .9), transparent 65%),
    var(--navy);
  color: var(--on-navy-muted);
  padding: 3.25rem 0 3.75rem;
}
.hero::before { /* gold stripe on the left edge, like the card */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 8px; background: var(--gold);
}
.hero-inner { position: relative; display: grid; gap: 2.5rem; }
.hero-name {
  font-family: var(--serif);
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: clamp(2.35rem, 9vw, 4.25rem);
  line-height: 1.05;
  margin: 0 0 .6rem;
}
.gold-rule { border: 0; height: 1px; background: var(--gold); margin: 1.25rem 0 1.25rem; max-width: 560px; }
.hero-business { color: var(--white); font-size: clamp(1.2rem, 3vw, 1.45rem); margin-bottom: .75rem; }
.hero-lead { font-size: clamp(1.05rem, 2.4vw, 1.2rem); max-width: 40ch; color: var(--on-navy-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.gold-label-bottom { margin-top: 2rem; }

.hero-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(201,164,92,.45);
  border-left: 4px solid var(--gold);
  border-radius: 4px var(--radius) var(--radius) 4px;
  padding: 1.5rem 1.5rem 1.25rem;
  align-self: center;
}
.glance-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.glance-list li { display: grid; gap: .1rem; color: var(--white); }
.glance-kind { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.glance-list a { color: var(--white); font-weight: 700; font-size: 1.2rem; text-decoration-color: var(--gold); }
.glance-list a:hover { color: var(--gold); }
.glance-foot { margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid rgba(201,164,92,.35); font-size: .9rem; color: var(--on-navy-muted); letter-spacing: .04em; }

/* ---------- Sections ---------- */
.section { padding: 4rem 0; }
.section-ivory { background: var(--ivory); }
.section-mist { background: var(--mist); }
.section-head { max-width: 680px; margin-bottom: 2.25rem; }
.section-intro { color: var(--ink-muted); font-size: 1.125rem; }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); }
.card-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 10px; background: var(--navy); color: var(--gold); margin-bottom: 1rem; }
.card-note { color: var(--ink-muted); font-size: .95rem; margin: 0; padding-top: .75rem; border-top: 1px solid var(--line); }
.service-cards { display: grid; gap: 1.25rem; }

.settings { margin-top: 3rem; }
.settings-title { font-size: 1.375rem; }
.settings-intro { color: var(--ink-muted); }
.settings-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.settings-grid li {
  display: flex; flex-direction: column; padding: 1rem 1.1rem;
  border-radius: 4px var(--radius-sm) var(--radius-sm) 4px;
  background: var(--ivory); border-left: 4px solid var(--gold);
}
.setting-name { font-weight: 700; color: var(--navy); }
.setting-desc { color: var(--ink-muted); font-size: .95rem; }

/* About */
.about-grid { display: grid; gap: 2rem; align-items: center; }
.photo-placeholder { margin: 0; }
.photo-frame {
  aspect-ratio: 4 / 5; max-width: 280px; margin: 0 auto;
  display: grid; place-items: center; text-align: center; padding: 1rem;
  border-radius: var(--radius); border: 2px dashed var(--ph-border);
  background: repeating-linear-gradient(135deg, rgba(179,138,30,.07) 0 12px, transparent 12px 24px), var(--ivory-2);
}
.about-copy p { max-width: 62ch; }
.bio-placeholder {
  margin-top: 1.25rem; padding: 1.1rem 1.25rem;
  border: 2px dashed var(--ph-border); border-radius: var(--radius-sm);
  background: var(--ph-bg); color: var(--ph-ink);
}
/* the whole box is the highlighted placeholder; avoid nested highlight boxes */
.bio-placeholder .ph { background: none; border: 0; padding: 0; }
.bio-label { font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .4rem; }
.bio-placeholder p:last-child { margin: 0; }

/* Credentials */
.cred-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.cred-list li {
  display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: center;
  padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); box-shadow: var(--shadow);
}
.cred-abbr {
  grid-row: span 2;
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: var(--navy); color: var(--gold);
  font-family: var(--serif); font-weight: 700; font-size: 1.05rem; letter-spacing: .04em;
  box-shadow: inset 0 0 0 2px var(--navy), inset 0 0 0 3px var(--gold);
}
.cred-name { font-weight: 700; color: var(--navy); line-height: 1.3; }
.cred-detail { color: var(--ink-muted); }

/* Service area */
.area-grid { display: grid; gap: 2rem; align-items: center; }
.area-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.area-list li {
  display: grid; gap: .15rem;
  background: var(--white); border-radius: 4px var(--radius-sm) var(--radius-sm) 4px;
  padding: 1rem 1.25rem; border-left: 4px solid var(--gold);
}
.area-kind { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.area-val { font-weight: 700; color: var(--navy); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; counter-reset: step; }
.step {
  position: relative; counter-increment: step;
  padding: 1.5rem 1.5rem 1.5rem 5rem;
  border-radius: var(--radius); background: var(--white);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.step::before {
  content: counter(step);
  position: absolute; left: 1.5rem; top: 1.4rem;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: var(--gold);
  font-family: var(--serif); font-weight: 700; font-size: 1.2rem;
}
.step p:last-child { margin: 0; }
.booking-note { margin-top: 1.75rem; padding: 1rem 1.25rem; background: var(--ivory); border-radius: var(--radius-sm); }

/* Contact */
.contact-grid { display: grid; gap: 2.5rem; align-items: start; }
.reach-card {
  position: relative; overflow: hidden;
  margin-top: 1.5rem; background: var(--navy); color: var(--on-navy-muted);
  border-radius: 4px var(--radius) var(--radius) 4px; padding: 1.5rem 1.5rem 1.5rem 1.9rem;
}
.reach-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--gold); }
.reach-card h3 { color: var(--white); }
.reach-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.reach-list li { display: grid; gap: .1rem; }
.reach-kind { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.reach-list a { color: var(--white); font-weight: 700; font-size: 1.15rem; text-decoration-color: var(--gold); word-break: break-word; }
.reach-list a:hover { color: var(--gold); }
.reach-list .ph { justify-self: start; }

.request-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.form-note { font-size: .95rem; color: var(--ink-muted); }
.form-required-note { font-size: .95rem; color: var(--ink-muted); }
.field-row { display: grid; gap: 0 1rem; }
.field { margin: 0 0 1.1rem; border: 0; padding: 0; min-width: 0; }
fieldset.field { margin-bottom: 1.25rem; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: .35rem; color: var(--navy); padding: 0; }
.req { color: #a3261b; }
.optional { font-weight: 400; color: var(--ink-muted); }
.hint { font-size: .9rem; color: var(--ink-muted); margin: .35rem 0 0; }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select, textarea {
  width: 100%; min-height: 48px;
  font: inherit; color: var(--ink); background: var(--white);
  border: 2px solid #7a8a96;  /* 3.6:1 against white (non-text contrast) */
  border-radius: var(--radius-sm); padding: .6rem .8rem;
}
textarea { resize: vertical; min-height: 130px; }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  border-color: var(--navy); outline: 3px solid var(--gold-ink); outline-offset: 1px;
}
input[aria-invalid="true"] { border-color: #a3261b; }
::placeholder { color: #66747f; opacity: 1; }

.choice-row { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.choice { display: inline-flex !important; align-items: center; gap: .5rem; font-weight: 400 !important; color: var(--ink) !important; min-height: 44px; cursor: pointer; margin: 0 !important; }
.choice input { width: 20px; height: 20px; accent-color: var(--navy); margin: 0; }

.form-status { margin: 1rem 0 0; font-weight: 700; }
.form-status:empty { display: none; }
.form-status.is-error { color: #a3261b; }
.form-status.is-info { color: var(--navy); background: var(--mist); border-left: 4px solid var(--gold); border-radius: var(--radius-sm); padding: .75rem 1rem; font-weight: 400; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--navy); color: var(--on-navy-muted); padding: 2.75rem 0; font-size: .95rem; border-top: 1px solid var(--gold); }
.site-footer a { color: var(--white); text-decoration-color: var(--gold); }
.site-footer a:hover { color: var(--gold); }
.footer-inner { display: grid; gap: 1.5rem; }
.footer-inner p { margin: 0; }
.footer-brand { color: var(--white); font-family: var(--serif); font-weight: 700; font-size: 1.2rem; margin-bottom: .35rem !important; }
.footer-label { font-size: .75rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer-links a { display: inline-block; padding: .25rem 0; }
.footer-meta { display: grid; gap: .25rem; }

/* =========================================================
   Larger screens
   ========================================================= */
@media (min-width: 640px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .settings-grid { grid-template-columns: repeat(2, 1fr); }
  .request-form { padding: 2rem; }
  .hero::before { width: 12px; }
}

@media (min-width: 960px) {
  .container { padding: 0 2rem; }

  .js .nav-toggle { display: none; }
  .site-nav, .js .site-nav { display: block; width: auto; }
  .site-nav ul, .js .site-nav ul { flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 1.1rem; padding: 0; }
  .js .site-nav li a { display: inline-block; border-top: 0; padding: .5rem .2rem; white-space: nowrap; }
  .js .site-nav .nav-cta { margin-top: 0; padding: .55rem 1.1rem !important; }
  .header-inner { flex-wrap: nowrap; min-height: 78px; }

  .hero { padding: 5.5rem 0 6rem; }
  .hero::before { width: 16px; }
  .hero-inner { grid-template-columns: 1.4fr 1fr; align-items: center; gap: 4rem; }

  .section { padding: 5.5rem 0; }
  .service-cards { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .settings-grid { grid-template-columns: repeat(3, 1fr); }

  .about-grid { grid-template-columns: 4fr 7fr; gap: 4rem; }
  .photo-frame { max-width: none; }

  .cred-list { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .cred-list li { grid-template-columns: 1fr; row-gap: .35rem; padding: 1.75rem; align-items: start; }
  .cred-abbr { grid-row: auto; margin-bottom: .75rem; width: 68px; height: 68px; font-size: 1.15rem; }

  .area-grid { grid-template-columns: 1.1fr 1fr; gap: 4rem; }

  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { padding: 5rem 1.75rem 1.75rem; }
  .step::before { top: 1.75rem; left: 1.75rem; }

  .contact-grid { grid-template-columns: 5fr 7fr; gap: 4rem; }
  .contact-intro { position: sticky; top: 110px; }

  .footer-inner { grid-template-columns: 1.2fr 1.6fr 1.2fr; align-items: center; }
  .footer-meta { text-align: right; }
}

/* ---------- Motion & forced colors ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}
@media (forced-colors: active) {
  .ph { border: 1px solid CanvasText; }
  .btn { border: 2px solid ButtonText; }
  .hero::before, .brand-stripe, .reach-card::before { background: CanvasText; }
}

/* Refinements */
h1, h2, .step::before, .cred-abbr { font-variant-numeric: lining-nums; }
.cred-name, .cred-detail { line-height: 1.4; }
.step::before { font-family: var(--sans); font-size: 1.1rem; }

/* Contact: call / text / FaceTime */
.reach-deaf { color: var(--white); margin-bottom: 1.1rem; }
.reach-deaf strong { color: var(--gold); }
.reach-number { color: var(--white); font-weight: 700; font-size: 1.25rem; letter-spacing: .02em; }
.reach-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .45rem; }
.reach-list a.chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 5.5rem; padding: .4rem 1rem;
  border: 2px solid var(--gold); border-radius: 999px;
  color: var(--white); font-size: 1rem; font-weight: 700; text-decoration: none;
}
.reach-list a.chip:hover { background: var(--gold); color: var(--navy); }
.reach-note { font-size: .9rem; color: var(--on-navy-muted); margin-top: .35rem; }
.footer-links li { color: var(--on-navy-muted); }
.about-copy p { font-size: 1.125rem; }
@media (max-width: 479px) { .reach-list a.chip { min-width: 0; padding: .4rem .85rem; } }
.footer-domain { margin-top: .5rem !important; }
.footer-domain a { font-weight: 700; }
