/*
Theme Name: GSCG Preview
Theme URI: https://globalsecuritiesconsulting.com/
Author: Jules Anderson
Description: Preview theme for Global Securities Consulting Group, built from the GSCG design system (Editorial + Light direction). Homepage content is editable through ACF Pro fields; every field falls back to the approved demo copy, so the theme can be shown with Live Preview before any content is entered.
Version: 0.2.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: gscg
*/

:root {
	--navy: #021427;
	--gold: #c7a062;
	--gold-text: #a8823d;
	--gold-display: #b08b52;
	--champagne: #e8ddd0;
	--white: #fbfbfb;
	--cream: #faf8f4;
	--sand: #f2ede5;
	--card: #eee7dc;
	--line: #ddd6c9;
	--slate: #4a5a6a;
	--body: #4f5d6b;
	--serif: "Playfair Display", Georgia, "Times New Roman", serif;
	--sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	--wrap: 1280px;
	--gutter: 48px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	background: var(--cream);
	color: var(--navy);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 100; top: 12px; left: 12px;
	background: var(--white); padding: 10px 16px; outline: 2px solid var(--gold);
}
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

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

.eyebrow {
	font-family: var(--sans);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--gold-text);
	margin-bottom: 20px;
}
.h-section {
	font-family: var(--serif);
	font-weight: 400;
	font-size: clamp(2rem, 1.3rem + 1.9vw, 3rem);
	line-height: 1.1;
	letter-spacing: -0.01em;
	color: var(--navy);
}

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--navy); color: var(--white);
	font-family: var(--sans); font-size: 15px; font-weight: 500;
	padding: 16px 30px; border: 1px solid var(--navy);
	text-decoration: none; transition: background 0.18s, color 0.18s;
}
.btn:hover { background: #0b2a4a; }
.link-arrow {
	display: inline-flex; align-items: center; gap: 10px;
	font-size: 15px; font-weight: 500; color: var(--navy);
	text-decoration: none; padding-bottom: 4px;
	border-bottom: 1px solid var(--gold);
}
.link-arrow svg { transition: transform 0.18s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: #ffffff;
	border-bottom: 1px solid #ece6dc;
}
.admin-bar .site-header { top: 32px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 88px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--navy); }
.brand-mark { width: 44px; height: 44px; color: var(--navy); flex: none; }
.brand-name { font-family: var(--serif); font-size: 21px; letter-spacing: -0.005em; white-space: nowrap; }

.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav > a {
	font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--navy);
	text-decoration: none; background: none; border: 0; padding: 6px 0; cursor: pointer;
}
.site-nav > a:hover { color: var(--gold-text); }
.site-nav > a.nav-contact {
	border: 1px solid var(--navy); padding: 10px 20px;
}
.site-nav > a.nav-contact:hover { background: var(--navy); color: var(--white); }
.menu-toggle { display: none; -webkit-tap-highlight-color: transparent; }

