/*
Theme Name: Aruci Theme
Theme URI: https://www.managed-services.co.uk
Author: Managed Services
Author URI: https://www.managed-services.co.uk
Description: Custom WordPress theme for Aruci South East Ltd — Concept C Angular Brand-Forward design. Features dark hero with triple-layer overlay, parallelogram brand motifs, custom post types for Services and Projects, and Customiser controls.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aruci
Tags: custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  --aruci-crimson: #8B1A1A;
  --aruci-crimson-light: #A52525;
  --aruci-crimson-dark: #6E1515;
  --aruci-crimson-bg: rgba(139, 26, 26, 0.06);
  --aruci-crimson-border: rgba(139, 26, 26, 0.15);
  --aruci-dark: #111110;
  --aruci-dark-surface: #1A1918;
  --aruci-dark-card: #222220;
  --aruci-charcoal: #2A2928;
  --aruci-warm-white: #FAF9F7;
  --aruci-warm-gray: #F2F0EC;
  --aruci-text-primary: #1A1918;
  --aruci-text-secondary: #6B6A66;
  --aruci-text-muted: #9C9B96;
  --aruci-border-light: #E5E3DE;
  --aruci-font-display: 'Plus Jakarta Sans', sans-serif;
  --aruci-font-body: 'DM Sans', sans-serif;
  --aruci-transition: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--aruci-font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--aruci-text-primary);
  background: var(--aruci-warm-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--aruci-crimson); text-decoration: none; transition: color 0.2s var(--aruci-transition); }
a:hover { color: var(--aruci-crimson-light); }
a:focus-visible { outline: 2px solid var(--aruci-crimson); outline-offset: 2px; border-radius: 2px; }

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--aruci-font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--aruci-text-primary);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ===== ACCESSIBILITY ===== */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: #fff; border-radius: 3px; box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important; clip-path: none; color: var(--aruci-dark);
  display: block; font-size: 0.875rem; font-weight: 600; height: auto;
  left: 5px; line-height: normal; padding: 15px 23px 14px; text-decoration: none;
  top: 5px; width: auto; z-index: 100000;
}

/* ===== LAYOUT ===== */
.aruci-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.aruci-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

/* ===== NAVIGATION ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  transition: background 0.35s var(--aruci-transition), box-shadow 0.35s;
}
.site-header.scrolled {
  background: rgba(17, 17, 16, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; height: 72px; gap: 2rem;
}

.site-branding {
  flex-shrink: 0;
}
.site-branding a {
  font-family: var(--aruci-font-display);
  font-weight: 700; font-size: 1.25rem; color: #fff;
  letter-spacing: 0.03em; text-decoration: none;
  display: flex; align-items: center; gap: 0.5rem;
}
.site-branding .custom-logo {
  height: 32px; width: auto;
}
.site-branding .brand-suffix {
  font-weight: 400; font-size: 0.75rem; color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.06em; text-transform: uppercase;
}

/* Primary navigation */
.primary-navigation {
  margin-left: auto;
}
.primary-navigation .menu-list {
  display: flex; gap: 0; list-style: none; height: 72px; align-items: center;
}
.primary-navigation .menu-list > li {
  position: relative; height: 100%; display: flex; align-items: center;
}
.primary-navigation .menu-list > li > a {
  font-family: var(--aruci-font-display);
  font-size: 0.8125rem; font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none; letter-spacing: 0.02em;
  padding: 0 1rem; height: 100%;
  display: flex; align-items: center; gap: 0.375rem;
  transition: color 0.2s;
}
.primary-navigation .menu-list > li > a:hover,
.primary-navigation .menu-list > li.current-menu-item > a,
.primary-navigation .menu-list > li.current-menu-parent > a,
.primary-navigation .menu-list > li.current-menu-ancestor > a {
  color: #fff;
}

/* Dropdown chevron for items with children */
.primary-navigation .menu-item-has-children > a::after {
  content: '';
  width: 0; height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.6;
  transition: transform 0.2s;
}
.primary-navigation .menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
}

