/* === VARIABLES === */
:root {
  --red:        #e8001d;
  --dark:       #111111;
  --mid:        #444444;
  --light-grey: #f5f5f5;
  --border:     #e0e0e0;
  --white:      #ffffff;
  --radius:     6px;
  --shadow:     0 2px 10px rgba(0,0,0,0.08);
  --max:        1200px;
  --font:       'Open Sans', sans-serif;
}

/* === BASE === */
body { font-family: var(--font); color: var(--mid); font-size: 15px; line-height: 1.7; background: var(--white); }
h1 { font-size: 2em; color: var(--dark); margin-bottom: 16px; line-height: 1.2; }
h2 { font-size: 1.5em; color: var(--dark); margin-bottom: 12px; }
h3 { font-size: 1.2em; color: var(--dark); margin-bottom: 10px; }
p  { margin-bottom: 14px; }
a  { color: var(--red); }
a:hover { text-decoration: none; }
strong { color: var(--dark); }
ul.cms li, .cms ul li { margin-bottom: 8px; padding-left: 14px; position: relative; }
ul.cms li::before, .cms ul li::before { content: '–'; position: absolute; left: 0; color: var(--red); }

/* === LAYOUT === */
#outer_container { min-height: 100vh; display: flex; flex-direction: column; }
#page_wrapper { flex: 1; }
.page_width { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 60px 0; }
.section-grey { background: var(--light-grey); }
.section-dark { background: var(--dark); }
.clear::after { content: ''; display: table; clear: both; }

/* === BUTTONS === */
.btn { display: inline-block; padding: 12px 28px; border-radius: var(--radius); font-weight: 600; font-size: 14px; cursor: pointer; transition: opacity .2s, transform .1s; border: none; }
.btn:hover { opacity: .9; text-decoration: none; transform: translateY(-1px); }
.btn-red   { background: var(--red);  color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.5); }
.btn-outline:hover { border-color: var(--white); }
.btn-dark  { background: var(--dark); color: var(--white); }

/* === TOP BAR === */
#top_wrapper { background: var(--white); border-bottom: 1px solid var(--border); padding: 50px 0; }
#top_wrapper .page_width { display: flex; align-items: center; justify-content: space-between; }
#top_left a { display: block; }
#top_left img { height: 44px; width: auto; }
#top_right { display: flex; align-items: center; gap: 16px; }
#top_right ul { display: flex; gap: 10px; align-items: center; }
#top_right ul li a { color: var(--mid); font-size: 18px; transition: color .2s; }
#top_right ul li a:hover { color: var(--red); }
.tr_call { font-size: 13px; color: var(--mid); }
.tr_call a { color: var(--dark); font-weight: 600; }
.tr_call a:hover { color: var(--red); text-decoration: none; }

/* === NAV === */
.nav_wrapper { background: var(--dark); position: sticky; top: 0; z-index: 100; }
#menu_wrapper { position: relative; }
.main_nav { display: flex; align-items: stretch; gap: 0; }
.main_nav > li > a {
  display: block; padding: 16px 18px; color: rgba(255,255,255,.85);
  font-size: 13px; font-weight: 600; letter-spacing: .3px;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.main_nav > li > a:hover,
.main_nav > li > a.on { background: var(--red); color: var(--white); text-decoration: none; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 14px 0; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: .3s; }

/* Dropdown */
.has_dropdown { position: relative; }
.dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--white); border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  min-width: 220px; box-shadow: var(--shadow); z-index: 200;
  padding: 8px 0;
}
.has_dropdown:hover .dropdown { display: block; }
.dropdown li a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 18px; color: var(--mid); font-size: 13px;
  transition: background .15s, color .15s;
}
.dropdown li a:hover { background: var(--light-grey); color: var(--red); text-decoration: none; }
.dropdown li a i { width: 16px; color: var(--red); font-size: 14px; }

