/*
Theme Name: RFC Security Group
Theme URI: https://www.rfcsecuritygroup.com
Author: Cobify
Description: Lean, hand-coded WordPress theme for RFC Security Group — security & cleaning services across Ireland. No page builder; fast, template-based pages.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: rfc
*/


:root {
  --green: #1C4E3C;
  --green-700: #12382b;
  --green-600: #1C4E3C;

  --lime: #2f9e6a;
  --lime-500: #268a59;

  --ink: #111815;
  --slate: #4a5751;
  --line: #e4e9e6;
  --paper: #ffffff;
  --mist: #f4f7f5;
  --amber: #e8a13a;

  --radius: 14px;

  --shadow: 0 10px 30px -12px rgba(28, 78, 60, .18);
  --shadow-lg: 0 26px 60px -24px rgba(11, 24, 21, .35);

  --fd: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --fb: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --hero-image: url('/images/hero-security.jpg');
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--fb);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--fd);
  line-height: 1.14;
  letter-spacing: -.02em;
  font-weight: 500;
}

.eyebrow {
  font-family: var(--fd);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--lime-500);
}


/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--fd);
  font-weight: 600;
  font-size: .95rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  transition: .2s;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--green);
  color: #fff;
}

.btn-primary:hover {
  background: var(--green-700);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--green);
  color: var(--green);
}


/* Top Bar */

.topbar {
  background: var(--ink);
  color: #cfe0d7;
  font-size: .82rem;
}

.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40px;
  gap: 1rem;
}

.topbar a {
  color: #cfe0d7;
}

.topbar a:hover {
  color: #fff;
}

.tb-left {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.tb-right {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  display: inline-block;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(47, 158, 106, .55);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(47, 158, 106, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(47, 158, 106, 0);
  }
}


/* Region Switch */

.region {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  overflow: hidden;
}

.region a {
  padding: .15rem .7rem;
  font-weight: 600;
  font-family: var(--fd);
  font-size: .72rem;
}

.region a.active {
  background: var(--lime);
  color: var(--ink);
}


/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 115px;
}

.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--fd);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -.03em;
}

/* Main RFC header logo */
.header .logo img {
  height: 90px;
  width: auto;
  max-width: none;
  display: block;
}

.logo .mark {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--green);
  display: grid;
  place-items: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.logo .mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 55%, var(--lime) 55%);
}

.logo .mark span {
  position: relative;
  z-index: 1;
}

.logo b {
  color: var(--green);
}


/* Navigation */

.menu {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
  font-weight: 500;
  font-size: .95rem;
}

.menu a {
  transition: .2s;
}

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

.menu .has-caret::after {
  content: "▾";
  font-size: .7rem;
  margin-left: .3rem;
  color: var(--slate);
}

.nav-cta {
  display: flex;
  gap: .6rem;
  align-items: center;
}

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.burger span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}


/* Breadcrumb */

.crumb {
  background: var(--mist);
  border-bottom: 1px solid var(--line);
  font-size: .82rem;
}

.crumb .wrap {
  padding: .7rem 24px;
  display: flex;
  gap: .5rem;
  align-items: center;
  color: var(--slate);
}

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

.crumb .sep {
  color: #c3cdc8;
}

.crumb .cur {
  color: var(--ink);
  font-weight: 600;
}


/* Service Hero */

.shero {
  position: relative;
  color: #fff;
  overflow: hidden;

  background:
    linear-gradient(
      100deg,
      var(--ink) 0%,
      rgba(18, 56, 43, .9) 40%,
      rgba(28, 78, 60, .5) 66%,
      rgba(28, 78, 60, .18) 100%
    ),
    var(--hero-image) center / cover no-repeat,
    linear-gradient(160deg, var(--ink), var(--green-700) 130%);
}

.shero .wrap {
  position: relative;
  padding: 4.4rem 24px 4.6rem;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.shero-copy {
  max-width: 62%;
}

.shero .eyebrow {
  color: var(--lime);
}

.shero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: #fff;
  margin: .7rem 0 1rem;
}

.shero p {
  font-size: 1.15rem;
  color: #c9d8d0;
  max-width: 38rem;
  margin-bottom: 1.6rem;
}

.shero .btns {
  display: flex;
  gap: .7rem;
  flex-wrap: wrap;
}

.shero .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .3);
}

