/*
Theme Name: Caledonian Compliance
Theme URI: https://www.caledoniancompliancelimited.co.uk/
Author: Caledonian Compliance Limited
Author URI: https://www.caledoniancompliancelimited.co.uk/
Description: A conversion-focused, SEO-first WordPress theme built specifically for PAT testing and electrical compliance businesses. Includes WooCommerce support for selling PAT testing packages, a services-led front page, structured data for local SEO, and a built-in enquiry form.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: caledonian-compliance
Tags: business, e-commerce, two-columns, custom-logo, custom-menu, featured-images, full-width-template, block-styles, wide-blocks
WC requires at least: 7.0
WC tested up to: 11.1
*/

/* =========================================================
   1. Design tokens
   ========================================================= */
:root {
	--cc-navy: #033F88;
	--cc-navy-dark: #022C61;
	--cc-navy-deep: #01203F;
	--cc-yellow: #FFD401;
	--cc-yellow-dark: #E6BE00;
	--cc-ink: #0F1B2D;
	--cc-body: #4A5A72;
	--cc-muted: #6B7C96;
	--cc-line: #E1E8F3;
	--cc-soft: #F3F7FD;
	--cc-white: #FFFFFF;
	--cc-success: #17A24A;

	--cc-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--cc-radius: 10px;
	--cc-radius-lg: 16px;
	--cc-shadow-sm: 0 2px 8px rgba(3, 63, 136, .07);
	--cc-shadow: 0 10px 30px rgba(3, 63, 136, .10);
	--cc-shadow-lg: 0 24px 60px rgba(3, 63, 136, .16);
	--cc-container: 1360px;
	--cc-header-h: 76px;
	--cc-transition: .25s cubic-bezier(.4, 0, .2, 1);
}

/* =========================================================
   2. Reset / base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--cc-header-h) + 20px); }

body {
	margin: 0;
	font-family: var(--cc-font);
	font-size: 16px;
	line-height: 1.7;
	color: var(--cc-body);
	background: var(--cc-white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .6em;
	font-weight: 800;
	line-height: 1.18;
	color: var(--cc-navy);
	letter-spacing: -.02em;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--cc-navy); text-decoration: none; transition: color var(--cc-transition); }
a:hover { color: var(--cc-yellow-dark); }

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

ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
li { margin-bottom: .45em; }

blockquote {
	margin: 1.8em 0;
	padding: 1.2em 1.6em;
	border-left: 4px solid var(--cc-yellow);
	background: var(--cc-soft);
	border-radius: 0 var(--cc-radius) var(--cc-radius) 0;
	font-size: 1.05rem;
	color: var(--cc-ink);
}

code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; }
pre { background: var(--cc-navy-deep); color: #E8F0FF; padding: 1.2em; border-radius: var(--cc-radius); overflow-x: auto; }

table { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; }
th, td { padding: .8em 1em; border: 1px solid var(--cc-line); text-align: left; }
th { background: var(--cc-soft); color: var(--cc-navy); font-weight: 700; }

hr { border: 0; border-top: 1px solid var(--cc-line); margin: 2.5em 0; }

/* Base size for every inline icon. Without this an icon in a context that has
   no explicit rule (a "Read article" link, a contact list) inflates to fill
   its container. Contextual rules below override it. */
.cc-icon { width: 18px; height: 18px; flex: none; }

:focus-visible { outline: 3px solid var(--cc-yellow); outline-offset: 2px; }

.screen-reader-text {
	position: absolute !important;
	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; top: -100px; left: 16px; z-index: 9999;
	background: var(--cc-yellow); color: var(--cc-navy);
	padding: .8em 1.4em; border-radius: 0 0 var(--cc-radius) var(--cc-radius);
	font-weight: 700;
}
.skip-link:focus { top: 0; }

/* =========================================================
   3. Layout helpers
   ========================================================= */
.cc-container { width: 100%; max-width: var(--cc-container); margin: 0 auto; padding: 0 24px; }
.cc-container--wide { max-width: 1560px; }
.cc-section { padding: clamp(56px, 7vw, 92px) 0; }
.cc-section--soft { background: var(--cc-soft); }
.cc-section--navy { background: var(--cc-navy); color: rgba(255, 255, 255, .85); }
.cc-section--navy h1, .cc-section--navy h2, .cc-section--navy h3 { color: var(--cc-white); }
.cc-section--tight { padding: clamp(40px, 4vw, 60px) 0; }

.cc-grid { display: grid; gap: 28px; }
.cc-grid--2 { grid-template-columns: repeat(2, 1fr); }
.cc-grid--3 { grid-template-columns: repeat(3, 1fr); }
.cc-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Eyebrow label: yellow dash + uppercase text */
.cc-eyebrow {
	display: flex; align-items: center; gap: 12px;
	margin: 0 0 14px;
	font-size: .78rem; font-weight: 700;
	letter-spacing: .16em; text-transform: uppercase;
	color: var(--cc-navy);
}
.cc-eyebrow::before { content: ""; width: 34px; height: 4px; background: var(--cc-yellow); border-radius: 2px; flex: none; }
.cc-section--navy .cc-eyebrow, .cc-hero .cc-eyebrow, .cc-quote .cc-eyebrow { color: rgba(255, 255, 255, .9); }

.cc-section-head { margin-bottom: 42px; }
.cc-section-head--split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end; }
.cc-section-head--split p { margin: 0; }
.cc-section-head h2 { margin-bottom: 0; }
.cc-section-head .cc-lead { margin-top: 14px; }

.cc-lead { font-size: 1.06rem; color: var(--cc-body); max-width: 62ch; }

/* =========================================================
   4. Buttons
   ========================================================= */
.cc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 15px 28px;
	border: 2px solid transparent; border-radius: var(--cc-radius);
	font-size: .97rem; font-weight: 700; line-height: 1;
	cursor: pointer; text-align: center;
	transition: all var(--cc-transition);
}
.cc-btn svg { width: 16px; height: 16px; transition: transform var(--cc-transition); }
.cc-btn:hover svg { transform: translateX(4px); }

.cc-btn--primary { background: var(--cc-yellow); color: var(--cc-navy); box-shadow: 0 6px 18px rgba(255, 212, 1, .32); }
.cc-btn--primary:hover { background: var(--cc-yellow-dark); color: var(--cc-navy); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(255, 212, 1, .42); }

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

.cc-btn--white { background: var(--cc-white); color: var(--cc-navy); }
.cc-btn--white:hover { background: var(--cc-soft); color: var(--cc-navy); transform: translateY(-2px); }

.cc-btn--ghost-light { background: transparent; border-color: rgba(255, 255, 255, .5); color: var(--cc-white); }
.cc-btn--ghost-light:hover { background: var(--cc-white); color: var(--cc-navy); border-color: var(--cc-white); }

.cc-btn--sm { padding: 11px 20px; font-size: .88rem; }
.cc-btn--block { width: 100%; }

