/* ============================================
   DJW AT LAW — STYLESHEET
   Color palette:
     Gold:       #C9971C
     Gold light: #E8B84B
     Near-black: #1A1A1A
     Dark gray:  #2E2E2E
     Mid gray:   #6B6B6B
     Light gray: #F5F4F1
     White:      #FFFFFF
   ============================================ */

:root {
  --gold:        #C9971C;
  --gold-light:  #E8B84B;
  --gold-pale:   #F9F2E3;
  --near-black:  #1A1A1A;
  --dark-gray:   #2E2E2E;
  --mid-gray:    #6B6B6B;
  --light-gray:  #F5F4F1;
  --border:      #E0DDD6;
  --white:       #FFFFFF;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', sans-serif;

  --max-width: 1160px;
  --nav-height: 80px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--near-black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── UTILITY ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}
.section { padding: 100px 0; }
.centered { text-align: center; }

/* ── TYPOGRAPHY ── */
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--near-black);
  margin-bottom: 48px;
}
.section-heading em {
  font-style: italic;
  color: var(--gold);
}
h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--near-black);
}
p { margin-bottom: 16px; color: var(--dark-gray); }
p:last-child { margin-bottom: 0; }

.text-link {
  display: inline-block;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  margin-top: 8px;
  transition: opacity 0.2s;
}
.text-link:hover { opacity: 0.7; }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}
.btn-ghost {
  background: transparent;
  color: var(--near-black);
  border-color: var(--near-black);
}
.btn-ghost:hover {
  background: var(--near-black);
  color: var(--white);
}
.btn-ghost-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-ghost-white:hover {
  background: var(--white);
  color: var(--near-black);
}

/* ── NAVIGATION ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
  transition: box-shadow 0.3s;
}
.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.07);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}
.nav-logo { display: flex; align-items: center; }
.logo-img {
  height: 60px;
  width: auto;
  filter: none;
}
.logo-img--footer {
  filter: invert(1);
  height: 90px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark-gray);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.25s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 16px);
  left: -20px;
  background: var(--white);
  border: 1px solid var(--border);
  min-width: 220px;
  padding: 8px 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: all 0.2s;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.has-dropdown:hover .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.dropdown li a {
  display: block;
  padding: 10px 20px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--dark-gray);
}
.dropdown li a::after { display: none; }
.dropdown li a:hover {
  background: var(--light-gray);
  color: var(--gold);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--near-black);
  transition: all 0.3s;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-height) + 60px) 40px 80px;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}
.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 500;
  line-height: 1.05;
  color: var(--near-black);
  margin-bottom: 32px;
  animation: fadeUp 0.8s ease both;
}
.hero-headline em {
  font-style: italic;
  color: var(--gold);
}
.hero-sub {
  max-width: 560px;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--mid-gray);
  margin-bottom: 48px;
  animation: fadeUp 0.8s 0.15s ease both;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.25s ease both;
}
.hero-rule {
  position: absolute;
  right: 40px;
  top: calc(var(--nav-height) + 60px);
  bottom: 80px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
  opacity: 0.4;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── SERVICE STRIP ── */
.service-strip {
  background: var(--near-black);
  padding: 0;
  border-top: 2px solid var(--gold);
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}
.strip-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 24px;
  border-right: 1px solid rgba(255,255,255,0.08);
  transition: background 0.2s;
}
.strip-item:last-child { border-right: none; }
.strip-item:hover { background: rgba(201,151,28,0.12); }
.strip-num {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--gold);
}
.strip-label {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.75);
  line-height: 1.4;
}

/* ── INTRO ── */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.intro-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--dark-gray);
  margin-bottom: 20px;
}
.intro-pillars {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.pillar {
  padding-left: 24px;
  border-left: 2px solid var(--gold);
}
.pillar-icon {
  display: none;
}
.pillar h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--near-black);
}
.pillar p {
  font-size: 0.9rem;
  color: var(--mid-gray);
  margin: 0;
}

/* ── QUOTE BAND ── */
.quote-band {
  background: var(--light-gray);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
}
.quote-band blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.6;
  color: var(--near-black);
  max-width: 860px;
  margin: 0 auto 24px;
  text-align: center;
}
.quote-band cite {
  display: block;
  text-align: center;
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

/* ── PRACTICE CARDS ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.card {
  display: flex;
  flex-direction: column;
  padding: 36px 32px;
  background: var(--white);
  transition: background 0.2s;
}
.card:hover { background: var(--light-gray); }
.card-highlight {
  background: var(--gold-pale);
}
.card-highlight:hover { background: #f0e4c4; }
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.card-tag {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.card-arrow {
  font-size: 1.1rem;
  color: var(--border);
  transition: color 0.2s, transform 0.2s;
}
.card:hover .card-arrow {
  color: var(--gold);
  transform: translateX(4px);
}
.card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.card p {
  font-size: 0.88rem;
  color: var(--mid-gray);
  flex: 1;
  margin-bottom: 20px;
}
.card-fee {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: auto;
}

/* ── CTA BAND ── */
.cta-band {
  background: var(--near-black);
  padding: 100px 0;
}
.cta-inner {
  text-align: center;
}
.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 500;
  color: var(--white);
  margin-bottom: 16px;
}
.cta-inner p {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  margin-bottom: 40px;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--near-black);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 60px;
  align-items: start;
  padding-top: 60px;
  padding-bottom: 60px;
}
.footer-info p {
  color: rgba(255,255,255,0.5);
  font-size: 0.82rem;
  margin-bottom: 6px;
  line-height: 1.6;
}
.footer-info a { color: var(--gold); }
.footer-bar-note { color: rgba(255,255,255,0.3) !important; font-size: 0.72rem !important; margin-top: 8px !important; }
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.footer-links a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
}
.footer-bottom p {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.25);
  margin-bottom: 4px;
  line-height: 1.6;
}
.disclaimer { font-style: italic; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--near-black);
  padding: calc(var(--nav-height) + 80px) 0 80px;
  border-bottom: 2px solid var(--gold);
}
.page-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}
.page-hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
}
.page-hero h1 em {
  font-style: italic;
  color: var(--gold);
}
.page-hero p {
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  max-width: 600px;
  margin: 0;
}

