/*
Theme Name: 702 FinTech Pros
Theme URI: https://702fintechpros.com
Author: Ray McCullough
Description: Custom theme for 702 FinTech Pros, a Las Vegas payment processing consultancy. Includes a one-page front page, customizer settings, and a secure rate-review form with statement uploads.
Version: 0.1.0
Requires at least: 6.2
Requires PHP: 7.4
License: Proprietary
Text Domain: fp702
*/

/* ---------- Tokens ---------- */
:root {
	--graphite: #161b1e;
	--gunmetal: #232a2f;
	--gunmetal-line: #343d43;
	--steel: #a7b0b5;
	--steel-light: #d6dcdf;
	--signal: #5fd92e;
	--signal-soft: rgba(95, 217, 46, 0.14);
	--ledger: #1d7a33;
	--ledger-dark: #165e27;
	--paper: #f3f5f4;
	--white: #ffffff;
	--ink: #1a2024;
	--ink-soft: #4a555c;
	--line: #d9dfdd;
	--danger: #b3261e;

	--font: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--wide: 118%;

	--container: 1180px;
	--gutter: clamp(20px, 4vw, 40px);
	--section-y: clamp(64px, 9vw, 112px);
	--radius-s: 4px;
	--radius-m: 8px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
	margin: 0;
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ledger); text-underline-offset: 3px; }
a:hover { color: var(--ledger-dark); }

:focus-visible {
	outline: 3px solid var(--signal);
	outline-offset: 3px;
}

h1, h2, h3, h4 {
	font-family: var(--font);
	font-stretch: var(--wide);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.01em;
	margin: 0 0 0.5em;
	color: inherit;
	text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; line-height: 1.25; }

p { margin: 0 0 1em; }

.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.screen-reader-text,
.visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link:focus {
	position: fixed; top: 12px; left: 12px; z-index: 1000;
	width: auto; height: auto; clip: auto;
	background: var(--white); color: var(--ink);
	padding: 10px 16px; border-radius: var(--radius-s);
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 26px;
	border-radius: var(--radius-s);
	border: 2px solid transparent;
	font-family: var(--font);
	font-size: 1rem;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-signal { background: var(--signal); color: var(--graphite); }
.btn-signal:hover { background: #74e447; color: var(--graphite); }

.btn-ghost { border-color: var(--steel); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,.06); }

.btn-ledger { background: var(--ledger); color: var(--white); }
.btn-ledger:hover { background: var(--ledger-dark); color: var(--white); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--graphite);
	border-bottom: 1px solid var(--gunmetal-line);
}
.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 76px;
}
.brand { display: block; line-height: 0; flex: none; }
.brand img,
.brand .custom-logo { height: 60px; width: auto; }

.primary-nav ul {
	list-style: none;
	margin: 0; padding: 0;
	display: flex; gap: 30px;
}
.primary-nav a {
	color: var(--steel-light);
	text-decoration: none;
	font-size: .95rem;
	font-weight: 500;
	padding: 6px 0;
	border-bottom: 2px solid transparent;
}
.primary-nav a:hover { color: var(--white); border-bottom-color: var(--signal); }

.header-actions { display: flex; align-items: center; gap: 20px; }
.header-phone {
	color: var(--white);
	text-decoration: none;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.header-phone:hover { color: var(--signal); }
.header-actions .btn { min-height: 44px; padding: 0 18px; font-size: .95rem; }

.nav-toggle {
	display: none;
	background: none;
	border: 1px solid var(--gunmetal-line);
	border-radius: var(--radius-s);
	width: 46px; height: 46px;
	color: var(--white);
	cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1020px) {
	.header-phone { display: none; }
}
@media (max-width: 860px) {
	.nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
	.header-actions .btn { display: none; }
	.primary-nav {
		display: none;
		position: absolute;
		left: 0; right: 0; top: 100%;
		background: var(--graphite);
		border-bottom: 1px solid var(--gunmetal-line);
		padding: 8px var(--gutter) 24px;
	}
	.primary-nav.is-open { display: block; }
	.primary-nav ul { flex-direction: column; gap: 0; }
	.primary-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--gunmetal-line); }
	.primary-nav .mobile-only { display: block; }
	.brand img, .brand .custom-logo { height: 46px; }
}
.primary-nav .mobile-only { display: none; }
@media (max-width: 860px) { .primary-nav .mobile-only { display: block; } }
.primary-nav .mobile-only a { border-bottom: 0; color: var(--signal); font-weight: 700; }

