/* ==========================================================================
   Rallison theme styles - clean, restrained, white/grey with blue as accent
   ========================================================================== */

:root {
	--color-primary: #0b5cab;
	--color-primary-dark: #08447f;
	--color-text: #1a1d21;
	--color-text-light: #6b7280;
	--color-bg: #ffffff;
	--color-bg-alt: #f7f8fa;
	--color-border: #e7e9ec;
	--container-width: 1200px;
	--radius: 4px;
	--font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: var(--font-base);
	color: var(--color-text);
	line-height: 1.65;
	font-size: 16px;
	background: #fff;
}

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

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.6em; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 3vw, 2.75rem); font-weight: 600; }
h2 { font-size: clamp(1.4rem, 2vw, 1.9rem); }
h3 { font-size: 1.1rem; }

p { margin: 0 0 1em; color: var(--color-text); }

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

.screen-reader-text { position: absolute; left: -9999px; }

/* Buttons - flat, minimal radius, blue reserved for primary action only */
.button {
	display: inline-block;
	padding: 12px 28px;
	border-radius: var(--radius);
	font-weight: 500;
	font-size: 0.95rem;
	text-decoration: none;
	border: 1px solid transparent;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.button-primary { background: var(--color-primary); color: #fff; }
.button-primary:hover { background: var(--color-primary-dark); color: #fff; text-decoration: none; }
.button-outline { background: transparent; color: var(--color-text); border-color: var(--color-border); }
.button-outline:hover { border-color: var(--color-text); color: var(--color-text); text-decoration: none; }

.text-link { font-weight: 500; color: var(--color-primary); }

/* Topbar - thin, quiet, no heavy color block */
.topbar { background: #fff; border-bottom: 1px solid var(--color-border); font-size: 0.82rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 8px 24px; }
.topbar-contact a { color: var(--color-text-light); margin-right: 20px; font-weight: 500; }
.topbar-contact a:hover { color: var(--color-primary); text-decoration: none; }
.topbar-tagline { color: var(--color-text-light); }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--color-border); position: sticky; top: 0; z-index: 100; }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; gap: 32px; }
.primary-navigation { flex: 1; }
.primary-menu { display: flex; list-style: none; margin: 0; padding: 0; gap: 32px; justify-content: center; flex-wrap: wrap; }
.primary-menu > li > a { color: var(--color-text); font-weight: 500; font-size: 0.95rem; }
.primary-menu li { position: relative; }
.primary-menu ul { list-style: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--color-border); box-shadow: 0 12px 24px rgba(20,20,20,0.06); padding: 8px 0; min-width: 220px; display: none; border-radius: var(--radius); }
.primary-menu li:hover > ul { display: block; }
.primary-menu ul a { display: block; padding: 9px 18px; font-weight: 400; font-size: 0.92rem; color: var(--color-text); }
.primary-menu ul a:hover { color: var(--color-primary); text-decoration: none; background: var(--color-bg-alt); }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; }

