/*
Theme Name:  RFC Fire & Security Systems
Theme URI:   https://securitysystems.ie
Author:      RFC Fire & Security Systems
Author URI:  https://securitysystems.ie
Description: Custom WordPress theme for RFC Fire & Security Systems. Commercial B2B fire and security company serving Dublin and Leinster. Built for Elementor page builder with Rank Math SEO.
Version:     1.0.0
License:     Private
Text Domain: rfc-theme
Tags:        custom-theme, elementor, b2b, commercial
*/

/* ============================================================
   CSS CUSTOM PROPERTIES — change brand here, updates everywhere
   ============================================================ */
:root {
  /* Brand Colours */
  --green:          #1C4E3C;   /* RFC primary dark green */
  --green-mid:      #1A3D2E;   /* hover / active states  */
  --green-light:    #245C46;   /* lighter accent          */
  --green-pale:     #E8F5E9;   /* very light tint         */
  --green-border:   rgba(28, 78, 60, 0.18);
  --green-glow:     rgba(28, 78, 60, 0.08);
  /* Neutrals */
  --white:          #FFFFFF;
  --off-white:      #F7F8F6;
  --light-grey:     #ECEEF1;
  --border:         rgba(0, 0, 0, 0.08);
  --border-mid:     rgba(0, 0, 0, 0.14);
  /* Text */
  --text:           #010101;   /* RFC brand black */
  --text-mid:       #4B5563;
  --text-light:     #6B7280;
  --muted:          #9CA3AF;
  /* Status / Alerts */
  --amber:          #F59E0B;
  --amber-pale:     #FFFBEB;
  /* Typography */
  --font-display:   'Barlow Condensed', sans-serif;
  --font-body:      'Barlow', sans-serif;
  /* Spacing */
  --section-pad:    96px;
  --container:      1280px;
  --gap:            24px;
  /* Shadows */
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:      0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg:      0 8px 32px rgba(0,0,0,0.12);
  /* Border Radius */
  --radius:         0px;   /* RFC brand is sharp / no-radius */
  --radius-sm:      2px;
}
/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--green);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover { color: var(--green-mid); }

ul, ol { list-style: none; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 60px;
}

.section-pad { padding: var(--section-pad) 0; }

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

.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-gap     { display: flex; align-items: center; gap: var(--gap); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  color: var(--text);
}

h1 { font-size: clamp(44px, 6vw, 80px); }
h2 { font-size: clamp(32px, 4vw, 52px); }
h3 { font-size: clamp(22px, 3vw, 32px); }
h4 { font-size: 20px; }
h5 { font-size: 16px; letter-spacing: 1px; }

p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-mid);
  margin-bottom: 16px;
}

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

/* ============================================================
   SECTION LABELS & TITLES
   ============================================================ */
.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}

.section-label::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--green);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
  text-transform: uppercase;
  color: var(--text);
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.section-title span,
.section-title .green { color: var(--green); }

.section-title .white { color: var(--white); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 32px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

.btn-green {
  background: var(--green);
  color: var(--white);
}
.btn-green:hover {
  background: var(--green-mid);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-white {
  background: var(--white);
  color: var(--green);
}
.btn-white:hover {
  background: var(--green-pale);
  color: var(--green);
  transform: translateY(-1px);
}

.btn-outline-green {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
  clip-path: none;
}
.btn-outline-green:hover {
  background: var(--green);
  color: var(--white);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
  clip-path: none;
}
.btn-outline-white:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
  color: var(--white);
}

.btn-emergency {
  background: #C62828;
  color: var(--white);
}
.btn-emergency:hover {
  background: #B71C1C;
  transform: translateY(-1px);
}

/* ============================================================
   TOP BAR
   ============================================================ */
.site-topbar {
  background: var(--green);
  padding: 8px 0;
  position: relative;
  z-index: 200;
}

.site-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  color: rgba(255,255,255,0.7);
}