/* =========================================================
   5. Header
   ========================================================= */
.cc-header {
	position: sticky; top: 0; z-index: 900;
	background: var(--cc-navy);
	transition: box-shadow var(--cc-transition);
}
.cc-header.is-stuck { box-shadow: 0 6px 24px rgba(1, 32, 63, .28); }

.cc-header__topbar {
	background: var(--cc-navy-deep);
	color: rgba(255, 255, 255, .82);
	font-size: .82rem;
}
.cc-header__topbar .cc-container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 40px; flex-wrap: wrap; }
.cc-header__topbar a { color: rgba(255, 255, 255, .82); }
.cc-header__topbar a:hover { color: var(--cc-yellow); }
.cc-topbar__items { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.cc-topbar__item { display: inline-flex; align-items: center; gap: 7px; }
.cc-topbar__item svg { width: 14px; height: 14px; color: var(--cc-yellow); flex: none; }

.cc-header__inner {
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	min-height: var(--cc-header-h);
}

.cc-brand { display: flex; align-items: center; gap: 12px; flex: none; }
.cc-brand img, .cc-brand svg { max-height: 54px; width: auto; }
.cc-brand__text { color: var(--cc-white); font-weight: 800; font-size: 1.05rem; line-height: 1.2; letter-spacing: -.01em; }
.cc-brand__text span { display: block; font-size: .7rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--cc-yellow); }

/* Primary nav */
.cc-nav { margin-left: auto; }
.cc-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.cc-nav li { margin: 0; position: relative; }
.cc-nav a {
	display: block; padding: 10px 14px;
	color: rgba(255, 255, 255, .92); font-size: .93rem; font-weight: 600;
	border-radius: 6px; position: relative;
	white-space: nowrap; /* keep "Our Services" and "Packages & Pricing" on one line */
}
.cc-nav a:hover { color: var(--cc-yellow); }
.cc-nav .current-menu-item > a,
.cc-nav .current_page_item > a,
.cc-nav .current-menu-ancestor > a { color: var(--cc-yellow); }
.cc-nav .current-menu-item > a::after,
.cc-nav .current_page_item > a::after {
	content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
	height: 3px; background: var(--cc-yellow); border-radius: 2px;
}
.cc-nav .menu-item-has-children > a { padding-right: 26px; }
.cc-nav .menu-item-has-children > a::before {
	content: ""; position: absolute; right: 11px; top: 50%;
	width: 6px; height: 6px; margin-top: -4px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
}
.cc-nav .sub-menu {
	position: absolute; top: 100%; left: 0; z-index: 10;
	min-width: 240px; padding: 10px; margin: 0;
	display: block;
	background: var(--cc-white); border-radius: var(--cc-radius);
	box-shadow: var(--cc-shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(10px);
	transition: all var(--cc-transition);
}
.cc-nav li:hover > .sub-menu, .cc-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.cc-nav .sub-menu a { color: var(--cc-ink); padding: 10px 14px; font-weight: 600; border-radius: 6px; }
.cc-nav .sub-menu a:hover { background: var(--cc-soft); color: var(--cc-navy); }
.cc-nav .sub-menu .current-menu-item > a::after { display: none; }
.cc-nav .sub-menu .sub-menu { top: 0; left: 100%; }

.cc-header__actions { display: flex; align-items: center; gap: 12px; flex: none; }

/* Cart bubble */
.cc-cart { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: var(--cc-white); }
.cc-cart:hover { background: rgba(255, 255, 255, .22); color: var(--cc-white); }
.cc-cart svg { width: 19px; height: 19px; }
.cc-cart__count {
	position: absolute; top: -4px; right: -4px;
	min-width: 20px; height: 20px; padding: 0 5px;
	display: flex; align-items: center; justify-content: center;
	background: var(--cc-yellow); color: var(--cc-navy);
	border-radius: 10px; font-size: .7rem; font-weight: 800;
}

/* Mobile toggle */
.cc-burger {
	display: none; width: 44px; height: 44px; padding: 0;
	background: rgba(255, 255, 255, .12); border: 0; border-radius: 8px;
	cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.cc-burger span { display: block; width: 20px; height: 2px; background: var(--cc-white); border-radius: 2px; transition: all var(--cc-transition); }
.cc-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.cc-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.cc-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   6. Hero
   ========================================================= */
.cc-hero {
	position: relative;
	background: var(--cc-navy);
	color: rgba(255, 255, 255, .88);
	overflow: hidden;
}
.cc-hero::after {
	content: ""; position: absolute; inset: 0;
	background: radial-gradient(1000px 500px at 85% 10%, rgba(255, 212, 1, .10), transparent 60%);
	pointer-events: none;
}
.cc-hero__inner {
	position: relative; z-index: 2;
	display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
	padding: clamp(48px, 6vw, 84px) 0;
}
.cc-hero h1 { color: var(--cc-white); margin-bottom: 14px; }
.cc-hero__sub { font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 700; color: var(--cc-white); margin-bottom: 16px; }
.cc-hero__text { font-size: 1.02rem; color: rgba(255, 255, 255, .82); max-width: 54ch; margin-bottom: 30px; }
.cc-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }

.cc-hero__trust { display: flex; flex-wrap: wrap; gap: 30px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .16); }
.cc-trust-item { display: flex; align-items: center; gap: 12px; font-size: .86rem; line-height: 1.35; color: rgba(255, 255, 255, .9); }
.cc-trust-item svg { width: 28px; height: 28px; color: var(--cc-yellow); flex: none; }
.cc-trust-item strong { display: block; font-weight: 600; }

.cc-hero__media { position: relative; border-radius: var(--cc-radius-lg); overflow: hidden; box-shadow: var(--cc-shadow-lg); aspect-ratio: 4 / 3; background: var(--cc-navy-dark); }
.cc-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.cc-hero__badge {
	position: absolute; right: 0; bottom: 28px;
	background: var(--cc-navy); color: var(--cc-white);
	padding: 16px 24px 16px 20px;
	border-left: 4px solid var(--cc-yellow);
	font-weight: 800; font-size: .95rem; line-height: 1.35; letter-spacing: .02em;
	text-transform: uppercase;
}

/* Hero image strip beneath */
.cc-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--cc-navy); }
.cc-strip__item { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--cc-soft); }
.cc-strip__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cc-strip__item:hover img { transform: scale(1.05); }
/* The caption sits on top of a photograph whose corner may be light or dark,
   so it carries its own backing rather than relying on the image behind it. */
.cc-strip__caption {
	position: absolute; left: 18px; top: 16px; max-width: calc(100% - 36px);
	margin: 0; padding: 10px 16px;
	background: rgba(255, 255, 255, .92);
	border-left: 4px solid var(--cc-yellow);
	border-radius: 4px;
	backdrop-filter: blur(4px);
	font-weight: 800; font-size: 1rem; line-height: 1.2; text-transform: uppercase;
	color: var(--cc-ink);
}

/* =========================================================
   7. Services + package cards
   ========================================================= */
