/*
Theme Name: FamClerk
Description: Landing site for FamClerk — paid in full, up front, on every family-law matter. Pair with the FamClerk Leads plugin, which captures the "Get started" form.
Version: 1.1.0
Author: FamClerk, Inc.
Requires at least: 6.0
Requires PHP: 7.4
License: GPL2
Text Domain: famclerk
*/

/* Values are taken from the design reference (Main.dc.html). The accent is a
   variable so the Customizer can swap it; everything else is fixed brand. */
/* Every block spans the full content column (1136px): headings, intro text,
   cards and tables share one left and right edge, so a heading only wraps
   once it is wider than the content beneath it. Don't reintroduce max-widths. */
:root {
	--fc-accent: #1C6B52;
	--fc-ink: #12241D;
	--fc-ink-2: #3F5149;
	--fc-muted: #5B6B64;
	--fc-bg: #F6F8F7;
	--fc-surface: #FDFEFD;
	--fc-line: #DCE5E0;
	--fc-line-2: #C7D3CC;
	--fc-tint: #E6F0EB;
	--fc-tint-2: #F1F7F4;
	--fc-dark: #12241D;
	--fc-darker: #0C1A14;
	--fc-on-dark: #F2F6F4;
	--fc-on-dark-2: #BFD3C9;
	--fc-on-dark-3: #9FB8AC;
	--fc-mint: #8FD3B5;
	--fc-mint-line: #5FB894;
	--fc-green: #1C6B52;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--fc-bg);
	color: var(--fc-ink);
	font-family: 'Plus Jakarta Sans', Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}
a { color: var(--fc-green); }
a:hover { color: var(--fc-ink); }
img, svg { max-width: 100%; }
[id] { scroll-margin-top: 24px; }

.fc-skip { position: absolute; left: -9999px; }
.fc-skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--fc-surface); padding: 10px 14px; border-radius: 8px; }

.fc-wrap { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }

.fc-eyebrow { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--fc-green); }
.fc-h2 { margin: 0; font-size: 40px; line-height: 1.1; font-weight: 800; letter-spacing: -0.8px; }
.fc-lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--fc-ink-2); }
.fc-heading { display: flex; flex-direction: column; gap: 12px; }

.fc-btn {
	display: inline-block; text-decoration: none; font-weight: 700; font-size: 17px;
	padding: 16px 26px; border-radius: 12px; color: var(--fc-surface); background: var(--fc-accent);
}
.fc-btn:hover { color: var(--fc-surface); filter: brightness(1.08); }
.fc-btn--ghost { color: var(--fc-ink); background: var(--fc-surface); border: 1px solid var(--fc-line-2); padding: 15px 25px; }
.fc-btn--ghost:hover { color: var(--fc-ink); border-color: var(--fc-ink); filter: none; }
.fc-btn:focus-visible, .fc-nav a:focus-visible, .fc-form button:focus-visible { outline: 3px solid var(--fc-mint); outline-offset: 2px; }

/* Header */
.fc-header { background: var(--fc-surface); border-bottom: 1px solid var(--fc-line); }
.fc-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.fc-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fc-ink); }
.fc-brand span { font-size: 22px; font-weight: 800; letter-spacing: -0.3px; }
.fc-brand:hover { color: var(--fc-ink); }
.fc-logo-tile { fill: var(--fc-accent); }
.fc-nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; font-size: 15px; font-weight: 600; }
.fc-nav-links a { text-decoration: none; color: var(--fc-ink-2); }
.fc-nav-links a:hover { color: var(--fc-ink); }
.fc-nav-links a.fc-nav-cta { color: var(--fc-surface); background: var(--fc-accent); padding: 12px 20px; border-radius: 10px; }
.fc-nav-toggle { display: none; }

/* Hero */
.fc-hero { background: var(--fc-surface); border-bottom: 1px solid var(--fc-line); }
.fc-hero .fc-wrap { padding-top: 112px; padding-bottom: 104px; }
.fc-hero-copy { display: flex; flex-direction: column; gap: 24px; }
.fc-hero h1 { margin: 0; font-size: 72px; line-height: 1.03; font-weight: 800; letter-spacing: -1.8px; }
.fc-hero-sub { margin: 0; font-size: 20px; line-height: 1.55; color: var(--fc-ink-2); }
.fc-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }

/* Dark band (firm + access) */
.fc-dark { background: var(--fc-dark); color: var(--fc-on-dark); }
.fc-dark .fc-eyebrow { color: var(--fc-mint); }
.fc-dark .fc-lead { color: var(--fc-on-dark-2); }
.fc-band { padding-top: 88px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 44px; }
.fc-pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.fc-pillar { display: flex; flex-direction: column; gap: 10px; border-top: 2px solid var(--fc-mint-line); padding-top: 20px; }
.fc-pillar h3 { margin: 0; font-size: 21px; font-weight: 800; }
.fc-pillar p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--fc-on-dark-2); }

/* Comparison */
.fc-compare { padding-top: 96px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 40px; }
.fc-table-wrap { overflow-x: auto; background: var(--fc-surface); border: 1px solid var(--fc-line); border-radius: 18px; }
.fc-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.fc-table thead th { text-align: left; padding: 18px 20px; border-bottom: 2px solid var(--fc-ink); font-size: 15px; }
.fc-table tbody th { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--fc-line); font-weight: 700; }
.fc-table td { padding: 16px 20px; border-bottom: 1px solid var(--fc-line); color: var(--fc-ink-2); }
.fc-table tbody tr:last-child th, .fc-table tbody tr:last-child td { border-bottom: 0; }
.fc-table thead th.fc-us { background: var(--fc-tint); color: var(--fc-green); }
.fc-table td.fc-us { background: var(--fc-tint-2); font-weight: 700; color: var(--fc-ink); }
.fc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* How it works */
.fc-how { background: var(--fc-surface); border-top: 1px solid var(--fc-line); border-bottom: 1px solid var(--fc-line); }
.fc-how .fc-band { gap: 40px; }
.fc-steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.fc-steps li { display: flex; flex-direction: column; gap: 10px; }
.fc-step-num { width: 44px; height: 44px; border-radius: 12px; background: var(--fc-tint); color: var(--fc-green); font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.fc-step-num--on { background: var(--fc-accent); color: var(--fc-surface); }
.fc-steps h3 { margin: 0; font-size: 19px; font-weight: 800; }
.fc-steps p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--fc-ink-2); }

