/* ==========================================================================
   ReddingCTO.com -- Stylesheet
   Light mode, Action Orange accent, Inter typeface
   ========================================================================== */

/* ---------- Custom Properties ---------- */
:root {
	--color-bg: #ffffff;
	--color-bg-alt: #f7f7f8;
	--color-text: #1a1a2e;
	--color-text-muted: #555568;
	--color-accent: #e85d04;
	--color-accent-hover: #d35400;
	--color-accent-light: rgba(232, 93, 4, 0.08);
	--color-nav-bg: #ffffff;
	--color-nav-text: #1a1a2e;
	--color-border: #e0e0e6;
	--color-surface: #ffffff;
	--color-hero-bg: var(--color-bg-alt);
	--color-hero-text: var(--color-text);

	--font-primary:
		"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--max-width: 1120px;
	--nav-height: 64px;
	--radius: 8px;
	--radius-lg: 12px;

	--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
	--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
	--shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}
html {
	scroll-behavior: smooth;
	scroll-padding-top: var(--nav-height);
}
body {
	font-family: var(--font-primary);
	font-size: 1rem;
	line-height: 1.65;
	color: var(--color-text);
	background: var(--color-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
img {
	max-width: 100%;
	height: auto;
	display: block;
}
a {
	color: var(--color-accent);
	text-decoration: none;
	transition: color 0.2s;
}
a:hover {
	color: var(--color-accent-hover);
}
ul {
	list-style: none;
}
h1,
h2,
h3,
h4 {
	line-height: 1.2;
	font-weight: 800;
}

/* ---------- Utility ---------- */
.container {
	width: 100%;
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 1.5rem;
}
.section {
	padding: 5rem 0;
}
.section-alt {
	background: var(--color-bg-alt);
}
.text-accent {
	color: var(--color-accent);
}
.text-muted {
	color: var(--color-text-muted);
}
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.85rem 2rem;
	border-radius: var(--radius);
	font-weight: 700;
	font-size: 1rem;
	text-decoration: none;
	cursor: pointer;
	border: none;
	transition:
		background 0.2s,
		transform 0.15s,
		box-shadow 0.2s;
}
.btn:hover {
	transform: translateY(-1px);
}
.btn:active {
	transform: translateY(0);
}

.btn-primary {
	background: var(--color-accent);
	color: #fff;
	box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
	background: var(--color-accent-hover);
	color: #fff;
	box-shadow: var(--shadow-md);
}

.btn-outline {
	background: transparent;
	color: var(--color-accent);
	border: 2px solid var(--color-accent);
}
.btn-outline:hover {
	background: var(--color-accent);
	color: #fff;
}

.btn-light {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	border: 2px solid rgba(255, 255, 255, 0.3);
}
.btn-light:hover {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
}

/* ---------- Navigation ---------- */
.site-nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	background: var(--color-nav-bg);
	/* height: var(--nav-height); */
	box-shadow: var(--shadow-sm);
	border-bottom: 1px solid var(--color-border);
	padding: 18px 0px;
}
.nav-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 100%;
}
.nav-logo {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}
.nav-logo img {
	height: 64px;
	width: auto;
}
.nav-site-title {
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--color-nav-text);
	letter-spacing: -0.01em;
}
.nav-brand {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}
.nav-tagline {
	font-size: 0.75rem;
	color: var(--color-text-muted);
	font-weight: 500;
	letter-spacing: 0.01em;
}
.nav-links {
	display: flex;
	align-items: center;
	gap: 2rem;
}
.nav-links a {
	color: var(--color-nav-text);
	font-weight: 600;
	font-size: 0.9rem;
	letter-spacing: 0.01em;
	opacity: 0.85;
	transition: opacity 0.2s;
}
.nav-links a:hover {
	opacity: 1;
	color: var(--color-nav-text);
}
.nav-cta {
	background: var(--color-accent) !important;
	color: #fff !important;
	opacity: 1 !important;
	padding: 0.5rem 1.25rem;
	border-radius: var(--radius);
	transition: background 0.2s !important;
}
.nav-cta:hover {
	background: var(--color-accent-hover) !important;
}