/* Three across rather than five: at 1200px, five columns left each service
   about 200px wide, which is too narrow for the headings to breathe. */
.cc-services__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.cc-service {
	padding: 30px 28px;
	background: var(--cc-white);
	border: 1px solid var(--cc-line);
	border-radius: var(--cc-radius-lg);
	transition: transform var(--cc-transition), box-shadow var(--cc-transition), border-color var(--cc-transition);
}
.cc-service:hover { transform: translateY(-5px); box-shadow: var(--cc-shadow); border-color: rgba(3, 63, 136, .22); }
.cc-section--soft .cc-service { background: var(--cc-white); }
.cc-service__icon { width: 40px; height: 40px; color: var(--cc-navy); margin-bottom: 16px; transition: transform var(--cc-transition); }
.cc-service:hover .cc-service__icon { transform: scale(1.08) rotate(-4deg); }
.cc-service__icon svg { width: 100%; height: 100%; }
.cc-service h3 { font-size: 1.08rem; margin-bottom: 8px; }
.cc-service p { font-size: .92rem; margin: 0; }
.cc-service a { color: inherit; }

/* Three across at desktop. min() keeps the track from exceeding a narrow
   viewport, which a bare minmax(300px, 1fr) would overflow. */
.cc-packages { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr)); gap: 24px; }
.cc-package {
	position: relative; display: flex; flex-direction: column;
	background: var(--cc-white);
	border: 1px solid var(--cc-line); border-radius: var(--cc-radius-lg);
	padding: 28px 26px 26px;
	transition: all var(--cc-transition);
}
.cc-package:hover { transform: translateY(-4px); box-shadow: var(--cc-shadow); border-color: rgba(3, 63, 136, .25); }
.cc-package--featured { border-color: var(--cc-yellow); border-width: 2px; box-shadow: var(--cc-shadow); }
.cc-package__flag {
	position: absolute; top: -13px; left: 26px;
	background: var(--cc-yellow); color: var(--cc-navy);
	padding: 5px 14px; border-radius: 20px;
	font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.cc-package__name { font-size: 1.15rem; margin-bottom: 4px; }
.cc-package__name a { color: inherit; }
.cc-package__meta { font-size: .82rem; color: var(--cc-muted); margin-bottom: 16px; display: flex; align-items: center; gap: 7px; }
.cc-package__meta svg { width: 14px; height: 14px; flex: none; }
.cc-package__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px dashed var(--cc-line); }
.cc-package__price .woocommerce-Price-amount, .cc-package__price .amount { font-size: 2rem; font-weight: 800; color: var(--cc-navy); line-height: 1; }
.cc-package__price del { font-size: 1rem; color: var(--cc-muted); font-weight: 500; }
.cc-package__price del .woocommerce-Price-amount { font-size: 1rem; font-weight: 500; color: var(--cc-muted); }
.cc-package__price ins { text-decoration: none; }
.cc-package__price small { font-size: .78rem; color: var(--cc-muted); font-weight: 600; }
.cc-package__extra { flex-basis: 100%; margin: 0; font-size: .82rem; color: var(--cc-body); line-height: 1.45; }
.cc-package__features { list-style: none; padding: 0; margin: 0 0 22px; font-size: .9rem; }
.cc-package__features li { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 9px; }
.cc-package__features li::before {
	content: ""; flex: none; width: 16px; height: 16px; margin-top: 3px;
	background: var(--cc-success);
	-webkit-mask: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
}
.cc-package__foot { margin-top: auto; }
.cc-package__foot .button, .cc-package__foot .cc-btn { width: 100%; }

/* =========================================================
   8. Process
   ========================================================= */
.cc-process { display: grid; grid-template-columns: 1fr 2fr; gap: 50px; align-items: start; }
.cc-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; position: relative; }
.cc-step { position: relative; padding-right: 18px; }
.cc-step__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.cc-step__num {
	width: 38px; height: 38px; flex: none;
	display: flex; align-items: center; justify-content: center;
	background: var(--cc-yellow); color: var(--cc-navy);
	border-radius: 50%; font-weight: 800; font-size: 1rem;
}
.cc-step__icon { width: 30px; height: 30px; color: var(--cc-navy); }
.cc-step__icon svg { width: 100%; height: 100%; }
.cc-step h3 { font-size: 1.12rem; margin-bottom: 6px; }
.cc-step p { font-size: .92rem; margin: 0; }
.cc-step:not(:last-child)::after {
	content: ""; position: absolute; top: 19px; right: -12px;
	width: 22px; height: 12px;
	background: var(--cc-navy);
	-webkit-mask: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='3' y1='12' x2='20' y2='12'/%3E%3Cpolyline points='14 6 20 12 14 18'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='3' y1='12' x2='20' y2='12'/%3E%3Cpolyline points='14 6 20 12 14 18'/%3E%3C/svg%3E") center / contain no-repeat;
	opacity: .5;
}

/* =========================================================
   Card media
   -----------------------------------------------------------
   Every article and package card reserves a consistent image area. With a
   featured image it shows the photo; without one it shows a branded navy
   panel rather than collapsing, so rows stay aligned either way.
   ========================================================= */
.cc-card-media {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: linear-gradient(135deg, var(--cc-navy) 0%, var(--cc-navy-deep) 100%);
	display: flex; align-items: center; justify-content: center;
}
.cc-card-media img {
	width: 100%; height: 100%; object-fit: cover;
	transition: transform .7s cubic-bezier(.22, .61, .36, 1), filter .5s ease;
}
.cc-card-media__ph {
	width: 54px; height: 54px;
	color: var(--cc-yellow); opacity: .9;
	transition: transform .5s cubic-bezier(.34, 1.56, .64, 1);
}
.cc-card-media__ph .cc-icon { width: 100%; height: 100%; }

/* Faint diagonal texture so the empty state reads as designed, not missing. */
.cc-card-media::before {
	content: "";
	position: absolute; inset: 0;
	background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 12px);
	pointer-events: none;
}

/* Light sweep across the media on hover. */
.cc-card-media::after {
	content: "";
	position: absolute; top: 0; bottom: 0; left: 0; width: 60%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .3), transparent);
	transform: translateX(-180%) skewX(-12deg);
	transition: transform .85s cubic-bezier(.22, .61, .36, 1);
	pointer-events: none;
}
.cc-post-card:hover .cc-card-media::after,
.cc-package:hover .cc-card-media::after,
.woocommerce ul.products li.product:hover .cc-card-media::after { transform: translateX(320%) skewX(-12deg); }

.cc-post-card:hover .cc-card-media img,
.cc-package:hover .cc-card-media img,
.woocommerce ul.products li.product:hover .cc-card-media img { transform: scale(1.07); }

.cc-post-card:hover .cc-card-media__ph,
.cc-package:hover .cc-card-media__ph { transform: scale(1.14) rotate(-6deg); }

