/*
Theme Name: Revolution IT
Theme URI: https://revolution-it.ie
Author: Revolution IT
Author URI: https://revolution-it.ie
Description: Custom theme for Revolution IT — Managed IT Infrastructure and Cloud Services. Built as a modern, mobile-first redesign of the company's site.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: revolution-it
*/

/* =========================================================
   TABLE OF CONTENTS
   1.0  Reset & base
   2.0  Layout / containers
   3.0  Typography
   4.0  Buttons
   5.0  Header / navigation
   6.0  Hero
   7.0  Trust / stats bar
   8.0  Services cards
   9.0  About page
   10.0 Services page
   11.0 Contact page
   12.0 CTA band
   13.0 Footer
   14.0 Blog
   15.0 Utilities / responsive
   ========================================================= */

/* 1.0 Reset & base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #333d47;
	line-height: 1.65;
	background: #fff;
	font-size: 17px;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

/* 2.0 Layout / containers
   ========================================================= */
:root {
	--ri-green: #a1c627;
	--ri-green-dark: #8bb01e;
	--ri-blue: #096095;
	--ri-blue-dark: #073f63;
	--ri-navy: #1c2530;
	--ri-ink: #262f38;
	--ri-muted: #64707c;
	--ri-bg-soft: #f5f8f6;
	--ri-border: #e4e9ea;
	--ri-radius: 10px;
	--ri-max: 1180px;
}
.container {
	max-width: var(--ri-max);
	margin: 0 auto;
	padding: 0 24px;
}
section { position: relative; }
.section-pad { padding: 88px 0; }
@media (max-width: 782px) {
	.section-pad { padding: 56px 0; }
}
.section-head {
	max-width: 720px;
	margin: 0 auto 48px;
	text-align: center;
}
.section-head .eyebrow {
	display: inline-block;
	color: var(--ri-green-dark);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-size: 13px;
	margin-bottom: 12px;
}
.section-head h2 {
	margin: 0 0 14px;
	color: var(--ri-navy);
}
.section-head p {
	color: var(--ri-muted);
	font-size: 18px;
	margin: 0;
}
.bg-soft { background: var(--ri-bg-soft); }

/* 3.0 Typography
   ========================================================= */
h1, h2, h3, h4 {
	font-family: inherit;
	font-weight: 700;
	line-height: 1.2;
	color: var(--ri-navy);
	margin: 0 0 16px;
}
h1 { font-size: clamp(32px, 5vw, 52px); }
h2 { font-size: clamp(26px, 3.6vw, 38px); }
h3 { font-size: 21px; }
p { margin: 0 0 16px; }
.lede { font-size: 20px; color: var(--ri-muted); }

/* 4.0 Buttons
   ========================================================= */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 28px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 15px;
	border: 2px solid transparent;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
	white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
	background: var(--ri-green);
	color: #10310a;
	box-shadow: 0 8px 20px rgba(161, 198, 39, 0.35);
}
.btn-primary:hover { background: var(--ri-green-dark); }
.btn-outline {
	background: transparent;
	border-color: rgba(255,255,255,0.55);
	color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-dark {
	background: var(--ri-blue);
	color: #fff;
}
.btn-dark:hover { background: var(--ri-blue-dark); }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* 5.0 Header / navigation
   ========================================================= */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255,255,255,0.96);
	backdrop-filter: saturate(180%) blur(8px);
	border-bottom: 1px solid var(--ri-border);
}
.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 14px;
	padding-bottom: 14px;
}
.site-logo img { height: 30px; width: auto; max-width: 260px; }
.site-logo { display: flex; align-items: center; }
.primary-nav ul { display: flex; align-items: center; gap: 8px; }
.primary-nav a {
	display: inline-block;
	padding: 10px 16px;
	font-weight: 600;
	font-size: 15px;
	color: var(--ri-ink);
	border-radius: 8px;
	transition: color 0.15s ease, background-color 0.15s ease;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a {
	color: var(--ri-blue);
	background: var(--ri-bg-soft);
}
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	color: var(--ri-navy);
	font-size: 15px;
}
.header-phone svg { flex-shrink: 0; }
.nav-toggle {
	display: none;
	background: none;
	border: none;
	padding: 8px;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--ri-navy);
	margin: 5px 0;
	transition: all 0.2s ease;
	content: "";
}
@media (max-width: 900px) {
	.primary-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #fff;
		border-bottom: 1px solid var(--ri-border);
		box-shadow: 0 12px 24px rgba(0,0,0,0.06);
		display: none;
	}
	.primary-nav.is-open { display: block; }
	.primary-nav ul { flex-direction: column; align-items: stretch; padding: 12px; gap: 2px; }
	.primary-nav a { padding: 12px 14px; }
	.header-phone span.phone-label { display: none; }
	.nav-toggle { display: block; }
	.site-logo img { height: 24px; max-width: 170px; }
}
@media (max-width: 400px) {
	.site-logo img { height: 20px; max-width: 140px; }
}

