/* Pollock Law, LLC — design system
   Faithfully reproduces the original Tailwind/shadcn law-firm look.
   Bootstrap 5 handles the responsive grid; this file supplies the brand.
   All brand colors are HSL, matching the original design tokens. */

:root {
  --law-navy: hsl(220, 26%, 14%);
  --law-navy-dark: hsl(220, 28%, 12%);
  --law-navy-light: hsl(220, 24%, 18%);
  --law-gold: hsl(45, 74%, 58%);
  --law-gold-dark: hsl(45, 76%, 52%);
  --law-neutral: hsl(215, 28%, 17%);
  --law-neutral-light: hsl(215, 16%, 47%);
  --law-bg-soft: hsl(220, 8%, 97%);

  --gradient-hero: linear-gradient(135deg, var(--law-navy), var(--law-navy-dark));
  --gradient-accent: linear-gradient(135deg, var(--law-gold), var(--law-gold-dark));
  --gradient-subtle: linear-gradient(180deg, #ffffff, var(--law-bg-soft));

  --shadow-elegant: 0 10px 30px -10px hsl(220 26% 14% / 0.2);
  --shadow-card: 0 4px 20px -4px hsl(220 26% 14% / 0.08);
  --shadow-glow: 0 0 20px hsl(45 74% 58% / 0.2);

  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  --radius: 0.75rem;
}

* { border-color: hsl(214.3, 31.8%, 91.4%); }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--law-neutral);
  background: #ffffff;
  margin: 0;
}

.font-serif {
  font-family: 'Crimson Text', Georgia, serif;
}

/* ---------- Helpers ---------- */
.bg-gradient-hero { background: var(--gradient-hero); }
.bg-gradient-subtle { background: var(--gradient-subtle); }
.bg-law-navy { background: var(--law-navy); }
.text-law-navy { color: var(--law-navy); }
.text-law-gold { color: var(--law-gold); }
.text-law-neutral { color: var(--law-neutral); }
.text-law-neutral-light { color: var(--law-neutral-light); }
.shadow-elegant { box-shadow: var(--shadow-elegant); }
.shadow-card { box-shadow: var(--shadow-card); }

a { text-decoration: none; }