/* Package cards carry their media flush to the card edges. */
.cc-package { padding: 0 !important; overflow: hidden; --cc-card-pad: 26px; }
.cc-package__body { padding: var(--cc-card-pad); display: flex; flex-direction: column; flex: 1; }
.cc-package .cc-package__flag { top: 14px; left: 14px; z-index: 2; }

/* WooCommerce nests the thumbnail, title, price and meta inside a single
   anchor, so the media is pulled out to the card edges with a negative margin
   rather than by trying to pad its siblings. */
.woocommerce ul.products li.product { overflow: hidden; --cc-card-pad: 26px; }
.woocommerce ul.products li.product .cc-card-media {
	margin: calc(var(--cc-card-pad) * -1) calc(var(--cc-card-pad) * -1) 18px;
}
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link { display: block; }

/* Reusable framed photo */
.cc-figure {
	margin: 0;
	border-radius: var(--cc-radius-lg);
	overflow: hidden;
	box-shadow: var(--cc-shadow);
	background: var(--cc-soft);
}
.cc-figure img { width: 100%; height: 100%; object-fit: cover; }

/* Why choose us: photo beside the reasons */
.cc-why { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: start; }
.cc-why__list { display: grid; gap: 28px; }
.cc-why .cc-figure { position: sticky; top: calc(var(--cc-header-h) + 24px); }

/* =========================================================
   9. Industries
   ========================================================= */
.cc-industries__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 14px; }
.cc-industries__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 28px; }
.cc-industry {
	position: relative; display: block;
	border-radius: var(--cc-radius); overflow: hidden;
	background: var(--cc-white); border: 1px solid var(--cc-line);
	transition: all var(--cc-transition);
}
.cc-industry:hover { transform: translateY(-4px); box-shadow: var(--cc-shadow); }
.cc-industry__img { aspect-ratio: 16 / 11; overflow: hidden; background: var(--cc-soft); }
.cc-industry__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cc-industry:hover .cc-industry__img img { transform: scale(1.06); }
.cc-industry__label { display: flex; align-items: center; gap: 10px; padding: 14px 16px; font-weight: 700; color: var(--cc-navy); font-size: .95rem; }
.cc-industry__label svg { width: 19px; height: 19px; flex: none; color: var(--cc-navy); }

/* =========================================================
   10. Quote / enquiry block
   ========================================================= */
.cc-quote { position: relative; background: var(--cc-navy); color: rgba(255, 255, 255, .85); overflow: hidden; }
.cc-quote__inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: 0; align-items: stretch; }
.cc-quote__intro { padding: clamp(48px, 6vw, 80px) 48px clamp(48px, 6vw, 80px) 0; }
.cc-quote__intro h2 { color: var(--cc-white); }
.cc-quote__points { display: grid; gap: 18px; margin-top: 34px; }

.cc-quote__form {
	background: var(--cc-white);
	border-radius: var(--cc-radius-lg);
	padding: clamp(32px, 4vw, 44px);
	margin: clamp(28px, 4vw, 44px) 0;
	box-shadow: var(--cc-shadow-lg);
	color: var(--cc-body);
}

/* Forms */
.cc-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cc-field { margin-bottom: 18px; }
.cc-field label { display: block; margin-bottom: 7px; font-size: .86rem; font-weight: 700; color: var(--cc-navy); }
.cc-field .req { color: #D93025; }

input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="search"], input[type="url"], input[type="number"], input[type="date"],
textarea, select {
	width: 100%; padding: 12px 14px;
	border: 1px solid var(--cc-line); border-radius: 8px;
	background: var(--cc-white);
	font-family: inherit; font-size: .95rem; color: var(--cc-ink);
	transition: border-color var(--cc-transition), box-shadow var(--cc-transition);
}
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus, select:focus {
	outline: 0; border-color: var(--cc-navy);
	box-shadow: 0 0 0 3px rgba(3, 63, 136, .12);
}
::placeholder { color: #9AA8BF; }

.cc-form__foot { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; margin-top: 6px; }
.cc-form__note { font-size: .88rem; font-style: italic; color: var(--cc-muted); max-width: 24ch; text-align: right; }
.cc-form__consent { font-size: .8rem; color: var(--cc-muted); margin-top: 14px; }
.cc-hp { position: absolute !important; left: -9999px; }

.cc-notice { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-size: .92rem; font-weight: 600; }
.cc-notice--ok { background: #E7F7ED; color: #0E6B32; border: 1px solid #B6E5C7; }
.cc-notice--err { background: #FDECEA; color: #A5251A; border: 1px solid #F5C6C2; }

/* =========================================================
   11. Trust rows, stats, testimonials, FAQ
   ========================================================= */
.cc-featrow { display: flex; flex-wrap: wrap; gap: 38px; }
.cc-feat { display: flex; align-items: center; gap: 13px; font-size: .9rem; line-height: 1.35; }
.cc-feat svg { width: 28px; height: 28px; color: var(--cc-yellow); flex: none; }
.cc-feat strong { display: block; font-weight: 600; }

.cc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cc-stat { text-align: center; padding: 26px 18px; background: var(--cc-white); border: 1px solid var(--cc-line); border-radius: var(--cc-radius); }
.cc-stat__num { font-size: 2.2rem; font-weight: 800; color: var(--cc-navy); line-height: 1; margin-bottom: 8px; }
.cc-stat__label { font-size: .88rem; color: var(--cc-muted); margin: 0; }

.cc-testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cc-testimonial { background: var(--cc-white); border: 1px solid var(--cc-line); border-radius: var(--cc-radius-lg); padding: 28px; }
.cc-testimonial__stars { display: flex; gap: 3px; margin-bottom: 14px; color: var(--cc-yellow); }
.cc-testimonial__stars svg { width: 17px; height: 17px; }
.cc-testimonial blockquote { margin: 0 0 18px; padding: 0; border: 0; background: none; font-size: .97rem; color: var(--cc-ink); }
.cc-testimonial__who { font-size: .86rem; color: var(--cc-muted); }
.cc-testimonial__who strong { display: block; color: var(--cc-navy); font-size: .95rem; }

.cc-faq { max-width: 860px; margin: 0 auto; }
.cc-faq__item { border: 1px solid var(--cc-line); border-radius: var(--cc-radius); margin-bottom: 14px; background: var(--cc-white); overflow: hidden; }
.cc-faq__q {
	width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px;
	padding: 20px 24px; background: none; border: 0; cursor: pointer;
	font-family: inherit; font-size: 1.02rem; font-weight: 700; color: var(--cc-navy); text-align: left;
}
.cc-faq__q::after {
	content: ""; flex: none; width: 11px; height: 11px;
	border-right: 2.5px solid var(--cc-navy); border-bottom: 2.5px solid var(--cc-navy);
	transform: rotate(45deg) translateY(-3px); transition: transform var(--cc-transition);
}
.cc-faq__q[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-3px); }
.cc-faq__a { padding: 0 24px 22px; font-size: .96rem; }
.cc-faq__a[hidden] { display: none; }

.cc-cta-band { background: var(--cc-yellow); color: var(--cc-navy); }
.cc-cta-band .cc-container { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-top: 34px; padding-bottom: 34px; }
.cc-cta-band h2 { margin: 0 0 4px; font-size: clamp(1.3rem, 2.2vw, 1.8rem); }
.cc-cta-band p { margin: 0; color: rgba(3, 63, 136, .85); font-weight: 600; }
.cc-cta-band .cc-btn--primary { background: var(--cc-navy); color: var(--cc-white); box-shadow: none; }
.cc-cta-band .cc-btn--primary:hover { background: var(--cc-navy-dark); color: var(--cc-white); }

/* =========================================================
   12. Page / post content
   ========================================================= */
.cc-pagehead { background: var(--cc-navy); color: rgba(255, 255, 255, .82); padding: clamp(44px, 5vw, 72px) 0; position: relative; overflow: hidden; }
.cc-pagehead::after { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 400px at 90% 0%, rgba(255, 212, 1, .10), transparent 60%); }
.cc-pagehead .cc-container { position: relative; z-index: 2; }
.cc-pagehead h1 { color: var(--cc-white); margin-bottom: 10px; }
.cc-pagehead p { max-width: 66ch; margin: 0; }

.cc-breadcrumbs { font-size: .83rem; margin-bottom: 14px; color: rgba(255, 255, 255, .7); }
.cc-breadcrumbs a { color: rgba(255, 255, 255, .9); }
.cc-breadcrumbs a:hover { color: var(--cc-yellow); }
.cc-breadcrumbs span + span::before { content: "/"; margin: 0 9px; opacity: .55; }

.cc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 50px; }
.cc-layout--full { grid-template-columns: minmax(0, 1fr); }
/* Prose is capped for readability, but grids, tables and anything WooCommerce
   renders must use the full column — otherwise four product cards end up
   sharing 780px and each one is ~170px wide. */