/* === PAGE HEADER BAND === */
.page-header-band { background: #202020; padding: 40px 0; }
.page-header-band h1 { color: var(--white); margin-bottom: 4px; }
.page-header-band h2 { color: rgba(255,255,255,.6); font-size: 1em; font-weight: 400; margin: 0; }

/* === HERO (HOMEPAGE) === */
.hero { background: var(--dark); text-align: center; padding: 90px 24px 80px; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(232,0,29,.03) 40px, rgba(232,0,29,.03) 41px);
}
.hero-inner { position: relative; max-width: 720px; margin: 0 auto; }
.hero-label { color: var(--red); font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 18px; }
.hero h1 { color: var(--white); font-size: 2.8em; margin-bottom: 18px; }
.hero-sub { color: rgba(255,255,255,.65); font-size: 1.05em; margin-bottom: 36px; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Service tiles row */
.service-tiles { padding: 40px 0; background: var(--white); border-bottom: 1px solid var(--border); }
.tiles-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.service-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 20px 12px; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); text-align: center; gap: 8px;
  transition: border-color .2s, box-shadow .2s; color: var(--mid); font-size: 12px; font-weight: 600;
}
.service-tile:hover { border-color: var(--red); box-shadow: var(--shadow); text-decoration: none; color: var(--red); }
.service-tile i { font-size: 22px; color: var(--red); }

/* Stats row */
.stats-section { padding: 50px 0; background: #e7e7e7; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat-block { text-align: center; }
.stat-number { font-size: 2.8em; font-weight: 800; color: var(--red); line-height: 1; }
.stat-label  { color: var(--mid); font-size: 14px; margin-top: 4px; }

/* === SECTION HEADINGS === */
.section-heading { text-align: center; margin-bottom: 40px; }
.section-heading h2 { font-size: 1.8em; }
.section-heading p  { color: var(--mid); max-width: 560px; margin: 8px auto 0; }

/* === SERVICE HUB CARDS === */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; transition: box-shadow .2s, border-color .2s;
}
.service-card:hover { box-shadow: var(--shadow); border-color: var(--red); text-decoration: none; }
.service-card i { font-size: 28px; color: var(--red); margin-bottom: 12px; display: block; }
.service-card h3 { color: var(--dark); margin-bottom: 8px; }
.service-card p  { color: var(--mid); font-size: 13px; margin-bottom: 14px; }
.service-card .learn-more { color: var(--red); font-size: 13px; font-weight: 600; }

/* === INDIVIDUAL SERVICE PAGE === */
.service-hero { background: var(--dark); padding: 70px 24px; }
.service-hero-inner { max-width: var(--max); margin: 0 auto; }
.service-hero-label { color: var(--red); font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 14px; }
.service-hero h1 { color: var(--white); margin-bottom: 10px; }
.service-hero-sub { color: rgba(255,255,255,.65); font-size: 1.05em; max-width: 600px; }

.service-intro { padding: 50px 0; }
.service-intro p { font-size: 1.05em; line-height: 1.8; color: var(--mid); margin: 0 0 20px; }
.service-intro p:last-child { margin-bottom: 0; }

/* === GETTING STARTED SECTION === */
.getting-started-section { background: #eee; }
.gs-layout { display: grid; grid-template-columns: 3fr 2fr; gap: 60px; align-items: start; margin-top: 48px; }
.gs-steps { }
.gs-step { display: flex; gap: 20px; margin-bottom: 32px; }
.gs-step:last-child { margin-bottom: 0; }
.gs-step-num {
  width: 40px; height: 40px; min-width: 40px; border-radius: 50%;
  background: var(--red); color: var(--white); font-weight: 700; font-size: 16px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.gs-step-body h3 { font-size: 1em; color: var(--dark); margin-bottom: 6px; }
.gs-step-body p { color: var(--mid); font-size: 14px; line-height: 1.65; margin: 0; }
.gs-card {
  background: var(--white); border-radius: var(--radius); padding: 28px;
  margin-bottom: 20px; box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.gs-card:last-child { margin-bottom: 0; }
.gs-card h3 { font-size: 1em; color: var(--dark); margin-bottom: 12px; }
.gs-card p { color: var(--mid); font-size: 13px; line-height: 1.65; margin-bottom: 10px; }
.gs-card p:last-child { margin-bottom: 0; }
.gs-card ul { padding-left: 18px; margin: 0; }
.gs-card ul li { color: var(--mid); font-size: 13px; line-height: 1.65; margin-bottom: 6px; }
.gs-card-red { background: var(--red); border-radius: var(--radius); }
.gs-card-red h3 { color: var(--white); }
.gs-card-red p { color: rgba(255,255,255,.85); }

.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 50px 0; }
.feature-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px;
}
.feature-card i { font-size: 26px; color: var(--red); margin-bottom: 12px; display: block; }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--mid); font-size: 13px; margin: 0; }