/* ---------- Hero ---------- */
.hero { background: var(--cream); padding: 88px 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.hero-title {
	font-family: var(--serif); font-weight: 400;
	font-size: clamp(2.6rem, 1.5rem + 3.4vw, 4.6rem);
	line-height: 1.05; letter-spacing: -0.018em; color: var(--navy);
}
.hero-title span { display: block; }
.hero-title .accent { font-style: italic; color: var(--gold-display); }
.hero-lede { font-size: 19px; line-height: 1.6; color: var(--body); max-width: 33em; margin-top: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 36px; margin-top: 40px; }
.hero-visual { display: flex; justify-content: center; }
.hero-image { width: min(470px, 100%); height: auto; }

.stats {
	display: grid; grid-template-columns: repeat(3, 1fr);
	border-top: 1px solid var(--line);
	margin-top: 88px; padding: 36px 0 52px;
}
.stat { text-align: center; padding: 6px 16px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-figure { font-family: var(--serif); font-size: clamp(1.6rem, 1.2rem + 1vw, 2.15rem); line-height: 1.2; color: var(--navy); }
.stat-label { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--slate); margin-top: 10px; }

/* ---------- The Firm ---------- */
.firm { background: var(--sand); padding: 88px 0; }
.firm-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.firm .h-section { font-size: clamp(2rem, 1.3rem + 2vw, 3.1rem); }
.firm-body { border-left: 1px solid var(--line); padding-left: 48px; color: var(--body); font-size: 16.5px; }
.firm-body p + p { margin-top: 18px; }

/* ---------- The Principal ---------- */
.principal { background: #fdfcfa; padding: 88px 0 96px; border-bottom: 1px solid var(--line); }
.principal-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 0; }
.principal-intro { padding-right: 48px; border-right: 1px solid var(--line); }
.principal-name { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 1.3rem + 2.2vw, 3.2rem); line-height: 1.08; color: var(--navy); }
.principal-role {
	font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
	color: var(--gold-text); margin-top: 16px;
}
.principal-mark { width: 72px; height: 72px; color: var(--gold); margin-top: 36px; }
.principal-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-left: 48px; }
.principal-group { border-top: 2px solid var(--gold); padding-top: 22px; }
.principal-group-label { font-family: var(--serif); font-weight: 400; font-size: 23px; line-height: 1.25; color: var(--navy); }
.principal-group-lines { list-style: none; margin: 16px 0 0; padding: 0; }
.principal-group-lines li { font-size: 15px; line-height: 1.5; color: var(--body); padding: 10px 0; border-bottom: 1px solid #ece6dc; }
.principal-group-lines li:last-child { border-bottom: 0; }

/* Gentle fade-in as sections scroll into view (only when JavaScript is running). */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-2 { transition-delay: 0.12s; }
.js .reveal-3 { transition-delay: 0.24s; }
.js .reveal-4 { transition-delay: 0.36s; }
@media (prefers-reduced-motion: reduce) {
	.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Services ---------- */
.services { background: var(--cream); padding: 96px 0; }
.services-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 0; }
.services-intro { padding-right: 48px; border-right: 1px solid var(--line); }
.services-intro .h-section { font-size: clamp(2.2rem, 1.3rem + 2.4vw, 3.4rem); line-height: 1.08; }
.service-list { list-style: none; margin: 0; padding: 0 0 0 48px; }
.service {
	display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.15fr);
	gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line);
}
.service:first-child { padding-top: 0; }
.service:last-child { border-bottom: 0; }
.service-num { font-family: var(--serif); font-size: 26px; line-height: 1.1; color: var(--gold-text); }
.service-title { font-family: var(--serif); font-weight: 400; font-size: 25px; line-height: 1.22; color: var(--navy); }
.service-desc { font-size: 14.5px; line-height: 1.65; color: var(--body); padding-top: 2px; }