/* Hamburger */
.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
}
.nav-toggle-bar {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--color-text);
	border-radius: 2px;
	transition:
		transform 0.3s,
		opacity 0.3s;
}
.nav-toggle.active .nav-toggle-bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active .nav-toggle-bar:nth-child(2) {
	opacity: 0;
}
.nav-toggle.active .nav-toggle-bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
	position: relative;
	background: var(--color-hero-bg);
	color: var(--color-hero-text);
	padding: calc(var(--nav-height) + 5rem) 0 6rem;
	overflow: hidden;
	min-height: 80vh;
	display: flex;
	align-items: center;
}
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(
			ellipse at 20% 50%,
			rgba(232, 93, 4, 0.06) 0%,
			transparent 60%
		),
		radial-gradient(
			ellipse at 80% 20%,
			rgba(232, 93, 4, 0.04) 0%,
			transparent 50%
		);
	pointer-events: none;
}
.hero-content {
	position: relative;
	max-width: 720px;
}
.hero-badge {
	display: inline-block;
	background: rgba(232, 93, 4, 0.15);
	color: var(--color-accent);
	font-weight: 700;
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.4rem 1rem;
	border-radius: 100px;
	margin-bottom: 1.5rem;
}
.hero h1 {
	font-size: clamp(2.2rem, 5vw, 3.5rem);
	font-weight: 900;
	line-height: 1.1;
	margin-bottom: 1.25rem;
}
.hero .lead {
	font-size: 1.2rem;
	line-height: 1.6;
	color: var(--color-text-muted);
	margin-bottom: 2.5rem;
	max-width: 600px;
}
.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: center;
}

/* Sundial Bridge SVG placeholder */
.hero-bg-art {
	position: absolute;
	right: -5%;
	bottom: -10%;
	width: 50%;
	max-width: 550px;
	opacity: 0.07;
	pointer-events: none;
}

/* ---------- Local First Section ---------- */
.local-first {
	text-align: center;
}
.local-first h2 {
	font-size: 2rem;
	margin-bottom: 1rem;
}
.local-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2rem;
	margin-top: 3rem;
}
.local-card {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 2rem;
	padding-left: 4.5rem;
	text-align: left;
	position: relative;
}
.local-card-icon {
	position: absolute;
	left: 1.75rem;
	top: 2rem;
	color: var(--color-accent);
	line-height: 1;
}
.local-card h3 {
	font-size: 1.15rem;
	margin-bottom: 0.5rem;
}
.local-card p {
	color: var(--color-text-muted);
	font-size: 0.95rem;
}

/* ---------- Why CTO Section ---------- */
.why-cto h2 {
	font-size: 2rem;
	margin-bottom: 1rem;
}
.why-cto .section-lead {
	font-size: 1.1rem;
	color: var(--color-text-muted);
	max-width: 680px;
	margin-bottom: 3rem;
}
.why-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: start;
}
.why-problem h3,
.why-solution h3 {
	font-size: 1.3rem;
	margin-bottom: 1rem;
}
.why-problem h3 {
	color: var(--color-text-muted);
}
.why-solution h3 {
	color: var(--color-accent);
}
.why-problem p,
.why-solution p {
	font-size: 1rem;
	line-height: 1.7;
}
.translator-quote {
	margin-top: 3rem;
	padding: 2rem;
	background: var(--color-accent-light);
	border-left: 4px solid var(--color-accent);
	border-radius: 0 var(--radius) var(--radius) 0;
	font-size: 1.15rem;
	font-weight: 600;
	color: var(--color-text);
}

/* Comparison Table */
.comparison-table {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
	margin-top: 2rem;
}
.comparison-col {
	border-radius: var(--radius-lg);
	padding: 2rem;
}
.comparison-col h3 {
	font-size: 1.2rem;
	margin-bottom: 1.25rem;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid var(--color-border);
}
.comparison-col ul {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}
.comparison-col li {
	font-size: 0.95rem;
	padding-left: 1.5rem;
	position: relative;
	line-height: 1.5;
}
.comparison-col li::before {
	position: absolute;
	left: 0;
	font-weight: 700;
}
.comparison-col-problem {
	background: var(--color-bg);
	border: 1px solid var(--color-border);
}
.comparison-col-problem h3 {
	color: var(--color-text-muted);
}
.comparison-col-problem li::before {
	content: "✕";
	color: #c0392b;
}
.comparison-col-solution {
	background: var(--color-bg);
	border: 2px solid var(--color-accent);
}
.comparison-col-solution h3 {
	color: var(--color-accent);
	border-bottom-color: var(--color-accent);
}
.comparison-col-solution li::before {
	content: "✓";
	color: var(--color-accent);
}

