/*
Theme Name: Spectrum-PG
Description: Custom theme for Spectrum-PG — Spectrum Nexus payment aggregation and reporting (Philippines + international) and Spectrum management consulting. Built around the existing brand palette and logo.
Author: Spectrum-PG
Version: 1.1
Text Domain: spectrum-pg
*/

:root {
	--sl-primary: #553bf9;
	--sl-primary-dark: #3d2ac2;
	--sl-headings: #06163a;
	--sl-body: #4c4c63;
	--sl-link: #0e1133;
	--sl-placeholder: #677789;
	--sl-border: #e5e5ec;
	--sl-surface: #f7f7fb;
	--sl-primary-tint: #eeedfe;
	--sl-accent-secondary: #782850;
	--sl-accent-secondary-tint: #fbeaf0;
	--sl-white: #ffffff;
	--sl-radius: 10px;
	--sl-max-width: 1180px;
	--sl-font: 'Manrope', sans-serif;
}

* { box-sizing: border-box; }

body {
	font-family: var(--sl-font);
	color: var(--sl-body);
	margin: 0;
	line-height: 1.65;
	background: var(--sl-white);
}

h1, h2, h3, h4, h5, h6 {
	color: var(--sl-headings);
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 .6em;
}
h1 { font-size: 44px; }
h2 { font-size: 32px; }
h3 { font-size: 22px; }

a { color: var(--sl-link); text-decoration: none; }
a:hover { color: var(--sl-primary); }

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

.sl-container {
	max-width: var(--sl-max-width);
	margin: 0 auto;
	padding: 0 24px;
}