/* ── CONTENT SECTIONS (inner pages) ── */
.content-section {
  padding: 80px 0;
}
.content-section + .content-section {
  border-top: 1px solid var(--border);
}
.content-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.content-narrow {
  max-width: 760px;
}
.content-narrow p, .content-narrow li {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--dark-gray);
  margin-bottom: 16px;
}
.content-narrow ul {
  list-style: none;
  margin: 24px 0;
}
.content-narrow ul li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 10px;
}
.content-narrow ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 400;
}
.content-heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 500;
  color: var(--near-black);
  margin-bottom: 24px;
  line-height: 1.2;
}

/* Fee Box */
.fee-box {
  background: var(--light-gray);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  padding: 32px;
  margin: 40px 0;
}
.fee-box h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  color: var(--near-black);
}
.fee-box p {
  font-size: 0.88rem;
  color: var(--mid-gray);
  margin: 0;
}
.fee-amount {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--gold);
  margin: 8px 0 4px;
}

/* Sidebar card */
.sidebar-card {
  background: var(--near-black);
  color: var(--white);
  padding: 36px 32px;
  position: sticky;
  top: calc(var(--nav-height) + 32px);
}
.sidebar-card h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 16px;
}
.sidebar-card p {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  margin-bottom: 24px;
}
.sidebar-card .btn { width: 100%; text-align: center; }

/* ── CONTACT FORM ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: start;
}
.form-group {
  margin-bottom: 24px;
}
.form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--near-black);
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}
.form-group textarea {
  min-height: 140px;
  resize: vertical;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-note {
  font-size: 0.78rem;
  color: var(--mid-gray);
  margin-top: 16px;
  font-style: italic;
}
.contact-info-block {
  margin-bottom: 32px;
}
.contact-info-block h4 {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.contact-info-block p {
  font-size: 0.88rem;
  color: var(--mid-gray);
  line-height: 1.7;
  margin: 0;
}

/* ── ABOUT PAGE ── */
.about-lead {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 400;
  line-height: 1.65;
  color: var(--near-black);
  margin-bottom: 40px;
}
.credentials-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 40px 0;
}
.credential-item {
  padding: 24px;
  border: 1px solid var(--border);
  background: var(--light-gray);
}
.credential-item h5 {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.credential-item p {
  font-size: 0.88rem;
  color: var(--dark-gray);
  margin: 0;
}

/* ── PRACTICE AREA LISTING PAGE ── */
.pa-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.pa-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.pa-item:first-child { border-top: 1px solid var(--border); }
.pa-item:hover { background: var(--light-gray); margin: 0 -40px; padding-left: 40px; padding-right: 40px; }
.pa-num {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--gold);
}
.pa-info h3 { font-size: 1.3rem; margin-bottom: 6px; }
.pa-info p { font-size: 0.88rem; color: var(--mid-gray); margin: 0; }
.pa-action { font-size: 1.4rem; color: var(--border); transition: all 0.2s; white-space: nowrap; }
.pa-item:hover .pa-action { color: var(--gold); transform: translateX(4px); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .intro-grid { grid-template-columns: 1fr; gap: 60px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .strip-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .credentials-list { grid-template-columns: 1fr; }
  .content-two-col { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-links { align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: 16px; }
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .section { padding: 60px 0; }
  .hero { padding: calc(var(--nav-height) + 40px) 24px 60px; }
  .hero-rule { display: none; }
  .cards-grid { grid-template-columns: 1fr; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; flex-direction: column; position: fixed; inset: var(--nav-height) 0 0 0; background: var(--white); padding: 32px 24px; gap: 0; overflow-y: auto; }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 16px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
  .nav-links li a::after { display: none; }
  .has-dropdown .dropdown { position: static; opacity: 1; pointer-events: auto; transform: none; border: none; box-shadow: none; padding: 0 0 0 16px; }
  .nav-toggle { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .pa-item { grid-template-columns: 40px 1fr; }
  .pa-action { display: none; }
  .page-hero { padding: calc(var(--nav-height) + 40px) 0 40px; }
}

/* ── SUCCESS / ERROR STATES ── */
.form-success {
  display: none;
  padding: 20px 24px;
  background: var(--gold-pale);
  border: 1px solid var(--gold);
  border-left: 3px solid var(--gold);
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--near-black);
}