.site-topbar__address {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-topbar__right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-topbar__phone {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 1px;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-topbar__phone:hover { color: rgba(255,255,255,0.85); }

.site-topbar__social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-topbar__social a {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  transition: color 0.2s;
}

.site-topbar__social a:hover { color: var(--white); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo__shield {
  width: 40px;
  height: 40px;
  background: var(--green);
  clip-path: polygon(50% 0%, 100% 20%, 100% 65%, 50% 100%, 0% 65%, 0% 20%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 12px;
  color: var(--white);
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.site-logo img,
.site-logo .custom-logo-link img,
.custom-logo-link img {
  height: 44px;
  width: auto;
  display: block;
}

.custom-logo-link {
  display: flex;
  align-items: center;
}
}

.site-logo__text { display: flex; flex-direction: column; line-height: 1.1; }

.site-logo__main {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.site-logo__sub {
  font-size: 9px;
  color: var(--green);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
}

/* Primary Nav */
.primary-nav { display: flex; align-items: center; }

.primary-nav__menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0;
}

.primary-nav__menu > li {
  position: relative;
}

.primary-nav__menu > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.2s;
  line-height: 70px;
  white-space: nowrap;
}

.primary-nav__menu > li > a:hover,
.primary-nav__menu > li.current-menu-item > a,
.primary-nav__menu > li.current-menu-ancestor > a {
  color: var(--green);
}

/* Dropdown arrow */
.primary-nav__menu > li > a .arrow {
  font-size: 9px;
  transition: transform 0.2s;
  margin-top: 1px;
}

.primary-nav__menu > li:hover > a .arrow { transform: rotate(180deg); }

/* Mega / Sub Menu */
.primary-nav__menu .sub-menu {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border-top: 3px solid var(--green);
  border-bottom: 1px solid var(--border);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  list-style: none;
  z-index: 999;
}

.primary-nav__menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.primary-nav__menu .sub-menu li a {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  font-family: var(--font-body);
  color: var(--text-mid);
  border-bottom: 1px solid var(--border);
  transition: all 0.15s;
  text-decoration: none;
}

.primary-nav__menu .sub-menu li a:hover {
  background: var(--green-pale);
  color: var(--green);
  padding-left: 26px;
}

.primary-nav__menu .sub-menu li:last-child a { border-bottom: none; }

/* Nav CTA */
.nav-cta {
  display: inline-block;
  margin-left: 16px;
  background: var(--green);
  color: var(--white) !important;
  padding: 10px 20px !important;
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  line-height: 1.4 !important;
  white-space: nowrap;
  transition: background 0.2s !important;
}

.nav-cta:hover {
  background: var(--green-mid) !important;
  color: var(--white) !important;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: #143D17;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.trust-bar__inner {
  display: flex;
  animation: marquee 32s linear infinite;
  width: max-content;
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 36px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.88);
}

.trust-bar__dot {
  width: 4px;
  height: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  flex-shrink: 0;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   HERO — HOMEPAGE
   ============================================================ */
.hero {
  background: var(--green);
  min-height: calc(100vh - 108px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  position: relative;
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px 80px 80px;
  position: relative;
  z-index: 2;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 6px 14px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
  width: fit-content;
}

.hero__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #A5D6A7;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 6vw, 82px);
  line-height: 0.92;
  letter-spacing: -1px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 24px;
}

.hero__title .green  { color: #A5D6A7; }
.hero__title .outline {
  -webkit-text-stroke: 2px rgba(255,255,255,0.2);
  color: transparent;
}

.hero__subtitle {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  max-width: 460px;
  margin-bottom: 36px;
}

.hero__sectors {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 36px;
  font-style: italic;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero__stats {
  display: flex;
  gap: 40px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero__stat-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 34px;
  color: var(--white);
  line-height: 1;
}

.hero__stat-num span { color: #A5D6A7; }

.hero__stat-label {
  font-size: 10px;
  color: rgba(255,255,255,0.42);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 4px;
}

/* Hero Image Side */
.hero__image {
  position: relative;
  overflow: hidden;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.hero__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--green) 0%, transparent 40%);
}

.hero__diagonal {
  position: absolute;
  top: 0; bottom: 0; right: -20px;
  width: 56px;
  background: var(--green);
  transform: skewX(-3deg);
  z-index: 3;
}

/* ============================================================
   CERTIFICATIONS BAR
   ============================================================ */
.cert-bar {
  background: var(--white);
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.cert-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}

.cert-bar__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-light);
}

.cert-bar__icon {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-mid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 16px;
}

.cert-bar__divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.service-card {
  background: var(--white);
  padding: 36px 32px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
  text-decoration: none;
  display: block;
  color: inherit;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  z-index: 1;
  color: inherit;
}

.service-card:hover::after { transform: scaleX(1); }

.service-card__icon {
  width: 48px;
  height: 48px;
  background: var(--green-pale);
  border: 1px solid var(--green-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 20px;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}

.service-card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 10px;
}

.service-card__desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-mid);
  margin-bottom: 0;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  transition: gap 0.2s;
}