.shero .btn-ghost:hover {
  border-color: #fff;
  color: #fff;
}


/* General Sections */

.section {
  padding: 4.5rem 0;
}

.intro {
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
}

.intro h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  margin: .6rem 0 1rem;
}

.intro p {
  color: var(--slate);
  margin-bottom: 1rem;
}


/* Services */

.svc-sec {
  background: var(--mist);
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
  margin-top: 1rem;
}

.svc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem;
  transition: .25s;
  position: relative;
  overflow: hidden;
  display: block;
}

.svc::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 3px;
  width: 0;
  background: var(--lime);
  transition: .3s;
}

.svc:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.svc:hover::before {
  width: 100%;
}

.svc .ico {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--mist);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.svc h3 {
  font-size: 1.12rem;
  margin-bottom: .4rem;
}

.svc p {
  font-size: .88rem;
  color: var(--slate);
  margin-bottom: .9rem;
}

.svc .more {
  font-family: var(--fd);
  font-weight: 600;
  font-size: .83rem;
  color: var(--lime-500);
}


/* Why Cards */

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-top: 2rem;
}

.why-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.why-card .ico {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  margin-bottom: .9rem;
}

.why-card h3 {
  font-size: 1rem;
  margin-bottom: .35rem;
}

.why-card p {
  font-size: .86rem;
  color: var(--slate);
}


/* Sectors */

.sectors {
  background: var(--ink);
  color: #fff;
}

.sectors .eyebrow {
  color: var(--lime);
}

.sectors h2 {
  color: #fff;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.8rem;
}

.chip {
  border: 1px solid rgba(255, 255, 255, .15);
  background: rgba(255, 255, 255, .03);
  border-radius: 999px;
  padding: .6rem 1.2rem;
  font-family: var(--fd);
  font-weight: 500;
  font-size: .9rem;
  transition: .2s;
}

.chip:hover {
  background: rgba(47, 158, 106, .14);
  border-color: var(--lime);
}


/* Bridge */

.bridge {
  background: var(--mist);
}

.bridge .wrap {
  padding: 2.6rem 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.bridge-copy h3 {
  font-size: 1.4rem;
  margin-bottom: .3rem;
}

.bridge-copy p {
  color: var(--slate);
  font-size: .95rem;
  max-width: 38rem;
}


/* FAQ */

.faq {
  background: #fff;
}

.faq-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: .8rem;
  overflow: hidden;
}

.faq-q {
  padding: 1.1rem 1.4rem;
  font-family: var(--fd);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-q::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--green);
  flex: none;
  transition: .2s;
}

.faq-item.open .faq-q::after {
  content: "−";
}

.faq-a {
  padding: 0 1.4rem;
  max-height: 0;
  overflow: hidden;
  transition: .3s;
  color: var(--slate);
  font-size: .93rem;
}

.faq-item.open .faq-a {
  padding: 0 1.4rem 1.2rem;
  max-height: 320px;
}


/* CTA */

.cta {
  background: linear-gradient(160deg, var(--green-700), var(--ink));
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -8%;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 158, 106, .22), transparent 70%);
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
}

.cta h2 {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  color: #fff;
  margin-bottom: 1rem;
}

.cta p {
  color: #c9d8d0;
  margin-bottom: 1.4rem;
}

.cta .clist {
  list-style: none;
}

.cta .clist li {
  display: flex;
  gap: .6rem;
  align-items: center;
  margin-bottom: .5rem;
  color: #dbe7e0;
}

.cta .clist .ck {
  color: var(--lime);
}


/* CTA Form */

.cta-form {
  background: #fff;
  color: var(--ink);
  border-radius: 18px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.cta-form h3 {
  margin-bottom: 1.2rem;
}

.field {
  margin-bottom: .85rem;
}

.field label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: .3rem;
  font-family: var(--fd);
}

.field input,
.field select {
  width: 100%;
  padding: .7rem .85rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: var(--fb);
  font-size: .92rem;
  background: var(--mist);
  transition: .2s;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--lime);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47, 158, 106, .12);
}

.cta-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
}

.cta-form .btn {
  width: 100%;
  justify-content: center;
  margin-top: .4rem;
}


/* Footer */

