/* ==========================================================================
   Family Tree Maker Support — homepage styles (v1.2.0)
   Modern layout, fluid spacing, mobile-first responsiveness.
   ========================================================================== */

/* Expand only the GeneratePress containers around the replaced homepage. */
.fts-home-active #page.site {
	max-width: none;
	margin-inline: 0;
}
.fts-home-active #content.site-content {
	display: block;
	padding: 0;
}
.fts-home-active #main.fts-home {
	margin: 0;
	width: 100%;
}

/* ---------- Design tokens & base ---------- */
.fts-home {
	--navy: #0b2a4a;
	--navy-2: #10406e;
	--green: #1e7d32;
	--green-2: #2e9e44;
	--blue: #0a6ad1;
	--ink: #16283c;
	--muted: #51637a;
	--line: #dbe6f0;
	--bg-soft: #f4f8fc;
	--card: #ffffff;
	--radius: 18px;
	--shadow: 0 10px 30px rgba(11, 42, 74, .08);
	--shadow-sm: 0 4px 14px rgba(11, 42, 74, .07);
	margin: 0;
	background: #fff;
	color: var(--ink);
	font: 16px/1.55 Arial, Helvetica, sans-serif;
	-webkit-font-smoothing: antialiased;
}
.fts-home *, .fts-home *::before, .fts-home *::after { box-sizing: border-box; }
.fts-home h1, .fts-home h2, .fts-home h3, .fts-home p,
.fts-home ul, .fts-home ol { margin: 0; }
.fts-home h1, .fts-home h2, .fts-home h3 {
	font-family: inherit;
	font-weight: 800;
	color: var(--navy);
	line-height: 1.15;
	letter-spacing: -.02em;
}
.fts-home h2 { font-size: clamp(24px, 3vw, 34px); }
.fts-home a { color: inherit; text-decoration: none; }
.fts-home a:focus-visible, .fts-home summary:focus-visible {
	outline: 3px solid #0a6ad1;
	outline-offset: 3px;
	border-radius: 6px;
}
.fts-home [id] { scroll-margin-top: 40px; }
.fts-home img { display: block; max-width: 100%; }

.fts-wrap {
	width: min(100% - 40px, 1200px);
	margin-inline: auto;
}

.fts-section-sub {
	color: var(--muted);
	font-size: clamp(15px, 1.4vw, 17px);
	max-width: 640px;
	margin: 10px auto 0;
}

