/* ===== C and D Law Firm — static rebuild of the Tailwind/oklch theme ===== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,500&family=Inter:wght@400;500;600&display=swap');

:root {
  --radius: 0.25rem;
  --background: oklch(0.145 0 0);
  --foreground: oklch(0.97 0.005 90);
  --card: oklch(0.19 0.004 60);
  --primary: oklch(0.82 0.16 88);
  --primary-foreground: oklch(0.16 0 0);
  --muted-foreground: oklch(0.72 0.012 80);
  --border: oklch(0.3 0.008 70);
  --surface: oklch(0.115 0 0);
  --gradient-gold: linear-gradient(100deg, oklch(0.72 0.14 78), oklch(0.9 0.15 95), oklch(0.75 0.15 82));
  --shadow-gold: 0 18px 50px -20px oklch(0.82 0.16 88 / 0.45);
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  line-height: 1.5;
}
h1, h2, h3, .font-display { font-family: var(--font-display); font-weight: 400; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.bg-gold {
  background: var(--gradient-gold);
  color: var(--primary-foreground);
}
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--primary);
}
.btn {
  display: inline-block;
  border-radius: var(--radius);
  padding: 16px 40px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn:hover { opacity: 0.9; }
.btn-hero { box-shadow: var(--shadow-gold); }
.btn-sm { padding: 10px 20px; font-size: 0.75rem; }

/* ---------- Header ---------- */
header.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: color-mix(in oklch, var(--surface) 95%, transparent);
  backdrop-filter: blur(6px);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  width: 44px;
  border-radius: 2px;
  border: 1px solid color-mix(in oklch, var(--primary) 60%, transparent);
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--primary);
}
.logo-text {
  display: none;
  font-family: var(--font-display);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--muted-foreground);
}
nav.main-nav {
  display: none;
  align-items: center;
  gap: 36px;
}
nav.main-nav a {
  font-size: 0.875rem;
  color: color-mix(in oklch, var(--foreground) 80%, transparent);
  transition: color 0.2s;
}
nav.main-nav a:hover { color: var(--primary); }

@media (min-width: 640px) { .logo-text { display: block; } }
@media (min-width: 1024px) { nav.main-nav { display: flex; } }

/* ---------- Hero ---------- */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#hero img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
}
#hero .content {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
#hero h1 {
  font-size: 3rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
#hero .tagline {
  margin-top: 24px;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--primary);
  font-size: 1.25rem;
}
#hero .lede {
  margin: 24px auto 0;
  max-width: 640px;
  font-size: 1rem;
  line-height: 1.7;
  color: color-mix(in oklch, var(--foreground) 75%, transparent);
}
@media (min-width: 640px) {
  #hero h1 { font-size: 3.75rem; }
  #hero .tagline { font-size: 1.5rem; }
}
@media (min-width: 1024px) {
  #hero h1 { font-size: 6rem; }
  #hero .tagline { font-size: 1.875rem; }
}

/* ---------- Sections ---------- */
section { padding: 112px 0; }
.bg-surface { background: var(--surface); }

/* About */
#about-us .grid2 {
  display: grid;
  gap: 64px;
  align-items: center;
}
#about-us h2 { font-size: 2.25rem; line-height: 1.2; margin-top: 20px; }
#about-us p.body { margin-top: 28px; color: var(--muted-foreground); line-height: 1.7; }
#about-us .stats {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}
#about-us .stats .stat-num { font-family: var(--font-display); font-size: 1.875rem; color: var(--primary); }
#about-us .stats .stat-label {
  margin-top: 4px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted-foreground);
}
#about-us img.about-photo {
  height: 560px;
  width: 100%;
  border-radius: 2px;
  object-fit: cover;
}
@media (min-width: 1024px) {
  #about-us .grid2 { grid-template-columns: 1fr 1fr; }
  #about-us h2 { font-size: 3rem; }
}

/* Practice */
#practice .intro { max-width: 640px; }
#practice h2 { font-size: 2.25rem; line-height: 1.2; margin-top: 20px; }
#practice .grid3 {
  margin-top: 56px;
  display: grid;
  gap: 1px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
#practice article {
  background: var(--surface);
  padding: 36px;
  transition: background-color 0.2s;
}
#practice article:hover { background: var(--card); }
#practice .rule { display: block; height: 1px; width: 40px; background: var(--gradient-gold); }
#practice h3 { margin-top: 24px; font-size: 1.5rem; }
#practice p.body { margin-top: 16px; font-size: 0.875rem; line-height: 1.7; color: var(--muted-foreground); }
@media (min-width: 768px) { #practice .grid3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { #practice .grid3 { grid-template-columns: repeat(3, 1fr); } #practice h2 { font-size: 3rem; } }

/* Team */
#team .intro { max-width: 640px; }
#team h2 { font-size: 2.25rem; line-height: 1.2; margin-top: 20px; }
#team .grid-team {
  margin-top: 56px;
  max-width: 768px;
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
#team img.member-photo {
  height: 320px;
  width: 100%;
  border-radius: 2px;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.5s;
}
#team img.member-photo:hover { filter: grayscale(0); }
#team h3 { margin-top: 20px; font-size: 1.25rem; }
#team .role { margin-top: 4px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--primary); }
@media (min-width: 640px) { #team .grid-team { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { #team h2 { font-size: 3rem; } }

/* Band / callout */
#band { position: relative; overflow: hidden; padding: 128px 0; }
#band img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#band .overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.75); }
#band .grid2 { position: relative; display: grid; gap: 56px; }
#band h2 { font-size: 1.875rem; line-height: 1.2; }
#band p.body { margin-top: 20px; color: color-mix(in oklch, var(--foreground) 75%, transparent); line-height: 1.7; }
@media (min-width: 1024px) { #band .grid2 { grid-template-columns: 1fr 1fr; } #band h2 { font-size: 2.25rem; } }

/* Publications */
#publications .intro { max-width: 640px; }
#publications h2 { font-size: 2.25rem; line-height: 1.2; margin-top: 20px; }
#publications .grid3 { margin-top: 56px; display: grid; gap: 32px; }
#publications article { border: 1px solid var(--border); background: var(--card); border-radius: 2px; padding: 32px; }
#publications .pub-date { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--primary); }
#publications h3 { margin-top: 16px; font-size: 1.25rem; line-height: 1.4; }
#publications p.body { margin-top: 16px; font-size: 0.875rem; line-height: 1.7; color: var(--muted-foreground); }
@media (min-width: 1024px) { #publications .grid3 { grid-template-columns: repeat(3, 1fr); } #publications h2 { font-size: 3rem; } }

/* Contact */
#contact { text-align: center; }
#contact .inner { max-width: 640px; margin: 0 auto; }
#contact h2 { font-size: 2.25rem; line-height: 1.2; }
#contact p.body { margin-top: 20px; color: var(--muted-foreground); line-height: 1.7; }
#contact .actions { margin-top: 40px; }
#contact .fine { margin-top: 32px; font-size: 0.875rem; color: var(--muted-foreground); }
@media (min-width: 640px) { #contact h2 { font-size: 3rem; } }

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 40px 0;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.footer-inner .tag { text-transform: uppercase; letter-spacing: 0.25em; }
@media (min-width: 640px) { .footer-inner { flex-direction: row; justify-content: space-between; } }