/* Dropdown */
.primary-navigation .sub-menu {
  position: absolute; top: 100%; left: 0;
  min-width: 240px; list-style: none;
  background: #fff;
  border: 1px solid var(--aruci-border-light);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.06);
  opacity: 0; visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  padding: 0.5rem 0;
  z-index: 200;
}
.primary-navigation .menu-item-has-children:hover > .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.primary-navigation .sub-menu li a {
  display: block; padding: 0.625rem 1.25rem;
  font-family: var(--aruci-font-display);
  font-size: 0.8125rem; font-weight: 500;
  color: var(--aruci-text-primary);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.primary-navigation .sub-menu li a:hover {
  background: var(--aruci-crimson-bg);
  color: var(--aruci-crimson);
}

/* Nav CTA button */
.nav-cta-btn {
  font-family: var(--aruci-font-display);
  font-size: 0.8125rem; font-weight: 600;
  color: var(--aruci-crimson);
  background: #fff;
  padding: 0.625rem 1.25rem;
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: 0.02em;
  margin-left: 1rem;
  transition: transform 0.15s, box-shadow 0.15s;
  flex-shrink: 0;
}
.nav-cta-btn:hover {
  color: var(--aruci-crimson);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Mobile hamburger */
.menu-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 36px; height: 36px; position: relative;
  margin-left: auto; padding: 0;
}
.menu-toggle span {
  display: block; width: 22px; height: 2px; background: #fff;
  position: absolute; left: 7px;
  transition: all 0.25s var(--aruci-transition);
}
.menu-toggle span:nth-child(1) { top: 10px; }
.menu-toggle span:nth-child(2) { top: 17px; }
.menu-toggle span:nth-child(3) { top: 24px; }
.menu-toggle.active span:nth-child(1) { top: 17px; transform: rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { top: 17px; transform: rotate(-45deg); }

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--aruci-dark);
}
.hero-bg {
  position: absolute; inset: 0;
}
.hero-bg img,
.hero-bg video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-overlay-base {
  position: absolute; inset: 0;
  background: rgba(15, 12, 10, 0.5);
}
.hero-overlay-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10, 8, 6, 0.6) 0%, rgba(10, 8, 6, 0.35) 45%, rgba(10, 8, 6, 0.05) 85%, transparent 100%);
}
.hero-overlay-bottom {
  position: absolute; bottom: 0; left: 0; right: 0; height: 45%;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 8, 6, 0.4) 100%);
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 1280px; width: 100%;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem) clamp(3rem, 6vh, 5rem);
}

.hero-tag {
  display: inline-block;
  font-family: var(--aruci-font-display);
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--aruci-crimson);
  background: #fff;
  padding: 0.4375rem 1rem; border-radius: 3px;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--aruci-font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 700; line-height: 1.08;
  color: #fff; margin-bottom: 0.75rem;
  max-width: 680px;
}
.hero-title .accent {
  display: inline-block;
  background: #fff;
  padding: 0.05em 0.3em;
  transform: skewX(-6deg);
}
.hero-title .accent-inner {
  display: inline-block;
  transform: skewX(6deg);
  color: var(--aruci-crimson);
}

.hero-subtitle {
  font-family: var(--aruci-font-body);
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  color: rgba(255, 255, 255, 0.75);
  max-width: 480px; line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex; gap: 0.75rem; flex-wrap: wrap;
}

/* Parallelogram accent bars */
.hero-accents {
  position: absolute;
  right: clamp(2rem, 5vw, 4rem);
  bottom: clamp(3rem, 6vh, 5rem);
  z-index: 2;
  display: flex; gap: 6px; align-items: flex-end;
}
.hero-accents .bar {
  width: 8px; border-radius: 2px;
  background: var(--aruci-crimson);
  transform: skewX(-12deg);
}
.hero-accents .bar:nth-child(1) { height: 50px; opacity: 0.5; }
.hero-accents .bar:nth-child(2) { height: 70px; opacity: 0.7; }
.hero-accents .bar:nth-child(3) { height: 45px; opacity: 0.4; }
.hero-accents .bar:nth-child(4) { height: 60px; opacity: 0.6; }