/* ---------- Dark sections ---------- */
.is-dark {
	background: var(--graphite);
	color: var(--steel-light);
}
.is-dark h1, .is-dark h2, .is-dark h3 { color: var(--white); }
.is-dark a:not(.btn) { color: var(--signal); }

/* ---------- Hero ---------- */
.hero {
	position: relative;
	overflow: hidden;
	padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 120px);
}
.hero::before {
	/* echoes the orbit swoosh in the logo, kept faint */
	content: "";
	position: absolute;
	width: 1400px; height: 420px;
	left: 38%; top: 46%;
	border: 1px solid rgba(95, 217, 46, .22);
	border-radius: 50%;
	transform: translate(-50%, -50%) rotate(-12deg);
	pointer-events: none;
}
.hero-grid {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
	gap: clamp(40px, 6vw, 80px);
	align-items: center;
}
.hero h1 { max-width: 17ch; margin-bottom: 22px; }
.hero-lede {
	font-size: clamp(1.1rem, 1.6vw, 1.25rem);
	max-width: 36em;
	color: var(--steel-light);
	margin-bottom: 32px;
}
.hero-note {
	margin: 26px 0 0;
	font-size: .95rem;
	color: var(--steel);
	max-width: 34em;
	padding-left: 14px;
	border-left: 2px solid var(--signal);
}

@media (max-width: 960px) {
	.hero-grid { grid-template-columns: 1fr; }
	.hero h1 { max-width: 16ch; }
}

/* ---------- Statement breakdown (hero visual) ---------- */
.statement {
	background: var(--white);
	color: var(--ink);
	border-radius: var(--radius-m);
	padding: clamp(22px, 3vw, 32px);
	box-shadow: 0 30px 60px -20px rgba(0,0,0,.55);
	font-variant-numeric: tabular-nums;
}
.statement-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--line);
}
.statement-title { font-weight: 700; font-size: 1.05rem; margin: 0; }
.statement-tag {
	font-size: .8rem;
	color: var(--ink-soft);
	white-space: nowrap;
}