/* Coaches */
.fc-coaches { padding-top: 88px; display: flex; flex-wrap: wrap; gap: 24px; }
.fc-card { flex: 1 1 520px; min-width: 0; border-radius: 18px; padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.fc-card--tint { background: var(--fc-tint); }
.fc-card--plain { background: var(--fc-surface); border: 1px solid var(--fc-line); }
.fc-card h2 { margin: 0; font-size: 28px; line-height: 1.2; font-weight: 800; }
.fc-card p { margin: 0; font-size: 17px; line-height: 1.6; color: #2F423A; }
.fc-card ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 1.55; color: var(--fc-ink-2); }

/* Families */
.fc-families { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 40px; }
.fc-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.fc-tile { background: var(--fc-surface); border: 1px solid var(--fc-line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.fc-tile svg { stroke: var(--fc-green); }
.fc-tile h3 { margin: 0; font-size: 20px; font-weight: 800; }
.fc-tile p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--fc-ink-2); }
.fc-note { margin: 0; font-size: 16px; line-height: 1.6; color: var(--fc-ink-2); }

/* Access + form */
.fc-access { padding-top: 88px; padding-bottom: 88px; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.fc-access-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.fc-form { flex: 1 1 420px; min-width: 0; background: var(--fc-surface); color: var(--fc-ink); border-radius: 18px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.fc-form label { font-size: 14px; font-weight: 700; margin-bottom: -8px; }
.fc-form input, .fc-form select, .fc-form textarea {
	font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #B7C7BE; border-radius: 10px;
	background: var(--fc-surface); color: var(--fc-ink); min-height: 48px; width: 100%;
}
.fc-form textarea { min-height: 112px; resize: vertical; line-height: 1.5; }
.fc-form .fc-optional { font-weight: 500; color: var(--fc-muted); }
.fc-form input:focus, .fc-form select:focus, .fc-form textarea:focus { outline: 2px solid var(--fc-accent); outline-offset: 1px; border-color: var(--fc-accent); }
.fc-form button {
	font: inherit; font-size: 17px; font-weight: 700; color: var(--fc-surface); background: var(--fc-accent);
	border: none; border-radius: 12px; padding: 16px; min-height: 52px; cursor: pointer; margin-top: 4px;
}
.fc-form button:hover { filter: brightness(1.08); }
.fc-form button[disabled] { opacity: .7; cursor: progress; }
.fc-form .fc-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.fc-form-msg { margin: 0; padding: 12px 14px; border-radius: 10px; font-size: 15px; line-height: 1.5; background: var(--fc-tint); color: var(--fc-ink); }
.fc-form-msg[data-state="invalid"], .fc-form-msg[data-state="error"], .fc-form-msg[data-state="blocked"] { background: #fff1e6; color: #9a3412; }
.fc-form-missing { flex: 1 1 420px; background: var(--fc-surface); color: var(--fc-ink); border-radius: 18px; padding: 32px; }

/* Footer */
.fc-footer { background: var(--fc-darker); color: var(--fc-on-dark-3); }
.fc-footer .fc-wrap { padding-top: 56px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 40px; }
.fc-footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.fc-footer-brand { display: flex; flex-direction: column; gap: 10px; }
.fc-footer-brand > div { display: flex; align-items: center; gap: 10px; }
.fc-footer-name { margin: 0; color: var(--fc-on-dark); font-weight: 800; font-size: 20px; }
.fc-footer p { margin: 0; font-size: 14px; }
.fc-footer-cols { display: flex; flex-wrap: wrap; gap: 64px; font-size: 14px; }
.fc-footer-cols nav { display: flex; flex-direction: column; gap: 10px; }
.fc-footer-cols .fc-footer-h { color: var(--fc-on-dark); font-weight: 700; }
.fc-footer a { color: var(--fc-on-dark-3); text-decoration: none; }
.fc-footer a:hover { color: var(--fc-on-dark); }
.fc-footer-bottom { border-top: 1px solid #1F3A2E; padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 13px; }
.fc-footer-bottom p { font-size: 13px; }
.fc-footer-legal { display: flex; gap: 24px; }

/* Plain pages (Privacy, Terms) */
.fc-page { padding-top: 72px; padding-bottom: 96px; }
.fc-page h1 { font-size: 44px; line-height: 1.1; letter-spacing: -0.8px; margin: 0 0 24px; }
.fc-page .fc-content { font-size: 17px; line-height: 1.7; color: var(--fc-ink-2); }
.fc-unsub { max-width: 560px; }
.fc-unsub-title { font-size: 20px; color: var(--fc-ink); }
.fc-unsub-error { padding: 12px 14px; border-radius: 10px; background: #fff1e6; color: #9a3412; }
.fc-unsub-form { display: flex; flex-direction: column; gap: 10px; max-width: 420px; }
.fc-unsub-form label { font-size: 14px; font-weight: 700; color: var(--fc-ink); }
.fc-unsub-form input { font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--fc-line); border-radius: 10px; }
.fc-unsub-form button { align-self: flex-start; font: inherit; font-weight: 700; padding: 12px 22px; border: 0; border-radius: 999px; background: var(--fc-accent); color: #fff; cursor: pointer; }
.fc-unsub-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.fc-page .fc-content h2 { color: var(--fc-ink); font-size: 26px; margin-top: 40px; }

/* "Who it's for" dropdown */
.fc-menu { position: relative; }
.fc-menu-btn { font: inherit; font-size: 15px; font-weight: 600; color: var(--fc-ink-2); background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.fc-menu-btn:hover, .fc-menu.is-open .fc-menu-btn { color: var(--fc-ink); }
.fc-menu-btn:focus-visible { outline: 3px solid var(--fc-mint); outline-offset: 2px; border-radius: 4px; }
.fc-menu-btn span { font-size: 11px; transition: transform .15s; }
.fc-menu.is-open .fc-menu-btn span { transform: rotate(180deg); }
.fc-menu-list {
	display: none; position: absolute; top: calc(100% + 14px); left: -16px; z-index: 20; min-width: 220px;
	background: var(--fc-surface); border: 1px solid var(--fc-line); border-radius: 14px; padding: 8px;
	box-shadow: 0 12px 32px rgba(18, 36, 29, .12); flex-direction: column;
}
.fc-menu.is-open .fc-menu-list { display: flex; }
.fc-nav-links .fc-menu-list a { padding: 10px 12px; border-radius: 8px; color: var(--fc-ink-2); white-space: nowrap; }
.fc-nav-links .fc-menu-list a:hover { background: var(--fc-tint-2); color: var(--fc-ink); }
.fc-nav-links .fc-menu-list a[aria-current="page"] { color: var(--fc-green); background: var(--fc-tint); }

/* Persona pages: before / after, and questions */
.fc-versus { display: flex; flex-wrap: wrap; gap: 24px; }
.fc-eyebrow--muted { color: var(--fc-muted); }
.fc-card .fc-list { list-style: none; padding: 0; gap: 14px; font-size: 17px; color: var(--fc-ink); }
.fc-list li { position: relative; padding-left: 32px; line-height: 1.5; }
.fc-list li::before { position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.fc-list--no li { color: var(--fc-ink-2); }
.fc-list--no li::before { content: "✕"; background: #EEF1EF; color: var(--fc-muted); }
.fc-list--yes li::before { content: "✓"; background: var(--fc-accent); color: var(--fc-surface); }
.fc-faq { padding-top: 88px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 32px; }
.fc-faq-list { display: flex; flex-direction: column; gap: 12px; }
.fc-faq details { background: var(--fc-surface); border: 1px solid var(--fc-line); border-radius: 14px; padding: 20px 24px; }
.fc-faq summary { font-size: 18px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.fc-faq summary::-webkit-details-marker { display: none; }
.fc-faq summary::after { content: "+"; color: var(--fc-green); font-size: 22px; line-height: 1; }
.fc-faq details[open] summary::after { content: "–"; }
.fc-faq details p { margin: 12px 0 0; font-size: 16px; line-height: 1.6; color: var(--fc-ink-2); }

/* The design is a 1440px artboard; these keep it intact on phones. */
@media (max-width: 900px) {
	.fc-nav-toggle {
		display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 700; font-size: 15px;
		background: none; border: 1px solid var(--fc-line-2); border-radius: 10px; padding: 10px 14px; color: var(--fc-ink); cursor: pointer;
	}
	.fc-nav-links { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 18px; padding: 8px 0 4px; }
	.fc-nav.is-open .fc-nav-links { display: flex; }
	.fc-hero .fc-wrap { padding-top: 64px; padding-bottom: 64px; }
	.fc-hero h1 { font-size: 46px; letter-spacing: -1px; }
	.fc-hero-sub { font-size: 18px; }
	.fc-h2 { font-size: 32px; }
	.fc-band, .fc-access { padding-top: 64px; padding-bottom: 64px; }
	.fc-compare, .fc-families { padding-top: 64px; padding-bottom: 64px; }
	.fc-coaches { padding-top: 64px; }
	.fc-faq { padding-top: 64px; padding-bottom: 64px; }
	.fc-menu { width: 100%; }
	.fc-menu-list { position: static; display: none; box-shadow: none; border: 0; padding: 8px 0 0 12px; min-width: 0; }
	.fc-nav-links .fc-menu-list a { padding: 8px 0; }
}
@media (max-width: 560px) {
	.fc-wrap { padding-left: 20px; padding-right: 20px; }
	.fc-hero h1 { font-size: 38px; }
	.fc-card, .fc-form { padding: 24px; }
	.fc-card { flex-basis: 100%; }
	.fc-access-copy, .fc-form { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
