/* ============================================================
   713 LAW FIRM — starter-website
   Static implementation of the "713 Law Firm" Claude Design project.
   Design-system tokens are imported verbatim; the four components
   (Wordmark, Eyebrow, Button, VanityNumber) are reproduced here as
   plain CSS so the site needs no runtime / React / build step.
   ============================================================ */

@import url('tokens/colors.css');
@import url('tokens/typography.css');
@import url('tokens/spacing.css');
@import url('tokens/effects.css');

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-700);
  font-family: var(--font-serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--ink-900); }
a:hover { color: var(--red-600); }

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
}

.container { max-width: var(--container); margin: 0 auto; }

/* ============================================================
   COMPONENT — Eyebrow
   ============================================================ */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-ui);
  font-weight: var(--fw-bold);
  font-size: 0.75rem;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--ink-500);
}
.eyebrow__rule {
  width: 28px;
  height: 3px;
  background: var(--red-600);
  flex: 0 0 auto;
}

/* ============================================================
   COMPONENT — Wordmark (type-only firm lockup)
   ============================================================ */
.wordmark {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-style: italic;
  line-height: 0.84;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  text-transform: uppercase;
  user-select: none;
}
/* inline @ size sm  → unit 26 * scale 0.62 */
.wordmark--inline-sm { font-size: 16.12px; }
/* stacked @ size md → unit 34 * scale 1 */
.wordmark--stacked-md { font-size: 34px; }
.wordmark--stacked-md span { display: block; }
.wordmark__accent { color: var(--red-600); }

/* ============================================================
   COMPONENT — Button
   Hard-edged, stamped offset shadow that collapses on press.
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-weight: var(--fw-bold);
  font-size: 0.9375rem;
  line-height: 1;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  font-style: normal;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  border: 2px solid var(--ink-900);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--shadow-stamp-sm);
  transition: transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease);
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 0 var(--ink-900); }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 0 var(--ink-900); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }

.btn--sm { gap: 7px; padding: 8px 14px; font-size: 0.8125rem; }
.btn--lg { gap: 10px; padding: 16px 30px; font-size: 1.0625rem; }

.btn--primary { background: var(--ink-900); color: var(--paper); }
.btn--primary:hover { background: var(--ink-800); color: var(--paper); }

.btn--accent { background: var(--red-600); color: var(--paper); border: 2px solid var(--ink-900); }
.btn--accent:hover { background: var(--red-500); color: var(--paper); }

.btn--secondary { background: var(--paper); color: var(--ink-900); }
.btn--secondary:hover { background: var(--paper-50); color: var(--ink-900); }

/* ============================================================
   COMPONENT — VanityNumber  "(713) LAW-FIRM" w/ keypad digits
   Colors/size are set inline per instance; metrics are em-based.
   ============================================================ */
.vanity {
  display: inline-block;
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--fw-black);
  line-height: 1;
  letter-spacing: 0.02em;
  padding-bottom: 0.66em; /* reserves room for the digits row */
}
.vanity:hover { color: inherit; }
.vanity__area { margin-right: 0.3em; }
.vanity__word { display: inline-block; position: relative; }
.vanity__digits {
  position: absolute;
  top: 100%;
  left: 0.7em;
  right: 0.6em;
  margin-top: 0.19em;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-ui);
  font-style: normal;
  font-weight: var(--fw-extrabold);
  font-size: 0.473em;
  letter-spacing: 0;
  line-height: 1;
}

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
  border-bottom: 2px solid var(--ink-900);
  background: var(--paper);
}
.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { height: 32px; }
.header-phone {
  margin-left: auto;
  font-family: var(--font-ui);
  font-weight: 800;
  font-style: italic;
  font-size: 1rem;
  text-decoration: none;
  letter-spacing: 0.01em;
}

/* ============================================================
   HERO
   ============================================================ */
.hero-section { border-bottom: 2px solid var(--ink-900); }
.hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: 88px 28px 84px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 56px;
  align-items: center;
}
.hero-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 4.25rem;
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin: 18px 0 0;
}
.hero-title .accent { color: var(--red-600); }
.hero-lead {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--ink-700);
  max-width: 480px;
  margin: 26px 0 0;
  text-wrap: pretty;
}
.hero-cta {
  display: flex;
  gap: 16px;
  margin-top: 34px;
  align-items: center;
  flex-wrap: wrap;
}
.hero-email {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--ink-900);
  text-decoration: none;
}
.hero-espanol {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink-600);
  font-size: 0.95rem;
  margin: 22px 0 0;
}
.hero-card {
  background: var(--ink-900);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-stamp-accent);
  padding: 44px 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}
.hero-card__mark { width: 92px; }
.hero-card__note {
  font-family: var(--font-serif);
  color: var(--ink-300);
  font-size: 0.9rem;
  margin: 0;
  text-align: center;
  line-height: 1.6;
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust {
  background: var(--paper-50);
  border-bottom: 2px solid var(--ink-900);
}
.trust__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px;
  display: flex;
  gap: 40px;
  justify-content: space-between;
  flex-wrap: wrap;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--ink-700);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink-900); color: var(--paper); }
.footer-top {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 28px 24px;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.footer-brand__name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 1.1rem;
}
.footer-brand__name .accent { color: var(--red-600); }
.footer-brand__addr {
  font-family: var(--font-serif);
  color: var(--ink-300);
  font-size: 0.875rem;
  line-height: 1.7;
  margin: 10px 0 0;
  max-width: 360px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 0.875rem;
}
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--red-500); }
.footer-links__phone { color: var(--paper); font-weight: 700; }
.footer-links__email { color: var(--ink-200); }
.footer-links__legal { color: var(--ink-200); text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--ink-700); padding: 16px 28px; }
.footer-legal {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.72rem;
  color: var(--ink-400);
  font-family: var(--font-ui);
}
.footer-legal a { color: var(--ink-300); }
.footer-legal a:hover { color: var(--red-500); }

/* ============================================================
   LEGAL PAGE (Privacy Policy)
   ============================================================ */
.legal { max-width: 720px; margin: 0 auto; padding: 72px 28px 96px; }
.legal__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 3rem;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin: 16px 0 0;
}
.legal__date {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--ink-500);
  margin: 18px 0 0;
}
.legal__body {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--ink-800);
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.legal__body p { margin: 0 0 14px; }
.legal__body p:last-child { margin-bottom: 0; }
.legal__body section > p:only-child { margin: 0; }
.legal__body h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.35rem;
  color: var(--ink-900);
  margin: 0 0 12px;
  border-bottom: 2px solid var(--ink-900);
  padding-bottom: 8px;
}
.legal__note { font-size: 0.9rem; color: var(--ink-600); font-style: italic; margin: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 56px 24px 52px;
  }
  .hero-title { font-size: 3.1rem; }
  .hero-card { order: -1; }
  .site-header__inner { padding: 14px 22px; }
  .trust__inner { gap: 20px 32px; padding: 24px 22px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.5rem; }
  .hero-lead { font-size: 1.05rem; }
  .header-phone { font-size: 0.9rem; }
  .footer-legal { font-size: 0.68rem; }
  .legal { padding: 52px 22px 72px; }
  .legal__title { font-size: 2.3rem; }
}
