/* ==========================================================================
   AALozano — DASL, ASL Advisor & ASL Tutoring
   Page styles. Color/radius/spacing come from theme.css (Stage Ember Dark);
   families, heading scale and body variants come from typography.css
   (Authoritative Artistic). Nothing here invents a color or a type size —
   non-heading elements borrow the sizes of the scale step they belong to.
   ========================================================================== */

:root {
  /* Derived color tokens — same hue/saturation as the export, re-leveled for
     contrast on --background (#1E1A17). --primary at 47% lightness only
     reaches 3.7:1 as text, so small text uses the 62% step (--chart-2). */
  --primary-text: var(--chart-2);          /* 16 65% 62% — 6.0:1 on background */
  --primary-dim:  var(--chart-4);          /* 16 64% 32% — ornament, gradients */

  --maxw:         1120px;
  --maxw-narrow:  780px;

  /* Matches .header-inner min-height; used for anchor scroll-margin. */
  --header-height: 72px;

  color-scheme: dark;
}

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

/* ---------- anchor scrolling ---------- */

/* Animate scrolling to in-page anchor links. No easing control, but it ties
   into the browser's refresh rate. Progressively enhanced: unsupported
   browsers just hard-jump as they always did. */
html { scroll-behavior: smooth; }

/* Animation can trigger motion sickness, so revert to the default hard jump
   for anyone who has asked the OS for reduced motion. */
@media screen and (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* The header is sticky, so an anchor would otherwise land its target
   underneath it. Reserve the header's height plus a little breathing room
   above every scroll target. */
[id] {
  scroll-margin-top: calc(var(--header-height) + var(--space-sm));
}

/* Family, size, weight and leading are all set by typography.css. */
body {
  margin: 0;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
}

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

a { color: hsl(var(--primary-text)); }

h1, h2, h3 { margin: 0; }

p { margin: 0 0 var(--space-sm); }

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

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

.skip-link {
  position: absolute;
  left: var(--space-sm);
  top: -4rem;
  z-index: 100;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-button);
  /* .text-label */
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: var(--space-sm); }

/* ---------- layout primitives ---------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(var(--space-base), 4vw, var(--space-lg));
}

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

.section { padding: clamp(var(--space-xxl), 9vw, var(--space-xxxl)) 0; }

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(var(--space-lg), 5vw, var(--space-xl));
}

.section-head h2 { margin-bottom: var(--space-sm); }

/* .text-body */
.section-sub {
  color: hsl(var(--muted-foreground));
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* .text-eyebrow, uppercased */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--primary-text));
  margin: 0 0 var(--space-xs);
}

.eyebrow.center { text-align: center; }

.placeholder {
  color: hsl(var(--primary-text));
  border-bottom: 1px dashed hsl(var(--primary) / 0.65);
}

/* ---------- buttons ---------- */

/* .text-label */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.8rem var(--space-base);
  border-radius: var(--radius-button);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background-color 0.18s ease,
              border-color 0.18s ease, color 0.18s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}
.btn-primary:hover { background: hsl(var(--primary) / 0.86); }

.btn-ghost {
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
}
.btn-ghost:hover {
  border-color: hsl(var(--primary));
  color: hsl(var(--primary-text));
}

/* ---------- header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: hsl(var(--background) / 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border) / 0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: hsl(var(--foreground));
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: var(--radius);
  background: linear-gradient(140deg, hsl(var(--primary)), hsl(var(--primary-dim)));
  color: hsl(var(--primary-foreground));
  font-family: var(--font-heading);
  font-size: 1.125rem;     /* h5 */
  font-weight: 700;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }

/* h4 floor — the wordmark */
.brand-text strong {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
}

/* .text-caption, uppercased */
.brand-text small {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* .text-small */
.site-nav a {
  display: block;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-button);
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease;
}
.site-nav a:hover {
  color: hsl(var(--foreground));
  background: hsl(var(--muted));
}