.statement-bar {
	display: flex;
	height: 14px;
	margin: 20px 0 6px;
	border-radius: 3px;
	overflow: hidden;
	background: var(--paper);
}
.statement-bar span {
	display: block;
	height: 100%;
	transform-origin: left center;
}
.seg-interchange { background: #7d888e; }
.seg-assess { background: #b7c0c4; }
.seg-markup { background: var(--ledger); }
.seg-fees { background: var(--signal); }

.statement-group { margin-top: 18px; }
.statement-group-label {
	font-size: .82rem;
	font-weight: 600;
	color: var(--ink-soft);
	margin: 0 0 4px;
}
.statement-group.is-reviewable {
	background: var(--signal-soft);
	margin-left: -12px; margin-right: -12px;
	padding: 10px 12px 6px;
	border-radius: var(--radius-s);
}
.statement-group.is-reviewable .statement-group-label { color: var(--ledger-dark); }

.statement-row {
	display: grid;
	grid-template-columns: 12px 1fr auto auto;
	align-items: center;
	gap: 10px;
	padding: 7px 0;
	font-size: .95rem;
}
.statement-row .swatch { width: 10px; height: 10px; border-radius: 2px; }
.statement-row .amt { font-weight: 600; text-align: right; }
.statement-row .pct { color: var(--ink-soft); font-size: .85rem; width: 4.2em; text-align: right; }

.statement-total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 2px solid var(--ink);
}
.statement-total strong { font-stretch: var(--wide); font-size: 1.5rem; }
@media (max-width: 560px) {
	.statement-total { flex-direction: column; gap: 4px; }
	.btn-row .btn { width: 100%; }
}
.statement-foot { font-size: .8rem; color: var(--ink-soft); margin: 12px 0 0; }

/* the one orchestrated motion moment */
@media (prefers-reduced-motion: no-preference) {
	.statement-bar span { animation: seg-grow .9s cubic-bezier(.2,.7,.2,1) both; }
	.statement-bar span:nth-child(2) { animation-delay: .15s; }
	.statement-bar span:nth-child(3) { animation-delay: .3s; }
	.statement-bar span:nth-child(4) { animation-delay: .45s; }
	@keyframes seg-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* ---------- Generic section ---------- */
.section { padding: var(--section-y) 0; }
.section-white { background: var(--white); }
.section-head { max-width: 44rem; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head p { font-size: 1.125rem; color: var(--ink-soft); }
.is-dark .section-head p { color: var(--steel-light); }

/* ---------- Why choose ---------- */
.why-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 40px clamp(32px, 5vw, 72px);
}
.why-item { border-top: 2px solid var(--ink); padding-top: 22px; }
.why-item p { color: var(--ink-soft); margin: 0; max-width: 32em; }
@media (max-width: 720px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.service-groups {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .8fr);
	gap: 0;
	border-top: 1px solid var(--line);
}
.service-group {
	padding: 32px clamp(20px, 3vw, 36px) 12px 0;
}
.service-group + .service-group {
	padding-left: clamp(20px, 3vw, 36px);
	border-left: 1px solid var(--line);
}
.service-group-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.service-group-head svg { width: 28px; height: 28px; color: var(--ledger); flex: none; }
.service-group-head h3 { margin: 0; }
.service-list { list-style: none; margin: 0; padding: 0; }
.service-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.service-list li:last-child { border-bottom: 0; }
.service-list strong { display: block; font-weight: 700; margin-bottom: 2px; }
.service-list span { display: block; color: var(--ink-soft); font-size: .95rem; line-height: 1.45; }

@media (max-width: 960px) {
	.service-groups { grid-template-columns: 1fr; }
	.service-group, .service-group + .service-group { padding: 28px 0 8px; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Rate review ---------- */
.review-grid {
	display: grid;
	grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
	gap: clamp(40px, 6vw, 80px);
	align-items: start;
}
.steps { list-style: none; margin: 32px 0 0; padding: 0; counter-reset: step; }
.steps li {
	counter-increment: step;
	position: relative;
	padding: 0 0 28px 64px;
}
.steps li::before {
	content: counter(step);
	position: absolute;
	left: 0; top: -2px;
	width: 42px; height: 42px;
	display: grid; place-items: center;
	border: 2px solid var(--signal);
	border-radius: 50%;
	color: var(--signal);
	font-weight: 700;
	font-stretch: var(--wide);
}
.steps li::after {
	content: "";
	position: absolute;
	left: 20px; top: 44px; bottom: 4px;
	width: 2px;
	background: var(--gunmetal-line);
}
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: 6px; font-size: 1.1rem; }
.steps p { margin: 0; color: var(--steel); }
.review-promise { color: var(--white); font-weight: 600; margin-top: 8px; }

@media (max-width: 960px) { .review-grid { grid-template-columns: 1fr; } }

/* ---------- Form ---------- */
.form-panel {
	background: var(--white);
	color: var(--ink);
	border-radius: var(--radius-m);
	padding: clamp(24px, 4vw, 40px);
}
.form-panel h3 { color: var(--ink); font-size: 1.35rem; }
.form-panel .form-intro { color: var(--ink-soft); margin-bottom: 24px; }
.form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px 20px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; font-size: .92rem; color: var(--ink); }
.field .hint { font-size: .85rem; color: var(--ink-soft); font-weight: 400; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
	width: 100%;
	font: inherit;
	font-size: 1rem;
	color: var(--ink);
	background: var(--white);
	border: 1px solid #b9c2c0;
	border-radius: var(--radius-s);
	padding: 12px 14px;
	min-height: 48px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
	outline: none;
	border-color: var(--ledger);
	box-shadow: 0 0 0 3px rgba(29, 122, 51, .2);
}

.upload {
	position: relative;
	border: 2px dashed #b9c2c0;
	border-radius: var(--radius-m);
	padding: 22px;
	text-align: center;
	background: var(--paper);
	transition: border-color .15s ease, background-color .15s ease;
}
.upload:hover, .upload.is-dragover { border-color: var(--ledger); background: #eaf4ec; }
.upload input[type="file"] {
	position: absolute; inset: 0;
	opacity: 0; cursor: pointer; width: 100%;
}
.upload input[type="file"]:focus-visible + .upload-text { outline: 3px solid var(--signal); outline-offset: 4px; }
.upload-text strong { color: var(--ledger); }
.upload-files { margin: 10px 0 0; font-size: .9rem; color: var(--ink); }

.field .check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; font-weight: 400; color: var(--ink-soft); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ledger); flex: none; }

.hp-field { position: absolute; left: -9999px; }

.form-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.form-actions .secure-note { font-size: .85rem; color: var(--ink-soft); display: flex; gap: 6px; align-items: center; }
.form-actions .secure-note svg { width: 16px; height: 16px; color: var(--ledger); }

.notice {
	padding: 14px 16px;
	border-radius: var(--radius-s);
	margin-bottom: 22px;
	font-weight: 500;
}
.notice-success { background: #e4f3e7; color: var(--ledger-dark); border-left: 4px solid var(--ledger); }
.notice-error { background: #fbe9e7; color: var(--danger); border-left: 4px solid var(--danger); }

@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Industries ---------- */
.industry-list {
	list-style: none;
	margin: 0; padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 0 32px;
}
.industry-list li {
	padding: 16px 0 16px 18px;
	border-top: 1px solid var(--line);
	font-weight: 600;
	position: relative;
}
.industry-list li::before {
	content: "";
	position: absolute;
	left: 0; top: 50%;
	width: 8px; height: 2px;
	background: var(--ledger);
}
.industry-close { margin-top: 32px; font-size: 1.125rem; max-width: 40em; color: var(--ink-soft); }

/* ---------- Trust + About ---------- */
.about-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(40px, 7vw, 96px);
	align-items: start;
}
.principles { list-style: none; margin: 28px 0 0; padding: 0; }
.principles li {
	display: flex; gap: 14px; align-items: center;
	padding: 14px 0;
	border-bottom: 1px solid var(--line);
	font-weight: 600;
}
.principles svg { width: 22px; height: 22px; color: var(--ledger); flex: none; }

.person {
	display: flex; gap: 18px; align-items: center;
	margin-top: 28px; padding-top: 24px;
	border-top: 1px solid var(--line);
}
.person-photo {
	width: 84px; height: 84px; border-radius: 50%;
	object-fit: cover; flex: none;
	background: var(--gunmetal);
	color: var(--signal);
	display: grid; place-items: center;
	font-weight: 700; font-stretch: var(--wide); font-size: 1.4rem;
}
.person-name { font-weight: 700; margin: 0; }
.person-role { color: var(--ink-soft); margin: 0; font-size: .95rem; }

@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- Closing CTA ---------- */
.closing { text-align: left; }
.closing-inner {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) auto;
	gap: 32px 56px;
	align-items: center;
}
.closing h2 { max-width: 22ch; margin-bottom: 14px; }
.closing p { margin: 0; max-width: 38em; }
@media (max-width: 860px) { .closing-inner { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer {
	background: #101417;
	color: var(--steel);
	border-top: 1px solid var(--gunmetal-line);
	padding: 56px 0 32px;
	font-size: .95rem;
}
.footer-grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr;
	gap: 40px;
}
.footer-brand img { height: 72px; width: auto; margin-bottom: 14px; }
.footer-tagline { color: var(--steel-light); margin: 0; }
.site-footer h2 {
	font-size: 1rem;
	color: var(--white);
	margin-bottom: 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--steel-light); text-decoration: none; }
.site-footer a:hover { color: var(--signal); }
.footer-legal {
	margin-top: 44px;
	padding-top: 24px;
	border-top: 1px solid var(--gunmetal-line);
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
	font-size: .85rem;
}
.footer-disclosure { max-width: 60em; margin: 0; }
.admin-placeholder { color: #f0b429; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Interior pages (page.php / index.php) ---------- */
.page-hero { padding: 64px 0 40px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0; }
.entry { padding: 56px 0 var(--section-y); }
.entry-content { max-width: 44rem; }
.entry-content h2 { font-size: 1.6rem; margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.4em; }
.post-list { list-style: none; margin: 0; padding: 0; max-width: 44rem; }
.post-list li { padding: 24px 0; border-bottom: 1px solid var(--line); }
.post-list h2 { font-size: 1.4rem; margin-bottom: 6px; }
.post-list h2 a { color: var(--ink); text-decoration: none; }
.post-list h2 a:hover { color: var(--ledger); }
.post-meta { color: var(--ink-soft); font-size: .9rem; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; animation: none !important; }
}