/* ===== BUTTONS ===== */
.btn-primary {
  font-family: var(--aruci-font-display);
  font-size: 0.875rem; font-weight: 600;
  color: #fff; background: var(--aruci-crimson);
  padding: 0.875rem 1.75rem; border-radius: 4px;
  text-decoration: none; display: inline-flex;
  align-items: center; gap: 0.5rem; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--aruci-crimson-light); color: #fff; transform: translateY(-1px); }
.btn-primary:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.btn-ghost {
  font-family: var(--aruci-font-display);
  font-size: 0.875rem; font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.875rem 1.75rem; border-radius: 4px;
  text-decoration: none; display: inline-flex;
  align-items: center; gap: 0.5rem;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.5); color: #fff; }

.btn-white {
  font-family: var(--aruci-font-display);
  font-size: 0.875rem; font-weight: 600;
  color: var(--aruci-crimson); background: #fff;
  padding: 0.875rem 2rem; border-radius: 4px;
  text-decoration: none; display: inline-flex;
  align-items: center; gap: 0.5rem;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-white:hover { color: var(--aruci-crimson); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15); }

/* ===== BRAND BAR ===== */
.brand-bar {
  padding: clamp(2rem, 4vw, 3.5rem) 0;
}
.brand-bar-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.25rem; max-width: 600px; margin: 0 auto;
}
.brand-card {
  padding: 1.5rem 1.75rem; border-radius: 8px; text-align: center;
  transition: transform 0.2s;
}
.brand-card:hover { transform: translateY(-2px); }
.brand-card--aruci {
  background: var(--aruci-crimson-bg);
  border: 1px solid var(--aruci-crimson-border);
}
.brand-card--arkan {
  background: var(--aruci-warm-gray);
  border: 1px solid var(--aruci-border-light);
}
.brand-card__title {
  font-family: var(--aruci-font-display);
  font-size: 1.125rem; font-weight: 700;
  margin-bottom: 0.25rem;
}
.brand-card--aruci .brand-card__title { color: var(--aruci-crimson); }
.brand-card--arkan .brand-card__title { color: var(--aruci-text-primary); }
.brand-card__desc {
  font-size: 0.875rem; color: var(--aruci-text-secondary);
  line-height: 1.5;
}

/* ===== SECTION HEADERS ===== */
.section-label {
  font-family: var(--aruci-font-display);
  font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--aruci-crimson);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--aruci-font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700; line-height: 1.15;
  color: var(--aruci-text-primary);
  margin-bottom: 0.5rem;
}
.section-subtitle {
  font-size: 1rem; color: var(--aruci-text-secondary);
  max-width: 520px; line-height: 1.6;
  margin-bottom: 2.5rem;
}

/* ===== SERVICE CARDS ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.service-card {
  position: relative; padding: 1.5rem 1.5rem 1.5rem 1.75rem;
  border-radius: 8px; border: 1px solid var(--aruci-border-light);
  background: #fff;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  overflow: hidden; cursor: pointer;
  text-decoration: none; color: inherit; display: block;
}
.service-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: var(--aruci-crimson);
  border-radius: 4px 0 0 4px;
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.25s var(--aruci-transition);
}
.service-card:hover::before { transform: scaleY(1); }
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border-color: var(--aruci-crimson-border);
}
.service-card__num {
  font-family: var(--aruci-font-display);
  font-size: 1.75rem; font-weight: 700;
  color: var(--aruci-crimson); opacity: 0.15;
  margin-bottom: 0.5rem;
}
.service-card__title {
  font-family: var(--aruci-font-display);
  font-size: 1rem; font-weight: 700;
  margin-bottom: 0.375rem;
}
.service-card__desc {
  font-size: 0.875rem; color: var(--aruci-text-secondary);
  line-height: 1.5;
}
.service-card__arrow {
  position: absolute; right: 1.25rem; bottom: 1.25rem;
  font-size: 0.875rem; color: var(--aruci-crimson);
  opacity: 0; transform: translateX(-4px);
  transition: opacity 0.2s, transform 0.2s;
}
.service-card:hover .service-card__arrow { opacity: 1; transform: translateX(0); }

/* Support services divider */
.support-divider {
  display: flex; align-items: center; gap: 1rem;
  margin: 3rem 0 1rem; padding-top: 2.5rem;
  border-top: 1px solid var(--aruci-border-light);
}
.support-divider__label {
  font-family: var(--aruci-font-display);
  font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--aruci-text-muted); white-space: nowrap;
}
.support-divider__line {
  flex: 1; height: 0; border: none;
  border-top: 1px dashed var(--aruci-border-light);
}
.support-desc {
  font-size: 0.9375rem; color: var(--aruci-text-secondary);
  line-height: 1.6; margin-bottom: 1.5rem; max-width: 520px;
}

