/*
Theme Name: Underground ACT Starter
Theme URI: https://undergroundact.com/
Author: Brian Tolman
Description: Undergroundact product-family theme for B-Planner and Undergroundact Bug Reporter.
Version: 1.1.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: underground-act-starter
*/

:root {
			--ua-ink: #241f1b;
			--ua-paper: #f6efe1;
			--ua-paper-2: #fffaf0;
			--ua-green: #145c43;
			--ua-green-2: #0f4935;
			--ua-red: #a51f1f;
			--ua-red-2: #7f1717;
			--ua-gold: #d7aa58;
			--ua-line: rgba(55, 42, 31, .14);
			--ua-shadow: 0 18px 50px rgba(47, 35, 24, .12);
			--ua-radius: 24px;
			--ua-serif: Georgia, "Times New Roman", serif;
			--ua-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
			--ua-script: "Brush Script MT", "Segoe Script", cursive;
		}

		html { scroll-behavior: smooth; }
		body {
			margin: 0;
			color: var(--ua-ink);
			font-family: var(--ua-sans);
			background:
				radial-gradient(circle at 20% 10%, rgba(255,255,255,.85), transparent 26rem),
				linear-gradient(180deg, #fbf7ef 0%, #f5ebdb 100%);
		}
		* { box-sizing: border-box; }
		a { color: inherit; text-decoration: none; }
		.ua-wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

		.ua-site-header {
			position: sticky;
			top: 0;
			z-index: 50;
			background: rgba(255, 250, 240, .94);
			backdrop-filter: blur(10px);
			border-bottom: 1px solid var(--ua-line);
		}
		.ua-header-inner {
			min-height: 78px;
			display: flex;
			align-items: center;
			justify-content: space-between;
			gap: 28px;
		}
		.ua-brand {
			display: inline-flex;
			flex-direction: column;
			line-height: 1;
		}
		.ua-brand-name {
			font-family: var(--ua-script);
			font-size: clamp(2rem, 4vw, 3.2rem);
			font-weight: 700;
			font-style: italic;
			letter-spacing: -.03em;
		}
		.ua-brand-tag {
			margin-top: 3px;
			font-size: .66rem;
			letter-spacing: .22em;
			text-transform: uppercase;
			opacity: .64;
		}
		.ua-nav { display: flex; align-items: center; gap: 26px; font-weight: 700; }
		.ua-nav a:not(.ua-btn) { font-size: .93rem; }
		.ua-nav a:not(.ua-btn):hover { color: var(--ua-red); }

		.ua-btn {
			display: inline-flex;
			align-items: center;
			justify-content: center;
			gap: .5rem;
			min-height: 48px;
			padding: 0 22px;
			border-radius: 999px;
			border: 1px solid transparent;
			font-weight: 800;
			transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
		}
		.ua-btn:hover { transform: translateY(-2px); }
		.ua-btn-green { background: var(--ua-green); color: white !important; box-shadow: 0 10px 24px rgba(20,92,67,.18); }
		.ua-btn-red { background: var(--ua-red); color: white !important; box-shadow: 0 10px 24px rgba(165,31,31,.18); }
		.ua-btn-light { background: rgba(255,255,255,.65); border-color: var(--ua-line); }

		.ua-hero {
			position: relative;
			overflow: hidden;
			padding: 78px 0 56px;
			border-bottom: 1px solid var(--ua-line);
		}
		.ua-hero::before {
			content: "";
			position: absolute;
			inset: 0;
			background:
				linear-gradient(90deg, rgba(255,250,240,.96) 0%, rgba(255,250,240,.82) 44%, rgba(255,250,240,.10) 72%),
				radial-gradient(circle at 76% 35%, rgba(215,170,88,.18), transparent 26rem);
			pointer-events: none;
		}
		.ua-hero-grid {
			position: relative;
			display: grid;
			grid-template-columns: 1.02fr .98fr;
			align-items: center;
			gap: 36px;
		}
		.ua-eyebrow {
			display: inline-flex;
			align-items: center;
			gap: 12px;
			margin-bottom: 16px;
			font-size: .78rem;
			font-weight: 800;
			letter-spacing: .2em;
			text-transform: uppercase;
		}
		.ua-eyebrow::before,
		.ua-eyebrow::after {
			content: "";
			width: 34px;
			height: 1px;
			background: currentColor;
			opacity: .4;
		}
		.ua-hero h1 {
			margin: 0;
			max-width: 720px;
			font-family: var(--ua-serif);
			font-size: clamp(3.2rem, 6vw, 6.25rem);
			line-height: .94;
			letter-spacing: -.045em;
		}
		.ua-hero .green { color: var(--ua-green); }
		.ua-hero .red { color: var(--ua-red); }
		.ua-hero-copy {
			max-width: 650px;
			margin: 24px 0 0;
			font-family: var(--ua-serif);
			font-size: clamp(1.05rem, 1.6vw, 1.35rem);
			line-height: 1.55;
		}
		.ua-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
		.ua-trust {
			display: inline-flex;
			align-items: center;
			gap: 12px;
			margin-top: 22px;
			font-size: .92rem;
			font-weight: 700;
		}
		.ua-wpmark {
			display: grid;
			place-items: center;
			width: 42px;
			height: 42px;
			border: 2px solid currentColor;
			border-radius: 50%;
			font-family: var(--ua-serif);
			font-size: 1.6rem;
			font-weight: 900;
		}
		.ua-wp-badge {
			position: relative;
			z-index: 4;
			display: inline-flex;
			align-items: center;
			gap: 10px;
			margin-top: 14px;
			padding: 9px 13px;
			border: 1px solid rgba(165,31,31,.18);
			border-radius: 999px;
			background: rgba(255,255,255,.72);
			color: var(--ua-red);
			font-size: .82rem;
			line-height: 1.1;
		}
		.ua-wp-badge:hover {
			background: #fff;
			box-shadow: 0 8px 20px rgba(165,31,31,.10);
		}
		.ua-wp-badge small {
			display: block;
			margin-top: 2px;
			color: var(--ua-ink);
			font-size: .68rem;
			font-weight: 600;
			opacity: .66;
		}
		.ua-wpmark-small {
			width: 31px;
			height: 31px;
			flex: 0 0 31px;
			font-size: 1.08rem;
			border-width: 1.5px;
		}
		.ua-hero-art {
			position: relative;
			min-height: 520px;
			display: flex;
			align-items: end;
			justify-content: center;
		}
		.ua-hero-art::after {
			content: "";
			position: absolute;
			width: 90%;
			height: 24%;
			left: 5%;
			bottom: 2%;
			background: radial-gradient(ellipse at center, rgba(70,43,22,.22), transparent 68%);
			filter: blur(14px);
		}
		.ua-mascot {
			position: relative;
			z-index: 2;
			width: 56%;
			max-width: 420px;
			filter: drop-shadow(0 20px 26px rgba(73,45,24,.15));
		}
		.ua-mascot.plan { margin-right: -7%; }
		.ua-mascot.report { margin-left: -7%; transform: scale(1.03); }
		.ua-mascot-link { display: contents; }

		.ua-section { padding: 74px 0; }
		.ua-section-title-row {
			display: flex;
			align-items: end;
			justify-content: space-between;
			gap: 20px;
			margin-bottom: 30px;
		}
		.ua-section h2 {
			margin: 0;
			font-family: var(--ua-serif);
			font-size: clamp(2.2rem, 4.4vw, 4.4rem);
			line-height: 1;
			letter-spacing: -.04em;
		}
		.ua-kicker {
			font-size: .74rem;
			font-weight: 800;
			letter-spacing: .2em;
			text-transform: uppercase;
			opacity: .6;
		}

		.ua-products {
			display: grid;
			grid-template-columns: 1fr 1fr;
			gap: 24px;
		}
		.ua-product-card {
			position: relative;
			overflow: hidden;
			min-height: 530px;
			padding: 34px;
			border-radius: var(--ua-radius);
			background: rgba(255,255,255,.62);
			border: 1px solid var(--ua-line);
			box-shadow: var(--ua-shadow);
		}
		.ua-product-card.plan { border-color: rgba(20,92,67,.24); background: linear-gradient(145deg, #f6fbf7, #eef5ed); }
		.ua-product-card.report { border-color: rgba(165,31,31,.22); background: linear-gradient(145deg, #fff9f7, #f8efea); }
		.ua-product-card h3 {
			margin: 0;
			font-family: var(--ua-serif);
			font-size: clamp(2.3rem, 4vw, 4rem);
			line-height: .98;
			letter-spacing: -.035em;
		}
		.ua-product-card.plan h3 { color: var(--ua-green); }
		.ua-product-card.report h3 { color: var(--ua-red); }
		.ua-product-card .ua-lede {
			max-width: 430px;
			margin: 12px 0 0;
			font-family: var(--ua-serif);
			font-size: 1.15rem;
			line-height: 1.45;
		}
		.ua-feature-list {
			position: relative;
			z-index: 3;
			display: grid;
			gap: 15px;
			max-width: 340px;
			margin: 28px 0 30px;
		}
		.ua-feature {
			display: grid;
			grid-template-columns: 42px 1fr;
			gap: 13px;
			align-items: start;
		}
		.ua-feature-icon {
			display: grid;
			place-items: center;
			width: 42px;
			height: 42px;
			border-radius: 50%;
			color: white;
			font-weight: 900;
		}
		.plan .ua-feature-icon { background: var(--ua-green); }
		.report .ua-feature-icon { background: var(--ua-red); }
		.ua-feature strong { display: block; font-family: var(--ua-serif); font-size: 1.05rem; }
		.ua-feature span { display: block; margin-top: 3px; font-size: .9rem; line-height: 1.35; opacity: .74; }
		.ua-card-mascot {
			position: absolute;
			z-index: 2;
			width: 48%;
			max-width: 330px;
			right: -2%;
			bottom: -3%;
			filter: drop-shadow(0 18px 22px rgba(55,34,21,.16));
		}
		.ua-card-mascot-link { position: absolute; z-index: 2; right: -2%; bottom: -3%; width: 48%; max-width: 330px; }
		.ua-card-mascot-link .ua-card-mascot { position: static; width: 100%; max-width: none; display: block; }
		.ua-product-card .ua-btn { position: relative; z-index: 4; }

		.ua-values {
			display: grid;
			grid-template-columns: repeat(3, 1fr);
			gap: 18px;
		}
		.ua-value {
			padding: 28px 24px;
			border-top: 1px solid var(--ua-line);
		}
		.ua-value .ua-value-icon {
			display: grid;
			place-items: center;
			width: 56px;
			height: 56px;
			margin-bottom: 16px;
			border-radius: 50%;
			background: #efd59d;
			font-size: 1.7rem;
		}
		.ua-value h3 {
			margin: 0 0 8px;
			font-family: var(--ua-serif);
			font-size: 1.4rem;
		}
		.ua-value p { margin: 0; line-height: 1.5; opacity: .76; }

		.ua-news {
			position: relative;
			overflow: hidden;
			display: grid;
			grid-template-columns: 200px 1fr auto;
			align-items: center;
			gap: 30px;
			padding: 34px 36px;
			border-radius: var(--ua-radius);
			background:
				linear-gradient(90deg, rgba(255,249,240,.98), rgba(248,232,209,.96)),
				repeating-linear-gradient(0deg, transparent 0 3px, rgba(112,82,45,.025) 3px 4px);
			border: 1px solid var(--ua-line);
			box-shadow: var(--ua-shadow);
		}
		.ua-news img {
			width: 210px;
			max-width: 100%;
			margin-bottom: -48px;
			filter: drop-shadow(0 16px 20px rgba(55,34,21,.18));
		}
		.ua-news h3 {
			margin: 2px 0 4px;
			font-family: var(--ua-serif);
			font-size: clamp(1.7rem, 3vw, 3rem);
			line-height: 1.03;
		}
		.ua-news h3 span { color: var(--ua-red); }

		.ua-site-footer {
			margin-top: 72px;
			padding: 42px 0 28px;
			color: #f6efe1;
			background: #241f1b;
		}
		.ua-footer-top {
			display: grid;
			grid-template-columns: 1fr auto;
			gap: 24px;
			align-items: center;
		}
		.ua-footer-nav { display: flex; gap: 24px; font-weight: 700; font-size: .92rem; }
		.ua-footer-bottom {
			display: flex;
			justify-content: space-between;
			gap: 20px;
			margin-top: 26px;
			padding-top: 20px;
			border-top: 1px solid rgba(255,255,255,.13);
			font-size: .78rem;
			opacity: .7;
		}

		@media (max-width: 960px) {
			.ua-nav a:not(.ua-btn) { display: none; }
			.ua-hero-grid,
			.ua-products { grid-template-columns: 1fr; }
			.ua-hero { padding-top: 56px; }
			.ua-hero-art { min-height: 420px; margin-top: 12px; }
			.ua-product-card { min-height: 500px; }
			.ua-values { grid-template-columns: 1fr; }
			.ua-news { grid-template-columns: 140px 1fr; }
			.ua-news .ua-btn { grid-column: 1 / -1; justify-self: start; }
		}

		@media (max-width: 640px) {
			.ua-wrap { width: min(100% - 24px, 1180px); }
			.ua-header-inner { min-height: 66px; }
			.ua-brand-tag { display: none; }
			.ua-nav .ua-btn { min-height: 42px; padding-inline: 15px; font-size: .86rem; }
			.ua-hero { padding: 46px 0 34px; }
			.ua-hero h1 { font-size: clamp(2.65rem, 13vw, 4.6rem); }
			.ua-hero-art { min-height: 330px; }
			.ua-mascot { width: 62%; }
			.ua-section { padding: 54px 0; }
			.ua-section-title-row { align-items: start; flex-direction: column; }
			.ua-product-card { min-height: 570px; padding: 26px; }
			.ua-card-mascot { width: 54%; right: -8px; }
			.ua-card-mascot-link { width: 54%; right: -8px; }
			.ua-card-mascot-link .ua-card-mascot { width: 100%; right: auto; }
			.ua-feature-list { max-width: 72%; }
			.ua-news { grid-template-columns: 1fr; text-align: center; }
			.ua-news img { width: 150px; justify-self: center; margin-bottom: -22px; }
			.ua-news .ua-btn { justify-self: center; }
			.ua-footer-top,
			.ua-footer-bottom { grid-template-columns: 1fr; flex-direction: column; }
			.ua-footer-nav { flex-wrap: wrap; }
		}

/* Shared interior-page styling */
body {
	min-height: 100vh;
}
.ua-main {
	min-height: 60vh;
}
.ua-page-hero {
	position: relative;
	overflow: hidden;
	padding: 68px 0 42px;
	border-bottom: 1px solid var(--ua-line);
	background:
		radial-gradient(circle at 80% 20%, rgba(215,170,88,.16), transparent 22rem),
		linear-gradient(180deg, rgba(255,250,240,.88), rgba(247,238,222,.72));
}
.ua-page-hero-grid {
	display: grid;
	grid-template-columns: minmax(0,1fr) auto;
	align-items: center;
	gap: 44px;
}
.ua-page-hero h1 {
	margin: 0;
	font-family: var(--ua-serif);
	font-size: clamp(2.8rem, 5.4vw, 5.7rem);
	line-height: .96;
	letter-spacing: -.045em;
}
.ua-page-intro {
	max-width: 760px;
	margin: 18px 0 0;
	font-family: var(--ua-serif);
	font-size: clamp(1.05rem, 1.7vw, 1.32rem);
	line-height: 1.55;
	color: rgba(36,31,27,.78);
}
.ua-page-mascot {
	width: min(270px, 28vw);
	max-height: 300px;
	object-fit: contain;
	filter: drop-shadow(0 18px 24px rgba(55,34,21,.15));
}
.ua-page-shell {
	padding: 54px 0 76px;
}
.ua-page-card {
	width: min(980px, 100%);
	margin-inline: auto;
	padding: clamp(28px, 4vw, 54px);
	border: 1px solid var(--ua-line);
	border-radius: var(--ua-radius);
	background: rgba(255,255,255,.72);
	box-shadow: var(--ua-shadow);
}
.ua-page-card > :first-child { margin-top: 0; }
.ua-page-card > :last-child { margin-bottom: 0; }
.ua-page-card h2,
.ua-page-card h3,
.ua-page-card h4 {
	font-family: var(--ua-serif);
	line-height: 1.12;
	letter-spacing: -.02em;
}
.ua-page-card h2 { margin-top: 1.5em; font-size: clamp(2rem, 3.5vw, 3rem); }
.ua-page-card h3 { margin-top: 1.45em; font-size: clamp(1.5rem, 2.5vw, 2.15rem); }
.ua-page-card p,
.ua-page-card li {
	font-size: 1.05rem;
	line-height: 1.72;
}
.ua-page-card a:not(.ua-btn) {
	color: var(--ua-red);
	text-decoration: underline;
	text-underline-offset: .14em;
}
.ua-page-card img {
	max-width: 100%;
	height: auto;
	border-radius: 14px;
}
.ua-page-card blockquote {
	margin: 1.6rem 0;
	padding: 1rem 1.25rem;
	border-left: 4px solid var(--ua-gold);
	background: rgba(215,170,88,.09);
}
.ua-page-card table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.4rem 0;
}
.ua-page-card th,
.ua-page-card td {
	padding: 12px 14px;
	border-bottom: 1px solid var(--ua-line);
	text-align: left;
}
.ua-page-card pre,
.ua-page-card code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.ua-page-card pre {
	overflow: auto;
	padding: 18px;
	border-radius: 12px;
	background: #2a2521;
	color: #fff7e7;
}
.ua-page-meta {
	margin-top: 14px;
	font-size: .88rem;
	letter-spacing: .03em;
	opacity: .65;
}
.ua-page-accent-green .ua-page-hero h1 { color: var(--ua-green); }
.ua-page-accent-red .ua-page-hero h1 { color: var(--ua-red); }
.ua-page-accent-green .ua-page-card { border-color: rgba(20,92,67,.22); }
.ua-page-accent-red .ua-page-card { border-color: rgba(165,31,31,.20); }
.ua-not-found {
	text-align: center;
	padding: 34px 0 12px;
}
.ua-not-found .ua-wpmark { margin: 0 auto 18px; }
@media (max-width: 760px) {
	.ua-page-hero { padding: 48px 0 30px; }
	.ua-page-hero-grid { grid-template-columns: 1fr; }
	.ua-page-mascot { width: 180px; justify-self: center; order: -1; }
	.ua-page-shell { padding: 34px 0 54px; }
	.ua-page-card { border-radius: 18px; }
}
