/*
Theme Name: IgnyteRT
Theme URI: https://ignytert.com
Author: IgnyteRT
Author URI: https://ignytert.com
Description: Standalone custom theme for the IgnyteRT marketing site. Engine layer (config → :root, settings, metrics) borrowed from the Group Holdings master template; IgnyteRT is a vendor, not a group platform, so there is no directory, vendor, or membership layer. Design per the Claude Design homepage mockup: light page, dark masthead/footer, navy + accent green, Space Grotesk (self-hosted).
Version: 0.2.0
Requires at least: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ignytert
Tags: custom-theme, b2b, saas
*/

/* =========================================================================
   Design foundation (per the homepage mockup).
   Color tokens (--navy, --accent, --light …) are emitted into :root at
   runtime from inc/platform-config.php. The fallbacks below keep the theme
   correct even if that inline style is ever stripped.
   ========================================================================= */

/* ---- Space Grotesk — self-hosted variable font (300–700). --------------- */
@font-face {
	font-family: 'Space Grotesk';
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url('assets/fonts/space-grotesk-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Space Grotesk';
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url('assets/fonts/space-grotesk-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

*,
*::before,
*::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	font-family: 'Space Grotesk', system-ui, sans-serif;
	background: var(--light, #FFFFFF);
	color: var(--navy, #0A1533);
	line-height: 1.6;
	overflow-x: hidden; /* the no-horizontal-scroll law */
}

/* Contained content column; full-bleed backgrounds live on the section. */
.wrap { max-width: var(--w, 1200px); margin: 0 auto; padding: 0 28px; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.08; letter-spacing: -.02em; }

a { text-decoration: none; color: inherit; }
a:hover { color: var(--accent2, #14A56A); }

img, svg { max-width: 100%; height: auto; }

/* Uppercase letterspaced section eyebrow (green, mono-feel). */
.kicker {
	display: block;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--accent, #19C37D);
}

/* ---- Buttons ------------------------------------------------------------- */
.btn {
	display: inline-block;
	padding: 15px 30px;
	font-family: inherit;
	font-weight: 600;
	font-size: 16px;
	border-radius: 10px;
	border: 1.5px solid transparent;
	transition: all .15s;
	cursor: pointer;
	line-height: 1.2;
	text-align: center;
}
.btn:focus-visible { outline: 3px solid var(--accent2, #14A56A); outline-offset: 3px; }
/* Green — the primary action on light and dark sections. */
.btn-solid { background: var(--accent, #19C37D); color: var(--navy, #0A1533); }
.btn-solid:hover { background: var(--accent2, #14A56A); color: var(--navy, #0A1533); }
/* Navy outline — the secondary action on light sections. */
.btn-line { border-color: var(--navy, #0A1533); color: var(--navy, #0A1533); background: transparent; }
.btn-line:hover { background: var(--navy, #0A1533); color: #fff; }
/* Navy solid — used on the green CTA band. */
.btn-navy { background: var(--navy, #0A1533); color: #fff; }
.btn-navy:hover { background: var(--surface, #101E42); color: #fff; }
.btn small { display: block; font-size: 11.5px; font-weight: 500; opacity: .8; margin-top: 2px; }

/* ---- Accessibility -------------------------------------------------------- */
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; word-wrap: normal !important;
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; }
.skip-link:focus {
	left: 8px; top: 8px; background: var(--accent, #19C37D); color: var(--navy, #0A1533);
	padding: 10px 16px; font-weight: 700; border-radius: 8px;
}

/* ---- Announcement bar ------------------------------------------------------ */
.announce { background: var(--surface, #101E42); border-bottom: 1px solid var(--border, #1E2C50); text-align: center; padding: 8px 14px; font-size: 13px; color: var(--text, #F4F7FF); }
.announce a { color: var(--mint, #7FE8BC); font-weight: 600; }

/* ---- Masthead nav (dark, per mockup) ---------------------------------------- */
.masthead {
	background: var(--navy, #0A1533);
	border-bottom: 1px solid var(--border, #1E2C50);
	position: sticky; top: 0; z-index: 60;
	color: var(--text, #F4F7FF);
}
.nav-in { display: flex; align-items: center; height: 72px; gap: 36px; }

/* Logo: four-pointed star + wordmark + RT badge (pure markup, no media URLs). */
.logo { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; white-space: nowrap; }
.logo .star { width: 28px; height: 28px; flex: 0 0 auto; }
.logo .t { font-size: 21px; font-weight: 700; letter-spacing: -.01em; color: var(--text, #F4F7FF); }
.logo .rt {
	font-size: 12px; font-weight: 700; color: var(--navy, #0A1533);
	background: var(--accent, #19C37D); border-radius: 6px; padding: 3px 6px; line-height: 1;
}
.logo-img { height: 40px; width: auto; max-width: 220px; display: block; }

.links { display: flex; gap: 28px; font-weight: 500; font-size: 15px; list-style: none; }
.links a { color: var(--text2, #97A3C2); }
.links a:hover { color: var(--text, #F4F7FF); }

.nav-r { margin-left: auto; display: flex; gap: 20px; align-items: center; }
.nav-r .login { font-weight: 500; font-size: 15px; color: var(--text2, #97A3C2); }
.nav-r .login:hover { color: var(--text, #F4F7FF); }
.nav-r .btn { padding: 11px 20px; font-size: 14.5px; }

/* Hamburger — three bars, 44px target; morphs to an X when open. */
.nav-toggle { display: none; background: none; border: 0; padding: 0; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; flex: 0 0 auto; }
.nav-toggle .bars { display: block; position: relative; width: 24px; height: 16px; }
.nav-toggle .bars span { position: absolute; left: 0; right: 0; height: 2.5px; background: var(--text, #F4F7FF); border-radius: 2px; transition: transform .15s ease, opacity .15s ease; }
.nav-toggle .bars span:nth-child(1) { top: 0; }
.nav-toggle .bars span:nth-child(2) { top: 6.75px; }
.nav-toggle .bars span:nth-child(3) { top: 13.5px; }
.masthead.nav-open .nav-toggle .bars span:nth-child(1) { transform: translateY(6.75px) rotate(45deg); }
.masthead.nav-open .nav-toggle .bars span:nth-child(2) { opacity: 0; }
.masthead.nav-open .nav-toggle .bars span:nth-child(3) { transform: translateY(-6.75px) rotate(-45deg); }

/* Mobile nav panel */
.site-nav { display: contents; }
.mobile-actions { display: none; }
@media (max-width: 960px) {
	.nav-toggle { display: inline-flex; }
	.nav-r .login { display: none; }
	.nav-in { gap: 14px; height: 64px; }
	.nav-r { gap: 10px; }
	.nav-r .btn { padding: 9px 14px; font-size: 13px; }
	.site-nav {
		display: none;
		position: absolute; top: 100%; left: 0; right: 0;
		background: var(--navy, #0A1533);
		border-bottom: 1px solid var(--border, #1E2C50);
		box-shadow: 0 18px 30px rgba(0, 0, 0, .35);
		z-index: 70;
		max-height: calc(100vh - 120px);
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
	}
	.masthead.nav-open .site-nav { display: block; }
	.site-nav .links { display: block; padding: 6px 0; }
	.site-nav .links a { display: flex; align-items: center; min-height: 52px; padding: 12px 24px; border-bottom: 1px solid var(--border, #1E2C50); color: var(--text, #F4F7FF); font-size: 16px; }
	.mobile-actions { display: block; padding: 16px 24px 20px; }
	.mobile-actions .m-login { display: flex; align-items: center; min-height: 48px; font-weight: 500; color: var(--text2, #97A3C2); }
	.mobile-actions .btn { display: block; text-align: center; }
}
@media (max-width: 560px) {
	.wrap { padding: 0 18px; }
	.logo .t { font-size: 18px; }
	.logo .star { width: 24px; height: 24px; }
}
body.nav-locked { overflow: hidden; }

/* ---- Sections --------------------------------------------------------------- */
section { padding: 96px 0; }
@media (max-width: 760px) { section { padding: 64px 0; } }
.sec-head { max-width: 720px; margin-bottom: 56px; }
.sec-head h2 { font-size: clamp(32px, 4.6vw, 52px); margin-top: 16px; color: var(--navy, #0A1533); }
.sec-head p { color: var(--ink2, #5D6C86); font-size: 17px; margin-top: 16px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
/* Dark sections flip the head colors. */
.sec-dark { background: var(--navy, #0A1533); color: var(--text, #F4F7FF); }
.sec-dark .sec-head h2 { color: #fff; }
.sec-dark .sec-head p { color: var(--text2, #97A3C2); }

/* Cards */
.card-dark {
	background: var(--surface, #101E42);
	border: 1px solid var(--border, #1E2C50);
	border-radius: 16px;
	color: var(--text, #F4F7FF);
}
.card-light {
	background: var(--light, #FFFFFF);
	border: 1px solid var(--lightline, #E4E8F0);
	border-radius: 16px;
}

/* ---- "Three wins" reply-bubble block (template-parts/value-wins.php) -------
   Shared by the homepage value section and the line-of-business pages, so the
   rules live here (site-wide) rather than in a per-page stylesheet. */
.val-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.val-col { padding: 26px 22px; }
.val-ico {
	display: inline-flex; align-items: center; justify-content: center;
	width: 46px; height: 46px; border-radius: 12px; margin-bottom: 14px;
	color: var(--mint, #7FE8BC); background: color-mix(in srgb, var(--accent, #19C37D) 14%, transparent);
}
.val-win { font-size: 16.5px; line-height: 1.35; margin-bottom: 16px; color: var(--text, #F4F7FF); }
.val-thread { display: flex; flex-direction: column; gap: 8px; }
.val-bubble {
	position: relative; align-self: flex-start; max-width: 100%;
	background: var(--navy, #0A1533); border: 1px solid var(--border, #1E2C50); color: var(--text, #F4F7FF);
	font-size: 14.5px; line-height: 1.5; padding: 10px 14px; border-radius: 14px 14px 14px 4px;
}
.val-caption { text-align: center; margin-top: 22px; font-size: 13px; color: var(--text2, #97A3C2); }
@media (max-width: 760px) { .val-cols { grid-template-columns: 1fr; gap: 16px; } }

/* ---- Footer (dark, per mockup) ------------------------------------------------ */
.site-footer { background: var(--navy, #0A1533); color: var(--text2, #97A3C2); padding: 64px 0 32px; font-size: 14.5px; }
.fgrid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 44px; }
@media (max-width: 900px) { .fgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .fgrid { grid-template-columns: 1fr; } }
.site-footer h5 { font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--text, #F4F7FF); margin-bottom: 14px; }
.site-footer li { list-style: none; padding: 5px 0; }
.site-footer a:hover { color: var(--text, #F4F7FF); }
.fbrand p { max-width: 280px; margin-top: 14px; }
.fbrand .btn { margin-top: 18px; padding: 11px 20px; font-size: 14px; }
.fbot { border-top: 1px solid var(--border, #1E2C50); padding-top: 22px; font-size: 12.5px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.fbot a { color: var(--text2, #97A3C2); }
.fbot a:hover { color: var(--text, #F4F7FF); }

/* ---- Industry cards + status legend (shared: home grid, /industries hub) ----- */
.legend { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }
.dot.on { background: var(--accent, #19C37D); }
.dot.soon { background: var(--amber, #F5B70B); }
.vert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .vert-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .vert-grid { grid-template-columns: 1fr; } }
.vert { display: block; position: relative; padding: 34px 26px; text-align: center; transition: border-color .15s, transform .15s, box-shadow .15s; color: var(--text, #F4F7FF); }
.vert-ic { display: inline-flex; color: var(--accent, #19C37D); margin-bottom: 14px; }
.vert h3 { font-size: 18px; color: var(--text, #F4F7FF); }
.vert p { margin-top: 8px; font-size: 12.5px; letter-spacing: .06em; color: var(--mint, #7FE8BC); }
/* "Learn more" affordance — only on cards that link somewhere. */
.vert-more { display: inline-block; margin-top: 16px; font-size: 13px; font-weight: 600; color: var(--accent, #19C37D); transition: transform .15s; }
a.vert:hover { border-color: var(--accent, #19C37D); transform: translateY(-3px); color: var(--text, #F4F7FF); box-shadow: 0 14px 34px color-mix(in srgb, var(--accent, #19C37D) 20%, transparent); }
a.vert:hover .vert-more { transform: translateX(3px); }
.vert .vert-status { position: absolute; top: 16px; right: 16px; }

/* ---- Long-form prose (legal pages, contact, posts) -------------------------- */
.page-body .sec-head h1 { font-size: clamp(32px, 4.6vw, 48px); color: var(--navy, #0A1533); }
.prose { max-width: 760px; color: var(--navy, #0A1533); font-size: 16px; }
.prose h2 { font-size: 26px; margin: 44px 0 14px; }
.prose h3 { font-size: 20px; margin: 32px 0 10px; }
.prose p, .prose ul, .prose ol { margin-bottom: 16px; color: #2A3752; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--accent2, #14A56A); font-weight: 500; }
.prose strong { color: var(--navy, #0A1533); }

/* Legal pages (terms / privacy / dpa) — meta line + tables. */
.prose .legal-meta { color: #5A6B8C; font-size: 14px; margin: -4px 0 26px; }
/* A DRAFT clause inside an otherwise-active legal page (attorney review). */
.prose .legal-draft { border: 1.5px solid var(--amber, #F5B70B); background: color-mix(in srgb, var(--amber, #F5B70B) 8%, transparent); border-radius: 12px; padding: 8px 20px 4px; margin: 24px 0; }
.prose .legal-draft > p:first-child strong { color: #8a6d00; }
.prose .legal-table { width: 100%; border-collapse: collapse; margin: 20px 0 24px; font-size: 15px; }
.prose .legal-table th, .prose .legal-table td { border: 1px solid #D9E0EC; padding: 9px 12px; text-align: left; vertical-align: top; }
.prose .legal-table th { background: #F5F7FA; color: var(--navy, #0A1533); font-weight: 700; }
.prose .legal-table td { color: #2A3752; }
@media (max-width: 560px) { .prose .legal-table { display: block; overflow-x: auto; white-space: nowrap; } }

/* /privacy-choices — opt-out toggle. */
.privacy-choices .pc-toggle-row { margin: 22px 0; padding: 18px 20px; border: 1px solid #D9E0EC; border-radius: 12px; background: #F5F7FA; }
.privacy-choices .pc-switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; }
.privacy-choices .pc-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.privacy-choices .pc-slider { position: relative; width: 46px; height: 26px; border-radius: 999px; background: #C3CCDC; transition: background .15s; flex: none; }
.privacy-choices .pc-slider::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.privacy-choices .pc-switch input:checked + .pc-slider { background: var(--accent, #19C37D); }
.privacy-choices .pc-switch input:checked + .pc-slider::after { transform: translateX(20px); }
.privacy-choices .pc-switch input:disabled + .pc-slider { opacity: .6; cursor: not-allowed; }
.privacy-choices .pc-switch-label { font-weight: 600; color: var(--navy, #0A1533); }
.privacy-choices .pc-toggle-help { margin: 10px 0 0; font-size: 13.5px; color: #5A6B8C; }
.privacy-choices .pc-gpc-note { margin: 8px 0 0; font-size: 13.5px; color: var(--accent2, #14A56A); font-weight: 500; }

/* Footer entity / postal address. */
.fentity { margin-top: 14px; font-size: 12.5px; line-height: 1.6; color: var(--text2, #97A3C2); }

/* Cookie notice bar (Snippet 1.9) — fixed, dismissible, first visit. */
.cookie-bar {
	position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
	max-width: 880px; margin: 0 auto;
	display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
	padding: 16px 20px; border-radius: 14px;
	background: var(--surface, #101E42); border: 1px solid var(--border, #1E2C50);
	box-shadow: 0 18px 44px rgba(0, 0, 0, .4);
}
/* The `display:flex` above (author style) beats the UA [hidden]{display:none},
   so the JS `bar.hidden = true` dismiss wouldn't visually hide the bar. This
   higher-specificity rule restores the hidden attribute's effect. */
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; flex: 1 1 320px; font-size: 13.5px; line-height: 1.55; color: var(--text2, #97A3C2); }
.cookie-bar a { color: var(--mint, #7FE8BC); }
.cookie-bar .cookie-bar-dismiss { flex: none; padding: 10px 26px; font-size: 14.5px; }
@media (max-width: 480px) { .cookie-bar { left: 10px; right: 10px; bottom: 10px; } }

/* Draft banner for pages pending legal review. */
.draft-notice {
	border: 1.5px solid var(--amber, #F5B70B);
	background: color-mix(in srgb, var(--amber, #F5B70B) 10%, transparent);
	border-radius: 12px;
	padding: 18px 22px;
	margin-bottom: 36px;
	font-size: 14.5px;
	color: var(--navy, #0A1533);
}

/* Reveal-on-scroll, guarded (JS adds .in). */
@media (prefers-reduced-motion: no-preference) {
	.rev { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
	.rev.in { opacity: 1; transform: none; }
}