/* Hero - white, restrained, no gradient block */
.hero { background: #fff; padding: 88px 0 72px; border-bottom: 1px solid var(--color-border); }
.hero-eyebrow { display: inline-block; color: var(--color-primary); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.hero h1 { color: var(--color-text); max-width: 720px; }
.hero h1 span { color: var(--color-primary); }
.hero-sub { max-width: 620px; font-size: 1.1rem; color: var(--color-text-light); }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

/* Stats band - plain white, thin rules, no color fill */
.stats-band { background: #fff; padding: 44px 0; border-bottom: 1px solid var(--color-border); }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; text-align: left; }
.stat { border-left: 2px solid var(--color-border); padding-left: 16px; }
.stat-number { display: block; font-size: 1.9rem; font-weight: 600; color: var(--color-text); }
.stat-label { display: block; font-size: 0.85rem; color: var(--color-text-light); margin-top: 4px; }

/* Sections */
.section { padding: 80px 0; }
.section + .section { border-top: 1px solid var(--color-border); }
.section-title { text-align: center; margin-bottom: 12px; }
.section-intro { text-align: center; max-width: 680px; margin: 0 auto 44px; color: var(--color-text-light); }
.section-cta { text-align: center; margin-top: 36px; }

/* Product grid & cards - flat, thin border, subtle hover only */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 22px; display: block; transition: border-color 0.15s, box-shadow 0.15s; }
.product-card:hover { border-color: var(--color-primary); box-shadow: 0 4px 16px rgba(11,92,171,0.08); text-decoration: none; }
.product-card h3 { font-size: 1.02rem; margin-bottom: 6px; color: var(--color-text); font-weight: 600; }
.product-card p { font-size: 0.9rem; }
.product-card-image { margin-bottom: 16px; border-radius: var(--radius); overflow: hidden; background: var(--color-bg-alt); display: flex; align-items: center; justify-content: center; padding: 16px 0; }
.product-card-image .product-icon { width: 68px; height: 68px; }
.single-thumb-icon { background: var(--color-bg-alt); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; padding: 28px 0; margin-bottom: 24px; border: 1px solid var(--color-border); }
.single-thumb-icon .product-icon { width: 120px; height: 120px; }
.product-card-link { color: var(--color-primary); font-weight: 500; font-size: 0.88rem; }

/* About teaser */
.about-teaser-alt { background: var(--color-bg-alt); }
.about-teaser-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.certifications-card { background: #fff; border-radius: var(--radius); padding: 32px; border: 1px solid var(--color-border); }
.cert-list { list-style: none; padding: 0; margin: 0 0 20px; }
.cert-list li { padding: 10px 0; border-bottom: 1px solid var(--color-border); font-size: 0.95rem; }
.cert-list li:last-child { border-bottom: none; }

/* Industries & clients - plain text grid, no pill badges */
.industry-grid, .client-logos { display: flex; flex-wrap: wrap; gap: 0; justify-content: center; border-top: 1px solid var(--color-border); border-left: 1px solid var(--color-border); }
.industry-grid span, .client-logos span { flex: 1 1 160px; text-align: center; padding: 20px 16px; font-weight: 500; color: var(--color-text); border-right: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.clients { text-align: center; }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; display: block; transition: border-color 0.15s; }
.news-card:hover { border-color: var(--color-primary); text-decoration: none; }
.news-card h3 { padding: 18px 18px 0; font-size: 1.02rem; font-weight: 600; }
.news-card p { padding: 0 18px 18px; color: var(--color-text-light); font-size: 0.9rem; }

/* CTA band - light, not a solid color block */
.cta-band { background: var(--color-bg-alt); text-align: center; }
.cta-band h2 { color: var(--color-text); }

/* Page header */
.page-header { background: var(--color-bg-alt); padding: 48px 0 40px; border-bottom: 1px solid var(--color-border); }
.breadcrumbs ol { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 14px; font-size: 0.82rem; color: var(--color-text-light); flex-wrap: wrap; }
.breadcrumbs a { color: var(--color-text-light); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; }

.content-narrow { max-width: 820px; margin: 0 auto; }
.content-narrow table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.content-narrow table th, .content-narrow table td { border: 1px solid var(--color-border); padding: 11px 14px; text-align: left; font-size: 0.94rem; }
.content-narrow table th { background: var(--color-bg-alt); font-weight: 600; }

/* Product single */
.product-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 56px; align-items: start; }
.product-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.product-content table th, .product-content table td { border: 1px solid var(--color-border); padding: 11px 14px; text-align: left; font-size: 0.94rem; }
.product-content table th { background: var(--color-bg-alt); font-weight: 600; }
.quote-box, .industries-box { background: var(--color-bg-alt); border-radius: var(--radius); padding: 26px; margin-bottom: 20px; border: 1px solid var(--color-border); }
.quote-box h3 { margin-bottom: 8px; }
.quote-box .button { margin-top: 14px; width: 100%; text-align: center; }
.industries-box ul { padding-left: 18px; margin: 0; }

.range-nav-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.range-nav-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 26px; text-align: center; transition: border-color 0.15s; }
.range-nav-card h3 { color: var(--color-text); margin-bottom: 6px; }
.range-nav-card p { color: var(--color-text-light); margin: 0; font-size: 0.88rem; }
.range-nav-card:hover, .range-nav-card.is-active { border-color: var(--color-primary); text-decoration: none; }
.by-facet-alt { background: var(--color-bg-alt); }

.industry-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter-pill { background: #fff; border: 1px solid var(--color-border); padding: 8px 16px; border-radius: var(--radius); font-weight: 500; font-size: 0.88rem; color: var(--color-text); }
.filter-pill.is-active, .filter-pill:hover { border-color: var(--color-primary); color: var(--color-primary); text-decoration: none; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; }
.contact-info address { font-style: normal; margin-bottom: 12px; }
.contact-legal { margin-top: 20px; font-size: 0.85rem; color: var(--color-text-light); }
.map-embed { margin-top: 56px; }

/* Footer - light, not a heavy dark block */
.site-footer { background: var(--color-bg-alt); color: var(--color-text-light); padding-top: 60px; border-top: 1px solid var(--color-border); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-widget-title, .site-footer h4 { color: var(--color-text); font-size: 0.95rem; font-weight: 600; }
.footer-menu { list-style: none; padding: 0; margin: 0; }
.footer-menu li { margin-bottom: 9px; }
.footer-menu a, .site-footer a { color: var(--color-text-light); font-size: 0.92rem; }
.footer-menu a:hover { color: var(--color-primary); }
.footer-socials { display: flex; gap: 10px; margin-top: 16px; }
.social-icon { width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 1px solid var(--color-border); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; text-transform: uppercase; color: var(--color-text-light); }
.footer-accreditations { display: flex; gap: 24px; flex-wrap: wrap; padding: 20px 24px; border-top: 1px solid var(--color-border); font-size: 0.82rem; color: var(--color-text-light); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding: 20px 24px; border-top: 1px solid var(--color-border); font-size: 0.82rem; }
.legal-menu { list-style: none; display: flex; gap: 16px; margin: 0; padding: 0; }
.legal-menu a { color: var(--color-text-light); }

/* Responsive */
@media (max-width: 960px) {
	.stats-grid { grid-template-columns: repeat(2, 1fr); }
	.range-nav-grid { grid-template-columns: 1fr; }
	.product-grid { grid-template-columns: repeat(2, 1fr); }
	.news-grid { grid-template-columns: 1fr; }
	.about-teaser-grid, .product-layout, .contact-layout, .footer-top { grid-template-columns: 1fr; }
	.industry-grid span, .client-logos span { flex: 1 1 45%; }
	.primary-navigation { display: none; width: 100%; order: 3; }
	.primary-navigation.is-open { display: block; }
	.primary-menu { flex-direction: column; gap: 0; }
	.primary-menu ul { position: static; box-shadow: none; display: block; border: 0; }
	.menu-toggle { display: block; }
	.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--color-text); margin: 5px 0; }
}