/* Portfolio strip on service page */
.portfolio-strip { padding: 50px 0; background: var(--light-grey); }
.portfolio-strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.portfolio-thumb {
  aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius);
  position: relative; display: block;
}
.portfolio-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.portfolio-thumb:hover img { transform: scale(1.05); }
.portfolio-thumb-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  color: var(--white); padding: 20px 12px 12px; font-size: 12px; font-weight: 600;
}

/* === ENQUIRY FORM === */
.enquiry-section { padding: 60px 0; }
.enquiry-section h2 { margin-bottom: 6px; }
.enquiry-section .sub { color: var(--mid); margin-bottom: 28px; }
.enquiry-wrap { max-width: 640px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border);
  border-radius: var(--radius); font-family: var(--font); font-size: 14px;
  transition: border-color .2s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--red); }
.form-group textarea { min-height: 120px; resize: vertical; }
.honeypot { display: none !important; }
.form-msg { margin-top: 14px; padding: 12px 16px; border-radius: var(--radius); font-size: 14px; display: none; }
.form-msg.success { background: #e8f5e9; color: #2e7d32; display: block; }
.form-msg.error   { background: #fce4e4; color: #c62828; display: block; }

/* === BLOG === */
.blog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.blog-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .2s;
}
.blog-card:hover { box-shadow: var(--shadow); text-decoration: none; }
.blog-card-img { aspect-ratio: 1/1; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.blog-card:hover .blog-card-img img { transform: scale(1.07); }
.blog-card-img.placeholder { background: var(--light-grey); }
.blog-card-body { padding: 20px; flex: 1; }
.blog-card-date { font-size: 11px; color: var(--mid); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.blog-card-body h3 { font-size: 1.1em; color: var(--dark); margin-bottom: 8px; }
.blog-card-body p { color: var(--mid); font-size: 13px; }

/* Blog post */
.blog-post-layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }
.blog-post-content { padding: 0px 0; }
.blog-post-content h2, .blog-post-content h3 { margin: 0px 0 16px; }
.blog-post-content p  { margin-bottom: 16px; line-height: 1.8; }
.blog-post-content img {
	border-radius: var(--radius);
	margin: 20px 0;
	max-width: 100%;
	border: 1px solid #000;
}
.blog-post-content ul, .blog-post-content ol { padding-left: 24px; margin-bottom: 16px; }
.blog-post-content ul li { list-style: disc; margin-bottom: 6px; }
.blog-post-content ol li { list-style: decimal; margin-bottom: 6px; }
.blog-post-sidebar {
	padding-top: 0px;
	position: sticky;
	top: 104px;
}
.blog-sidebar-card { background: var(--light-grey); border-radius: var(--radius); padding: 24px; }
.blog-sidebar-card h3 { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--mid); margin-bottom: 20px; }
.blog-sidebar-post { display: flex; gap: 12px; margin-bottom: 18px; text-decoration: none; align-items: flex-start; }
.blog-sidebar-post:last-child { margin-bottom: 0; }
.blog-sidebar-thumb { width: 62px; height: 62px; min-width: 62px; border-radius: 6px; overflow: hidden; background: var(--border); flex-shrink: 0; }
.blog-sidebar-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.blog-sidebar-post:hover .blog-sidebar-thumb img { transform: scale(1.08); }
.blog-sidebar-body h4 { font-size: 13px; color: var(--dark); line-height: 1.4; margin-bottom: 4px; }
.blog-sidebar-body span { font-size: 11px; color: var(--mid); }

/* === PORTFOLIO === */
.portfolio-cats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.pcat-btn {
  padding: 7px 16px; border-radius: 20px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--border); color: var(--mid); cursor: pointer; transition: .2s;
}
.pcat-btn:hover, .pcat-btn.active { background: var(--red); color: var(--white); border-color: var(--red); text-decoration: none; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.portfolio-item {
  aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius);
  position: relative; display: block;
}
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.portfolio-item:hover img { transform: scale(1.05); }
.portfolio-item-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  color: var(--white); padding: 30px 14px 14px; font-size: 13px; font-weight: 600;
}

/* === TESTIMONIALS === */
.testimonials-section {
	background: var(--light-grey);
	padding: 60px 0;
	background-image: url('/img/backgrounds/wall_horizontal.jpg');
}
.testimonial-slide { padding: 10px 30px; }
.testimonial-card {
	background: var(--white);
	border-radius: var(--radius);
	padding: 28px 32px;
	box-shadow: 0px 0px 8px #aaa;
	max-width: 700px;
	margin: 0 auto;
	text-align: center;
}
.testimonial-text { font-size: 1.05em; font-style: italic; color: var(--mid); margin-bottom: 16px; }
.testimonial-author { font-weight: 700; color: var(--dark); font-size: 14px; }
.testimonial-company { color: var(--red); font-size: 13px; margin-top: 2px; }