.service-card:hover .service-card__link { gap: 14px; }

/* ============================================================
   ONE-STOP SECTION
   ============================================================ */
.one-stop {
  background: var(--green);
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}

.one-stop::before {
  content: 'RFC';
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 400px;
  color: rgba(255,255,255,0.03);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.one-stop .section-label { color: #A5D6A7; }
.one-stop .section-label::before { background: #A5D6A7; }
.one-stop .section-title { color: var(--white); }
.one-stop .section-title span { color: #A5D6A7; }

.one-stop__list {
  list-style: none;
  display: grid;
  gap: 8px;
  margin: 24px 0 32px;
}

.one-stop__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: rgba(255,255,255,0.75);
}

.one-stop__check {
  width: 20px;
  height: 20px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #A5D6A7;
  flex-shrink: 0;
}

/* ============================================================
   SECTOR CARDS
   ============================================================ */
.sector-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--green);
  padding: 36px 32px;
  transition: box-shadow 0.3s, transform 0.3s;
  text-decoration: none;
  display: block;
  color: inherit;
}

.sector-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  color: inherit;
}

.sector-card__label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}

.sector-card__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 12px;
}

.sector-card__services {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.sector-card__services li {
  font-size: 13px;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sector-card__services li::before {
  content: '→';
  color: var(--green);
  font-size: 12px;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: var(--green);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: attr(data-text);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 160px;
  color: rgba(255,255,255,0.04);
  white-space: nowrap;
  letter-spacing: -8px;
  pointer-events: none;
}

.cta-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.cta-banner__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 4vw, 50px);
  text-transform: uppercase;
  line-height: 1;
  color: var(--white);
}

.cta-banner__sub {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  margin-top: 8px;
  margin-bottom: 0;
}

.cta-banner__actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-shrink: 0;
}

/* Mid-page CTA (informational pages) */
.mid-cta {
  background: var(--green-pale);
  border: 1px solid var(--green-border);
  border-left: 4px solid var(--green);
  padding: 32px 36px;
  margin: 48px 0;
}

.mid-cta__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}

.mid-cta p {
  font-size: 15px;
  color: var(--text-mid);
  margin-bottom: 16px;
}

/* ============================================================
   TRUST SIGNALS
   ============================================================ */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
}

.trust-item {
  background: var(--white);
  padding: 32px 28px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.trust-item__icon {
  width: 44px;
  height: 44px;
  background: var(--green-pale);
  border: 1px solid var(--green-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.trust-item__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 6px;
}

.trust-item p {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 0;
}

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: rgba(0,0,0,0.15);
}

.process-step {
  background: rgba(255,255,255,0.06);
  padding: 40px 28px;
  position: relative;
  border: 1px solid rgba(255,255,255,0.07);
  transition: background 0.3s;
}

.process-step:hover { background: rgba(255,255,255,0.1); }

.process-step__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 56px;
  color: rgba(255,255,255,0.1);
  line-height: 1;
  position: absolute;
  top: 16px;
  right: 16px;
}

.process-step__icon { font-size: 24px; margin-bottom: 16px; }

.process-step__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 10px;
}

.process-step p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-card {
  background: var(--white);
  padding: 36px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--green);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testimonial-card__stars { color: var(--amber); font-size: 14px; letter-spacing: 2px; }

.testimonial-card__quote {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-mid);
  flex: 1;
  margin-bottom: 0;
}

.testimonial-card__quote::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--green);
  line-height: 0.8;
  display: block;
  margin-bottom: 8px;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.testimonial-card__avatar {
  width: 38px;
  height: 38px;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--white);
  flex-shrink: 0;
}

.testimonial-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--text);
}