/* 6.0 Hero
   ========================================================= */
.hero {
	background: linear-gradient(135deg, var(--ri-navy) 0%, #223447 55%, var(--ri-blue) 100%);
	color: #fff;
	padding: 96px 0 110px;
	overflow: hidden;
	position: relative;
}
.hero::after {
	content: "";
	position: absolute;
	right: -120px;
	top: -120px;
	width: 420px;
	height: 420px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(161,198,39,0.25), transparent 70%);
}
.hero-grid {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 48px;
	align-items: center;
	position: relative;
	z-index: 1;
}
.hero-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(161,198,39,0.16);
	border: 1px solid rgba(161,198,39,0.4);
	color: #cfe793;
	padding: 6px 14px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	margin-bottom: 20px;
}
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 em {
	font-style: normal;
	color: var(--ri-green);
}
.hero p.lede { color: #cbd5df; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-panel {
	background: rgba(255,255,255,0.06);
	border: 1px solid rgba(255,255,255,0.14);
	border-radius: 16px;
	padding: 28px;
	backdrop-filter: blur(6px);
}
.hero-panel h3 { color: #fff; font-size: 17px; margin-bottom: 18px; }
.hero-panel ul { display: grid; gap: 14px; }
.hero-panel li { display: flex; align-items: flex-start; gap: 12px; color: #dfe7ee; font-size: 15px; }
.hero-panel li .tick {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--ri-green);
	color: #10310a;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 900;
}
@media (max-width: 900px) {
	.hero-grid { grid-template-columns: 1fr; }
	.hero { padding: 64px 0 72px; text-align: left; }
}

/* 7.0 Trust / stats bar
   ========================================================= */
.stats-bar {
	background: #fff;
	border-bottom: 1px solid var(--ri-border);
	margin-top: -46px;
	position: relative;
	z-index: 2;
}
.stats-bar .container {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 20px 40px rgba(20, 35, 50, 0.12);
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	padding: 32px 12px;
}
.stat { text-align: center; padding: 10px 12px; border-right: 1px solid var(--ri-border); }
.stat:last-child { border-right: none; }
.stat strong {
	display: block;
	font-size: clamp(26px, 3vw, 34px);
	color: var(--ri-blue);
	font-weight: 800;
}
.stat span { color: var(--ri-muted); font-size: 14px; }
@media (max-width: 700px) {
	.stats-bar .container { grid-template-columns: repeat(2, 1fr); gap: 18px 0; }
	.stat { border-right: none; border-bottom: 1px solid var(--ri-border); padding-bottom: 18px; }
	.stat:nth-child(2n) { border-right: none; }
}

/* 8.0 Services cards
   ========================================================= */
.card-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 24px;
}
.card-grid .service-card { flex: 1 1 calc((100% - 48px) / 3); max-width: calc((100% - 48px) / 3); }
@media (max-width: 980px) { .card-grid .service-card { flex-basis: calc((100% - 24px) / 2); max-width: calc((100% - 24px) / 2); } }
@media (max-width: 640px) { .card-grid .service-card { flex-basis: 100%; max-width: 100%; } }
.service-card {
	background: #fff;
	border: 1px solid var(--ri-border);
	border-radius: var(--ri-radius);
	padding: 30px 26px;
	transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.service-card:hover {
	box-shadow: 0 16px 32px rgba(9, 96, 149, 0.1);
	transform: translateY(-4px);
	border-color: rgba(161,198,39,0.5);
}
.service-icon {
	width: 52px;
	height: 52px;
	border-radius: 12px;
	background: rgba(161,198,39,0.14);
	color: var(--ri-green-dark);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 18px;
}
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--ri-muted); margin-bottom: 18px; font-size: 15.5px; }
.service-card .learn-more { font-weight: 700; color: var(--ri-blue); font-size: 14px; }