/* ---------- Services Section ---------- */
.services h2 {
	font-size: 2rem;
	margin-bottom: 0.75rem;
	text-align: center;
}
.services .section-lead {
	text-align: center;
	color: var(--color-text-muted);
	max-width: 600px;
	margin: 0 auto 3rem;
	font-size: 1.05rem;
}
.services-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}
.service-card {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 2.5rem 2rem;
	display: flex;
	flex-direction: column;
	transition:
		box-shadow 0.25s,
		border-color 0.25s;
}
.service-card:hover {
	box-shadow: var(--shadow-lg);
	border-color: var(--color-accent);
}
.service-card-price {
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--color-accent);
	margin-bottom: 1rem;
}
.service-card h3 {
	font-size: 1.3rem;
	margin-bottom: 0.75rem;
}
.service-card p {
	color: var(--color-text-muted);
	font-size: 0.95rem;
	flex: 1;
	margin-bottom: 1.5rem;
}
.service-card ul {
	margin-bottom: 1.5rem;
}
.service-card li {
	padding: 0.3rem 0;
	padding-left: 1.25rem;
	position: relative;
	font-size: 0.9rem;
	color: var(--color-text-muted);
}
.service-card li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--color-accent);
	font-weight: 700;
}
.service-card .btn {
	align-self: flex-start;
}

/* Highlight the middle card */
.service-card-featured {
	border-color: var(--color-accent);
	position: relative;
}
.service-card-featured::after {
	content: "Most Popular";
	position: absolute;
	top: -12px;
	left: 2rem;
	background: var(--color-accent);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 0.25rem 0.75rem;
	border-radius: 100px;
}

/* ---------- Proof / Track Record ---------- */
.proof h2 {
	font-size: 2rem;
	margin-bottom: 1rem;
}
.proof .section-lead {
	font-size: 1.05rem;
	color: var(--color-text-muted);
	max-width: 620px;
	margin-bottom: 3rem;
}
.proof-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
	margin-bottom: 3rem;
}
.proof-stat {
	text-align: center;
	padding: 1.5rem 1rem;
}
.proof-stat-number {
	font-size: 2.5rem;
	font-weight: 900;
	color: var(--color-accent);
	line-height: 1;
	margin-bottom: 0.5rem;
}
.proof-stat-label {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--color-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.proof-highlights {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
}
.proof-highlight {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 1.75rem;
}
.proof-highlight h4 {
	font-size: 1rem;
	margin-bottom: 0.5rem;
}
.proof-highlight p {
	color: var(--color-text-muted);
	font-size: 0.95rem;
}

/* ---------- Contact Section ---------- */
.contact h2 {
	font-size: 2rem;
	margin-bottom: 0.75rem;
}
.contact .section-lead {
	font-size: 1.05rem;
	color: var(--color-text-muted);
	max-width: 560px;
	margin-bottom: 3rem;
}
.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: start;
}
.contact-form {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}
.form-group {
	display: flex;
	flex-direction: column;
}
.form-group label {
	font-weight: 600;
	font-size: 0.85rem;
	margin-bottom: 0.4rem;
	color: var(--color-text);
}
.form-group input,
.form-group textarea {
	font-family: var(--font-primary);
	font-size: 1rem;
	padding: 0.75rem 1rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	background: var(--color-bg);
	color: var(--color-text);
	transition:
		border-color 0.2s,
		box-shadow 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
	outline: none;
	border-color: var(--color-accent);
	box-shadow: 0 0 0 3px var(--color-accent-light);
}
.form-group textarea {
	resize: vertical;
	min-height: 120px;
}

.contact-info {
	padding-top: 0.5rem;
}
.contact-info h3 {
	font-size: 1.2rem;
	margin-bottom: 1.5rem;
}
.contact-detail {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1.25rem;
	font-size: 1rem;
}
.contact-detail-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: var(--color-accent-light);
	color: var(--color-accent);
	border-radius: 50%;
	font-weight: 700;
	font-size: 1rem;
	flex-shrink: 0;
}