.cc-content > * { max-width: 780px; }
.cc-content .alignwide,
.cc-content .alignfull,
.cc-content .wp-block-table,
.cc-content > .cc-grid,
.cc-content > table,
.cc-content > .cc-posts,
.cc-content > .cc-packages,
.cc-content > .cc-faq,
.cc-content > .cc-shop-trust,
.cc-content > .cc-pagination { max-width: none; }

/* WooCommerce templates get no cap at all. */
.cc-content--wide > * { max-width: none; }
.cc-content h2 { margin-top: 1.9em; }
.cc-content h3 { margin-top: 1.5em; }
.cc-content img { border-radius: var(--cc-radius); }
.cc-content li::marker { color: var(--cc-navy); }

.cc-sidebar .widget { background: var(--cc-soft); border-radius: var(--cc-radius); padding: 26px; margin-bottom: 26px; }
.cc-sidebar .widget-title, .cc-sidebar h2 { font-size: 1.05rem; margin-bottom: 14px; }
.cc-sidebar ul { list-style: none; padding: 0; margin: 0; }
.cc-sidebar li { border-bottom: 1px solid var(--cc-line); padding-bottom: 9px; margin-bottom: 9px; font-size: .93rem; }
.cc-sidebar li:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }

/* auto-fit rather than a fixed three, so one or two articles fill the row
   instead of huddling into a third of it — and so cards stay wide enough
   inside the narrower column beside the blog sidebar. */
.cc-posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 28px; }
.cc-post-card { background: var(--cc-white); border: 1px solid var(--cc-line); border-radius: var(--cc-radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: all var(--cc-transition); }
.cc-post-card:hover { transform: translateY(-4px); box-shadow: var(--cc-shadow); }
/* The inner .cc-card-media sets the aspect ratio and background. */
.cc-post-card__img { display: block; }
.cc-post-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.cc-post-card__meta { font-size: .8rem; color: var(--cc-muted); margin-bottom: 9px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.cc-post-card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.cc-post-card h3 a { color: inherit; }
.cc-post-card p { font-size: .93rem; margin-bottom: 16px; }
.cc-post-card__more { margin-top: auto; font-weight: 700; font-size: .9rem; display: inline-flex; align-items: center; gap: 7px; }

.cc-pagination { margin-top: 48px; display: flex; justify-content: center; }
.cc-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 42px; height: 42px; padding: 0 12px; margin: 0 4px;
	border: 1px solid var(--cc-line); border-radius: 8px;
	font-weight: 700; font-size: .92rem;
}
.cc-pagination .page-numbers.current, .cc-pagination .page-numbers:hover { background: var(--cc-navy); border-color: var(--cc-navy); color: var(--cc-white); }

.cc-entry-meta { font-size: .86rem; color: var(--cc-muted); margin-bottom: 26px; }
.cc-share { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--cc-line); }

/* =========================================================
   13. WooCommerce
   ========================================================= */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	border-top: 3px solid var(--cc-navy);
	background: var(--cc-soft); color: var(--cc-ink);
	padding: 16px 20px 16px 48px; margin-bottom: 26px;
	border-radius: 0 0 var(--cc-radius) var(--cc-radius); list-style: none;
	position: relative; font-size: .94rem;
}
.woocommerce-error { border-top-color: #D93025; background: #FDECEA; }
.woocommerce-message { border-top-color: var(--cc-success); background: #E7F7ED; }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { left: 20px; top: 18px; }

.woocommerce ul.products, ul.products {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr));
	gap: 24px;
	margin: 0 0 40px; padding: 0; list-style: none;
}
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product, ul.products li.product {
	width: 100% !important; margin: 0 !important; float: none !important;
	display: flex; flex-direction: column;
	background: var(--cc-white); border: 1px solid var(--cc-line);
	border-radius: var(--cc-radius-lg); padding: 26px; text-align: left;
	transition: all var(--cc-transition);
}
.woocommerce ul.products li.product:hover { transform: translateY(-4px); box-shadow: var(--cc-shadow); }
.woocommerce ul.products li.product a img { border-radius: var(--cc-radius); margin-bottom: 16px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 1.12rem !important; font-weight: 800; color: var(--cc-navy);
	padding: 0 !important; margin: 0 0 8px !important;
}
.woocommerce ul.products li.product .price {
	display: block; color: var(--cc-navy) !important; font-size: 1.85rem; font-weight: 800; margin: 0 0 16px;
}
.woocommerce ul.products li.product .price del { font-size: 1rem; opacity: .55; font-weight: 500; }
.woocommerce ul.products li.product .price ins { text-decoration: none; }
.woocommerce ul.products li.product .cc-package__extra { margin: -8px 0 16px; }
.woocommerce ul.products li.product .button { margin-top: auto; width: 100%; }
.woocommerce span.onsale {
	background: var(--cc-yellow); color: var(--cc-navy); font-weight: 800;
	border-radius: 20px; min-height: auto; line-height: 1; padding: 8px 15px;
	top: 14px; right: 14px; left: auto; margin: 0;
}

