/*
Theme Name: Global Payments Engineering
Theme URI: https://paymentconsultant.top
Author: SP
Description: Editorial theme for Global Payments Engineering — payments delivery, AI, AML, fraud and compliance. Light, navy-and-sky palette with a typography-led homepage.
Version: 1.0.4
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gpe
*/

:root {
	--ink: #1B2A47;
	--muted: #4A5672;
	--link: #2F5D94;
	--accent: #1F3D6B;
	--sky: #7EA3CF;
	--line: #DCE2EB;
	--line-strong: #C9D2DF;
	--band: #F3F6FA;
	--band-blue: #EAF0F7;
	--white: #FFFFFF;
	--wrap: 1240px;
	--font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font);
	color: var(--ink);
	background: var(--white);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }

.skip-link {
	position: absolute; left: -9999px; top: 0;
	background: var(--accent); color: var(--white); padding: 12px 18px; z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 32px; padding-right: 32px; }
@media (max-width: 600px) { .wrap { padding-left: 20px; padding-right: 20px; } }

/* ---------- Header ---------- */
.utility { background: var(--band); border-bottom: 1px solid var(--line); }
.utility .wrap { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 28px; }
.utility a { font-size: 13px; color: var(--muted); text-decoration: none; padding: 12px 0; }
.utility a:hover { color: var(--ink); }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 16px; padding-top: 20px; padding-bottom: 20px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand-name { font-weight: 600; font-size: 21px; letter-spacing: 0.01em; }
.brand-rule { width: 1px; height: 22px; background: var(--line-strong); }
.brand-tag { font-size: 13px; color: var(--muted); }
.brand .custom-logo { max-height: 40px; width: auto; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 36px; }
.main-nav a { color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 500; padding: 12px 0; display: inline-block; }
.main-nav a:hover { color: var(--link); }

/* ---------- Shared type ---------- */
.eyebrow {
	margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.16em;
	text-transform: uppercase; color: var(--muted);
}
.h-display {
	margin: 0; font-weight: 300; line-height: 1.1; letter-spacing: -0.02em;
	font-size: clamp(34px, 4vw, 52px);
}
.lead { margin: 0; font-size: 18px; line-height: 1.65; color: var(--muted); }
.muted { color: var(--muted); }

.btn {
	display: inline-block; background: var(--accent); color: var(--white);
	text-decoration: none; font-weight: 500; font-size: 16px; padding: 15px 28px;
	border: 0; cursor: pointer; font-family: inherit; line-height: 1.4;
}
.btn:hover { background: var(--ink); color: var(--white); }
.text-link { text-decoration: none; font-weight: 500; font-size: 16px; padding: 12px 0; display: inline-block; }
.text-link.underline { border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding-top: 6px; }

.section { padding: 104px 0; }
.section.band { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.blue { background: var(--band-blue); }
@media (max-width: 700px) { .section { padding: 72px 0; } }

.section-head {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
	gap: 20px; margin-bottom: 52px;
}
.section-head > div { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 112px; }
.hero-inner { max-width: 1120px; display: flex; flex-direction: column; gap: 28px; }
.hero h1 {
	margin: 0; font-weight: 300; line-height: 1.0; letter-spacing: -0.03em;
	font-size: clamp(42px, 6vw, 88px);
}
.hero h1 br { display: block; }
.hero .lead { font-size: 20px; max-width: 640px; }
@media (max-width: 700px) { .hero { padding: 64px 0 80px; } }

/* ---------- Principles ---------- */
.principles .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; }
.principle { border-top: 2px solid var(--sky); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.principle-title { font-weight: 300; font-size: 40px; letter-spacing: -0.02em; line-height: 1.15; }
.principle p { margin: 0; font-size: 16px; color: var(--muted); }
.section.principles { padding: 64px 0; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
@media (max-width: 980px) { .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .services-grid { grid-template-columns: 1fr; } }
.service { border-top: 1px solid var(--line-strong); padding: 28px 0; display: flex; flex-direction: column; gap: 14px; }
.service-num { font-size: 13px; color: var(--muted); }
.service h3 { margin: 0; font-weight: 400; font-size: 24px; letter-spacing: -0.01em; line-height: 1.25; }
.service p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--muted); flex-grow: 1; }
.service .text-link { font-size: 15px; padding: 8px 0; }