/* Support service cards */
.services-grid--support {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.service-card--support {
  position: relative; padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  border-radius: 8px;
  background: var(--aruci-warm-gray);
  border: 1px solid var(--aruci-border-light);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  overflow: hidden; cursor: pointer;
  text-decoration: none; color: inherit; display: block;
}
.service-card--support::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: var(--aruci-text-muted);
  border-radius: 4px 0 0 4px;
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.25s var(--aruci-transition);
}
.service-card--support:hover::before { transform: scaleY(1); }
.service-card--support:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border-color: var(--aruci-text-muted);
}
.service-card--support .service-card__num {
  color: var(--aruci-crimson); opacity: 0.2;
}

/* ===== STATS ===== */
.stats-section {
  background: var(--aruci-warm-gray);
  padding: clamp(3rem, 5vw, 4rem) 0;
  position: relative; overflow: hidden;
}
.stats-section::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(
    135deg, transparent, transparent 40px,
    rgba(139, 26, 26, 0.03) 40px, rgba(139, 26, 26, 0.03) 41px
  );
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem; position: relative; z-index: 1;
}
.stat-item {
  text-align: center;
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem 1rem;
  border: 1px solid var(--aruci-border-light);
}
.stat-item__num {
  font-family: var(--aruci-font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; color: var(--aruci-crimson);
  line-height: 1;
}
.stat-item__label {
  font-family: var(--aruci-font-display);
  font-size: 0.8125rem; font-weight: 500;
  color: var(--aruci-text-secondary);
  margin-top: 0.5rem; letter-spacing: 0.03em;
}

/* ===== PROJECTS ===== */
.projects-scroll-wrapper {
  position: relative;
}
.projects-scroll {
  display: flex; gap: 1.25rem;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--aruci-border-light) transparent;
}
.projects-scroll::-webkit-scrollbar { height: 4px; }
.projects-scroll::-webkit-scrollbar-track { background: transparent; }
.projects-scroll::-webkit-scrollbar-thumb { background: var(--aruci-border-light); border-radius: 2px; }

.project-card {
  flex: 0 0 340px; max-width: 400px;
  position: relative; border-radius: 8px; overflow: hidden;
  scroll-snap-align: start;
  transition: transform 0.25s var(--aruci-transition);
  text-decoration: none; display: block;
}
.project-card:hover { transform: translateY(-4px); }
.project-card__img {
  width: 100%; aspect-ratio: 4/3;
  background: var(--aruci-dark-surface);
  position: relative; overflow: hidden;
}
.project-card__img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(10, 8, 6, 0.75) 100%);
}
.project-card__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s var(--aruci-transition);
}
.project-card:hover .project-card__img img { transform: scale(1.04); }

.project-card__info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.25rem; z-index: 1;
}
.project-card__badge {
  display: inline-block;
  font-family: var(--aruci-font-display);
  font-size: 0.6875rem; font-weight: 600;
  color: var(--aruci-crimson);
  background: #fff;
  padding: 0.25rem 0.625rem; border-radius: 3px;
  margin-bottom: 0.5rem;
}
.project-card__name {
  font-family: var(--aruci-font-display);
  font-size: 1rem; font-weight: 600;
  color: #fff; margin-bottom: 0.125rem;
}
.project-card__meta {
  font-size: 0.8125rem; color: rgba(255, 255, 255, 0.55);
}

