/*
Theme Name: Reliable Steel Solution
Theme URI: https://reliablesteelsolution.com
Author: Reliable Steel Solution
Description: Lean, fast, single-page custom theme for a structural steel detailing company. No page builder, no framework, hand-written CSS/JS only.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: rss-theme
*/

/* ============================================================
   1. CSS VARIABLES / RESET
   ============================================================ */
:root {
	--color-primary: #0b3c74;      /* deep corporate blue */
	--color-primary-dark: #082c56;
	--color-accent: #2e7dd1;       /* accent blue - CTAs/links */
	--color-accent-dark: #2468b3;
	--color-white: #ffffff;
	--color-bg-light: #f4f6f9;
	--color-text: #1a1a1a;
	--color-text-muted: #55606b;
	--color-border: #e1e6eb;
	--font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--max-width: 1180px;
	--radius: 8px;
	--shadow-card: 0 1px 3px rgba(11, 60, 116, 0.08), 0 1px 2px rgba(11, 60, 116, 0.06);
	--shadow-card-hover: 0 10px 24px rgba(11, 60, 116, 0.12), 0 2px 6px rgba(11, 60, 116, 0.07);
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--color-text);
	background: var(--color-white);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	display: block;
}

a {
	color: var(--color-accent);
	text-decoration: none;
}

a:hover,
a:focus {
	text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 2px;
}

h1, h2, h3, h4 {
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
	margin: 0 0 0.5em;
	color: var(--color-primary);
}

p {
	margin: 0 0 1em;
}

ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

button {
	font-family: inherit;
}

.container {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 20px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: 0;
	background: var(--color-primary);
	color: var(--color-white);
	padding: 10px 16px;
	z-index: 1000;
}

.skip-link:focus {
	top: 0;
}

section {
	padding: 64px 0;
}

.section-head {
	text-align: center;
	max-width: 640px;
	margin: 0 auto 40px;
}

.section-head h2 {
	font-size: 1.8rem;
	margin-bottom: 0.4em;
}

.section-head p {
	color: var(--color-text-muted);
	margin: 0;
}

.eyebrow {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-accent);
	margin-bottom: 0.6em;
}

/* ============================================================
   2. BUTTONS
   ============================================================ */
.btn {
	display: inline-block;
	padding: 13px 28px;
	border-radius: var(--radius);
	font-weight: 700;
	font-size: 0.95rem;
	letter-spacing: 0.01em;
	border: 2px solid transparent;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover,
.btn:focus {
	text-decoration: none;
}

.btn-accent {
	background: var(--color-accent);
	color: var(--color-white);
}

.btn-accent:hover,
.btn-accent:focus {
	background: var(--color-accent-dark);
	color: var(--color-white);
	box-shadow: 0 6px 16px rgba(36, 104, 179, 0.3);
}

.btn-outline {
	background: transparent;
	border-color: var(--color-white);
	color: var(--color-white);
}

.btn-outline:hover,
.btn-outline:focus {
	background: var(--color-white);
	color: var(--color-primary);
}

/* ============================================================
   3. HEADER
   ============================================================ */
.site-header {
	position: sticky;
	top: 0;
	z-index: 500;
	background: var(--color-white);
	border-bottom: 1px solid var(--color-border);
	box-shadow: 0 1px 2px rgba(11, 60, 116, 0.04);
}

.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 72px;
}

.site-logo {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
	color: var(--color-primary);
}

.site-logo strong {
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: 0.01em;
}

.site-logo span {
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--color-accent);
}

.site-logo:hover,
.site-logo:focus {
	text-decoration: none;
}

.main-nav {
	display: flex;
	align-items: center;
	gap: 28px;
}

.main-nav ul {
	display: flex;
	gap: 24px;
}