/* ---------- Platform ---------- */
.split { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.split > .col { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.split > .col-wide { flex: 1 1 480px; min-width: 0; }
.badge-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.badge { border: 1px solid #8FA6C4; color: var(--ink); padding: 4px 10px; letter-spacing: 0.08em; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.feature { border-top: 1px solid #B9C6D8; padding: 24px 0; }
.feature:last-child { border-bottom: 1px solid #B9C6D8; }
.feature h3 { margin: 0 0 8px; font-weight: 500; font-size: 20px; }
.feature p { margin: 0; font-size: 16px; color: var(--muted); }

/* ---------- Industries ---------- */
.industries .split > .col { flex: 1 1 340px; }
.industries .col-wide { flex: 2 1 560px; }
.industry {
	border-top: 1px solid var(--line-strong); padding: 26px 0;
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px;
}
.industry:last-child { border-bottom: 1px solid var(--line-strong); }
.industry-name { font-weight: 400; font-size: 24px; flex: 0 0 240px; line-height: 1.3; }
.industry p { margin: 0; font-size: 16px; color: var(--muted); flex: 1 1 280px; }

/* ---------- Insights cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.card { text-decoration: none; color: var(--ink); background: var(--white); display: flex; flex-direction: column; border: 1px solid var(--line); border-top: 3px solid var(--sky); }
.card:hover { color: var(--ink); border-color: var(--line-strong); }
.card:hover .card-title { color: var(--link); }
.card-media { aspect-ratio: 16 / 9; background: #D9E3F0; overflow: hidden; display: flex; align-items: flex-end; padding: 18px; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media.has-img { padding: 0; }
.card-media-label { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.card-body { padding: 28px; display: flex; flex-direction: column; gap: 14px; flex-grow: 1; min-height: 210px; }
.card-more { margin-top: auto; padding-top: 8px; font-size: 15px; font-weight: 500; color: var(--link); }
.card:hover { border-top-color: var(--accent); }
.card-meta { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.card-title { font-weight: 400; font-size: 21px; line-height: 1.35; }
.card-excerpt { font-size: 15px; color: var(--muted); margin: 0; }

/* ---------- About ---------- */
.about .split { align-items: center; }
.about-photo { flex: 0 1 300px; min-width: 0; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about .col { flex: 1 1 480px; }

/* ---------- Contact ---------- */
.contact .col { flex: 1 1 400px; }
.contact-form { flex: 1 1 440px; min-width: 0; background: var(--white); padding: 36px; display: flex; flex-direction: column; gap: 20px; }
.form-row { display: flex; flex-wrap: wrap; gap: 20px; }
.form-row > label { flex: 1 1 180px; }
.contact-form label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea {
	font: inherit; font-size: 16px; color: var(--ink); padding: 10px 0;
	border: 0; border-bottom: 1px solid #8FA6C4; background: transparent; border-radius: 0; width: 100%;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-bottom: 2px solid var(--accent); }
.contact-form textarea { resize: vertical; }
.contact-form .btn { align-self: flex-start; }
.hp-field { position: absolute; left: -9999px; }
.notice { padding: 14px 18px; font-size: 15px; border-left: 3px solid var(--accent); background: var(--band); }
.notice.error { border-left-color: #A33A3A; }
@media (max-width: 600px) { .contact-form { padding: 24px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--band); border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-top: 48px; padding-bottom: 48px; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-brand .brand-name { font-size: 18px; }
.footer-brand span:last-child { font-size: 14px; color: var(--muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 32px; align-items: flex-start; }
.footer-nav a, .footer-nav span { font-size: 14px; color: var(--muted); text-decoration: none; padding: 10px 0; }
.footer-nav a:hover { color: var(--ink); }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 32px; }
.footer-nav li a { display: inline-block; }

/* ---------- Inner pages & posts ---------- */
.page-hero { padding: 80px 0 48px; border-bottom: 1px solid var(--line); }
.page-hero .wrap > div { max-width: 860px; display: flex; flex-direction: column; gap: 18px; }
.page-hero h1 { margin: 0; font-weight: 300; font-size: clamp(36px, 5vw, 64px); line-height: 1.08; letter-spacing: -0.025em; }
.page-hero .meta { font-size: 14px; color: var(--muted); }
.page-hero .meta a { color: var(--muted); }

.entry { padding: 64px 0 104px; }
.entry-content { max-width: 760px; font-size: 18px; line-height: 1.75; }
.entry-content > * + * { margin-top: 1.2em; }
.entry-content h2 { font-weight: 400; font-size: 30px; line-height: 1.25; letter-spacing: -0.01em; margin-top: 2em; }
.entry-content h3 { font-weight: 500; font-size: 22px; line-height: 1.3; margin-top: 1.8em; }
.entry-content p, .entry-content ul, .entry-content ol { margin-bottom: 0; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: 0.4em; }
.entry-content blockquote { margin-left: 0; padding-left: 24px; border-left: 2px solid var(--sky); color: var(--muted); font-size: 20px; }
.entry-content img, .entry-content figure { max-width: 100%; height: auto; }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content table { border-collapse: collapse; width: 100%; font-size: 16px; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.entry-content .wp-block-button__link { background: var(--accent); color: var(--white); border-radius: 0; }
.featured-image { margin: 0 0 48px; max-width: 1000px; }
.featured-image img { width: 100%; }
.post-footer { max-width: 760px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.alignwide { max-width: 1000px; }
.alignfull { max-width: none; }

.archive-list { padding: 64px 0 104px; }
.pagination { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { padding: 10px 16px; border: 1px solid var(--line-strong); text-decoration: none; color: var(--ink); min-width: 44px; text-align: center; }
.pagination .page-numbers.current { background: var(--accent); color: var(--white); border-color: var(--accent); }

.comments-area { max-width: 760px; margin-top: 64px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { border-top: 1px solid var(--line); padding: 20px 0; }
.comment-reply-title { font-weight: 400; font-size: 26px; letter-spacing: -0.01em; }
.comment-form { display: flex; flex-direction: column; gap: 16px; }
.comment-form p { margin: 0; }
.comment-form label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	font: inherit; font-size: 16px; color: var(--ink); width: 100%; padding: 10px 0;
	border: 0; border-bottom: 1px solid #8FA6C4; background: transparent; border-radius: 0;
}
.comment-form textarea { min-height: 120px; resize: vertical; }
.comment-form .comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.comment-form .comment-form-cookies-consent label { display: inline; margin: 0; }
.comment-form .submit {
	background: var(--accent); color: var(--white); border: 0; font: inherit; font-weight: 500;
	font-size: 16px; padding: 14px 26px; cursor: pointer;
}
.comment-form .submit:hover { background: var(--ink); }
.comment-notes, .logged-in-as { font-size: 14px; color: var(--muted); }

/* ---------- Topics strip ---------- */
.topics { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 8px; }
.topic { border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; font-size: 14px; padding: 10px 16px; }
.topic:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- AI benefits ---------- */
.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 40px; }
.benefit { border-top: 1px solid #B9C6D8; padding: 24px 0; }
.benefit h3 { margin: 0 0 8px; font-weight: 500; font-size: 20px; }
.benefit p { margin: 0; font-size: 16px; color: var(--muted); }

@media (max-width: 600px) { .brand-rule, .brand-tag { display: none; } }

.contact-simple { max-width: 820px; display: flex; flex-direction: column; gap: 20px; }