/* ---------- Statement band ---------- */
.statement { background: var(--navy); color: var(--white); padding: 64px 0; }
.statement .wrap { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.statement-text {
	font-family: var(--serif); font-style: italic; font-weight: 400;
	font-size: clamp(2.1rem, 1.2rem + 2.8vw, 3.9rem); line-height: 1.1; letter-spacing: -0.01em;
}
.statement-sub {
	font-size: 13px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase;
	color: var(--gold); margin-top: 18px;
}
.statement-mark { width: 150px; height: 150px; color: var(--gold); flex: none; }

/* ---------- Who we work with ---------- */
.who { background: var(--cream); padding: 80px 0 40px; }
.who .h-section { font-size: clamp(2rem, 1.3rem + 1.8vw, 2.9rem); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.card { background: var(--card); border-top: 2px solid var(--gold); padding: 32px 30px 40px; }
.card h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.25; color: var(--navy); }
.card p { font-size: 15px; line-height: 1.7; color: var(--body); margin-top: 14px; }

/* ---------- Working together / contact ---------- */
.together { background: #fdfcfa; padding: 56px 0 72px; }
.together-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.together-left { padding-right: 48px; border-right: 1px solid var(--line); }
.together-left .h-section, .together-right .h-section { font-size: clamp(2rem, 1.3rem + 1.7vw, 2.85rem); }
.together-left p:not(.eyebrow) { color: var(--body); margin-top: 18px; max-width: 32em; }
.together-right { padding-left: 52px; }
.together-right p { color: var(--body); margin-top: 12px; }
.together-right .btn { margin-top: 24px; }
.offices { display: flex; flex-wrap: wrap; gap: 20px 40px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.office { font-style: normal; font-size: 15px; line-height: 1.6; color: var(--body); }
.contact-email { display: inline-block; margin-top: 18px; color: var(--navy); font-weight: 500; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--white); padding: 44px 0 28px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer .brand { color: var(--white); }
.site-footer .brand-mark { color: var(--white); }
.site-footer .brand-name { font-size: 23px; }
.footer-tagline { font-size: 17px; }
.footer-rule { border: 0; border-top: 1px solid rgba(251, 251, 251, 0.28); margin: 26px 0 20px; }
.footer-services {
	text-align: center; font-size: 12px; letter-spacing: 0.14em; color: rgba(251, 251, 251, 0.85);
	list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 0;
}
.footer-services li + li::before { content: "\2022"; margin: 0 18px; }

/* ---------- Basic pages ---------- */
.page-main { padding: 80px 0 96px; }
.page-main .entry { max-width: 760px; }
.page-main h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 1.4rem + 2vw, 3.2rem); line-height: 1.1; margin-bottom: 28px; }
.page-main .entry p { color: var(--body); margin-bottom: 1.2em; }

/* ---------- Preview ribbon (only shown to logged-in admins) ---------- */
.preview-ribbon {
	background: var(--gold); color: var(--navy); text-align: center;
	font-size: 12px; font-weight: 600; letter-spacing: 0.08em; padding: 6px 16px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	:root { --gutter: 32px; }
	.hero-grid { grid-template-columns: 1fr; }
	.hero-visual { justify-content: flex-start; margin-top: 8px; }
	.hero-image { width: min(300px, 70%); }
	.services-grid { grid-template-columns: 1fr; }
	.services-intro { border-right: 0; padding-right: 0; margin-bottom: 40px; }
	.service-list { padding-left: 0; border-top: 1px solid var(--line); }
	.service:first-child { padding-top: 26px; }
	.firm-grid { grid-template-columns: 1fr; gap: 32px; }
	.firm-body { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 28px; }
	.principal-grid { grid-template-columns: 1fr; }
	.principal-intro { border-right: 0; padding-right: 0; margin-bottom: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
	.principal-mark { margin-top: 0; flex: none; }
	.principal-groups { padding-left: 0; }
}
@media (max-width: 860px) {
	:root { --gutter: 22px; }
	.site-header .wrap { height: 72px; }
	.brand-mark { width: 38px; height: 38px; }
	.brand-name { font-size: 17px; white-space: normal; line-height: 1.2; }
	.menu-toggle {
		display: inline-flex; align-items: center; gap: 8px; background: none;
		border: 1px solid var(--navy); color: var(--navy); font: 500 14px var(--sans);
		padding: 9px 14px; cursor: pointer;
	}
	.site-nav {
		display: none; position: absolute; top: 100%; left: 0; right: 0;
		flex-direction: column; align-items: stretch; gap: 0;
		background: #ffffff; border-bottom: 1px solid #ece6dc;
		padding: 8px var(--gutter) 20px; max-height: calc(100vh - 72px); overflow-y: auto;
	}
	.menu-open .site-nav { display: flex; }
	.site-nav > a { padding: 14px 0; border-bottom: 1px solid #f0ebe3; width: 100%; text-align: left; justify-content: space-between; font-size: 16px; }
	.site-nav > a.nav-contact { margin-top: 16px; text-align: center; border: 1px solid var(--navy); }
	.hero { padding-top: 56px; }
	.hero-lede { font-size: 17px; }
	.stats { grid-template-columns: 1fr; margin-top: 56px; padding: 8px 0 32px; }
	.stat { padding: 22px 0; }
	.stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
	.firm, .services, .principal { padding: 64px 0; }
	.principal-groups { grid-template-columns: 1fr; gap: 28px; }
	.principal-mark { width: 56px; height: 56px; }
	.service { grid-template-columns: 40px 1fr; gap: 6px 16px; }
	.service-desc { grid-column: 2; }
	.service-title { font-size: 22px; }
	.statement .wrap { flex-direction: column; align-items: flex-start; }
	.statement-mark { width: 96px; height: 96px; }
	.statement-sub { letter-spacing: 0.2em; line-height: 1.7; }
	.cards { grid-template-columns: 1fr; gap: 20px; }
	.together-grid { grid-template-columns: 1fr; }
	.together-left { border-right: 0; padding-right: 0; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
	.together-right { padding-left: 0; padding-top: 36px; }
	.footer-services { flex-direction: column; gap: 8px; }
	.footer-services li + li::before { content: none; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