.sl-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--sl-primary);
	color: #fff;
	padding: 12px 24px;
	border-radius: var(--sl-radius);
	font-weight: 600;
	border: none;
	cursor: pointer;
	font-family: inherit;
	font-size: 15px;
}
.sl-btn:hover { background: var(--sl-primary-dark); color: #fff; }
.sl-btn-outline {
	background: transparent;
	color: var(--sl-primary);
	border: 1.5px solid var(--sl-primary);
}
.sl-btn-outline:hover { background: var(--sl-primary); color: #fff; }
.sl-btn-secondary {
	background: var(--sl-accent-secondary);
	color: #fff;
}
.sl-btn-secondary:hover { background: #5e1f3f; color: #fff; }

/* ---------- Header ---------- */
.sl-header {
	border-bottom: 1px solid var(--sl-border);
	padding: 16px 0;
	position: sticky;
	top: 0;
	background: #fff;
	z-index: 50;
}
.sl-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.sl-logo img { height: 44px; width: auto; }
.sl-nav ul {
	list-style: none;
	display: flex;
	gap: 6px;
	margin: 0;
	padding: 0;
}
.sl-nav a {
	color: var(--sl-headings);
	font-weight: 600;
	font-size: 15px;
	padding: 8px 14px;
	border-radius: 999px;
	transition: background-color .15s ease, color .15s ease;
}
.sl-nav a:hover,
.sl-nav a:focus-visible,
.sl-nav .current-menu-item > a,
.sl-nav .current_page_item > a {
	background: var(--sl-accent-secondary);
	color: #fff;
}
.sl-header-actions { display: flex; align-items: center; gap: 12px; }
.sl-menu-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; }

@media (max-width: 880px) {
	.sl-nav { display: none; }
	.sl-menu-toggle { display: block; }
	.sl-logo img { height: 32px; }
}

/* ---------- Hero ---------- */
.sl-hero {
	padding: 72px 0;
	text-align: center;
	background: linear-gradient(180deg, var(--sl-surface), #fff);
}
.sl-hero h1 { max-width: 780px; margin-left: auto; margin-right: auto; }
.sl-hero p.sl-lead {
	max-width: 620px;
	margin: 0 auto 28px;
	font-size: 18px;
}
.sl-hero-actions { display: flex; gap: 14px; justify-content: center; }

/* ---------- Two-column pillar panels ---------- */
.sl-pillars {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	padding: 64px 0;
}
.sl-pillar-card {
	border-radius: 16px;
	padding: 36px;
}
.sl-pillar-card.sl-pay { background: var(--sl-primary-tint); }
.sl-pillar-card.sl-consult { background: var(--sl-accent-secondary-tint); }
.sl-pillar-card h3 { font-size: 24px; margin-bottom: 12px; }
.sl-pillar-card.sl-pay h3 { color: var(--sl-primary-dark); }
.sl-pillar-card.sl-consult h3 { color: var(--sl-accent-secondary); }
.sl-pillar-card p { margin-bottom: 20px; }

@media (max-width: 780px) {
	.sl-pillars { grid-template-columns: 1fr; }
}

/* ---------- Trust strip / stats ---------- */
.sl-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	padding: 40px 0;
	text-align: center;
	border-top: 1px solid var(--sl-border);
	border-bottom: 1px solid var(--sl-border);
}
.sl-stats .num { font-size: 34px; font-weight: 700; color: var(--sl-headings); }
.sl-stats .label { color: var(--sl-placeholder); font-size: 14px; }

/* ---------- Generic content section ---------- */
.sl-section { padding: 56px 0; }
.sl-section-alt { background: var(--sl-surface); }
.sl-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sl-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sl-card {
	border: 1px solid var(--sl-border);
	border-radius: 12px;
	padding: 24px;
	background: #fff;
}
@media (max-width: 880px) {
	.sl-grid-3, .sl-grid-2 { grid-template-columns: 1fr; }
}

/* ---------- FAQ accordion ---------- */
.sl-faq-item { border-bottom: 1px solid var(--sl-border); padding: 18px 0; }
.sl-faq-question {
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	font-weight: 600;
	color: var(--sl-headings);
	background: none;
	border: none;
	width: 100%;
	text-align: left;
	font-family: inherit;
	font-size: 16px;
	padding: 0;
}
.sl-faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height .25s ease;
}
.sl-faq-item.open .sl-faq-answer { max-height: 400px; padding-top: 12px; }

/* ---------- Lead form brand override (base styles come from Spectrum Leads plugin) ---------- */
.spectrum-lead-form input,
.spectrum-lead-form textarea,
.spectrum-lead-form select {
	border-color: var(--sl-border);
}
.spectrum-lead-form input:focus,
.spectrum-lead-form textarea:focus,
.spectrum-lead-form select:focus {
	outline: none;
	border-color: var(--sl-primary);
	box-shadow: 0 0 0 3px rgba(85,59,249,.15);
}
.spectrum-lead-form .sl-submit-btn {
	background: var(--sl-primary);
	color: #fff;
	border: none;
	padding: 12px 24px;
	border-radius: var(--sl-radius);
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
}
.spectrum-lead-form .sl-submit-btn:hover { background: var(--sl-primary-dark); }
.sl-form-secondary .sl-submit-btn { background: var(--sl-accent-secondary); }
.sl-form-secondary .sl-submit-btn:hover { background: #5e1f3f; }
.sl-form-secondary input:focus,
.sl-form-secondary textarea:focus,
.sl-form-secondary select:focus { border-color: var(--sl-accent-secondary); box-shadow: 0 0 0 3px rgba(120,40,80,.15); }

/* ---------- Footer: same structure, smaller vertical footprint ---------- */
.sl-footer {
	background: var(--sl-headings);
	color: #c7cbe0;
	padding: 32px 0 18px;
	font-size: 13.5px;
}
.sl-footer-top {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr 1fr;
	gap: 24px;
	padding-bottom: 20px;
}
.sl-footer-brand-name { color: #fff; font-size: 17px; font-weight: 800; margin: 0 0 8px; }
.sl-footer-brand p { margin: 0; font-size: 13px; color: #9ba0c0; }
.sl-footer h4 {
	color: #fff;
	font-size: 12.5px;
	text-transform: uppercase;
	letter-spacing: .04em;
	margin: 0 0 10px;
}
.sl-footer address { font-style: normal; line-height: 1.5; margin: 0; }
.sl-footer ul { list-style: none; margin: 0; padding: 0; }
.sl-footer ul li { margin-bottom: 6px; }
.sl-footer a { color: #c7cbe0; }
.sl-footer a:hover { color: #fff; }
.sl-footer-bottom {
	border-top: 1px solid rgba(255,255,255,.12);
	padding-top: 14px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	color: #9ba0c0;
	font-size: 12.5px;
}
@media (max-width: 880px) {
	.sl-footer-top { grid-template-columns: 1fr 1fr; }
}