.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt,
.woocommerce input.button.alt, .woocommerce #respond input#submit.alt {
	display: inline-flex; align-items: center; justify-content: center; gap: 9px;
	background: var(--cc-yellow); color: var(--cc-navy);
	padding: 14px 26px; border-radius: var(--cc-radius);
	font-family: inherit; font-size: .95rem; font-weight: 700; line-height: 1;
	border: 2px solid transparent; text-transform: none;
	transition: all var(--cc-transition);
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce #respond input#submit:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
	background: var(--cc-yellow-dark); color: var(--cc-navy); transform: translateY(-2px);
}
.woocommerce a.added_to_cart { display: inline-block; margin-top: 10px; font-weight: 700; font-size: .88rem; }

/* Service products carry no photograph: let the summary use the full width
   rather than leaving an empty half column where the gallery would be. */
body.cc-product-no-image .woocommerce div.product div.summary,
body.cc-product-no-image div.product div.summary {
	width: 100%; float: none; margin-bottom: 0; max-width: 720px;
}

.woocommerce div.product .product_title { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 12px; }
.woocommerce div.product p.price, .woocommerce div.product span.price {
	color: var(--cc-navy); font-size: 2.2rem; font-weight: 800; margin-bottom: 18px;
}
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin: 0 0 -1px; border-bottom: 1px solid var(--cc-line); }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { border-bottom-color: var(--cc-line); }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
	background: transparent; border: 1px solid transparent; border-bottom: 0;
	border-radius: var(--cc-radius) var(--cc-radius) 0 0; margin: 0 4px 0 0; padding: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 14px 22px; font-weight: 700; color: var(--cc-muted); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--cc-white); border-color: var(--cc-line); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--cc-navy); }
.woocommerce div.product .woocommerce-tabs .panel { padding-top: 28px; border: 0; }
.woocommerce .quantity .qty { width: 74px; padding: 12px 8px; text-align: center; border-radius: 8px; border: 1px solid var(--cc-line); }
.woocommerce div.product form.cart { margin-bottom: 28px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.woocommerce-breadcrumb { font-size: .86rem; color: var(--cc-muted); margin-bottom: 24px !important; }

.woocommerce table.shop_table { border-radius: var(--cc-radius); border-color: var(--cc-line); }
.woocommerce table.shop_table th { background: var(--cc-soft); color: var(--cc-navy); }
.woocommerce-cart table.cart img { width: 70px; border-radius: 6px; }
.woocommerce #payment, .woocommerce-checkout #payment { background: var(--cc-soft); border-radius: var(--cc-radius); }
.select2-container .select2-selection--single { height: 46px; border-color: var(--cc-line); border-radius: 8px; }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 44px; padding-left: 14px; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 44px; }

.cc-shop-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 44px 0 0; }
.cc-shop-trust__item { display: flex; gap: 13px; align-items: flex-start; font-size: .9rem; }
.cc-shop-trust__item svg { width: 24px; height: 24px; color: var(--cc-navy); flex: none; }
.cc-shop-trust__item strong { display: block; color: var(--cc-navy); }

/* =========================================================
   14. Footer
   ========================================================= */
.cc-footer { background: var(--cc-navy); color: rgba(255, 255, 255, .72); font-size: .92rem; }
.cc-footer a { color: rgba(255, 255, 255, .78); }
.cc-footer a:hover { color: var(--cc-yellow); }
.cc-footer h3, .cc-footer .widget-title { color: var(--cc-white); font-size: 1rem; margin-bottom: 18px; letter-spacing: 0; }

.cc-footer__main { padding: clamp(46px, 5vw, 68px) 0; }
.cc-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 42px; }
/* Scoped to the brand lockup only. Unscoped, this also hit the social icons
   nested below it — the 18px bottom margin was counted by their flex
   centring and pushed each icon off-centre inside its circle. */
.cc-footer__about .cc-brand { display: inline-flex; margin-bottom: 18px; }
.cc-footer__about .cc-brand img, .cc-footer__about .cc-brand svg { max-height: 62px; width: auto; }
.cc-footer ul { list-style: none; padding: 0; margin: 0; }
.cc-footer li { margin-bottom: 10px; }

.cc-footer__contact li { display: flex; gap: 11px; align-items: flex-start; }
.cc-footer__contact svg { width: 17px; height: 17px; color: var(--cc-yellow); flex: none; margin-top: 4px; }

.cc-social { display: flex; gap: 10px; margin-top: 18px; }
.cc-social a {
	width: 38px; height: 38px; border-radius: 50%;
	display: grid; place-items: center;
	line-height: 0;
	background: rgba(255, 255, 255, .12); color: var(--cc-white);
	transition: all var(--cc-transition);
}
.cc-social a:hover { background: var(--cc-yellow); color: var(--cc-navy); transform: translateY(-2px); }
/* margin:0 defends the centring against any inherited spacing; grid +
   place-items is the most reliable way to pin an icon to the middle. */
.cc-social svg { width: 17px; height: 17px; margin: 0; display: block; }