/* ---------- Bridge Page (reusable) ---------- */
.bridge-hero {
	position: relative;
	background: var(--color-hero-bg);
	color: var(--color-hero-text);
	padding: calc(var(--nav-height) + 4rem) 0 4rem;
}
.bridge-hero h1 {
	font-size: clamp(1.8rem, 4vw, 2.8rem);
	font-weight: 900;
	line-height: 1.15;
	margin-bottom: 1rem;
}
.bridge-hero .lead {
	font-size: 1.1rem;
	color: var(--color-text-muted);
	max-width: 600px;
	margin-bottom: 2rem;
}
.bridge-problems {
	padding: 4rem 0;
}
.bridge-problems h2 {
	font-size: 1.8rem;
	margin-bottom: 2.5rem;
}
.bridge-problem-list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
}
.bridge-problem-item {
	padding: 1.5rem;
	background: var(--color-bg-alt);
	border-radius: var(--radius-lg);
}
.bridge-problem-item h3 {
	font-size: 1.1rem;
	margin-bottom: 0.5rem;
	color: var(--color-accent);
}
.bridge-problem-item p {
	font-size: 0.95rem;
	color: var(--color-text-muted);
}
.bridge-cta-section {
	text-align: center;
	padding: 4rem 0 5rem;
}
.bridge-cta-section h2 {
	font-size: 1.8rem;
	margin-bottom: 1rem;
}
.bridge-cta-section p {
	font-size: 1.05rem;
	color: var(--color-text-muted);
	max-width: 560px;
	margin: 0 auto 2rem;
}

/* ---------- 404 ---------- */
.error-page {
	min-height: 80vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: calc(var(--nav-height) + 3rem) 0 3rem;
}
.error-page h1 {
	font-size: 6rem;
	color: var(--color-accent);
	line-height: 1;
	margin-bottom: 0.5rem;
}
.error-page h2 {
	font-size: 1.5rem;
	margin-bottom: 1rem;
}
.error-page p {
	color: var(--color-text-muted);
	margin-bottom: 2rem;
}

/* ---------- Footer ---------- */
.site-footer {
	background: var(--color-hero-bg);
	color: var(--color-hero-text);
	padding: 4rem 0 0;
}
.footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 3rem;
	padding-bottom: 3rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand p {
	margin-top: 1rem;
	font-size: 0.9rem;
	opacity: 0.7;
	line-height: 1.6;
	max-width: 320px;
}
.footer-brand img {
	height: 28px;
	width: auto;
}
.site-footer h4 {
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 1rem;
	opacity: 0.6;
}
.footer-contact a,
.footer-nav a {
	color: var(--color-hero-text);
	opacity: 0.8;
	font-size: 0.95rem;
}
.footer-contact a:hover,
.footer-nav a:hover {
	opacity: 1;
	color: var(--color-accent);
}
.footer-contact p {
	margin-bottom: 0.5rem;
}
.footer-nav ul {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
.footer-local {
	padding: 1.5rem 0;
	text-align: center;
	font-size: 0.85rem;
	opacity: 0.6;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-local strong {
	opacity: 1;
}
.footer-bottom {
	padding: 1.5rem 0;
	text-align: center;
	font-size: 0.8rem;
	opacity: 0.4;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.services-grid {
		grid-template-columns: 1fr;
		max-width: 480px;
		margin: 0 auto;
	}
	.proof-stats {
		grid-template-columns: repeat(2, 1fr);
	}
	.proof-highlights {
		grid-template-columns: 1fr;
	}
	.why-grid {
		grid-template-columns: 1fr;
	}
	.comparison-table {
		grid-template-columns: 1fr;
	}
	.contact-grid {
		grid-template-columns: 1fr;
	}
	.footer-grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
	.bridge-problem-list {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.nav-toggle {
		display: flex;
	}
	.nav-links {
		display: none;
		position: absolute;
		top: var(--nav-height);
		left: 0;
		right: 0;
		background: var(--color-nav-bg);
		border-top: 1px solid var(--color-border);
		flex-direction: column;
		padding: 1rem 1.5rem 1.5rem;
		gap: 0;
		box-shadow: var(--shadow-lg);
	}
	.nav-links.active {
		display: flex;
	}
	.nav-links li {
		width: 100%;
	}
	.nav-links a {
		display: block;
		padding: 0.75rem 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	}
	.nav-cta {
		text-align: center;
		margin-top: 0.5rem;
	}
	.hero {
		min-height: auto;
		padding-top: calc(var(--nav-height) + 3rem);
		padding-bottom: 4rem;
	}
	.hero h1 {
		font-size: 2rem;
	}
	.hero-actions {
		flex-direction: column;
	}
	.hero-actions .btn {
		width: 100%;
	}
	.section {
		padding: 3.5rem 0;
	}
	.proof-stats {
		grid-template-columns: repeat(2, 1fr);
		gap: 1rem;
	}
}
