/* ============================================================
   Speweik Law, Ltd. — styles
   Design tokens & measurements per the design handoff.
   ============================================================ */

:root {
  /* Brand */
  --ac: #ED1F24;                /* primary red accent */
  --acd: #C41319;               /* accent dark (hover) */

  /* Ink / text */
  --ink: #1A1A1A;
  --ink-2: #2A2722;
  --body: #44403A;
  --body-2: #54504A;
  --body-3: #56524C;
  --muted: #6B645D;
  --eyebrow: #897F74;
  --fineprint: #8A8178;

  /* Surfaces */
  --bg: #FAF8F6;
  --white: #FFFFFF;
  --band: #F3F0EC;              /* warm-gray (Why) */
  --well: #FBF9F6;              /* form / supporting cards */

  /* Borders */
  --border: #E9E4DE;
  --border-2: #ECE6DF;
  --border-3: #EFEAE3;
  --border-input: #DDD6CE;
  --border-chip: #E3DBD1;
  --border-card-hover: #E0D7CC;

  /* Footer */
  --footer-bg: #1A1A1A;
  --footer-text: #B8B2AB;
  --footer-text-2: #CFC9C2;
  --footer-text-3: #9A948D;
  --footer-divider: #2E2E2E;
  --footer-fine: #6F6A63;

  --font-display: 'Playfair Display', serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;

  --maxw: 1180px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }
input, select, textarea, button { font-family: inherit; }
::placeholder { color: #A89F95; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ---------- Shared section bits ---------- */
.section { padding-top: clamp(60px, 9vw, 110px); padding-bottom: clamp(60px, 9vw, 110px); }
.section-white { background: var(--white); border-top: 1px solid var(--border-3); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--eyebrow);
}
.eyebrow-rule {
  width: 22px;
  height: 2px;
  background: var(--ac);
  display: inline-block;
  flex: none;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  color: var(--ink);
  margin: 16px 0 0;
}
.section-lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--body-2);
  max-width: 40em;
  margin: 16px 0 0;
}

/* Red diamond bullet (square rotated 45deg) */
.diamond {
  flex: none;
  width: 9px;
  height: 9px;
  margin-top: 7px;
  background: var(--ac);
  transform: rotate(45deg);
}
.diamond-sm {
  width: 8px;
  height: 8px;
  margin-top: 6px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 3px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--ac); color: #fff; border: none; }
.btn-primary:hover { background: var(--acd); }
.btn-outline {
  border: 1.5px solid var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-sm { font-size: 14px; padding: 11px 18px; }
.btn-lg { font-size: 16px; padding: 15px 26px; }
.btn-outline.btn-lg { padding: 13.5px 24px; } /* compensate for 1.5px border */
.btn-block { width: 100%; padding: 15px; font-size: 16px; border-radius: 4px; margin-top: 4px; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 13px;
  padding-bottom: 13px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { height: 33px; width: auto; display: block; }

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  text-decoration: none;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  transition: color .2s;
}
.nav-link:hover { color: var(--ac); }
.nav-phone {
  text-decoration: none;
  color: var(--ac);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
}

.header-mobile { display: none; }
.hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid #E5DED5;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font-size: 22px;
  cursor: pointer;
}

.mobile-menu[hidden] { display: none; }
.mobile-menu-inner {
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 8px 24px 22px;
  display: flex;
  flex-direction: column;
}
.mobile-link {
  text-decoration: none;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 0;
  border-bottom: 1px solid #F0EBE4;
}
.mobile-call {
  text-decoration: none;
  color: var(--ac);
  font-size: 18px;
  font-weight: 700;
  padding: 16px 0 14px;
}
.mobile-schedule { margin-top: 6px; padding: 14px; font-size: 15px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { scroll-margin-top: 76px; }
.hero-inner {
  padding-top: clamp(52px, 8vw, 92px);
  padding-bottom: clamp(52px, 8vw, 92px);
  display: flex;
  flex-wrap: wrap;
  gap: 52px;
  align-items: center;
}
.hero-copy { flex: 1 1 460px; min-width: 290px; }
.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 20px 0 0;
}
.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--ac);
  margin: 18px 0 0;
}
.hero-lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--body-2);
  max-width: 33em;
  margin: 18px 0 0;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.chip {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-chip);
  background: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: #3D3A35;
  transition: border-color .2s;
}
.chip:hover { border-color: var(--ac); }
.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ac);
  flex: none;
}

.trust-panel {
  flex: 1 1 330px;
  min-width: 280px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 24px 60px -34px rgba(26,26,26,0.32);
}
.trust-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--eyebrow);
}
.trust-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 22px;
}
.trust-item { display: flex; gap: 13px; align-items: flex-start; }
.trust-text { font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.trust-text strong { font-weight: 700; }
.trust-contact {
  border-top: 1px solid var(--border-3);
  margin-top: 26px;
  padding-top: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.trust-phone { color: var(--ac); font-weight: 700; text-decoration: none; }

/* ============================================================
   ABOUT
   ============================================================ */
.about { scroll-margin-top: 72px; }
.about-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: flex-start;
}
.about-photo { flex: 1 1 300px; max-width: 380px; }
.photo-card { position: relative; }
.photo-img { width: 100%; display: block; border-radius: 6px 6px 0 0; }
.photo-caption {
  background: var(--ac);
  color: #fff;
  padding: 14px 18px;
  border-radius: 0 0 6px 6px;
}
.photo-name { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.photo-role { font-size: 13px; font-weight: 500; letter-spacing: .04em; opacity: .92; }

.about-copy { flex: 2 1 380px; min-width: 290px; }
.about-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 3.1vw, 33px);
  line-height: 1.14;
  color: var(--ink);
  margin: 16px 0 0;
}
.about-para {
  font-size: 16.5px;
  line-height: 1.68;
  color: var(--body);
  margin: 16px 0 0;
}
.about-para:first-of-type { margin-top: 20px; }

