/* ============================================================
   P&H Legal Solutions — Dark + Gold Design System
   Palette extracted from official logo:
   https://pub-629428d185ca4960a0a73c850d32294b.r2.dev/company_31609/images/b368fd6a-85a0-462a-a522-a80548340401.png
   ============================================================ */

/* ── Design Tokens ───────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-primary:   #1A1A1A;  /* deep charcoal — page background */
  --bg-secondary: #2D2D2D;  /* charcoal — cards, panels */
  --bg-surface:   #3D3D3D;  /* gunmetal — inputs, surfaces */
  --bg-overlay:   #4A4A4A;  /* light gunmetal — hover states */

  /* Brand */
  --gold-dark:    #C9A84C;  /* brushed gold — CTAs, links, accents */
  --gold-light:   #D4AF37;  /* champagne gold — hover, highlights */
  --gold-glow:    rgba(201,168,76,0.15);  /* subtle gold glow */

  /* Text */
  --text-warm:    #F5F0E8;  /* warm white — primary text on dark */
  --text-muted:   #A09890;  /* warm grey — secondary text */
  --text-subtle:  #6D6560;  /* dim — placeholders, disabled */

  /* Borders */
  --border:        rgba(201,168,76,0.15);  /* gold-tinted borders */
  --border-hover: rgba(201,168,76,0.4);   /* brighter on hover */

  /* Semantic */
  --error:        #E05252;
  --success:      #4CAF50;
  --warning:      #E89B3C;

  /* Layout */
  --max-width:    1100px;
  --border-radius: 8px;
  --border-radius-lg: 14px;

  /* Transition */
  --transition:   0.2s ease;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Base ───────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-warm);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', 'Georgia', serif;
  line-height: 1.2;
  color: var(--text-warm);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; letter-spacing: -0.5px; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 600; letter-spacing: -0.3px; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

p { line-height: 1.7; color: var(--text-muted); }

a {
  color: var(--gold-dark);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--gold-light); }

/* ── Subtle grid overlay ───────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ── Layout ─────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ── Top Accent Bar ──────────────────────────────────────── */
.top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-dark) 30%, var(--gold-light) 70%, transparent 100%);
  z-index: 100;
}

/* ── Navigation ─────────────────────────────────────────── */
nav {
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 3px;
  z-index: 90;
  background: rgba(26, 26, 26, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  transition: opacity var(--transition);
}
.logo:hover { opacity: 0.85; }
.logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(201,168,76,0.2));
}
.logo-text { display: flex; flex-direction: column; line-height: 1; gap: 4px; }
.logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: -0.3px;
}
.logo-tagline {
  font-size: 0.45rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* Nav links */
.nav-tag {
  font-size: 0.75rem;
  color: var(--gold-dark);
  background: var(--gold-glow);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 500;
}

/* Gold nav links */
.nav-blog-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gold-dark);
  opacity: 0.8;
  transition: color var(--transition), opacity var(--transition);
  text-decoration: none;
  letter-spacing: 0.3px;
}
.nav-blog-link:hover {
  color: var(--gold-light);
  opacity: 1;
}
.nav-blog-link.active { color: var(--gold-light); opacity: 1; }

/* Social links in nav — gold tint */
.nav-social .social-link {
  color: var(--gold-dark);
  opacity: 0.6;
}
.nav-social .social-link:hover {
  opacity: 1;
  color: var(--gold-light);
  border-color: var(--gold-dark);
}

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  padding: 8px;
  transition: border-color var(--transition);
}
.nav-hamburger:hover { border-color: var(--gold-dark); }
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--gold-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: 67px;
  left: 0;
  right: 0;
  background: rgba(26, 26, 26, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px 24px;
  flex-direction: column;
  gap: 16px;
  z-index: 89;
  animation: slideDown 0.2s ease;
}
.nav-drawer.open { display: flex; }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.nav-drawer .nav-blog-link {
  font-size: 1rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.nav-drawer .nav-cta {
  text-align: center;
  padding: 14px;
  font-size: 0.95rem;
  border-radius: 8px;
}
.nav-drawer .nav-tag {
  display: none;
}

/* CTA Button */
.btn-gold, .nav-cta {
  display: inline-block;
  padding: 10px 24px;
  background: var(--gold-dark);
  color: #1A1A1A;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-gold:hover, .nav-cta:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  color: #1A1A1A;
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  padding: 90px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(212,175,55,0.08) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

/* Gold accent lines */
.hero-accent-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  margin-bottom: 32px;
  border-radius: 2px;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 600;
  margin-bottom: 28px;
  font-family: 'DM Sans', sans-serif;
}
.hero-label::before {
  content: '';
  width: 36px;
  height: 2px;
  background: var(--gold-dark);
  flex-shrink: 0;
}
.hero h1 {
  margin-bottom: 28px;
  max-width: 820px;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.15;
  color: var(--gold-dark);
}
.hero h1 em { font-style: normal; color: var(--text-warm); }
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-warm);
  max-width: 580px;
  line-height: 1.8;
  margin-bottom: 44px;
  opacity: 0.85;
}
.hero-cta {
  display: inline-block;
  padding: 18px 42px;
  background: var(--gold-dark);
  color: #1A1A1A;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: all var(--transition);
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}
.hero-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 50%);
}
.hero-cta:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(201,168,76,0.3);
  color: #1A1A1A;
}