.testimonial-card__role { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ============================================================
   LOCATION PAGE COMPONENTS
   ============================================================ */
.location-hero {
  background: var(--green);
  padding: 80px 0;
}

.location-hero .section-label { color: #A5D6A7; }
.location-hero .section-label::before { background: #A5D6A7; }
.location-hero h1 { color: var(--white); }
.location-hero p { color: rgba(255,255,255,0.65); }

.location-map {
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
}

/* ============================================================
   INFORMATIONAL PAGE (cluster pages)
   ============================================================ */
.page-hero--info {
  background: var(--off-white);
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}

.page-hero--info h1 { color: var(--text); }

.content-body {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-mid);
}

.content-body h2 {
  font-size: 28px;
  color: var(--text);
  margin: 40px 0 16px;
  text-transform: none;
  letter-spacing: 0;
}

.content-body h3 {
  font-size: 20px;
  color: var(--text);
  margin: 28px 0 12px;
  text-transform: none;
  letter-spacing: 0;
}

.content-body ul, .content-body ol {
  list-style: none;
  margin: 16px 0;
  padding: 0;
}

.content-body ul li {
  padding: 6px 0 6px 24px;
  position: relative;
  color: var(--text-mid);
}

.content-body ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: 12px;
}

.content-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

.content-body table th {
  background: var(--green);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.content-body table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-mid);
}

.content-body table tr:nth-child(even) td { background: var(--off-white); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #0D2410;
  padding: 80px 0 0;
  border-top: 3px solid var(--green);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 56px;
}

.site-footer__brand p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,0.32);
  margin-top: 18px;
  max-width: 280px;
}

.site-footer__cert-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.site-footer__cert-badge {
  border: 1px solid rgba(27,94,32,0.5);
  background: rgba(27,94,32,0.2);
  padding: 4px 10px;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.site-footer__col-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.site-footer__links { list-style: none; }

.site-footer__links li { margin-bottom: 8px; }

.site-footer__links a {
  font-size: 14px;
  color: rgba(255,255,255,0.32);
  text-decoration: none;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-footer__links a::before {
  content: '—';
  color: var(--green-light);
  font-size: 10px;
}

.site-footer__links a:hover { color: var(--white); }

.site-footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 13px;
  color: rgba(255,255,255,0.32);
  line-height: 1.5;
}

.site-footer__contact-icon {
  width: 28px;
  height: 28px;
  background: rgba(27,94,32,0.3);
  border: 1px solid rgba(27,94,32,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.site-footer__contact-label {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  display: block;
  margin-bottom: 2px;
}

.site-footer__contact-val a {
  color: rgba(255,255,255,0.32);
  text-decoration: none;
  font-size: 13px;
}

.site-footer__psa {
  background: rgba(27,94,32,0.2);
  border: 1px solid rgba(27,94,32,0.4);
  padding: 12px 16px;
  margin-top: 20px;
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.5px;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.22);
}

.site-footer__bottom a {
  color: rgba(255,255,255,0.28);
  text-decoration: none;
}

.site-footer__bottom a:hover { color: var(--green-light); }

/* ============================================================
   PAGE HERO — INNER PAGES
   ============================================================ */
.page-hero {
  background: var(--green);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/images/pattern.svg') repeat;
  opacity: 0.04;
}

.page-hero .section-label { color: rgba(255,255,255,0.6); }
.page-hero .section-label::before { background: rgba(255,255,255,0.4); }

.page-hero h1 {
  color: var(--white);
  font-size: clamp(36px, 5vw, 64px);
  margin-bottom: 16px;
}

.page-hero__sub {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  max-width: 600px;
  margin-bottom: 0;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
  list-style: none;
}

.breadcrumbs li + li::before {
  content: '→';
  margin-right: 8px;
  color: rgba(255,255,255,0.3);
}

.breadcrumbs a { color: rgba(255,255,255,0.6); text-decoration: none; }
.breadcrumbs a:hover { color: var(--white); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.page-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: start;
}

.sidebar { position: sticky; top: 90px; }

.sidebar__widget {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--green);
  padding: 28px;
  margin-bottom: 24px;
}

.sidebar__widget-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text);
  margin-bottom: 16px;
}

.sidebar__links { list-style: none; }

.sidebar__links li { border-bottom: 1px solid var(--border); }

.sidebar__links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.2s;
}