.footer {
  background: var(--ink);
  color: #a9bcb2;
  padding: 4rem 0 0;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer .logo {
  color: #fff;
  margin-bottom: 1rem;
}

/* Footer logo — white against dark background */
.footer .logo img {
  width: 160px;
  height: auto;
  max-width: none;
  filter: brightness(0) invert(1);
}

.footer h4 {
  color: #fff;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-family: var(--fd);
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: .55rem;
  font-size: .88rem;
}

.footer a:hover {
  color: var(--lime);
}

.foot-about {
  font-size: .88rem;
  max-width: 22rem;
  margin-bottom: 1.2rem;
}

.foot-offices div {
  margin-bottom: .8rem;
  font-size: .86rem;
  line-height: 1.5;
}

.foot-offices b {
  color: #fff;
  display: block;
  font-family: var(--fd);
  font-size: .8rem;
}

.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 1.4rem 0;
  font-size: .82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.foot-group {
  color: #8ea89b;
}

.foot-group a {
  color: #a9bcb2;
}

.foot-group a:hover {
  color: var(--lime);
}


/* Footer Social */

.foot-social {
  margin-top: 1rem;
}

.foot-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 8px;
  color: #a9bcb2;
  transition: .2s;
}

.foot-social a:hover {
  color: #fff;
  border-color: var(--lime);
  background: rgba(47, 158, 106, .12);
}


/* Reveal */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: .7s cubic-bezier(.2, .7, .2, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}


/* Tablet */

@media (max-width: 960px) {

  .menu,
  .nav-cta .btn-ghost {
    display: none;
  }

  .burger {
    display: flex;
  }

  .shero-copy {
    max-width: 100%;
  }

  .cta-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .svc-grid,
  .why-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tb-left .hide-sm {
    display: none;
  }
}


/* Mobile */

@media (max-width: 600px) {

  .svc-grid,
  .why-grid,
  .cta-form .row {
    grid-template-columns: 1fr;
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }

 .topbar {
    display: none;
  }
}

/* Client logo carousel fixes (top-level — applies on all screens) */
.carousel .logo-item img { filter: none; opacity: 1; }
.carousel .logo-item .logo-ph { display: none; }

/* Sector page image block — contain the on-site photos */
.imgblock{min-height:0 !important;border:none !important;background:transparent !important;padding:0 !important;border-radius:14px;overflow:hidden;max-height:520px;aspect-ratio:4/5}
.imgblock img{width:100% !important;height:100% !important;object-fit:cover;border-radius:14px;display:block}
@media(max-width:820px){.imgblock{aspect-ratio:3/2;max-height:380px}}

/* Sector page two-image gallery */
.sector-gallery{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem;width:100%;margin:0}
.sector-gallery img{width:100%;height:100%;aspect-ratio:4/5;object-fit:cover;border-radius:14px;display:block}
@media(max-width:820px){.sector-gallery{grid-template-columns:1fr;gap:1rem}.sector-gallery img{aspect-ratio:3/2}}

/* ============================================================
   PRIMARY NAV DROPDOWNS
   Appended — targets wp_nav_menu output (menu_class="menu")
   ============================================================ */

/* Parent li must anchor the absolute-positioned submenu */
.menu > li {
  position: relative;
}

/* Hide submenus by default */
.menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  margin: 0;
  padding: .5rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 999;
}

/* Reveal on hover or keyboard focus */
.menu > li:hover > .sub-menu,
.menu > li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Submenu links */
.menu .sub-menu li {
  display: block;
  width: 100%;
}

.menu .sub-menu a {
  display: block;
  padding: .6rem 1.1rem;
  white-space: nowrap;
  font-size: .95rem;
  color: var(--ink, #14261f);
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}

.menu .sub-menu a:hover {
  background: var(--mist, #f4f7f5);
  color: var(--green, #1C4E3C);
}

/* Caret on items that have children */
.menu > li.menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  margin-left: .4rem;
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform .2s ease;
}

.menu > li.menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
}

/* Bridges the gap between the nav item and the dropdown so the
   menu doesn't vanish as the cursor travels down */
.menu > li.menu-item-has-children::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 14px;
}

/* ---------- MOBILE ---------- */
@media (max-width: 980px) {

  .menu > li {
    position: static;
  }

  /* Submenus hidden on mobile — hub pages list their children */
  .menu .sub-menu {
    display: none;
  }

  .menu > li.menu-item-has-children > a::after {
    display: none;
  }
}

  .header .logo img {
    height: 56px !important;
  }