.cc-footer__bar { border-top: 1px solid rgba(255, 255, 255, .13); padding: 22px 0; font-size: .85rem; }
.cc-footer__bar .cc-container { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.cc-footer__bar ul { display: flex; gap: 20px; flex-wrap: wrap; }
.cc-footer__bar li { margin: 0; }
.cc-footer__tag { color: rgba(255, 255, 255, .55); }

/* Hidden until JavaScript confirms a cookie banner is actually present,
   and then only on the screen sizes where its floating icon is hidden. */
.cc-cookie-link {
	display: none;
	background: none; border: 0; padding: 0;
	font: inherit; color: inherit; cursor: pointer;
	text-decoration: underline;
}
.cc-cookie-link:hover { color: var(--cc-yellow); }

.cc-callbar { display: none; }

/* =========================================================
   15. Motion
   -----------------------------------------------------------
   Reveal styles are scoped to body.cc-anim, a class JavaScript adds on load.
   If JS is unavailable or fails, nothing is ever hidden — the page simply
   renders static, which also keeps the content visible to crawlers.
   ========================================================= */
body.cc-anim .cc-reveal {
	opacity: 0;
	transform: translateY(26px);
	transition:
		opacity .65s cubic-bezier(.22, .61, .36, 1),
		transform .65s cubic-bezier(.22, .61, .36, 1);
	transition-delay: calc(var(--cc-i, 0) * 80ms);
	will-change: opacity, transform;
}
body.cc-anim .cc-reveal.is-visible { opacity: 1; transform: none; }

/* Hero copy animates straight in on load rather than waiting for a scroll. */
@keyframes cc-rise {
	from { opacity: 0; transform: translateY(22px); }
	to   { opacity: 1; transform: none; }
}
@keyframes cc-fade-scale {
	from { opacity: 0; transform: scale(.96); }
	to   { opacity: 1; transform: none; }
}

.cc-hero__copy > * { animation: cc-rise .7s cubic-bezier(.22, .61, .36, 1) backwards; }
.cc-hero__copy > *:nth-child(1) { animation-delay: .05s; }
.cc-hero__copy > *:nth-child(2) { animation-delay: .14s; }
.cc-hero__copy > *:nth-child(3) { animation-delay: .23s; }
.cc-hero__copy > *:nth-child(4) { animation-delay: .32s; }
.cc-hero__copy > *:nth-child(5) { animation-delay: .41s; }
.cc-hero__copy > *:nth-child(6) { animation-delay: .50s; }
.cc-hero__media { animation: cc-fade-scale .9s cubic-bezier(.22, .61, .36, 1) .2s backwards; }

/* Animated underline on the primary navigation */
.cc-nav > ul > li > a::after {
	content: "";
	position: absolute; left: 14px; right: 14px; bottom: 2px;
	height: 3px; border-radius: 2px;
	background: var(--cc-yellow);
	transform: scaleX(0); transform-origin: left;
	transition: transform var(--cc-transition);
}
.cc-nav > ul > li > a:hover::after { transform: scaleX(1); }
.cc-nav .current-menu-item > a::after,
.cc-nav .current_page_item > a::after { transform: scaleX(1); }
.cc-nav .sub-menu a::after { display: none; }

/* Buttons and cards: a touch more life on interaction */
.cc-btn { position: relative; overflow: hidden; }
.cc-btn::before {
	content: "";
	position: absolute; inset: 0;
	background: currentColor; opacity: 0;
	transition: opacity var(--cc-transition);
}
.cc-btn:hover::before { opacity: .06; }
.cc-btn:active { transform: translateY(0) scale(.98); }

.cc-step__num { transition: transform var(--cc-transition), box-shadow var(--cc-transition); }
.cc-step:hover .cc-step__num { transform: scale(1.12); box-shadow: 0 6px 16px rgba(255, 212, 1, .5); }

.cc-stat { transition: transform var(--cc-transition), box-shadow var(--cc-transition); }
.cc-stat:hover { transform: translateY(-4px); box-shadow: var(--cc-shadow); }

.cc-testimonial { transition: transform var(--cc-transition), box-shadow var(--cc-transition); }
.cc-testimonial:hover { transform: translateY(-4px); box-shadow: var(--cc-shadow); }

.cc-figure img { transition: transform .6s cubic-bezier(.22, .61, .36, 1); }
.cc-figure:hover img { transform: scale(1.04); }

.cc-faq__item { transition: border-color var(--cc-transition), box-shadow var(--cc-transition); }
.cc-faq__item:hover { border-color: rgba(3, 63, 136, .25); }
.cc-faq__a { animation: cc-rise .35s ease backwards; }

.cc-social a svg, .cc-trust-item svg { transition: transform var(--cc-transition); }
.cc-social a:hover svg { transform: scale(1.15); }

/* -----------------------------------------------------------
   Directional reveals — opposing halves slide toward each other
   rather than everything rising uniformly.
   ----------------------------------------------------------- */
body.cc-anim .cc-quote__intro.cc-reveal,
body.cc-anim .cc-why .cc-figure.cc-reveal,
body.cc-anim .cc-process > div:first-child.cc-reveal { transform: translateX(-34px); }

body.cc-anim .cc-quote__form.cc-reveal,
body.cc-anim .cc-hero__media.cc-reveal { transform: translateX(34px); }

body.cc-anim .cc-quote__intro.is-visible,
body.cc-anim .cc-quote__form.is-visible,
body.cc-anim .cc-why .cc-figure.is-visible,
body.cc-anim .cc-process > div:first-child.is-visible,
body.cc-anim .cc-hero__media.is-visible { transform: none; }

/* Text blocks drift up a shorter distance than cards, so paragraphs feel
   like they settle rather than fly. */
body.cc-anim .cc-content > p.cc-reveal,
body.cc-anim .cc-content > ul.cc-reveal,
body.cc-anim .cc-content > ol.cc-reveal,
body.cc-anim .cc-content > h2.cc-reveal,
body.cc-anim .cc-content > h3.cc-reveal,
body.cc-anim .cc-lead.cc-reveal {
	transform: translateY(14px);
	transition-duration: .5s;
}

/* The eyebrow dash draws itself in when its heading arrives. */
body.cc-anim .cc-section-head.cc-reveal .cc-eyebrow::before { width: 0; transition: width .55s cubic-bezier(.22, .61, .36, 1) .25s; }
body.cc-anim .cc-section-head.is-visible .cc-eyebrow::before { width: 34px; }

/* Hero badge breathes gently. */
@keyframes cc-float {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-7px); }
}
.cc-hero__badge { animation: cc-fade-scale .8s cubic-bezier(.22, .61, .36, 1) .55s backwards, cc-float 5s ease-in-out 1.4s infinite; }

/* Arrow icons nudge continuously on card hover. */
@keyframes cc-nudge {
	0%, 100% { transform: translateX(0); }
	50%      { transform: translateX(5px); }
}
.cc-post-card:hover .cc-post-card__more .cc-icon { animation: cc-nudge .9s ease-in-out infinite; }

/* -----------------------------------------------------------
   Image hover treatments
   ----------------------------------------------------------- */
.cc-hero__media img,
.cc-strip__item img,
.cc-industry__img img,
.cc-figure img {
	transition: transform .7s cubic-bezier(.22, .61, .36, 1), filter .5s ease;
}

.cc-hero__media, .cc-strip__item, .cc-industry__img, .cc-figure { position: relative; }

/* Navy wash that lifts on hover. */
.cc-strip__item::after,
.cc-industry__img::after,
.cc-figure::after {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(3, 63, 136, .34), transparent 55%);
	opacity: 0;
	transition: opacity .45s ease;
	pointer-events: none;
}
.cc-strip__item:hover::after,
.cc-industry:hover .cc-industry__img::after,
.cc-figure:hover::after { opacity: 1; }

.cc-strip__item:hover img { transform: scale(1.06); filter: saturate(1.08); }
.cc-hero__media:hover img { transform: scale(1.03); }
.cc-industry:hover .cc-industry__img img { transform: scale(1.08) rotate(.6deg); }

/* Strip caption slides up to meet the cursor. */
.cc-strip__caption { transition: transform .45s cubic-bezier(.22, .61, .36, 1), box-shadow .45s ease; }
.cc-strip__item:hover .cc-strip__caption { transform: translateY(-4px); box-shadow: var(--cc-shadow); }

/* Industry label bar fills with yellow from the left. */
.cc-industry__label { position: relative; z-index: 1; }
.cc-industry__label::before {
	content: "";
	position: absolute; inset: 0; z-index: -1;
	background: var(--cc-yellow);
	transform: scaleX(0); transform-origin: left;
	transition: transform .45s cubic-bezier(.22, .61, .36, 1);
}
.cc-industry:hover .cc-industry__label::before { transform: scaleX(1); }

/* =========================================================
   16. Responsive
   ========================================================= */