/* 9.0 About page
   ========================================================= */
.ri-breadcrumbs-bar {
	background: #fff;
	border-bottom: 1px solid var(--ri-border);
}
.ri-breadcrumbs-bar .container { padding-top: 14px; padding-bottom: 14px; }
.ri-breadcrumbs, .ri-breadcrumbs span {
	font-size: 13px;
	color: var(--ri-muted);
}
.ri-breadcrumbs a {
	color: var(--ri-muted);
	text-decoration: none;
}
.ri-breadcrumbs a:hover { color: var(--ri-blue); text-decoration: underline; }
.ri-breadcrumbs .breadcrumb_last { color: var(--ri-navy); font-weight: 600; }

.about-hero {
	background: var(--ri-bg-soft);
	padding: 64px 0;
	border-bottom: 1px solid var(--ri-border);
}
.split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
	align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.vision-band {
	background: var(--ri-blue);
	color: #fff;
	padding: 64px 0;
	text-align: center;
}
.vision-band .eyebrow { color: #bcdcff; letter-spacing: 0.1em; font-weight: 700; font-size: 13px; text-transform: uppercase; }
.vision-band p { font-size: clamp(20px, 2.6vw, 28px); font-weight: 600; max-width: 780px; margin: 12px auto 0; color: #fff; }
.value-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
@media (max-width: 780px) { .value-grid { grid-template-columns: 1fr; } }
.value-item { padding: 8px; }
.value-item h3 { color: var(--ri-blue); }

/* 10.0 Services page
   ========================================================= */
.service-detail {
	display: grid;
	grid-template-columns: 60px 1fr;
	gap: 20px;
	padding: 34px 0;
	border-bottom: 1px solid var(--ri-border);
}
.service-detail:last-child { border-bottom: none; }
.service-detail .service-icon { margin-bottom: 0; }
.service-detail h3 { margin-bottom: 8px; }
.service-detail p { color: var(--ri-muted); margin-bottom: 0; }
.service-highlights { margin: 18px 0 0; display: grid; gap: 10px; }
.service-highlights li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: var(--ri-ink);
	font-size: 15px;
}
.service-highlights .tick {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: rgba(161,198,39,0.16);
	color: var(--ri-green-dark);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	margin-top: 1px;
}
.service-quote {
	margin: 22px 0 0;
	padding: 20px 22px;
	background: var(--ri-bg-soft);
	border-left: 3px solid var(--ri-green);
	border-radius: 0 10px 10px 0;
}
.service-quote .quote-mark { color: var(--ri-green); display: block; margin-bottom: 6px; }
.service-quote p {
	font-size: 16px;
	font-style: italic;
	color: var(--ri-ink);
	margin-bottom: 8px;
}
.service-quote cite {
	font-style: normal;
	font-size: 13px;
	font-weight: 700;
	color: var(--ri-muted);
}
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.service-tags span {
	background: var(--ri-bg-soft);
	color: var(--ri-ink);
	font-size: 13px;
	font-weight: 600;
	padding: 6px 12px;
	border-radius: 999px;
	border: 1px solid var(--ri-border);
}

/* 11.0 Contact page
   ========================================================= */
.contact-grid {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: 48px;
	align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-card {
	background: var(--ri-navy);
	color: #fff;
	border-radius: 16px;
	padding: 36px;
}
.contact-info-card h3 { color: #fff; }
.contact-info-row {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 16px 0;
	border-top: 1px solid rgba(255,255,255,0.12);
}
.contact-info-row:first-of-type { border-top: none; }
.contact-info-row .ci-icon {
	width: 40px; height: 40px; border-radius: 10px;
	background: rgba(161,198,39,0.18);
	color: var(--ri-green);
	display: flex; align-items: center; justify-content: center;
	flex-shrink: 0;
}
.contact-info-row strong { display: block; color: #fff; margin-bottom: 2px; }
.contact-info-row span, .contact-info-row a { color: #cbd5df; font-size: 15px; }
.contact-form-card {
	background: #fff;
	border: 1px solid var(--ri-border);
	border-radius: 16px;
	padding: 36px;
	box-shadow: 0 16px 40px rgba(20,35,50,0.06);
}
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; color: var(--ri-ink); }
.form-row input,
.form-row textarea,
.form-row select {
	width: 100%;
	padding: 13px 14px;
	border: 1px solid var(--ri-border);
	border-radius: 8px;
	font-size: 15px;
	font-family: inherit;
	background: #fbfcfc;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
	outline: none;
	border-color: var(--ri-blue);
	box-shadow: 0 0 0 3px rgba(9,96,149,0.12);
}
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-two { grid-template-columns: 1fr; } }
.form-notice {
	padding: 14px 16px;
	border-radius: 10px;
	margin-bottom: 20px;
	font-weight: 600;
	font-size: 15px;
}
.form-notice.success { background: #eaf6de; color: #3f6b12; border: 1px solid #cfe9ab; }
.form-notice.error { background: #fdeceb; color: #9a2a20; border: 1px solid #f6c6c1; }

/* 12.0 CTA band
   ========================================================= */
.cta-band {
	background: linear-gradient(120deg, var(--ri-green-dark), var(--ri-green));
	color: #10310a;
	border-radius: 20px;
	padding: 56px;
	text-align: center;
}
.cta-band h2 { color: #10310a; }
.cta-band p { color: #274112; font-size: 18px; }
.cta-band .btn-dark { background: var(--ri-navy); }
.cta-band .btn-dark:hover { background: #000; }
@media (max-width: 700px) { .cta-band { padding: 40px 24px; } }

/* 13.0 Footer
   ========================================================= */
.site-footer {
	background: var(--ri-navy);
	color: #c7d0d8;
	padding: 72px 0 28px;
}
.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
	gap: 40px;
	padding-bottom: 48px;
	border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 18px; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: #c7d0d8; font-size: 15px; transition: color 0.15s ease; }
.footer-grid a:hover { color: var(--ri-green); }
.footer-logo img { height: 18px; width: auto; max-width: 190px; margin-bottom: 16px; }
.footer-about p { color: #9aa7b1; font-size: 14.5px; }
.footer-bottom {
	padding-top: 24px;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 13.5px;
	color: #8794a0;
}

/* 14.0 Blog
   ========================================================= */
.blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}
@media (max-width: 980px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }
.post-card {
	border: 1px solid var(--ri-border);
	border-radius: var(--ri-radius);
	overflow: hidden;
	background: #fff;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.post-card:hover { box-shadow: 0 16px 32px rgba(9,96,149,0.1); transform: translateY(-4px); }
.post-card .post-thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--ri-bg-soft); }
.post-card .post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .post-body { padding: 22px; }
.post-card .post-meta { color: var(--ri-muted); font-size: 13px; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.04em; }
.post-card h3 { font-size: 19px; margin-bottom: 10px; }
.post-card .excerpt { color: var(--ri-muted); font-size: 15px; margin-bottom: 0; }
.single-post-content { max-width: 780px; margin: 0 auto; }
.single-post-content img { border-radius: 12px; margin: 24px 0; }
.pagination-row { display: flex; justify-content: center; gap: 10px; margin-top: 48px; }
.pagination-row a, .pagination-row span {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 40px; height: 40px; padding: 0 12px;
	border: 1px solid var(--ri-border); border-radius: 8px;
	font-weight: 600; font-size: 14px;
}
.pagination-row .current { background: var(--ri-blue); color: #fff; border-color: var(--ri-blue); }

/* 15.0 Utilities / responsive
   ========================================================= */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.visually-hidden {
	position: absolute; width: 1px; height: 1px;
	padding: 0; margin: -1px; overflow: hidden;
	clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: -999px; top: 0; z-index: 999;
	background: #fff; color: #000; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