/* Subtle divider below hero */
.hero-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
  margin-top: 80px;
  opacity: 0.3;
}

/* Language strip */
.lang-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 0;
}
.lang-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-warm);
  text-decoration: none;
  transition: all var(--transition);
}
.lang-pill:hover {
  border-color: var(--border-hover);
  background: var(--gold-glow);
}
.lang-pill .flag { font-size: 1.1rem; }

/* ── Section divider ────────────────────────────────────── */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 72px 0;
}

/* ── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  transition: border-color var(--transition);
}
.card:hover { border-color: var(--border-hover); }

/* Stat block */
.stat-block {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-lg);
  padding: 32px;
}
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: -2px;
  line-height: 1;
}
.stat-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.5;
}

/* Practice card */
.practice-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-lg);
  padding: 28px;
  transition: border-color var(--transition);
}
.practice-card:hover { border-color: var(--border-hover); }
.practice-icon {
  width: 48px;
  height: 48px;
  background: var(--gold-glow);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
}
.practice-card h3 { margin-bottom: 10px; }
.practice-card p { font-size: 0.88rem; line-height: 1.6; }

/* ── Steps ──────────────────────────────────────────────── */
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: rgba(201,168,76,0.25);
  line-height: 1.1;
  padding-top: 4px;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: 0.93rem; line-height: 1.65; }

/* ── Forms ──────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-warm);
  margin-bottom: 8px;
}
input, select, textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  color: var(--text-warm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  transition: border-color var(--transition);
  outline: none;
}
input::placeholder, textarea::placeholder { color: var(--text-subtle); }
input:focus, select:focus, textarea:focus {
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23A09890' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
textarea { resize: vertical; min-height: 100px; }

/* ── Buttons ────────────────────────────────────────────── */
button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--gold-dark);
  color: #1A1A1A;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
button:hover, .btn:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ── Footer ─────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 36px;
  text-align: center;
}
footer .logo-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}
footer .logo-footer img { height: 36px; width: auto; }
footer .logo-footer .logo-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--gold-dark);
  font-size: 1rem;
}
footer .logo-footer .logo-tagline {
  font-size: 0.4rem;
  letter-spacing: 2.5px;
  color: var(--text-muted);
}
footer p { font-size: 0.78rem; margin-bottom: 4px; }
footer .footer-legal-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
}
footer .footer-legal-links a {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
footer .footer-legal-links a:hover { color: var(--gold-dark); }

/* ── Social Links ────────────────────────────────────────── */
.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition);
}
.social-link:hover {
  border-color: var(--border-hover);
  color: var(--gold-dark);
  background: var(--gold-glow);
  transform: translateY(-1px);
}
.social-link svg { width: 18px; height: 18px; }

.nav-social { display: flex; align-items: center; gap: 8px; }
.nav-social .social-link { width: 32px; height: 32px; }
.nav-social .social-link svg { width: 15px; height: 15px; }

/* ── Closing section ────────────────────────────────────── */
.closing { text-align: center; padding: 60px 0 100px; }
.closing h2 { margin-bottom: 18px; }
.closing h2 em { font-style: normal; color: var(--gold-dark); }
.closing > p { margin: 0 auto 32px; max-width: 520px; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero { padding: 60px 0 50px; }
  .hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 1rem; }
  .hero-cta { padding: 14px 28px; }
  nav { padding: 14px 0; }

  /* Desktop nav links hidden on mobile, show hamburger */
  .nav-desktop-links { display: none !important; }
  .nav-hamburger { display: flex !important; }

  .problem-grid { grid-template-columns: 1fr !important; }
  .practice-grid { grid-template-columns: 1fr !important; }
  .lang-strip { gap: 8px; }
  .lang-pill { padding: 8px 12px; font-size: 0.82rem; }
  .stat-number { font-size: 2.5rem; }
  .step { grid-template-columns: 48px 1fr; gap: 16px; }
}

@media (min-width: 769px) {
  .nav-drawer { display: none !important; }
}

/* ── Utility ────────────────────────────────────────────── */
.text-gold { color: var(--gold-dark); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-4 { margin-bottom: 16px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }

/* ── In-app browser fix (Instagram/FB WebView) ─────────── */
@media (max-height: 400px) {
  .urgency-hero { display: none !important; }
  .card-grid-2col { grid-template-columns: 1fr 1fr !important; }
  .step1-next-btn { display: none !important; }
}