.sidebar__links a:hover { color: var(--green); }
.sidebar__links a::before { content: '→'; color: var(--green); font-size: 11px; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.contact-info__icon {
  width: 44px;
  height: 44px;
  background: var(--green-pale);
  border: 1px solid var(--green-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-info__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 4px;
}

.contact-info__value {
  font-size: 16px;
  color: var(--text);
  font-weight: 500;
}

.contact-commercial-note {
  background: var(--amber-pale);
  border: 1px solid var(--amber);
  border-left: 4px solid var(--amber);
  padding: 16px 20px;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-mid);
}

/* ============================================================
   FORMS
   ============================================================ */
.rfc-form { display: grid; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-mid);
}

.form-input,
.form-select,
.form-textarea {
  padding: 12px 16px;
  border: 1px solid var(--border-mid);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  transition: border-color 0.2s;
  width: 100%;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--green);
}

.form-textarea { resize: vertical; min-height: 120px; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-up { animation: fadeUp 0.6s ease both; }

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ============================================================
   RESPONSIVE

/* ============================================================
   RESPONSIVE — RFC FIRE & SECURITY
   ============================================================ */

/* ── HERO — Full bleed image, dark overlay, all sizes ── */
.hero {
    position: relative !important;
    background: var(--green);
    min-height: calc(100vh - 108px);
    display: flex !important;
    align-items: center;
    overflow: hidden;
}

.hero__image {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-image: url('https://securitysystems.ie/wp-content/uploads/2026/05/Security-Systems-Fire.jpg') !important;
    background-size: cover !important;
    background-position: center right !important;
    z-index: 0 !important;
}

.hero__image img { display: none !important; }
.hero__image-overlay { display: none !important; }
.hero__diagonal { display: none !important; }

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0,0,0,0.88) 0%,
        rgba(0,0,0,0.72) 50%,
        rgba(0,0,0,0.35) 100%
    );
    z-index: 1;
}

.hero__content {
    position: relative !important;
    z-index: 2 !important;
    padding: 80px 60px 80px 100px !important;
    max-width: 760px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ── HEADER — Desktop layout ── */
.site-header .container { max-width: 100%; padding: 0 40px; }

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    width: 100%;
}

.primary-nav {
    position: static;
    transform: none;
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 0 20px;
}

.site-logo { flex-shrink: 0; width: 160px; }
.nav-cta   { flex-shrink: 0; width: 160px; text-align: right; }

/* ── Logo image ── */
.site-logo .custom-logo-link img,
.custom-logo-link img {
    display: block !important;
    height: 44px !important;
    width: auto !important;
    max-width: none !important;
}

/* ── WPForms phone fix ── */
.contact-form-wrapper .wpforms-container .wpforms-field-phone input,
.contact-form-wrapper .wpforms-container input[type="number"] {
    border: 1px solid var(--border-mid) !important;
    border-radius: 0 !important;
    font-family: var(--font-body) !important;
    font-size: 15px !important;
    padding: 12px 16px !important;
    width: 100% !important;
    background: var(--white) !important;
}

/* ── Cert bar images ── */
.cert-bar__item img { height: 70px !important; width: auto !important; display: block; }

/* ── Animation fix ── */
.service-card, .sector-card, .testimonial-card, .trust-item, .process-step {
    opacity: 1 !important;
    transform: none !important;
}

/* ============================================================
   TABLET & LAPTOP — max-width: 1300px
   ============================================================ */