.credentials {
  border-top: 1px solid var(--border-2);
  margin-top: 28px;
  padding-top: 24px;
}
.credentials-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--eyebrow);
  margin-bottom: 16px;
}
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 13px 28px;
}
.credential {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-2);
}

/* ============================================================
   PRACTICE AREAS
   ============================================================ */
.practice { scroll-margin-top: 72px; border-top: 1px solid var(--border-3); }
.practice-title { max-width: 16em; }
.practice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 44px;
}
.practice-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.practice-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px -28px rgba(26,26,26,0.34);
  border-color: var(--border-card-hover);
}
.practice-card--supporting { background: var(--well); border-color: var(--border-2); }
.practice-head { display: flex; align-items: baseline; gap: 12px; }
.practice-index {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ac);
}
.practice-card--supporting .practice-index { color: #B8AFA4; }
.practice-name {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.practice-desc { margin: 0; font-size: 15px; line-height: 1.58; color: var(--muted); }

/* ============================================================
   WHY
   ============================================================ */
.why {
  scroll-margin-top: 72px;
  background: var(--band);
  padding-top: clamp(58px, 8vw, 96px);
  padding-bottom: clamp(58px, 8vw, 96px);
}
.why-title { margin-bottom: 44px; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px;
}
.why-prop { display: flex; flex-direction: column; gap: 12px; }
.why-rule { width: 38px; height: 4px; background: var(--ac); }
.why-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  margin: 4px 0 0;
}
.why-desc { margin: 0; font-size: 15px; line-height: 1.6; color: var(--body-3); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { scroll-margin-top: 72px; }
.contact-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: flex-start;
}
.contact-info { flex: 1 1 360px; min-width: 290px; }
.contact-lede { max-width: 34em; }
.contact-blocks {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 32px;
}
.contact-block-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--eyebrow);
  margin-bottom: 5px;
}
.contact-block-text { font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.contact-block-text .muted { color: var(--muted); }
.contact-phone {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--ac);
  text-decoration: none;
}
.map-wrap {
  margin-top: 30px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.map-frame { width: 100%; height: 280px; border: 0; display: block; }

.contact-form-col { flex: 1 1 360px; min-width: 290px; }
.form-card {
  background: var(--well);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 36px);
}
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-heading {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--body);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-input);
  border-radius: 4px;
  font-size: 15px;
  background: #fff;
  color: var(--ink);
}
.field textarea { resize: vertical; }
.field-row { display: flex; flex-wrap: wrap; gap: 16px; }
.field-half { flex: 1 1 150px; }

/* Honeypot: kept in DOM, hidden from users */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-error {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--acd);
  font-weight: 600;
}
.form-fineprint {
  margin: 2px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--fineprint);
}

.form-success[hidden] { display: none; }
.success-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 28px 8px;
}
.success-check {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--ac);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.success-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.success-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--body-2);
  max-width: 30em;
}
.success-phone { color: var(--ac); font-weight: 600; text-decoration: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--footer-bg); color: var(--footer-text); }
.footer-inner {
  padding-top: 56px;
  padding-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}
.footer-brand { flex: 1 1 320px; max-width: 420px; }
.footer-logo { height: 30px; width: auto; display: block; }
.footer-tagline { font-size: 15px; line-height: 1.65; color: var(--footer-text-3); margin: 20px 0 0; }
.footer-contact { font-size: 15px; line-height: 1.7; color: var(--footer-text-2); margin-top: 18px; }
.footer-phone { color: #fff; font-weight: 600; text-decoration: none; }

.footer-explore { flex: 0 1 auto; }
.footer-explore-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #7C766F;
  margin-bottom: 14px;
}
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a { text-decoration: none; color: var(--footer-text-2); font-size: 15px; }
.footer-links a:hover { color: #fff; }

.footer-bottom { border-top: 1px solid var(--footer-divider); }
.footer-bottom-inner {
  padding-top: 22px;
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-copy { font-size: 13px; color: #8A847D; }
.footer-disclaimer {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--footer-fine);
  max-width: 70em;
}

/* ============================================================
   MOBILE CALL BAR
   ============================================================ */
.call-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  background: #fff;
  border-top: 1px solid #E5DED5;
  box-shadow: 0 -8px 24px -16px rgba(0,0,0,0.34);
}
.call-bar-call,
.call-bar-schedule {
  flex: 1;
  text-align: center;
  text-decoration: none;
  padding: 15px;
  font-size: 15px;
  font-weight: 700;
}
.call-bar-call { color: var(--ink); border-right: 1px solid var(--border-3); }
.call-bar-schedule { background: var(--ac); color: #fff; }

/* ============================================================
   RESPONSIVE — nav collapses < 900px
   ============================================================ */
.mobile-only { display: none; }

@media (max-width: 899px) {
  .desktop-nav { display: none; }
  .header-mobile { display: flex; }
  .mobile-only { display: flex; }
  /* keep room above the fixed call bar */
  body { padding-bottom: 56px; }
}

/* Phone-specific hero polish */
@media (max-width: 640px) {
  /* tighten the gap between the nav and the hero eyebrow */
  .hero-inner { padding-top: 26px; }

  /* full-width, evenly stacked primary actions */
  .hero-actions { flex-direction: column; gap: 12px; margin-top: 26px; }
  .hero-actions .btn { width: 100%; }

  /* practice-area chips as an even 2-up grid (tidy, larger tap targets) */
  .hero-chips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .chip { justify-content: center; padding: 11px 14px; }
}