/* === FOOTER === */
#footer_wrapper { background: var(--dark); color: rgba(255,255,255,.65); margin-top: auto; }
.footer-main { padding: 50px 0 40px; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-col h4 { color: var(--white); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-col p, .footer-col a { font-size: 13px; color: rgba(255,255,255,.6); line-height: 1.8; }
.footer-col a:hover { color: var(--white); text-decoration: none; }
.footer-col ul li { margin-bottom: 5px; }
.footer-col ul li a::before { content: '→ '; color: var(--red); }
.footer-col .fa { margin-right: 8px; color: var(--red); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: 12px; color: rgba(255,255,255,.4); }
.footer-bottom a { color: rgba(255,255,255,.4); }
.footer-bottom a:hover { color: var(--white); }
.dumpbase { padding: 10px 0 16px; font-size: 11px; color: rgba(255,255,255,.25); }
.dumpbase a { color: rgba(255,255,255,.25); }

/* === MISC === */
.page_nav { margin: 30px 0; }
.page_nav ul { display: flex; gap: 6px; flex-wrap: wrap; }
.page_nav ul li a { display: block; padding: 6px 12px; border: 1px solid var(--border); border-radius: 3px; font-size: 13px; color: var(--mid); }
.page_nav ul li a.page_on { background: var(--red); color: var(--white); border-color: var(--red); }
.page_nav ul li a:hover  { border-color: var(--red); color: var(--red); text-decoration: none; }
.breadcrumb { display: flex; gap: 8px; margin-bottom: 20px; font-size: 13px; }
.breadcrumb li::after { content: '/'; margin-left: 8px; color: var(--border); }
.breadcrumb li:last-child::after { content: ''; }

/* === SERVICE CAROUSEL === */
.service-carousel-wrap {
  position: relative; overflow: hidden;
  height: 65vh; min-height: 460px; max-height: 700px;
}
.sc-slides { position: relative; height: 100%; }
.sc-slide {
  position: absolute; inset: 0;
  background: var(--dark); overflow: hidden;
  opacity: 0; transition: opacity 0.9s ease; z-index: 1;
}
.sc-slide.sc-active { opacity: 1; z-index: 2; }
.sc-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.5) 60%, rgba(0,0,0,.35) 100%);
}
.sc-bg-icon {
  position: absolute; right: -20px; top: 50%; transform: translateY(-50%);
  font-size: 340px; color: rgba(255,255,255,.045); line-height: 1; pointer-events: none;
}
.sc-content {
  position: absolute; inset: 0; display: flex; align-items: center; z-index: 2;
}
.sc-label {
  color: var(--red); font-size: 11px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; margin-bottom: 10px;
}
.sc-name { color: rgba(255,255,255,.55); font-size: 13px; font-weight: 600; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; }
.sc-content h1 { color: var(--white); font-size: 2.6em; margin-bottom: 12px; line-height: 1.15; max-width: 700px; }
.sc-content p { color: rgba(255,255,255,.7); font-size: 1.05em; max-width: 560px; margin-bottom: 28px; }
.sc-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* Custom carousel arrows & dots */
.sc-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	background: rgba(255,255,255,0);
	color: var(--white);
	width: 62px;
	height: 62px;
	border-radius: 50%;
	border: none;
	font-size: 100px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .2s;
	user-select: none;
	font-weight: 100;
}
.sc-arrow:hover { color: var(--red); }
.sc-prev { left: 22px; }
.sc-next { right: 22px; }
.sc-dots { position: absolute; bottom: 20px; width: 100%; text-align: center; z-index: 10; }
.sc-dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,.35); margin: 0 5px; cursor: pointer;
  transition: background .2s, transform .2s;
}
.sc-dot.active { background: var(--red); transform: scale(1.35); }

/* === SCROLL ANIMATIONS === */
.scroll-anim {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.scroll-anim.visible {
  opacity: 1;
  transform: translateY(0);
}
pre {
	background-color: #000;
	padding: 30px;
	margin-bottom: 16px;
	color: #d8d8d8;
	overflow: hidden;
	border-radius: 10px;
	font-size: 12px;
	max-width: 800px;
}