.projects-nav {
  display: flex; gap: 0.5rem; margin-top: 1.25rem;
}
.projects-nav-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--aruci-border-light); background: #fff;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem; color: var(--aruci-text-secondary);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.projects-nav-btn:hover {
  border-color: var(--aruci-crimson); color: var(--aruci-crimson);
  background: var(--aruci-crimson-bg);
}

/* ===== CTA BAND ===== */
.cta-band {
  background: var(--aruci-crimson);
  padding: clamp(2.5rem, 4vw, 3.5rem) 0;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute;
  right: -40px; top: -40px; width: 200px; height: 200px;
  border: 30px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}
.cta-band .aruci-container {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.5rem; position: relative;
}
.cta-band__text {
  font-family: var(--aruci-font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700; color: #fff;
}
.cta-band__sub {
  font-size: 0.9375rem; font-weight: 400;
  color: rgba(255, 255, 255, 0.7); margin-top: 0.25rem;
}

/* ===== ACCREDITATIONS ===== */
.accreditations {
  background: var(--aruci-warm-gray);
  padding: 2rem 0;
}
.accred-grid {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(2rem, 4vw, 3.5rem); flex-wrap: wrap;
}
.accred-item {
  font-family: var(--aruci-font-display);
  font-size: 0.75rem; font-weight: 600;
  color: var(--aruci-text-muted);
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.5rem 1rem;
  border: 1px solid var(--aruci-border-light);
  border-radius: 4px; background: #fff;
}
.accred-item img {
  height: 40px; width: auto;
}

/* ===== PAGE HERO (Interior pages) ===== */
.page-hero {
  position: relative;
  padding: clamp(6rem, 10vw, 8rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  background: var(--aruci-dark);
  overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(
    135deg, transparent, transparent 40px,
    rgba(139, 26, 26, 0.04) 40px, rgba(139, 26, 26, 0.04) 41px
  );
}
.page-hero .aruci-container {
  position: relative; z-index: 1;
}
.page-hero__title {
  font-family: var(--aruci-font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; color: #fff;
  line-height: 1.15; margin-bottom: 0.75rem;
}
.page-hero__desc {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px; line-height: 1.65;
}

/* ===== VACANCY / ROLE CARDS ===== */
.role-category {
  margin-bottom: 3rem;
}
.role-category:last-child { margin-bottom: 0; }
.role-cat-header {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.25rem; padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--aruci-border-light);
}
.role-cat-title {
  font-family: var(--aruci-font-display);
  font-size: 1.125rem; font-weight: 700;
}
.role-cat-count {
  font-family: var(--aruci-font-display);
  font-size: 0.75rem; font-weight: 600;
  color: var(--aruci-text-primary);
  background: var(--aruci-crimson-bg);
  border: 1px solid var(--aruci-crimson-border);
  padding: 0.25rem 0.75rem; border-radius: 12px;
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.role-card {
  background: #fff;
  border: 1px solid var(--aruci-border-light);
  border-radius: 8px; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  text-decoration: none; color: inherit; display: block;
}
.role-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border-color: var(--aruci-crimson-border);
}
.role-card__img {
  width: 100%; height: 160px;
  background: var(--aruci-warm-gray);
  overflow: hidden;
}
.role-card__img img {
  width: 100%; height: 100%; object-fit: cover;
}
.role-card__body { padding: 1.125rem 1.25rem; }
.role-card__title {
  font-family: var(--aruci-font-display);
  font-size: 0.9375rem; font-weight: 700;
  margin-bottom: 0.25rem; line-height: 1.3;
}
.role-card__meta {
  display: flex; gap: 0.75rem; flex-wrap: wrap;
  margin-bottom: 0.625rem;
}
.role-card__tag {
  font-family: var(--aruci-font-display);
  font-size: 0.6875rem; font-weight: 500;
  color: var(--aruci-text-muted);
}
.role-card__desc {
  font-size: 0.8125rem; color: var(--aruci-text-secondary);
  line-height: 1.5; margin-bottom: 0.75rem;
}
.role-card__apply {
  display: inline-flex; align-items: center; gap: 0.375rem;
  font-family: var(--aruci-font-display);
  font-size: 0.8125rem; font-weight: 600;
  color: var(--aruci-crimson);
}
.role-card:hover .role-card__apply { gap: 0.625rem; }

/* Speculative CTA */
.speculative-cta {
  background: var(--aruci-warm-gray);
  border: 1px dashed var(--aruci-border-light);
  border-radius: 8px; padding: 2rem;
  text-align: center; margin-top: 2rem;
}
.speculative-cta h3 {
  font-family: var(--aruci-font-display);
  font-size: 1.125rem; font-weight: 700;
  margin-bottom: 0.375rem;
}
.speculative-cta p {
  font-size: 0.875rem; color: var(--aruci-text-secondary);
  margin-bottom: 1.25rem; line-height: 1.5;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--aruci-dark);
  padding: clamp(3rem, 5vw, 4rem) 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem; margin-bottom: 3rem;
}
.footer-brand {
  font-family: var(--aruci-font-display);
  font-size: 1.125rem; font-weight: 700;
  color: #fff; margin-bottom: 0.75rem;
}
.footer-brand span {
  font-weight: 400; font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  display: block; margin-top: 0.25rem;
  letter-spacing: 0.04em;
}
.footer-desc {
  font-size: 0.875rem; color: rgba(255, 255, 255, 0.4);
  line-height: 1.6; max-width: 280px;
}
.footer-heading {
  font-family: var(--aruci-font-display);
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 1rem;
}
.footer-links {
  list-style: none;
  display: flex; flex-direction: column; gap: 0.625rem;
}
.footer-links a {
  font-size: 0.875rem; color: rgba(255, 255, 255, 0.55);
  text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.75rem;
}
.footer-copy {
  font-size: 0.8125rem; color: rgba(255, 255, 255, 0.3);
}
.footer-credit {
  font-size: 0.75rem; color: rgba(255, 255, 255, 0.25);
}
.footer-credit a { color: rgba(255, 255, 255, 0.4); text-decoration: none; }
.footer-credit a:hover { color: rgba(255, 255, 255, 0.6); }
.footer-legal {
  display: flex; gap: 1.25rem;
}
.footer-legal a {
  font-size: 0.75rem; color: rgba(255, 255, 255, 0.25);
  text-decoration: none;
}
.footer-legal a:hover { color: rgba(255, 255, 255, 0.5); }

/* ===== SCROLL REVEAL ===== */
.aruci-reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s var(--aruci-transition), transform 0.6s var(--aruci-transition);
}
.aruci-reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .primary-navigation,
  .nav-cta-btn { display: none; }
  .menu-toggle { display: block; }
  .brand-bar-grid { grid-template-columns: 1fr; }
  .services-grid,
  .services-grid--support { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band .aruci-container { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
  .services-grid,
  .services-grid--support { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .project-card { flex: 0 0 280px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-accents { display: none; }
  .roles-grid { grid-template-columns: 1fr; }
  .accred-grid { gap: 0.75rem; }
  .accred-item { font-size: 0.625rem; padding: 0.375rem 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .aruci-reveal { opacity: 1; transform: none; }
}

/* ===== WORDPRESS SPECIFIC ===== */
.wp-block-image img { border-radius: 8px; }
.alignfull { margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); max-width: 100vw; width: 100vw; }
.alignwide { max-width: 1280px; margin-left: auto; margin-right: auto; }

/* Contact form styling */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--aruci-border-light);
  border-radius: 4px;
  font-family: var(--aruci-font-body);
  font-size: 0.9375rem;
  background: #fff;
  transition: border-color 0.2s;
}
.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--aruci-crimson);
  box-shadow: 0 0 0 3px var(--aruci-crimson-bg);
}
.wpcf7-form input[type="submit"] {
  background: var(--aruci-crimson);
  color: #fff;
  font-family: var(--aruci-font-display);
  font-weight: 600;
  padding: 0.875rem 2rem;
  border: none; border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}
.wpcf7-form input[type="submit"]:hover {
  background: var(--aruci-crimson-light);
}