.main-nav a {
	color: var(--color-text);
	font-weight: 600;
	font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav a:focus {
	color: var(--color-accent);
	text-decoration: none;
}

.header-cta {
	display: flex;
	align-items: center;
	gap: 16px;
}

.nav-toggle {
	display: none;
	background: none;
	border: none;
	padding: 8px;
	cursor: pointer;
	color: var(--color-primary);
}

.nav-toggle svg {
	width: 26px;
	height: 26px;
}

/* ============================================================
   4. HERO
   ============================================================ */
.hero {
	position: relative;
	padding: 100px 0 90px;
	color: var(--color-white);
	background-color: var(--color-primary);
	background-image: linear-gradient(135deg, rgba(8, 44, 86, 0.93) 0%, rgba(11, 60, 116, 0.86) 55%, rgba(46, 125, 209, 0.75) 100%),
		url("assets/img/hero-bg.jpg");
	background-image: linear-gradient(135deg, rgba(8, 44, 86, 0.93) 0%, rgba(11, 60, 116, 0.86) 55%, rgba(46, 125, 209, 0.75) 100%),
		image-set(url("assets/img/hero-bg.webp") type("image/webp"), url("assets/img/hero-bg.jpg") type("image/jpeg"));
	background-size: cover;
	background-position: center;
}

.hero-inner {
	max-width: 720px;
}

.hero h1 {
	color: var(--color-white);
	font-size: 2.6rem;
	margin-bottom: 0.35em;
}

.hero-sub {
	font-size: 1.15rem;
	color: rgba(255, 255, 255, 0.92);
	max-width: 560px;
	margin-bottom: 1.8em;
}

.hero-trust {
	margin-top: 2.2em;
	font-size: 0.82rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.72);
	font-weight: 600;
}

/* ============================================================
   5. SERVICES
   ============================================================ */
.services {
	background: var(--color-white);
}

.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 28px;
}

.service-card {
	position: relative;
	padding: 30px 24px 26px;
	border: 1px solid var(--color-border);
	border-top: 3px solid var(--color-accent);
	border-radius: var(--radius);
	background: var(--color-white);
	box-shadow: var(--shadow-card);
	transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.service-card:hover {
	border-color: rgba(46, 125, 209, 0.35);
	border-top-color: var(--color-accent);
	box-shadow: var(--shadow-card-hover);
	transform: translateY(-2px);
}

.service-card .card-num {
	position: absolute;
	top: 16px;
	right: 20px;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	color: var(--color-border);
}

.service-card .icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 11px;
	color: var(--color-accent);
	background: rgba(46, 125, 209, 0.08);
	border-radius: 50%;
	margin-bottom: 16px;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.service-card:hover .icon {
	background: var(--color-accent);
	color: var(--color-white);
}

.service-card .icon svg {
	width: 100%;
	height: 100%;
}

.service-card h3 {
	font-size: 1.05rem;
	margin-bottom: 0.4em;
	letter-spacing: -0.01em;
	padding-right: 28px;
}

.service-card p {
	font-size: 0.92rem;
	color: var(--color-text-muted);
	margin: 0;
}

/* ============================================================
   6. WHY US
   ============================================================ */
.why-us {
	background: var(--color-bg-light);
}

.why-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 28px;
}

.why-item {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.why-item .icon {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	color: var(--color-white);
	background: var(--color-primary);
	border-radius: 50%;
	padding: 9px;
}

.why-item .icon svg {
	width: 100%;
	height: 100%;
}

.why-item h3 {
	font-size: 1rem;
	margin-bottom: 0.3em;
}

.why-item p {
	font-size: 0.9rem;
	color: var(--color-text-muted);
	margin: 0;
}

/* ============================================================
   7. STANDARDS & SOFTWARE
   ============================================================ */
.standards {
	background: var(--color-white);
}

.standards-row {
	margin-bottom: 30px;
}

.standards-row:last-child {
	margin-bottom: 0;
}

.standards-row h3 {
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--color-text-muted);
	margin-bottom: 14px;
	text-align: center;
}

.badge-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

.badge {
	padding: 9px 20px;
	background: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.88rem;
	letter-spacing: 0.01em;
	color: var(--color-primary);
}

