/* JQQQ Legal — professional law firm styling */

:root {
  --color-bg: #fafbfc;
  --color-surface: #ffffff;
  --color-ink: #1a2332;
  --color-ink-muted: #4a5568;
  --color-border: #e2e8f0;
  --color-navy: #0f172a;
  --color-navy-light: #1e293b;
  --color-accent: #b8860b;
  --color-accent-hover: #9a7209;
  --font-serif: "Merriweather", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", system-ui, sans-serif;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 24px rgba(15, 23, 42, 0.1);
  --max-width: 1120px;
  --header-height: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-navy);
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--color-navy-light);
  text-decoration-color: rgba(15, 23, 42, 0.35);
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover {
  color: var(--color-accent);
  text-decoration-color: var(--color-accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--color-navy);
  color: #fff;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.logo {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--color-navy);
  text-decoration: none;
}

.logo:hover {
  color: var(--color-navy);
  text-decoration: none;
}

.logo span {
  color: var(--color-accent);
  font-weight: 400;
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav-primary a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-ink-muted);
  text-decoration: none;
  border-radius: 4px;
}

.nav-primary a:hover,
.nav-primary a[aria-current="page"] {
  color: var(--color-navy);
  background: rgba(15, 23, 42, 0.06);
}

.nav-primary a[aria-current="page"] {
  color: var(--color-navy);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--color-navy);
  color: #fff !important;
  text-decoration: none !important;
}

.btn-primary:hover {
  background: var(--color-navy-light);
  color: #fff !important;
}

.btn-outline {
  background: transparent;
  color: var(--color-navy) !important;
  border: 1px solid var(--color-border);
  text-decoration: none !important;
}

.btn-outline:hover {
  border-color: var(--color-navy);
  background: rgba(15, 23, 42, 0.04);
}

/* Hero */
.hero {
  background: linear-gradient(165deg, var(--color-navy) 0%, #1e3a5f 55%, var(--color-navy-light) 100%);
  color: #e8eef4;
  padding: 3.5rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
      circle at 20% 80%,
      rgba(184, 134, 11, 0.12) 0%,
      transparent 45%
    ),
    radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 40%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: #fff;
  max-width: 32ch;
  margin-bottom: 1rem;
}

.hero-lead {
  font-size: 1.15rem;
  max-width: 52ch;
  color: rgba(232, 238, 244, 0.92);
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero .btn-primary {
  background: var(--color-accent);
  color: var(--color-navy) !important;
}

.hero .btn-primary:hover {
  background: #d4a84a;
  color: var(--color-navy) !important;
}

.hero .btn-outline {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff !important;
}

.hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.hero-badge {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232, 238, 244, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

/* Sections */
.section {
  padding: 3.5rem 1.5rem;
}

.section-alt {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-head {
  margin-bottom: 2.5rem;
  max-width: 42rem;
}

.section-head p {
  color: var(--color-ink-muted);
  margin: 0;
}

.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

/* Grid cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.card h3 {
  font-size: 1.15rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.card-link {
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 1rem;
  display: inline-block;
}

.icon-line {
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
  margin-bottom: 1rem;
  border-radius: 2px;
}

/* Two column */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

/* Stats / trust */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 2.5rem;
}

.trust-item strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: #fff;
}

.trust-item span {
  font-size: 0.85rem;
  color: rgba(232, 238, 244, 0.75);
}

/* Page header (inner pages) */
.page-header {
  background: var(--color-navy);
  color: #e8eef4;
  padding: 2.75rem 1.5rem;
}

.page-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-header h1 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.page-header p {
  margin: 0;
  color: rgba(232, 238, 244, 0.85);
  max-width: 48ch;
}

.breadcrumb {
  font-size: 0.875rem;
  margin-bottom: 1rem;
  color: rgba(232, 238, 244, 0.65);
}

.breadcrumb a {
  color: rgba(232, 238, 244, 0.9);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
  color: #fff;
}

/* Lists */
.list-check {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.list-check li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.65rem;
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 1px;
}

/* Contact form */
.form-grid {
  display: grid;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  gap: 0.5rem;
}

.form-row label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-ink);
}

.form-row input,
.form-row select,
.form-row textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-surface);
  color: var(--color-ink);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--color-navy);
  outline-offset: 1px;
  border-color: var(--color-navy);
}

.form-row textarea {
  min-height: 140px;
  resize: vertical;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--color-ink-muted);
  margin: 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  background: var(--color-navy);
  color: #e8eef4;
  padding: 2rem;
  border-radius: 6px;
}

.contact-card h3 {
  color: #fff;
  margin-bottom: 1rem;
}

.contact-card p,
.contact-card a {
  color: rgba(232, 238, 244, 0.9);
}

.contact-card a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-card a:hover {
  color: #fff;
}

.contact-detail {
  margin-bottom: 1.25rem;
}

.contact-detail:last-child {
  margin-bottom: 0;
}

.contact-detail dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(232, 238, 244, 0.55);
  margin-bottom: 0.25rem;
}

.contact-detail dd {
  margin: 0;
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: var(--color-navy);
  color: rgba(232, 238, 244, 0.85);
  padding: 3rem 1.5rem 2rem;
  font-size: 0.9rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(232, 238, 244, 0.55);
  margin: 0 0 1rem;
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: rgba(232, 238, 244, 0.85);
  text-decoration: none;
}

.footer-col a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-disclaimer {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  line-height: 1.6;
  color: rgba(232, 238, 244, 0.55);
}

.footer-disclaimer p {
  margin: 0 0 0.75rem;
}

.footer-bottom {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(232, 238, 244, 0.45);
}

/* Legal content */
.legal-content {
  max-width: 720px;
}

.legal-content h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content ul {
  padding-left: 1.25rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

/* Service detail blocks */
.service-block {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--color-border);
}

.service-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* CTA strip */
.cta-strip {
  background: linear-gradient(135deg, #1e293b 0%, var(--color-navy) 100%);
  color: #e8eef4;
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.cta-strip-inner {
  max-width: 560px;
  margin: 0 auto;
}

.cta-strip h2 {
  color: #fff;
  margin-bottom: 0.75rem;
}

.cta-strip p {
  margin-bottom: 1.25rem;
  color: rgba(232, 238, 244, 0.88);
}

.cta-strip .btn-primary {
  background: var(--color-accent);
  color: var(--color-navy) !important;
}

.cta-strip .btn-primary:hover {
  background: #d4a84a;
}