@media (max-width: 1280px) {
	/* Nav links no longer wrap, so tighten them before they can overflow. */
	.cc-nav a { padding: 10px 9px; font-size: .88rem; }
	.cc-header__actions .cc-btn--sm { padding: 11px 15px; font-size: .84rem; }
	.cc-header__actions { gap: 8px; }
}

@media (max-width: 1100px) {
	.cc-services__list { grid-template-columns: repeat(2, 1fr); }
	.cc-industries__grid { grid-template-columns: repeat(3, 1fr); }
	.cc-footer__grid { grid-template-columns: 1fr 1fr; gap: 34px; }
	.cc-layout { grid-template-columns: minmax(0, 1fr); }
	.cc-sidebar { margin-top: 20px; }
}

@media (max-width: 991px) {
	:root { --cc-header-h: 66px; }

	.cc-burger { display: flex; }
	.cc-nav {
		position: fixed; top: var(--cc-header-h); right: 0; bottom: 0; z-index: 899;
		width: min(340px, 86vw);
		background: var(--cc-navy-dark);
		padding: 22px 20px 40px;
		overflow-y: auto;
		transform: translateX(100%);
		transition: transform var(--cc-transition);
		box-shadow: -10px 0 40px rgba(1, 32, 63, .4);
	}
	.cc-nav.is-open { transform: translateX(0); }
	.cc-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
	.cc-nav a { padding: 13px 12px; border-radius: 8px; font-size: 1rem; }
	.cc-nav a:hover { background: rgba(255, 255, 255, .08); }
	.cc-nav > ul > li > a::after,
	.cc-nav .current-menu-item > a::after,
	.cc-nav .current_page_item > a::after { display: none; }
	.cc-nav .menu-item-has-children > a::before { display: none; }
	.cc-nav .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none;
		background: rgba(255, 255, 255, .06); box-shadow: none;
		padding: 4px 0 4px 12px; margin: 2px 0 6px; min-width: 0;
	}
	.cc-nav .sub-menu a { color: rgba(255, 255, 255, .85); }
	.cc-nav .sub-menu a:hover { background: rgba(255, 255, 255, .1); color: var(--cc-yellow); }
	.cc-nav-backdrop { position: fixed; inset: 0; background: rgba(1, 32, 63, .5); z-index: 890; opacity: 0; visibility: hidden; transition: all var(--cc-transition); }
	.cc-nav-backdrop.is-open { opacity: 1; visibility: visible; }
	body.cc-nav-open { overflow: hidden; }

	.cc-header__actions .cc-btn--primary { display: none; }

	.cc-hero__inner { grid-template-columns: 1fr; gap: 36px; }
	.cc-hero__media { aspect-ratio: 16 / 10; }
	.cc-strip { grid-template-columns: 1fr; }
	.cc-strip__item { aspect-ratio: 16 / 9; }

	.cc-process { grid-template-columns: 1fr; gap: 32px; }
	.cc-section-head--split { grid-template-columns: 1fr; gap: 16px; align-items: start; }

	.cc-quote__inner { grid-template-columns: 1fr; }
	.cc-quote__intro { padding: clamp(44px, 6vw, 64px) 0 8px; }
	.cc-quote__form { margin: 0 0 clamp(44px, 6vw, 64px); }

	.cc-testimonials { grid-template-columns: repeat(2, 1fr); }
	.cc-stats { grid-template-columns: repeat(2, 1fr); }
	.cc-shop-trust { grid-template-columns: repeat(2, 1fr); }

	.cc-steps { grid-template-columns: 1fr; }
	.cc-step:not(:last-child)::after { display: none; }
	.cc-step { padding-right: 0; }

	.cc-why { grid-template-columns: 1fr; gap: 32px; }
	.cc-why .cc-figure { position: static; }

	.cc-callbar {
		display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 880;
		background: var(--cc-navy-deep); box-shadow: 0 -4px 20px rgba(1, 32, 63, .3);
	}
	.cc-callbar a {
		flex: 1; display: flex; align-items: center; justify-content: center; gap: 9px;
		padding: 14px 8px; color: var(--cc-white); font-weight: 700; font-size: .9rem;
	}
	.cc-callbar a + a { border-left: 1px solid rgba(255, 255, 255, .14); }
	.cc-callbar a.is-primary { background: var(--cc-yellow); color: var(--cc-navy); }
	.cc-callbar svg { width: 17px; height: 17px; }
	body { padding-bottom: 54px; }
}

@media (max-width: 767px) {
	/* The contact strip above the menu duplicates the sticky call bar at the
	   bottom of the screen on phones, so it is hidden rather than wrapped. */
	.cc-header__topbar { display: none; }

	/* CookieAdmin's floating re-consent icon overlaps the sticky call bar.
	   Hidden here and replaced by a "Cookie settings" link in the footer, so
	   withdrawing consent is still possible. */
	.cookieadmin_re_consent { display: none !important; }

	body.cc-has-cookie-prefs .cc-cookie-link { display: inline; }

	.cc-container { padding: 0 18px; }
	.cc-services__list { grid-template-columns: repeat(2, 1fr); }
	.cc-packages, .woocommerce ul.products, ul.products { gap: 16px; }
	.cc-industries__grid { grid-template-columns: repeat(2, 1fr); }
	.cc-industries__head { flex-direction: column; align-items: flex-start; gap: 18px; }
	.cc-testimonials { grid-template-columns: 1fr; }
	.cc-footer__grid { grid-template-columns: 1fr; }
	.cc-form__row { grid-template-columns: 1fr; gap: 0; }
	.cc-form__note { text-align: left; max-width: none; }
	.cc-hero__trust { gap: 18px; }
	.cc-header__topbar .cc-container { justify-content: center; }
	.cc-topbar__items { gap: 14px; justify-content: center; }
	.cc-brand img, .cc-brand svg { max-height: 42px; }
	.woocommerce ul.products li.product { padding: 18px; --cc-card-pad: 18px; }
	.woocommerce ul.products li.product .price { font-size: 1.45rem; }
	.cc-package { --cc-card-pad: 20px; }
	.cc-hero__badge { position: static; display: block; }
}

@media (max-width: 479px) {
	.cc-industries__grid, .cc-services__list, .cc-stats { grid-template-columns: 1fr; }
	.cc-hero__cta .cc-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
	/* Never leave revealed content hidden for someone who opted out of motion. */
	body.cc-anim .cc-reveal { opacity: 1 !important; transform: none !important; }
	.cc-service:hover, .cc-stat:hover, .cc-testimonial:hover,
	.cc-package:hover, .cc-post-card:hover, .cc-industry:hover { transform: none; }
	.cc-figure:hover img, .cc-industry:hover .cc-industry__img img { transform: none; }
}

@media print {
	.cc-header, .cc-footer, .cc-callbar, .cc-quote__form, .cc-nav { display: none !important; }
	body { color: #000; padding-bottom: 0; }
}
