/* ============================================================
   Design C — Warm + Trustworthy
   P&H Legal Solutions — Homepage Redesign
   ============================================================

   Concept: A law firm that actually cares.
   Warm earth tones, rich serif headings, generous whitespace.
   Professional without coldness — authority without arrogance.

   Typography pair (existing — no change needed):
     • Headings:   Cormorant Garamond (serif, 600/700) — trust, gravitas
     • Body:        Nunito Sans (sans-serif, 400/500/600) — readable, modern
     • Monospace:  JetBrains Mono (code, accents)

   ============================================================ */

:root {

  /* ── Backgrounds ─────────────────────────────────────── */
  --c-bg:        #211C19;   /* warm near-black — primary page bg */
  --c-surface:   #2C2622;   /* warm dark brown — cards, panels */
  --c-elevated:  #3A332D;   /* warm medium — inputs, hovered cards */
  --c-overlay:   #4A3F37;   /* warm light — hover states, tooltips */

  /* ── Brand / Primary ─────────────────────────────────── */
  /* Terracotta — earthy, warm, trustworthy. Contrast with
     muted background without screaming for attention. */
  --c-primary:      #8B3E2F;   /* deep terracotta — CTA bg, active states */
  --c-primary-hover:#A34B3A;   /* lighter terracotta — hover */
  --c-primary-text: #FAF4EE;   /* warm white — text on primary buttons */

  /* ── Gold (accent) ───────────────────────────────────── */
  /* Warm gold — premium, confident, approachable. Carries
     brand recognition from existing P&H logo palette. */
  --c-gold:         #C9A040;   /* warm gold — links, accents, borders */
  --c-gold-hover:   #DDB84E;   /* champagne gold — hover states */
  --c-gold-muted:   rgba(201,160,64,0.12);  /* subtle bg tint */
  --c-gold-border:  rgba(201,160,64,0.20);  /* gold-tinted borders */

  /* ── Text ────────────────────────────────────────────── */
  --c-text:         #F5F0E8;   /* warm cream — primary text */
  --c-text-muted:   #9A8E7E;   /* warm taupe — secondary text */
  --c-text-faint:   #5A4E40;   /* dim — placeholders, disabled */

  /* ── Borders ─────────────────────────────────────────── */
  --c-border:       rgba(201,160,64,0.15);  /* default subtle border */
  --c-border-hover: rgba(201,160,64,0.45);  /* brighter on hover */

  /* ── Semantic ─────────────────────────────────────────── */
  --c-success:      #5A9E6F;   /* muted sage green — confirmations */
  --c-warning:      #C98B2A;   /* warm amber — warnings */
  --c-error:        #C04040;   /* muted warm red — errors */

  /* ── Typography ──────────────────────────────────────── */
  --font-serif:  'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
  --font-sans:   'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:   'JetBrains Mono', 'Courier New', monospace;

  /* ── Type Scale ─────────────────────────────────────── */
  --text-xs:   0.75rem;    /* 12px — labels, badges */
  --text-sm:   0.875rem;   /* 14px — secondary text, captions */
  --text-base: 1rem;       /* 16px — body text */
  --text-lg:   1.125rem;   /* 18px — lead text */
  --text-xl:   1.25rem;    /* 20px — subheadings */
  --text-2xl:  1.5rem;     /* 24px — section headings */
  --text-3xl:  2rem;       /* 32px — page titles */
  --text-4xl:  2.75rem;    /* 44px — hero headline */

  /* ── Layout ───────────────────────────────────────────── */
  --max-width:      1100px;
  --container-pad:  20px;
  --radius-sm:      6px;
  --radius:         10px;
  --radius-lg:      16px;

  /* ── Shadows ──────────────────────────────────────────── */
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.3);
  --shadow:      0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.5);
  --shadow-gold:  0 4px 20px rgba(201,160,64,0.25);

  /* ── Motion ──────────────────────────────────────────── */
  --transition:    0.2s ease;
  --transition-md: 0.3s ease;

}

/* ── Typography Base ────────────────────────────────────── */

body {
  font-family: var(--font-sans);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  line-height: 1.2;
  color: var(--c-text);
  font-weight: 600;
}

/* ── Design C Application Classes ───────────────────────── */

/* Page background with subtle texture */
.page-c {
  background: var(--c-bg);
  position: relative;
}
.page-c::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,160,64,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,160,64,0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
}
.page-c > * { position: relative; z-index: 1; }

/* Card */
.card-c {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.card-c:hover {
  border-color: var(--c-border-hover);
  box-shadow: var(--shadow-sm);
}

/* CTA Button */
.btn-c-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--c-primary);
  color: var(--c-primary-text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(139,62,47,0.35);
}
.btn-c-primary:hover {
  background: var(--c-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(139,62,47,0.45);
  color: var(--c-primary-text);
}
.btn-c-primary:active { transform: translateY(0); }

/* Gold outline button */
.btn-c-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  background: transparent;
  color: var(--c-gold);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius);
  border: 1.5px solid var(--c-gold);
  text-decoration: none;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  cursor: pointer;
}
.btn-c-outline:hover {
  background: var(--c-gold-muted);
  color: var(--c-gold-hover);
  transform: translateY(-1px);
}
.btn-c-outline:active { transform: translateY(0); }

/* Section divider */
.divider-c {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--c-border) 20%,
    var(--c-gold-border) 50%,
    var(--c-border) 80%,
    transparent 100%
  );
  margin: 48px 0;
}

/* Gold accent line */
.accent-line-c {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--c-gold), var(--c-gold-hover));
  border-radius: 2px;
  margin-bottom: 16px;
}

/* Stat number */
.stat-c {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--c-gold);
  line-height: 1;
}

/* Trust badge */
.badge-c {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--c-gold-muted);
  border: 1px solid var(--c-gold-border);
  border-radius: 50px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--c-gold);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Section label */
.label-c {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--c-gold);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 16px;
}
.label-c::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--c-gold);
  flex-shrink: 0;
}