@media (max-width: 1300px) {

    /* ── Nav — 3 col grid centres logo ── */
    .site-header .container { padding: 0 20px; }

    .site-header__inner {
        display: grid !important;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        height: 70px;
        padding: 0 16px;
    }

    .site-branding { grid-column: 2; justify-self: center; }

    .nav-toggle {
        grid-column: 3;
        justify-self: end;
        display: flex !important;
        z-index: 1001;
        position: relative;
    }

    .nav-cta { display: none !important; }

    /* Desktop sub-menu hover stays off — override with mobile styles */
    .primary-nav {
        display: none !important;
        position: fixed;
        top: 70px; left: 0; right: 0; bottom: 0;
        background: var(--white);
        border-top: 3px solid var(--green);
        padding: 24px 20px;
        z-index: 999;
        flex-direction: column;
        overflow-y: auto;
        margin: 0;
        flex: none;
        justify-content: flex-start;
    }

    .primary-nav.is-open { display: flex !important; }

    .primary-nav__menu {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .primary-nav__menu > li > a {
        padding: 16px 0;
        border-bottom: 1px solid var(--border);
        width: 100%;
        display: flex;
        line-height: 1.4;
        font-size: 16px;
    }

    /* Sub-menus: hidden by default, toggle on click */
    .primary-nav__menu .sub-menu {
        display: none !important;
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        background: var(--off-white);
        padding: 8px 0 8px 16px;
        min-width: 0;
    }

    .primary-nav__menu .sub-menu.is-open {
        display: block !important;
    }

    .primary-nav__menu > li.is-open > a .arrow {
        transform: rotate(180deg);
    }

    /* ── Layout ── */
    .container { padding: 0 32px; }
    .grid-4 { grid-template-columns: 1fr 1fr; }
    .process-steps { grid-template-columns: 1fr 1fr; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
    .page-with-sidebar { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .cert-bar__inner { gap: 24px !important; flex-wrap: wrap !important; justify-content: center; }
    .cert-bar__item img { height: 60px !important; }
    .cert-bar__divider { display: none; }

    /* ── Hero ── */
    .hero__content { padding: 60px 40px !important; max-width: 100%; }
}

/* ============================================================
   MOBILE — max-width: 768px
   ============================================================ */
@media (max-width: 768px) {

    :root { --section-pad: 56px; }

    .container { padding: 0 16px; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
    .site-topbar__address { display: none; }
    .custom-logo-link img { height: 36px !important; }

    /* ── Hero ── */
    .hero { min-height: 100svh; align-items: flex-start; }
    .hero__content { padding: 48px 20px 40px !important; max-width: 100%; }
    .hero__title { font-size: clamp(34px, 10vw, 52px) !important; line-height: 0.95; }
    .hero__title .outline { -webkit-text-stroke: 2px rgba(255,255,255,0.35) !important; }
    .hero__subtitle { font-size: 15px; max-width: 100%; }
    .hero__actions { flex-direction: column; gap: 12px; }
    .hero__actions .btn { width: 100%; text-align: center; }
    .hero__stats { flex-wrap: wrap; gap: 20px; }

    /* ── Cert bar — auto scroll on mobile ── */
    .cert-bar { padding: 24px 0; overflow: hidden; }
    .cert-bar__inner {
        display: flex !important;
        flex-wrap: nowrap !important;
        width: max-content;
        animation: certScroll 22s linear infinite;
        gap: 32px !important;
        padding: 0 !important;
        justify-content: flex-start !important;
    }
    .cert-bar__inner:hover { animation-play-state: paused; }
    .cert-bar__item img { height: 56px !important; }
    .cert-bar__divider { display: none; }

    @keyframes certScroll {
        from { transform: translateX(0); }
        to   { transform: translateX(-50%); }
    }

    /* ── Other sections ── */
    .cta-banner__inner { flex-direction: column; text-align: center; }
    .cta-banner__actions { justify-content: center; flex-wrap: wrap; }
    .testimonial-card { padding: 24px 20px; }
    .site-footer { padding: 48px 0 0; }
    .site-footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
    .page-hero { padding: 40px 0; }
    .location-hero { padding: 48px 0; }
    .page-hero--info { padding: 40px 0; }
}

/* ============================================================
   SMALL MOBILE — max-width: 480px
   ============================================================ */
@media (max-width: 480px) {
    .hero__actions { flex-direction: column; }
    .hero__actions .btn { width: 100%; text-align: center; }
    .hero__stat-num { font-size: 26px; }
    .trust-item { padding: 24px 16px; }
    .service-card { padding: 28px 20px; }
    .sector-card { padding: 28px 20px; }
}

/* ══ ISO CERT BAR — appears above footer on every page ══ */
.iso-cert-bar {
    background: #f8f8f8;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    padding: 28px 0;
}

.iso-cert-bar__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.iso-cert-bar__inner img {
    height: 80px;
    width: auto;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter 0.2s;
}

.iso-cert-bar__inner img:hover {
    filter: grayscale(0%);
}

@media (max-width: 768px) {
    .iso-cert-bar__inner {
        gap: 24px;
        padding: 0 20px;
    }
    .iso-cert-bar__inner img {
        height: 56px;
    }
}