/* .text-label */
.site-nav .nav-cta {
  margin-left: var(--space-xs);
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-weight: 600;
  letter-spacing: 0.02em;
}
.site-nav .nav-cta:hover {
  background: hsl(var(--primary) / 0.86);
  color: hsl(var(--primary-foreground));
}

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-button);
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px; height: 2px;
  background: hsl(var(--foreground));
  border-radius: 2px;
  content: "";
  position: relative;
}
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after  { position: absolute; top: 6px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: hsl(var(--muted));
    border-bottom: 1px solid hsl(var(--border));
    display: none;
  }
  .site-nav.is-open { display: block; }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: var(--space-sm) clamp(var(--space-base), 4vw, var(--space-lg)) var(--space-base);
  }
  .site-nav a { padding: 0.7rem 0.85rem; font-size: 1rem; }
  .site-nav .nav-cta { margin: var(--space-xs) 0 0; text-align: center; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(var(--space-xxl), 11vw, 8.5rem) 0 clamp(var(--space-xl), 8vw, var(--space-xxxl));
  border-bottom: 1px solid hsl(var(--border) / 0.6);
  /* Velvet drape: a warm terracotta wash falling over soft vertical folds. */
  background:
    linear-gradient(180deg, hsl(var(--primary) / 0.16), transparent 62%),
    repeating-linear-gradient(90deg,
      hsl(0 0% 100% / 0.028) 0,
      hsl(0 0% 0% / 0.26) 30px,
      hsl(0 0% 100% / 0.028) 60px);
}

.hero-inner { position: relative; z-index: 1; max-width: 50rem; }

/* Size and weight from the h1 step. */
.hero h1 { margin-bottom: var(--space-base); }

.hero h1 em {
  font-style: italic;
  font-weight: 600;       /* the 600i face is loaded */
  color: hsl(var(--secondary));
}

/* .text-lead */
.lede {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.6;
  color: hsl(var(--muted-foreground));
  max-width: 40rem;
  margin-bottom: var(--space-lg);
}
.lede strong { color: hsl(var(--foreground)); font-weight: 600; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-xl);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  list-style: none;
  margin: 0;
  padding: 0;
}

/* .text-caption, uppercased */
.hero-tags li {
  padding: 0.35rem 0.9rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-button);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

/* Warm key light and a cool gel, the way a stage actually gets lit. */
.hero-glow {
  position: absolute;
  inset: auto -20% -60% 30%;
  height: 120%;
  background:
    radial-gradient(45% 50% at 50% 50%, hsl(var(--primary) / 0.3), transparent 70%),
    radial-gradient(40% 45% at 78% 32%, hsl(var(--accent) / 0.16), transparent 70%);
  pointer-events: none;
}

/* ---------- service cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: var(--space-base);
}

.card {
  position: relative;
  padding: var(--space-lg) var(--space-base) var(--space-xl);
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border) / 0.7);
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: hsl(var(--primary));
  background: hsl(var(--muted));
}

/* h5, in the heading face */
.card-tag {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: hsl(var(--secondary));
  margin-bottom: var(--space-sm);
}

/* Size and weight from the h3 step. */
.card h3 { margin-bottom: var(--space-sm); }

/* .text-caption, uppercased */
.card-sub {
  display: block;
  margin-top: 0.45rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

/* .text-body */
.card > p {
  color: hsl(var(--muted-foreground));
  font-size: 1rem;
  line-height: 1.6;
}

.card-list {
  list-style: none;
  margin: var(--space-base) 0 0;
  padding: var(--space-base) 0 0;
  border-top: 1px solid hsl(var(--border) / 0.5);
  display: grid;
  gap: 0.6rem;
}

/* .text-small */
.card-list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: hsl(var(--card-foreground));
}

.card-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.58em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: hsl(var(--primary));
}

/* ---------- band: who this is for ---------- */

.band {
  padding: clamp(var(--space-xl), 7vw, 5.5rem) 0;
  background: hsl(var(--muted));
  border-top: 1px solid hsl(var(--border) / 0.6);
  border-bottom: 1px solid hsl(var(--border) / 0.6);
}

.context-grid {
  list-style: none;
  margin: var(--space-lg) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: var(--space-base) var(--space-lg);
}

/* .text-small */
.context-grid li {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  line-height: 1.5;
  border-left: 2px solid hsl(var(--primary) / 0.55);
  padding-left: var(--space-sm);
}

/* h4 floor */
.context-grid span {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  color: hsl(var(--foreground));
  margin-bottom: 0.15rem;
}

/* ---------- process steps ---------- */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: var(--space-lg) var(--space-base);
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-top: var(--space-xl);
}

