/* ===========================================================
   Luxwell Law & Consulting
   Palette:  ivory #F5F1E8 | ink #11100E | brass #B8893D
   Fonts:    Cinzel (display) / EB Garamond (body)
   =========================================================== */

:root {
  --ivory: #F5F1E8;
  --ivory-tint: #ECE5D3;
  --ink: #11100E;
  --ink-soft: #1a1713;
  --ink-deep: #080706;
  --brass: #B8893D;
  --brass-light: #D9B66D;
  --brass-dark: #8A6A30;
  --text: #3a362c;
  --text-muted: #5a5446;
  --text-faint: #8a8270;
  --line: #ddd6c4;
  --maxw: 1080px;
  --serif: 'EB Garamond', Georgia, serif;
  --display: 'Cinzel', Georgia, serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  background: var(--ivory);
  color: var(--text);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Shared type ---------- */
h1, h2, h3 { font-family: var(--display); color: var(--ink); font-weight: 500; }

.eyebrow {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1rem;
}
.eyebrow-light { color: var(--brass-light); }

.lead {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text);
  max-width: 620px;
  margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: var(--brass);
  padding: 16px 40px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.15s ease;
}
.btn:hover { background: var(--brass-light); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.85; cursor: default; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 241, 232, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(245, 241, 232, 0.96);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
}
.brand {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: 0.22em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.brand img {
  height: 64px;
  width: auto;
  display: block;
}
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  font-family: var(--serif);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
}
.nav a:hover { color: var(--brass); }
.nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--brass);
  transition: width 0.25s ease;
}
.nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta { color: var(--brass); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  display: block;
  width: 26px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: var(--ivory);
  text-align: center;
  padding: 120px 0 130px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to bottom, rgba(17,16,14,0.74), rgba(17,16,14,0.84)),
    url('justice-bg.jpg');
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.72;
  z-index: 0;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero::after {
  content: '\25C6';
  display: block;
  color: var(--brass-dark);
  font-size: 0.8rem;
  margin-top: 2.5rem;
}
.hero h1 {
  color: var(--ivory);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.22;
  max-width: 760px;
  margin: 0 auto;
  font-weight: 500;
}
.hero-sub {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #cfc6b3;
  max-width: 580px;
  margin: 1.6rem auto 0;
}
.hero .btn { margin-top: 2.4rem; }
.hero-fine {
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  margin-top: 1.3rem;
}

/* ---------- Approach ---------- */
.approach { padding: 96px 0; text-align: center; }
.approach-head h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  margin: 0.7rem 0 1.4rem;
}
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 3.5rem;
}
.pillar { padding: 0 2rem; text-align: center; }
.pillar:not(:last-child) { border-right: 1px solid var(--line); }
.pillar h3 {
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.7rem;
}
.pillar p { font-size: 1rem; color: var(--text-muted); line-height: 1.7; }

/* ---------- Practice ---------- */
.practice { padding: 96px 0; background: var(--ivory-tint); text-align: center; }
.practice-head h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  margin-top: 0.7rem;
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 3rem;
  text-align: left;
}
.card {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-top: 2px solid var(--brass);
  padding: 32px 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(17, 16, 14, 0.08);
}
.card h3 { font-size: 1.3rem; letter-spacing: 0.02em; margin-bottom: 0.7rem; }
.card p { font-size: 1rem; color: var(--text-muted); line-height: 1.7; }

/* ---------- Resources ---------- */
.resources { padding: 96px 0; text-align: center; }
.resources-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0.7rem 0 1rem;
}
.res-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 2.8rem;
  text-align: left;
}
.res-item {
  display: block;
  border-left: 2px solid var(--brass);
  padding: 4px 0 4px 18px;
  text-decoration: none;
  transition: padding-left 0.25s ease;
}
.res-item:hover { padding-left: 24px; }
.res-item h3 { font-size: 1.15rem; line-height: 1.4; color: var(--ink); }
.read-more {
  display: inline-block;
  font-style: italic;
  font-size: 0.92rem;
  color: var(--text-faint);
  margin-top: 0.6rem;
}
.res-item:hover .read-more { color: var(--brass); }

/* ---------- Contact ---------- */
.contact {
  background: var(--ink);
  color: var(--ivory);
  padding: 96px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to bottom, rgba(17,16,14,0.8), rgba(17,16,14,0.88)),
    url('justice-bg.jpg');
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.6;
  z-index: 0;
  pointer-events: none;
}
.contact .container { position: relative; z-index: 1; }
.contact h2 { color: var(--ivory); font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
.contact-sub { color: #cfc6b3; font-size: 1.1rem; margin: 0.5rem 0 2.4rem; }
.contact-form { max-width: 460px; margin: 0 auto; text-align: left; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--ink-soft);
  border: 1px solid #3a342a;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 1.05rem;
  padding: 14px 16px;
  margin-bottom: 14px;
  border-radius: 2px;
  resize: none;
  transition: border-color 0.2s ease;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #7a715f; }
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--brass); }
.contact-form .btn { width: 100%; margin-top: 6px; }
.contact-form .gotcha {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
}
.form-status {
  font-size: 1rem;
  line-height: 1.6;
  margin-top: 1.2rem;
  text-align: center;
  min-height: 1.4rem;
}
.form-status.success { color: var(--brass-light); }
.form-status.error { color: #d98a7a; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-deep);
  color: #6a6253;
  text-align: center;
  padding: 44px 0;
}
.footer-brand {
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.16em;
  color: #b8af9c;
  margin-bottom: 0.5rem;
}
.footer-meta { font-size: 0.92rem; color: #8a8270; margin-bottom: 0.7rem; }
.footer-links { font-size: 0.9rem; margin-bottom: 1rem; }
.footer-links a {
  color: var(--brass);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--brass-light); }
.footer-disclaimer {
  font-size: 0.82rem;
  line-height: 1.6;
  color: #57503f;
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .res-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .menu-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 92px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .nav.open { max-height: 320px; }
  .nav a {
    width: 100%;
    padding: 16px 28px;
    border-top: 1px solid var(--line);
  }
  .nav a:not(.nav-cta)::after { display: none; }
  .pillars { grid-template-columns: 1fr; gap: 2.5rem; }
  .pillar { padding: 0; }
  .pillar:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding-bottom: 2.5rem;
  }
  .cards { grid-template-columns: 1fr; }
  .hero { padding: 90px 0 100px; }
  .approach, .practice, .resources, .contact { padding: 70px 0; }
}