/* ---------- Hero ---------- */
.fts-hero {
	background:
		radial-gradient(900px 420px at 85% -10%, #dcedd4 0%, transparent 60%),
		linear-gradient(160deg, #eaf4fb 0%, #f7faf6 55%, #eef5df 100%);
	border-bottom: 1px solid var(--line);
	padding-block: clamp(36px, 6vw, 72px);
}
.fts-hero-inner {
	display: grid;
	grid-template-columns: 1.05fr .95fr;
	align-items: center;
	gap: clamp(28px, 5vw, 64px);
}
.fts-hero-eyebrow {
	display: inline-block;
	background: #e2f2e4;
	color: var(--green);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	padding: 6px 14px;
	border-radius: 999px;
	margin-bottom: 16px;
}
.fts-hero h1 { font-size: clamp(32px, 4.4vw, 54px); letter-spacing: -.03em; }
.fts-hero h1 span {
	display: block;
	font-size: .55em;
	font-weight: 700;
	color: var(--green);
	margin-top: 10px;
	letter-spacing: -.01em;
}
.fts-hero-copy > p:not(.fts-tagline) {
	font-size: clamp(16px, 1.5vw, 19px);
	color: var(--muted);
	margin-block: 18px 24px;
	max-width: 540px;
}
.fts-hero-media { position: relative; }
.fts-hero-image {
	width: 100%;
	height: auto;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	border: 6px solid #fff;
}
.fts-tagline {
	width: fit-content;
	margin-top: 20px;
	color: var(--navy);
	font: italic 600 clamp(17px, 1.8vw, 22px)/1.3 'Segoe Print', 'Bradley Hand', cursive;
}

/* ---------- Action buttons ---------- */
.fts-actions { display: flex; flex-wrap: wrap; gap: 12px 14px; }
.fts-button {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 60px;
	padding: 10px 24px;
	border-radius: 999px;
	font-size: clamp(15px, 1.4vw, 18px);
	line-height: 1.15;
	font-weight: 750;
	color: #fff !important;
	box-shadow: 0 6px 16px rgba(11, 42, 74, .18);
	transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.fts-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(11, 42, 74, .22);
	filter: brightness(1.04);
}
.fts-call { background: linear-gradient(110deg, #2aa647, #146f1d); }
.fts-chat { background: linear-gradient(110deg, #1290e8, #0a4fb4); }
.fts-button small { font-size: .82em; font-weight: 600; opacity: .92; }
.fts-button-icon { color: #fff; font-size: 30px; flex-shrink: 0; }
.fts-chat .fts-button-icon {
	font-size: 9px;
	letter-spacing: -.06em;
	color: var(--blue);
	background: #fff;
	border-radius: 50% 50% 50% 14%;
	display: grid;
	place-items: center;
	width: 36px;
	height: 32px;
}

/* ---------- Topics ---------- */
.fts-topics { padding-block: clamp(40px, 6vw, 64px); text-align: center; }
.fts-topic-grid {
	list-style: none;
	padding: 0;
	margin-top: clamp(24px, 3.5vw, 36px);
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 14px;
}
.fts-topic-grid a {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 12px;
	height: 100%;
	padding: 22px 14px 18px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--navy);
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.fts-topic-grid a:hover {
	transform: translateY(-4px);
	border-color: #b9d8f2;
	box-shadow: var(--shadow);
}
.fts-topic-icon {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border-radius: 16px;
	background: #e9f3fd;
}
.fts-topic-icon img { width: 44px; height: auto; mix-blend-mode: multiply; }

/* ---------- Versions ---------- */
.fts-versions {
	background: linear-gradient(180deg, var(--bg-soft), #eaf3fb);
	border-block: 1px solid var(--line);
	padding-block: clamp(40px, 6vw, 64px);
	text-align: center;
}
.fts-version-grid {
	list-style: none;
	padding: 0;
	margin-top: clamp(24px, 3.5vw, 36px);
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	text-align: left;
}
.fts-home .fts-version-grid a {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	height: 100%;
	padding: 26px 24px 22px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.fts-home .fts-version-grid a:hover {
	transform: translateY(-4px);
	border-color: #b9d8f2;
	box-shadow: var(--shadow);
}
.fts-version-icon {
	width: 56px;
	height: auto;
	mix-blend-mode: multiply;
	margin-bottom: 14px;
}
.fts-version-grid h3 { font-size: clamp(18px, 1.8vw, 22px); }
.fts-version-grid h3 strong { color: var(--green); }
.fts-version-grid p {
	color: var(--muted);
	font-size: 15px;
	line-height: 1.5;
	margin-top: 8px;
}
.fts-version-more {
	margin-top: auto;
	padding-top: 16px;
	font-size: 14px;
	font-weight: 700;
	color: var(--blue);
}

/* ---------- Panels (about + process, stacked full-width) ---------- */
.fts-panels {
	display: grid;
	gap: 20px;
	padding-block: clamp(40px, 6vw, 64px);
}
.fts-panel {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
}
.fts-panel-head {
	background: linear-gradient(100deg, var(--navy), var(--navy-2));
	padding: 16px 24px;
}
.fts-panel-head--green { background: linear-gradient(100deg, #2c7a33, #3fa046); }
.fts-panel-head h2 {
	color: #fff;
	font-size: clamp(18px, 1.8vw, 22px);
	letter-spacing: -.01em;
}

/* Clickable / static content boxes shared by both sections */
.fts-box {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 100%;
	padding: 14px 16px;
	background: var(--bg-soft);
	border: 1px solid var(--line);
	border-radius: 12px;
	font-size: 15px;
	font-weight: 600;
	color: var(--ink);
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.fts-home a.fts-box:hover {
	transform: translateY(-3px);
	border-color: #b9d8f2;
	box-shadow: var(--shadow-sm);
	background: #e9f2fb;
}
.fts-about .fts-panel-head, .fts-process .fts-panel-head { text-align: center; }
.fts-about .fts-box {
	min-height: 112px;
	padding: clamp(14px, 2vw, 24px);
	gap: 14px;
	font-size: clamp(16px, 1.7vw, 19px);
	overflow-wrap: anywhere;
}
.fts-about-icon.dashicons {
	flex: 0 0 48px;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	background: #dfefe4;
	color: #226337;
	border-radius: 12px;
	font-size: 26px;
}

.fts-about-body {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 22px 24px;
}
.fts-home .fts-about-grid {
	list-style: none;
	padding: 0;
	margin: 0;
	flex: 1;
	min-width: 0;
	width: 100%;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
	gap: 12px;
}
.fts-about img { width: clamp(88px, 12vw, 128px); height: auto; flex-shrink: 0; }

.fts-process-grid {
	list-style: none;
	padding: 24px;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}
.fts-step {
	flex-direction: column;
	justify-content: flex-start;
	text-align: center;
	gap: 8px;
	padding: 20px 12px;
}
.fts-step-num {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--green);
	color: #fff;
	font-weight: 800;
	font-size: 16px;
}
.fts-step-icon { font-size: 26px; line-height: 1.2; }
.fts-step-label { font-size: 14px; font-weight: 600; line-height: 1.3; }

/* ---------- Contact banner ---------- */
.fts-contact {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 48px);
	border-radius: var(--radius);
	background:
		radial-gradient(600px 260px at 90% 110%, #d9ecc0 0%, transparent 65%),
		linear-gradient(110deg, #f4fae9, #e4f2cf);
	border: 1px solid #cfe3a8;
	overflow: hidden;
	box-shadow: var(--shadow-sm);
}
.fts-contact-copy { flex: 1; min-width: 0; }
.fts-contact p {
	color: var(--ink);
	margin: 12px 0 20px;
	max-width: 520px;
	font-size: clamp(15px, 1.4vw, 17px);
}
.fts-contact .fts-actions { justify-content: flex-start; }
.fts-contact img {
	width: clamp(120px, 18vw, 200px);
	height: auto;
	mix-blend-mode: multiply;
	flex-shrink: 0;
}

/* ---------- Reviews ---------- */
.fts-home .fts-review-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 275px), 1fr));
	gap: 14px;
	padding: 22px 24px 26px;
	list-style: none;
}
.fts-review-card {
	display: grid;
	align-content: start;
	gap: 12px;
	height: 100%;
	padding: clamp(16px, 3vw, 28px);
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--bg-soft);
	overflow-wrap: anywhere;
}
.fts-review-card h3 { font-size: 21px; }
.fts-review-rating { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.fts-review-stars { position: relative; display: inline-block; color: #aab4c0; font-size: 24px; line-height: 1.2; white-space: nowrap; }
.fts-review-stars > span { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: #a95d04; }
.fts-review-quote, .fts-review-quote blockquote { margin: 0; }
.fts-review-quote blockquote { padding: 0 0 0 12px; border-left: 3px solid #bdd0e4; font: inherit; white-space: pre-line; }
.fts-review-quote figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; }
.fts-home .fts-review-card a { width: fit-content; color: var(--navy); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- FAQs ---------- */
.fts-faq-list { padding: 8px 0; }
.fts-faqs details + details { border-top: 1px solid var(--line); }
.fts-faqs summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	cursor: pointer;
	list-style: none;
	font-size: 16px;
	font-weight: 700;
	color: var(--navy);
	padding: 18px 24px;
	transition: background .15s ease;
}
.fts-faqs summary:hover { background: var(--bg-soft); }
.fts-faqs summary::-webkit-details-marker { display: none; }
.fts-faqs summary::after {
	content: '+';
	flex-shrink: 0;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #e2f2e4;
	color: var(--green);
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
}
.fts-faqs details[open] summary::after { content: '−'; }
.fts-faqs details p {
	padding: 0 24px 20px;
	font-size: 15px;
	color: var(--muted);
	max-width: 760px;
}

/* ---------- Responsive ---------- */

/* Tablets & small laptops */
@media (max-width: 1024px) {
	.fts-topic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Phones & narrow tablets */
@media (max-width: 768px) {
	.fts-wrap { width: min(100% - 28px, 1200px); }
	.fts-hero { padding-block: 32px 40px; }
	.fts-hero-inner { grid-template-columns: 1fr; gap: 28px; text-align: center; }
	.fts-hero-copy { order: 2; }
	.fts-hero-media { order: 1; }
	.fts-hero-image { max-width: 480px; margin-inline: auto; }
	.fts-hero-copy > p:not(.fts-tagline) { margin-inline: auto; }
	.fts-hero .fts-actions { justify-content: center; }
	.fts-tagline { margin-inline: auto; }
	.fts-version-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
	.fts-home .fts-version-grid a { text-align: center; align-items: center; }
	.fts-version-icon { margin-bottom: 10px; }
	.fts-process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fts-contact { flex-direction: column; text-align: center; padding-block: 32px; }
	.fts-contact .fts-actions { justify-content: center; }
	.fts-contact p { margin-inline: auto; }
	.fts-contact img { width: 140px; }
}

/* Small phones */
@media (max-width: 480px) {
	.fts-topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.fts-topic-grid a { padding: 16px 10px 14px; font-size: 14px; }
	.fts-actions { flex-direction: column; align-items: stretch; }
	.fts-button { justify-content: center; width: 100%; }
	.fts-about-body { flex-direction: column; align-items: center; text-align: left; padding-bottom: 16px; }
	.fts-about img { align-self: center; width: 96px; }
	.fts-faqs summary { font-size: 15px; padding: 16px; }
	.fts-faqs details p { padding-inline: 16px; }
}

.fts-home .fts-topic-grid a:focus-visible,
.fts-home .fts-version-grid a:focus-visible,
.fts-home a.fts-box:focus-visible { outline-offset: -3px; }

/* Callback dialog */
.fts-callback {
	position: fixed;
	width: min(850px, calc(100% - 28px));
	max-width: none;
	max-height: calc(100% - 28px);
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: #fff;
	color: var(--ink);
	overflow: auto;
	overscroll-behavior: contain;
}
.fts-callback::backdrop { background: rgb(10 21 32 / .77); }
body:has(.fts-callback[open]) { overflow: hidden; }
.fts-callback-layout { display: grid; grid-template-columns: .95fr 1fr; }
.fts-callback-intro {
	padding: 28px 22px;
	color: #fff;
	background: linear-gradient(rgb(18 33 27 / .72), rgb(18 33 27 / .68)), var(--fts-callback-image) right center / cover #405338;
}
.fts-callback-intro h2 { color: #fff; font-size: 21px; margin-bottom: 20px; }
.fts-callback-intro ul { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 12px; }
.fts-callback-intro li::before { content: '✓'; margin-right: 8px; color: #c2e486; font-weight: bold; }
.fts-home .fts-callback-call, .fts-callback-submit {
	display: inline-block;
	padding: 10px 16px;
	background: #537925;
	color: #fff;
	font-weight: 700;
	border: 0;
	border-radius: 14px;
	text-align: center;
}
.fts-callback-content { position: relative; padding: 28px 24px 24px; min-width: 0; }
.fts-callback-content h2 { margin: 0 22px 14px; color: #005481; text-align: center; }
.fts-callback-content .fts-callback-description { margin-bottom: 18px; text-align: center; font-size: 14px; }
.fts-callback-close {
	position: absolute;
	right: 7px;
	top: 6px;
	padding: 0;
	width: 36px;
	height: 36px;
	color: #152c48;
	background: transparent;
	border: 0;
	font-size: 24px;
	line-height: 1;
}
.fts-callback-close:hover, .fts-callback-close:focus { background: #eff4f7; color: #152c48; }
.fts-callback form label { display: block; margin-bottom: 3px; font-size: 14px; }
.fts-callback form input:not([type="hidden"]), .fts-callback form textarea {
	width: 100%;
	padding: 9px 12px;
	background: #fff;
	color: #17273a;
	border: 1px solid #bcc6cb;
	border-radius: 12px;
	margin-bottom: 10px;
	font: inherit;
}
.fts-callback form textarea { display: block; resize: vertical; }
.fts-callback-submit { width: 100%; cursor: pointer; }
.fts-callback-submit:hover, .fts-callback-submit:focus, .fts-home .fts-callback-call:hover { background: #3f601a; color: #fff; }
.fts-callback-content .fts-callback-status:not([hidden]) { padding: 10px; margin-bottom: 12px; background: #e8f0f7; border-radius: 8px; }
@media (max-width: 620px) {
	.fts-callback-layout { grid-template-columns: minmax(0, 1fr); }
	.fts-callback-content { grid-row: 1; padding: 26px 16px 16px; }
	.fts-callback-intro { padding: 18px 16px; }
	.fts-callback-intro h2 { margin-bottom: 8px; }
	.fts-callback-intro ul { margin-block: 12px; gap: 5px; }
}