/* h5, in the heading face */
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0; left: 0;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: hsl(var(--secondary));
  display: grid;
  place-items: center;
  width: 2.5rem; height: 2.5rem;
  border: 1px solid hsl(var(--secondary) / 0.5);
  border-radius: 50%;
}

/* h3 is too loud for a four-up grid; these take the h4 step instead. */
.steps h3 {
  font-size: clamp(1.25rem, 1.5vw + 0.5rem, 1.5rem);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 0.3rem;
}

/* .text-small */
.steps p {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}

/* ---------- about ---------- */

.section-about {
  background: hsl(var(--muted));
  border-top: 1px solid hsl(var(--border) / 0.6);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(var(--space-lg), 5vw, var(--space-xxl));
  align-items: start;
}

@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
}

.about-copy h2 { margin-bottom: var(--space-sm); }

/* .text-body */
.about-copy p {
  color: hsl(var(--muted-foreground));
  font-size: 1rem;
  line-height: 1.6;
}

.about-note {
  margin-top: var(--space-base);
  padding-top: var(--space-base);
  border-top: 1px solid hsl(var(--border) / 0.5);
  font-size: 0.875rem;
  line-height: 1.5;
}

.about-facts {
  padding: var(--space-base);
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border) / 0.7);
  border-radius: var(--radius);
}

/* A label, not a display heading — .text-eyebrow in the sans face. */
.about-facts h3 {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--primary-text));
  margin-bottom: var(--space-sm);
}

.about-facts dl { margin: 0; display: grid; gap: var(--space-sm); }

/* .text-caption, uppercased */
.about-facts dt {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

/* .text-small */
.about-facts dd {
  margin: 0.15rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: hsl(var(--foreground));
}

/* ---------- faq ---------- */

.faq { display: grid; gap: var(--space-xs); }

.faq details {
  background: hsl(var(--muted));
  border: 1px solid hsl(var(--border) / 0.7);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.18s ease;
}

.faq details[open] { border-color: hsl(var(--primary)); }

/* h4 step, in the heading face */
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: var(--space-sm) var(--space-xl) var(--space-sm) var(--space-base);
  position: relative;
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 1.5vw + 0.5rem, 1.5rem);
  font-weight: 600;
  line-height: 1.25;
  color: hsl(var(--foreground));
}

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

.faq summary::after {
  content: "";
  position: absolute;
  right: var(--space-base); top: 50%;
  width: 10px; height: 10px;
  border-right: 2px solid hsl(var(--primary-text));
  border-bottom: 2px solid hsl(var(--primary-text));
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }

/* .text-body */
.faq details p {
  margin: 0;
  padding: 0 var(--space-base) var(--space-base);
  color: hsl(var(--muted-foreground));
  font-size: 1rem;
  line-height: 1.6;
}

/* ---------- contact ---------- */

.section-contact {
  background:
    radial-gradient(60% 80% at 50% 0%, hsl(var(--primary) / 0.18), transparent 70%),
    hsl(var(--muted));
  border-top: 1px solid hsl(var(--border) / 0.6);
  text-align: center;
}

.contact-inner h2 { margin-bottom: var(--space-sm); }

.contact-inner .section-sub { margin-inline: auto; max-width: 34rem; }

.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: var(--space-xs);
  margin: var(--space-lg) 0 var(--space-base);
}

.contact-card {
  display: grid;
  gap: 0.3rem;
  padding: var(--space-base) var(--space-sm);
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border) / 0.7);
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  border-color: hsl(var(--accent));
}

/* .text-caption, uppercased */
.contact-label {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

/* h4 floor */
.contact-value {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  color: hsl(var(--foreground));
  overflow-wrap: anywhere;
}

.contact-card:hover .contact-value { color: hsl(var(--primary-text)); }

/* .text-small */
.contact-foot {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}

/* ---------- footer ---------- */

.site-footer {
  padding: var(--space-lg) 0;
  border-top: 1px solid hsl(var(--border) / 0.6);
  background: hsl(var(--background));
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs) var(--space-base);
}

.footer-inner p { margin: 0; }

/* h4 floor */
.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
}

/* .text-small */
.footer-services,
.footer-legal {
  font-size: 0.875rem;
  line-height: 1.5;
  color: hsl(var(--muted-foreground));
}