.standards-row:first-child .badge {
	background: rgba(46, 125, 209, 0.06);
	border-color: rgba(46, 125, 209, 0.18);
}

/* ============================================================
   8. CONTACT
   ============================================================ */
.contact {
	background: var(--color-bg-light);
}

.contact-grid {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 48px;
	align-items: start;
}

.contact-form .form-row {
	margin-bottom: 16px;
}

.contact-form label {
	display: block;
	font-weight: 600;
	font-size: 0.88rem;
	margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	font-family: inherit;
	font-size: 0.95rem;
	background: var(--color-white);
	transition: border-color 0.15s ease;
}

.contact-form input:hover,
.contact-form textarea:hover {
	border-color: rgba(46, 125, 209, 0.4);
}

.contact-form input:focus,
.contact-form textarea:focus {
	outline: 2px solid var(--color-accent);
	outline-offset: 1px;
	border-color: var(--color-accent);
}

.contact-form textarea {
	resize: vertical;
	min-height: 120px;
}

/* honeypot field - hidden from real users, visible to bots */
.hp-field {
	position: absolute;
	left: -9999px;
	top: -9999px;
}

.form-notice {
	padding: 12px 16px;
	border-radius: var(--radius);
	margin-bottom: 20px;
	font-size: 0.92rem;
	font-weight: 600;
}

.form-notice.success {
	background: #e5f4ea;
	color: #1e6b3c;
	border: 1px solid #bfe3cb;
}

.form-notice.error {
	background: #fbeaea;
	color: #a3231f;
	border: 1px solid #f1c3c1;
}

.contact-info h3 {
	font-size: 1.1rem;
	margin-bottom: 0.6em;
}

.contact-info ul {
	margin-bottom: 28px;
}

.contact-info li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin-bottom: 14px;
	font-size: 0.95rem;
}

.contact-info .icon {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	color: var(--color-accent);
	margin-top: 2px;
}

.contact-info .icon svg {
	width: 100%;
	height: 100%;
}

.cta-banner {
	margin-top: 20px;
	background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
	color: var(--color-white);
	padding: 32px 28px;
	border-radius: var(--radius);
	text-align: center;
	box-shadow: 0 8px 20px rgba(8, 44, 86, 0.18);
}

.cta-banner h3 {
	color: var(--color-white);
	font-size: 1.2rem;
	margin-bottom: 0.6em;
}

/* ============================================================
   9. FOOTER
   ============================================================ */
.site-footer {
	background: var(--color-primary-dark);
	color: rgba(255, 255, 255, 0.85);
	padding: 40px 0 24px;
	font-size: 0.88rem;
}

.footer-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 24px;
}

.footer-grid h4 {
	color: var(--color-white);
	font-size: 0.95rem;
	margin-bottom: 0.7em;
}

.footer-grid ul li {
	margin-bottom: 6px;
}

.footer-grid a {
	color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding-top: 18px;
	text-align: center;
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.82rem;
}

.footer-bottom p {
	margin: 0 0 4px;
}

.footer-bottom p:last-child {
	margin-bottom: 0;
	font-size: 0.78rem;
	color: rgba(255, 255, 255, 0.4);
}

/* ============================================================
   10. RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
	.contact-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 720px) {
	section {
		padding: 48px 0;
	}

	.hero {
		padding: 70px 0 60px;
	}

	.hero h1 {
		font-size: 2rem;
	}

	.nav-toggle {
		display: inline-flex;
	}

	.main-nav {
		position: absolute;
		top: 72px;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		background: var(--color-white);
		border-bottom: 1px solid var(--color-border);
		padding: 16px 20px 20px;
		gap: 16px;
		display: none;
	}

	.main-nav.is-open {
		display: flex;
	}

	.main-nav ul {
		flex-direction: column;
		gap: 14px;
	}

	.header-cta .btn {
		width: 100%;
		text-align: center;
	}
}

@media (max-width: 480px) {
	.hero h1 {
		font-size: 1.6rem;
	}

	.hero-sub {
		font-size: 1rem;
	}
}