/* ---------- Buttons ---------- */
.btn-gold {
  background: var(--gradient-accent);
  color: var(--law-navy);
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  padding: 0.875rem 2rem;
  display: inline-block;
  transition: var(--transition-spring);
}
.btn-gold:hover {
  color: var(--law-navy);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.btn-solid-gold {
  background: var(--law-gold);
  color: var(--law-navy);
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  padding: 0.75rem 1.5rem;
  display: inline-block;
  transition: var(--transition-smooth);
}
.btn-solid-gold:hover { background: var(--law-gold-dark); color: var(--law-navy); }

.btn-white-outline {
  background: rgba(255, 255, 255, 0.95);
  color: var(--law-navy);
  border: 1px solid #fff;
  font-weight: 600;
  border-radius: var(--radius);
  padding: 0.875rem 2rem;
  display: inline-block;
  transition: var(--transition-spring);
}
.btn-white-outline:hover { background: #fff; color: var(--law-navy); transform: translateY(-1px); }

.btn-navy {
  background: var(--gradient-hero);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  padding: 0.875rem 2rem;
  transition: var(--transition-spring);
}
.btn-navy:hover { color: #fff; box-shadow: var(--shadow-glow); }
.btn-navy:disabled { opacity: 0.5; }

.btn-ghost-white {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 600;
  border-radius: var(--radius);
  padding: 0.875rem 2rem;
  display: inline-block;
  transition: var(--transition-smooth);
}
.btn-ghost-white:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

/* ---------- Navigation ---------- */
.site-nav {
  background: var(--gradient-hero);
  box-shadow: var(--shadow-elegant);
  position: sticky;
  top: 0;
  z-index: 1050;
}
.site-nav .nav-logo {
  font-family: 'Crimson Text', Georgia, serif;
  font-weight: 700;
  color: #fff;
  font-size: 1.5rem;
  transition: var(--transition-smooth);
}
.site-nav .nav-logo:hover { color: var(--law-gold); }
.site-nav .nav-link-item {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  transition: var(--transition-smooth);
  padding-bottom: 2px;
}
.site-nav .nav-link-item:hover { color: var(--law-gold); }
.site-nav .nav-link-item.active {
  color: var(--law-gold);
  border-bottom: 2px solid var(--law-gold);
}
.nav-toggle {
  background: none;
  border: none;
  color: #fff;
  padding: 0.5rem;
  transition: var(--transition-smooth);
}
.nav-toggle:hover { color: var(--law-gold); }
.mobile-menu {
  background: var(--gradient-hero);
  box-shadow: var(--shadow-elegant);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.mobile-menu .nav-link-item.active {
  background: rgba(255, 255, 255, 0.1);
  border-bottom: none;
  border-radius: var(--radius);
}

/* ---------- Hero (home) ---------- */
.hero-full {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-full .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-full .hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  opacity: 0.8;
}
.hero-content {
  position: relative;
  z-index: 10;
  color: #fff;
  text-align: center;
  max-width: 56rem;
  margin: 0 auto;
}
.hero-title {
  font-family: 'Crimson Text', Georgia, serif;
  font-weight: 700;
  line-height: 1.1;
  font-size: clamp(1.875rem, 6vw, 4.5rem);
}
.hero-lede { font-size: clamp(1rem, 2.5vw, 1.5rem); color: rgba(255,255,255,0.9); }
.hero-body { font-size: clamp(0.875rem, 2vw, 1.25rem); color: rgba(255,255,255,0.8); }

/* Page hero (interior pages) */
.page-hero {
  background: var(--gradient-hero);
  color: #fff;
  padding: 5rem 0;
}
.page-hero h1 {
  font-family: 'Crimson Text', Georgia, serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
}
.page-hero p { font-size: clamp(1.25rem, 3vw, 1.5rem); color: rgba(255,255,255,0.9); }

/* ---------- Section headings ---------- */
.section { padding: 5rem 0; }
.section-title {
  font-family: 'Crimson Text', Georgia, serif;
  font-weight: 700;
  color: var(--law-navy);
  font-size: clamp(1.5rem, 4vw, 3rem);
}

/* ---------- Cards ---------- */
.law-card {
  background: #fff;
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: var(--transition-spring);
  height: 100%;
}
.law-card:hover { box-shadow: var(--shadow-elegant); }

.icon-circle {
  width: 4rem;
  height: 4rem;
  background: var(--gradient-accent);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-spring);
}
.law-card:hover .icon-circle { box-shadow: var(--shadow-glow); }
.icon-circle svg { width: 2rem; height: 2rem; color: var(--law-navy); }

.icon-circle-sm {
  width: 3rem;
  height: 3rem;
  background: var(--gradient-accent);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-circle-sm svg { width: 1.5rem; height: 1.5rem; color: var(--law-navy); }

/* ---------- Why-choose / CTA card ---------- */
.cta-card {
  background: var(--gradient-hero);
  color: #fff;
  padding: 2.5rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-elegant);
}
.gold-dot {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--law-gold);
  border-radius: 9999px;
  margin-top: 0.6rem;
  flex-shrink: 0;
}
.gold-bullet {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--law-gold);
  border-radius: 9999px;
  margin-top: 0.5rem;
  flex-shrink: 0;
}
.gold-bullet-sm {
  width: 0.375rem;
  height: 0.375rem;
  background: var(--law-gold);
  border-radius: 9999px;
  margin-top: 0.5rem;
  flex-shrink: 0;
}

/* ---------- Attorneys ---------- */
.attorney-photo {
  width: 100%;
  height: 18rem;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: var(--transition-spring);
}
.law-card:hover .attorney-photo { box-shadow: var(--shadow-elegant); }
.badge-box {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border: 1px solid hsl(45 74% 58% / 0.2);
}
.paw-photo {
  width: 8rem;
  height: 8rem;
  border-radius: 9999px;
  object-fit: cover;
  margin: 0 auto;
}

/* ---------- Services accordion ---------- */
.acc-item {
  background: #fff;
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-elegant);
  overflow: hidden;
  transition: var(--transition-spring);
}
.acc-item:hover { box-shadow: var(--shadow-glow); }
.acc-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 2rem;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.acc-trigger h2 {
  font-family: 'Crimson Text', Georgia, serif;
  font-weight: 700;
  color: var(--law-navy);
  font-size: 1.875rem;
  transition: var(--transition-smooth);
}
.acc-item:hover .acc-trigger h2 { color: var(--law-gold); }
.acc-hint { font-size: 0.875rem; color: var(--law-gold); font-weight: 500; }
.acc-content {
  padding: 0 2rem 2rem;
  border-top: 1px solid hsl(215 28% 17% / 0.2);
}
.acc-chevron { transition: transform 0.3s ease; flex-shrink: 0; }
.acc-chevron.open { transform: rotate(180deg); }

/* ---------- Contact form ---------- */
.form-label-law {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--law-navy);
  margin-bottom: 0.5rem;
}
.form-control-law {
  width: 100%;
  border: 1px solid hsl(215 28% 17% / 0.2);
  border-radius: var(--radius);
  padding: 0.625rem 0.75rem;
  font-size: 1rem;
  transition: var(--transition-smooth);
  background: #fff;
}
.form-control-law:focus {
  outline: none;
  border-color: var(--law-gold);
  box-shadow: 0 0 0 2px hsl(45 74% 58% / 0.3);
}
textarea.form-control-law { resize: none; }
.captcha-canvas {
  border: 1px solid hsl(215 28% 17% / 0.2);
  border-radius: var(--radius);
  background: #f8f9fa;
}
.btn-refresh {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid hsl(214.3 31.8% 91.4%);
  background: #fff;
  border-radius: calc(var(--radius) - 2px);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.btn-refresh:hover { background: var(--law-bg-soft); }

/* Toast */
.toast-law {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 2000;
  max-width: 24rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-elegant);
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--law-gold);
}
.toast-law.error { border-left-color: hsl(0, 84%, 60%); }
.toast-law .toast-title { font-weight: 600; color: var(--law-navy); }
.toast-law .toast-desc { font-size: 0.875rem; color: var(--law-neutral-light); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--law-navy);
  color: #fff;
  padding: 3rem 0;
}
.site-footer h3 { font-family: 'Crimson Text', Georgia, serif; font-weight: 700; }
.site-footer a { color: rgba(255,255,255,0.8); transition: var(--transition-smooth); }
.site-footer a:hover { color: var(--law-gold); }
.text-white-80 { color: rgba(255,255,255,0.8); }
.text-white-60 { color: rgba(255,255,255,0.6); }
.text-white-90 { color: rgba(255,255,255,0.9); }

/* ---------- 404 ---------- */
.notfound {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  text-align: center;
}

[x-cloak] { display: none !important; }
