/**
 * Theme Name: RCC Design
 * Author: Central States Marketing
 * Author URI: https://www.centralstatesmarketing.com/
 * Description: This site was built by Central States Marketing. For more information about the site or this custom WordPress theme, you can contact Central States Marketing at: info@csm.marketing or call us at: 309-693-2345.
 * Version: 1.0.4
 *
 * @package rccdesign
 * @charset "UTF-8"
 */

/* === TABLE OF CONTENTS ===
 * 1. Reset
 * 2. CSS Custom Properties (:root)
 * 3. Globals (h1-h6, p, a, etc.)
 * 4. Utils
 *    4.1 Accessibility
 *    4.2 Layout (.container, .wrapper)
 *    4.3 Buttons
 * 5. Components
 *    5.1 Gravity Forms
 * 6. Page Layout (top → bottom)
 *    6.1 Header & Navigation
 *         - Quick Links Topbar
 *         - Primary Menu
 *         - Submenus
 *         - Mobile Menu Toggle
 *    6.2 Drawer
 *    6.3 Hero
 *    6.4 Inner Pages & Content
 *         - Featured Image
 *    6.5 Footer
 *    6.6 Admin Buttons
 *    6.7 Our Services
 *    6.8 Concept
 *    6.9 Project Experience
 *    6.10 Featured Project
 *    6.11 Global News
 *    6.12 Contact Us
 * 7. Animations & Keyframes
 * 8. Inside Pages (Kadence)
 *    
 *
 */

/* Changed font from ttf to woff */

@font-face {
  font-family: "Goldman";
  src: url("assets/fonts/Goldman-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Goldman";
  src: url("assets/fonts/Goldman-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Limerick";
  src: url("assets/fonts/Limerick Regular 2.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Limerick";
  src: url("assets/fonts/Limerick DemiBold.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ===================================== */
/* 1. RESET */
/* ===================================== */

/* Box sizing reset */
*,
*::before,
*::after {
  box-sizing: inherit;
}

html {
  box-sizing: border-box;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: var(--fs-base);
}

body.no-scroll {
  overflow: hidden;
}

embed,
iframe,
object,
img {
  display: block;
  max-width: 100%;
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: normal;
  margin: 0;
}

b,
strong {
  font-weight: bolder;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===================================== */
/* 2. CSS CUSTOM PROPERTIES */
/* ===================================== */

:root {
  /* Colors */
  --blue: oklch(45.62% 0.1419 254.2);
  --light-blue: oklch(72.74% 0.144 251.2);
  --lightgray: oklch(96.34% 0.0017 197.1);
  --gray: oklch(80.8% 0 0);
  --dark-gray: oklch(54.86% 0 0);
  --charcoal: oklch(40.98% 0.0056 264.5);
  --white: oklch(100% 0 0);
  --black: oklch(0% 0 0);

  /* Shadows */
  --shadow-color: oklch(0% 0 0 / 9%);
  --shadow-color-hover: oklch(0% 0 0 / 40%);
  --shadow: 0 0 9px var(--shadow-color);
  --shadow-hover: 0 0 10px var(--shadow-color-hover);
  --shadow-alt: 0 5px 10px var(--shadow-color);

  /* Layout */
  --gutter: 2rem;
  --gap-xs: 0.25rem;
  --gap-sm: 0.5rem;
  --gap-base: 0.75rem;
  --gap-md: 1rem;
  --gap-lg: 1.5rem;
  --gap-xl: 3rem;
  --gap-xxl: 7rem;
  --max-w-max: 95rem;
  --max-w-content: 84rem;
  --max-w-text: 50rem;
  --border-radius: 10px;

  /* Transitions */
  --transition: 0.25s ease;
  --transition-fast: 0.15s ease;

  /* Scale */
  --scale-hover: 1.05;
  --scale-dot-active: 1.2;
  --scale-dot-active-lg: 1.3;

  /* Typography */
  --ff-heading: "Limerick", sans-serif;
  --ff-body: "Limerick", sans-serif;
  --ff-body-alt: "Goldman", serif;

  --fs-xs: clamp(0.7rem, 0.12vi + 0.67rem, 0.78rem);
  --fs-sm: clamp(0.8rem, 0.15vi + 0.77rem, 0.9rem);
  --fs-base: clamp(0.94rem, 0.34vi + 0.86rem, 1.12rem);
  --fs-md: clamp(1.18rem, 0.61vi + 1.03rem, 1.49rem);
  --fs-lg: clamp(1.47rem, 1vi + 1.24rem, 1.99rem);
  --fs-xl: clamp(1.84rem, 1.56vi + 1.47rem, 2.65rem);
  --fs-xxl: clamp(2.3rem, 2.38vi + 1.74rem, 3.53rem);
  --fs-xxxl: clamp(2.87rem, 3.54vi + 2.04rem, 4.7rem);
}

/* ===================================== */
/* 3. GLOBALS */
/* ===================================== */

/* Headings */
:where(h1, h2, h3, h4, h5, h6) {
  font-family: var(--ff-heading);
  line-height: normal;
}

h1 {
  font-size: var(--fs-xxl);
  font-weight: 700;
  margin: 0 0 1.5rem 0;
  letter-spacing: normal;
}

h2 {
  font-size: var(--fs-xxl);
  font-weight: 500;
  margin: 0 0 1rem 0;
}

h3 {
  font-size: var(--fs-xl);
  font-weight: 400;
  text-transform: uppercase;
  margin: 0 0 1rem 0;
}

h4 {
  font-size: var(--fs-lg);
  font-weight: 500;
  margin: 0 0 0.75rem 0;
  font-family: var(--ff-body);
}

.heading {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.heading h2 {
  color: var(--blue);
  margin-bottom: 0;
}

.title {
  font-size: var(--fs-xl);
  font-weight: 500;
}

.title span {
  color: var(--blue);
}

@media (max-width: 768px) {
  .heading {
    flex-direction: column;
    align-items: center;
    gap: var(--gap-md);
  }
}

/* Paragraphs */
p {
  font-size: var(--fs-base);
  font-weight: 300;
  line-height: normal;
  margin: 0 0 1rem 0;
}

/* Lists */
ul li {
  font-weight: 500;
  letter-spacing: 1px;
}

/* Links */
a {
  text-decoration: none;
  font-size: var(--fs-base);
  letter-spacing: normal;
}

a:has(svg) {
  display: block;
}

span {
  display: block;
}

/* ===================================== */
/* 4. UTILS */
/* ===================================== */

/* --- 4.1 Accessibility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* --- 4.2 Layout --- */
.container {
  max-width: var(--max-w-content);
  width: 100%;
  margin-inline: auto;
  padding-block: 7rem;
  padding-inline: var(--gutter);
}

@media (max-width: 1024px) {
  .container {
    padding-block: 5rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding-block: 4rem;
  }
}

@media (max-width: 550px) {
  .container {
    padding-inline: var(--gutter);
  }
}

.wrapper {
  width: 100%;
  position: relative;
}

/* --- 4.3 Buttons --- */
.btn,
.btn a,
.gform_button {
  display: inline-block;
  background-color: inherit;
  padding: 0.5rem 1.25rem;
  color: inherit;
  font-size: var(--fs-base);
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  max-width: max-content;
  transition: var(--transition);
  letter-spacing: 1px;
}

.btn-white {
  background-color: var(--white);
  color: var(--black);
}

.btn-white:hover {
  background-color: color-mix(in srgb, var(--white) 80%, transparent);
}

.btn-black {
  background-color: var(--black);
  color: var(--white);
}

.btn-black:hover {
  background-color: color-mix(in srgb, var(--black) 70%, transparent);
}

.btn-blue,
.gform_button {
  background-color: var(--blue) !important;
  border: 1px solid var(--blue) !important;
  color: var(--white) !important;
}

.btn-blue:hover,
.gform_button:hover {
  background-color: var(--light-blue) !important;
  border: 1px solid var(--light-blue) !important;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background-color: var(--white);
  color: var(--blue);
}

@media (max-width: 550px) {
  .buttons {
    flex-direction: column;
    gap: var(--gap-base);
    align-items: center;
  }
}

/* ===================================== */
/* 5. COMPONENTS */
/* ===================================== */

/* --- 5.1 Gravity Forms --- */

.gform_heading {
  display: none;
}

.gform-footer {
  padding: 0 !important;
}

.gform_button {
  margin-bottom: 0 !important;
  border-radius: 0px !important;
}

/* Gravity Forms Inputs */
.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper input[type="url"],
.gform_wrapper input[type="number"],
.gform_wrapper input[type="password"],
.gform_wrapper textarea,
.gform_wrapper select {
  padding: 1rem !important;
  background-color: var(--lightgray) !important;
  color: var(--black) !important;
  border: none;
  border-radius: 0 !important;
  font-family: inherit;
}

/* Remove harsh default focus glow */
.gform_wrapper input:focus,
.gform_wrapper textarea:focus,
.gform_wrapper select:focus {
  outline: none;
  border-color: var(--blue);
}

.gform_wrapper textarea {
  height: 8rem !important;
}

/* ===================================== */
/* 6. PAGE LAYOUT */
/* ===================================== */

/* --- 6.1 Header & Navigation --- */

.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1003;
  background-color: var(--white);
  box-shadow: var(--shadow);
}

/* Site Header Wrapper */

.site-header-wrapper {
  position: relative;
  z-index: 10001;
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  max-width: var(--max-w-max);
  margin-inline: auto;
  padding-inline: 3rem;
  align-items: center;
  width: 100%;
  background-color: transparent;
}

.site-branding {
  padding-inline: var(--gutter);
  padding-block: 1rem;
}

.site-header .main-navigation {
  width: 100%;
}

.site-header .site-logo img {
  display: block;
  max-width: 16rem;
  width: 100%;
  transition: max-width var(--transition);
}

/* Primary Menu */

.site-header #primary-menu {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 0;
}

#primary-menu li {
  list-style: none;
}

.site-header #primary-menu > li a {
  padding: 1.5rem;
  color: var(--black);
  font-weight: 500;
  transition: var(--transition);
  text-transform: uppercase;
  display: block;
}

#primary-menu > li a:hover {
  color: rgb(0 0 0 / 65%);
}

.site-header #primary-menu > li:last-child > a {
  display: inline-block;
  background-color: var(--blue);
  color: var(--white);
  padding: 0.5rem 1.25rem;
  text-align: center;
  max-width: max-content;
  border: 1px solid var(--blue);
}

.site-header #primary-menu > li:last-child > a:hover {
  background-color: var(--light-blue);
  border: 1px solid var(--light-blue);
}

/* Current Menu Item */

.site-header #primary-menu > li.current-menu-item > a {
  color: var(--blue)!important;
}

.site-header #primary-menu > li.current-menu-item:last-child > a {
  color: var(--white) !important;
}

/* Quick Links Topbar */

.site-header-topbar {
  position: relative;
  z-index: 10001;
  width: 100%;
  background-color: var(--black);
}

.site-header-topbar-wrapper {
  display: flex;
  justify-content: flex-end;
  max-width: var(--max-w-max);
  margin-inline: auto;
  padding-inline: 3rem;
}

.quick-links-navigation ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.quick-links-navigation li {
  list-style: none;
}

.site-header .quick-links-navigation li a {
  display: block;
  padding: 0.5rem 1.25rem;
  color: var(--white);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color var(--transition);
}

.site-header .quick-links-navigation li:last-child a {
  padding-right: 0;
}

.quick-links-navigation li a:hover {
  color: var(--lightgray);
}

/* Submenus */

.site-header .menu-item-has-children ul {
  position: absolute;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  background-color: var(--white);
  box-shadow: var(--shadow-alt);
  padding: 0;
}

.site-header .menu-item-has-children:hover > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-header .menu-item-has-children > ul > li {
  border-bottom: 1px solid var(--lightgray);
}

.site-header .menu-item-has-children > ul li a {
  padding: 1rem 1.5rem !important;
}

.site-header .menu-item-has-children > ul > li:last-child {
  border-bottom: none;
}

.site-header .menu-item-has-children > ul > li > a:hover {
  background-color: var(--lightgray);
}

/* Mobile Menu Toggle */
.hamburger {
  cursor: pointer;
  display: none;
  background-color: transparent;
  /* padding: 1rem; */
  border-radius: var(--border-radius);
  border: none;
  width: fit-content;
}

.hamburger svg line {
  color: var(--black);
}

.hamburger .icon-close {
  display: none;
}

.hamburger.on .icon-hamburger {
  display: none;
}

.hamburger.on .icon-close {
  display: block;
}

@media (max-width: 1024px) {
  .site-header .main-navigation {
    display: none;
  }

  .site-header-topbar {
    display: none;
  }

  .site-branding {
    padding-block: 1rem;
    padding-inline: 0;
  }

  .hamburger {
    display: block;
  }
}

@media (max-width: 768px) {
  .site-header-wrapper {
    padding-inline: 2rem;
  }

  .site-branding {
    padding-inline: 0;
  }

  .site-header .site-logo img {
    max-width: 14rem;
  }
}

@media (max-width: 550px) {
  .site-header-wrapper {
    padding-inline: 1rem;
  }

  .site-branding {
    padding-inline: 0;
  }

  .site-header .site-logo img {
    max-width: 12rem;
  }
}

/* --- 6.2 Drawer --- */

.drawer-overlay {
  position: fixed;
  top: var(--header-height, 0px);
  left: 0;
  right: 0;
  bottom: 0;
  background: oklch(0% 0 0 / 30%);
  backdrop-filter: blur(4px);
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: var(--header-height, 0px);
  right: 0;
  width: min(420px, 100vw);
  height: calc(100dvh - var(--header-height, 0px));
  background-color: var(--white);
  transform: translateX(100%);
  transition: transform var(--transition);
  z-index: 1002;
  overflow-y: auto;
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer-wrapper {
  display: flex;
  flex-direction: column;
  padding: var(--gutter) 3rem;
  height: 100%;
}

.drawer ul {
  padding: 0;
  margin: 0;
}

.drawer .menu-item {
  width: 100%;
  border-bottom: 1px solid #0000000d;
}

.drawer .menu-item a {
  color: var(--black);
  display: block;
  text-transform: uppercase;
  font-weight: 600;
  font-size: var(--fs-xl);
  padding-block: 1rem;
}

.drawer .menu-item-has-children {
  position: relative;
}

.drawer .menu-item-has-children > a {
  padding-right: 3rem;
}

.drawer .submenu-toggle {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--black);
}

.drawer .submenu-toggle svg {
  transition: transform var(--transition);
}

.drawer .menu-item-has-children.submenu-open > .submenu-toggle svg {
  transform: rotate(90deg);
}

.drawer .menu-item-has-children > .sub-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
}

.drawer .menu-item-has-children.submenu-open > .sub-menu {
  max-height: 50rem;
}

.drawer .sub-menu .menu-item a {
  font-size: var(--fs-base);
  font-weight: 500;
  padding-block: 0.75rem;
  padding-left: 1rem;
}

@media (max-width: 768px) {
  .drawer-wrapper {
    padding: var(--gutter);
  }

  .drawer .menu-item a {
    font-size: var(--fs-lg);
  }
}

@media (max-width: 550px) {
  .drawer {
    width: 100%;
  }

  .drawer .btn {
    max-width: 100%;
    width: 100%;
  }
}

/* --- 6.3 Hero --- */
.hero {
  display: flex;
  align-items: center;
  position: relative;
  max-height: 85dvh;
  min-height: 40rem;
  overflow: hidden;
}

.hero .wrapper {
  height: 100%;
}

.hero {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.hero-content {
  width: 100%;
  background-color: var(--blue);
  padding: 4rem;
  height: 100%;
}

.hero-inner {
  width: 100%;
  max-width: 56ch;
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: var(--gap-md);
  justify-content: center;
  float: right;
}

.hero-title {
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0;
  letter-spacing: normal;
}

.hero-inner p {
  color: var(--white);
}

.hero-title span {
  color: var(--black);
}

.hero-buttons {
  display: flex;
  flex-direction: row;
  gap: var(--gutter);
  flex-wrap: wrap;
}

.hero-buttons .btn-white {
  color: var(--blue);
}

.hero-image {
  background-image: url("assets/images/rcc-office.jpg");
  background-size: cover;
  background-position: right center;
  height: 100%;
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    max-height: none;
    min-height: auto;
  }

  .hero-content {
    height: auto;
    padding: 3rem var(--gutter);
    order: 2;
  }

  .hero-inner {
    float: none;
    max-width: 100%;
  }

  .hero-image {
    height: auto;
    min-height: 22rem;
    order: 1;
  }
}

@media (max-width: 768px) {
  .hero-content {
    gap: var(--gutter);
    order: 2;
  }

  .hero-image {
    order: 1;
  }

  .hero-buttons {
    gap: var(--gap-md);
  }
}

@media (max-width: 550px) {
  .hero {
    min-height: 38rem;
    background-position: bottom right;
  }
}

/* --- 6.4 Inner Pages & Content --- */

.featured-image {
  max-height: 70vb;
  min-height: 24rem;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-image::before {
  content: "";
  height: 100%;
  width: 100%;
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  z-index: 1;
}

.featured-image-title {
  position: relative;
  z-index: 2;
  color: var(--white);
  text-align: center;
  margin: 0;
  padding-inline: var(--gutter);
}

.content ul li {
  color: var(--gray);
}

.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.error-eyebrow {
  font-size: var(--fs-md);
  color: var(--blue);
  margin-bottom: 0;
}

.error-code {
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 700;
  line-height: normal;
  margin-bottom: 1rem;
  color: var(--black);
}

.error-message {
  max-width: 40ch;
  margin-bottom: 2rem;
}

@media (max-width: 1024px) {
  .featured-image {
    min-height: 20rem;
  }
}

@media (max-width: 768px) {
  .featured-image {
    min-height: 20rem;
  }
}

/* --- 6.5 Footer --- */

.site-footer {
  background-color: var(--charcoal);
  width: 100%;
}

.site-footer-wrapper {
  display: flex;
  flex-direction: column;
  row-gap: var(--gutter);
  padding-block: 4rem var(--gutter);
  padding-inline: 6rem;
  max-width: var(--max-w-max);
  margin-inline: auto;
}

footer span,
footer a,
footer p {
  color: var(--white);
}

footer p {
  font-weight: 300;
}

.site-info {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: var(--gutter);
}

.site-info .footer-branding {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}

.footer-branding p,
.footer-branding span {
  margin-bottom: 0;
  color: var(--white);
}

.site-footer .site-logo {
  max-width: 16rem;
}

.site-footer span {
  font-weight: 600;
  line-height: normal;
}

.footer-socials .socials {
  display: flex;
  gap: var(--gap-xs);
}

.footer-socials .social img {
  max-width: 2rem;
  width: 100%;
  object-fit: contain;
}

.footer-copyright {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--gap-md);
}

.footer-copyright p {
  margin: 0;
}

.footer-navs {
  display: flex;
  flex-direction: row;
  gap: var(--gap-xl);
}

.site-footer .footer-menu {
  flex-direction: row;
  text-align: right;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
}

.footer-menu li {
  list-style: none;
}

.footer-menu li a {
  color: var(--white);
  font-weight: 500;
  width: max-content;
  text-transform: uppercase;
}

.footer-menu li a:hover {
  color: var(--lightgray);
}

.footer-menu .sub-menu {
  display: none;
}

.site-footer hr {
  width: 100%;
  background-color: var(--white);
  height: 1px;
}

.footer-socials {
  display: flex;
  gap: var(--gap-md);
  flex-direction: column;
}

.powered-by {
  display: flex;
  flex-direction: row;
  gap: var(--gap-md);
}

.powered-by img {
  object-fit: contain;
  max-width: 10rem;
}

@media (max-width: 1024px) {
  .site-footer-wrapper {
    padding-inline: 2rem;
  }
}

@media (max-width: 768px) {
  .site-footer-wrapper {
    padding: var(--gutter);
    gap: var(--gap-md);
  }

  .site-info {
    gap: var(--gap-md);
  }

  .footer-navs {
    display: none;
  }

  .footer-copyright {
    flex-direction: column;
    gap: var(--gap-xs);
  }

  .footer-socials .socials {
    justify-content: center;
  }

  .site-info .footer-branding {
    display: flex;
    flex-direction: column;
    gap: var(--gap-lg);
    align-items: center;
    margin-inline: auto;
  }
}

@media (max-width: 550px) {
  .site-footer-wrapper {
    padding: 1.5rem;
  }
}

/* --- 6.6 Admin Buttons --- */

.admin-slideout-container {
  position: fixed;
  bottom: 1rem;
  left: 0;
  transform: translateX(-100%);
  transition: transform var(--transition);
}

.admin-slideout-container.is-open {
  transform: translateX(0);
}

/* --- 6.7 Our Services --- */

.services {
  position: relative;
}

.services .container {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xl);
}

.services .wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
}

.services .title {
  text-align: center;
}

.services .cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}

.services .card {
  display: flex;
  flex-direction: row;
  gap: var(--gap-md);
  padding: 1rem;
  background-color: var(--lightgray);
  height: 100%;
  align-items: center;
  transition: transform var(--transition), box-shadow var(--transition);
  pointer-events: none;
}

.services .card:hover {
  transform: translateY(-6px);
}

.services .card img {
  max-width: 4rem;
  width: 100%;
  object-fit: contain;
  transition: transform var(--transition);
}

.services .card:hover img {
  transform: scale(var(--scale-hover));
}

.services span {
  color: var(--black);
  font-weight: 600;
}

@media (max-width: 1024px) {
  .services .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .services-image {
    min-height: 20rem;
    max-height: 22rem;
  }

  .services .cards {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* --- 6.8 Concept --- */
.concept {
  background-color: var(--charcoal);
}

.concept .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-xxl);
}

.concept-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-lg);
}

.concept-slide {
  height: 100%;
  max-height: 34rem!important;
}

.concept-slide .splide__track,
.concept-slide .splide__list,
.concept-slide .splide__slide {
  height: 100%;
}

.concept-slide-images {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
  height: 100%;
}

.concept-slide-images img {
  display: block;
  width: 100%;
  height: 16.5rem;
  object-fit: cover;
}

.concept .concept-slide.splide .splide__pagination {
  display: flex;
}

.concept-slide .splide__pagination {
  bottom: -2rem;
}

.concept-slide .splide__pagination__page {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background-color: var(--gray);
  border: none;
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition);
}

.concept-slide .splide__pagination__page.is-active {
  background-color: var(--light-blue);
  transform: scale(var(--scale-dot-active));
}

.concept-content {
  color: var(--white);
}

.concept-content .text {
  margin-bottom: 4rem;
}

.concept-content .values {
  display: flex;
  flex-direction: column;
  max-height: 17.25rem;
  overflow-y: scroll;
}

.value-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding-block: 1rem;
  border-bottom: 1px solid white;
  align-items: center;
  padding-right: 1.5rem;
  cursor: pointer;
  list-style: none;
}

.value-row::-webkit-details-marker {
  display: none;
}

.value-arrow {
  width: 2rem;
  transition: transform var(--transition-fast);
}

.value-item[open] .value-arrow {
  transform: rotate(180deg);
}

.value-number {
  color: var(--light-blue);
  font-size: var(--fs-md);
  font-weight: 600;
}

.values-title {
  color: var(--white);
  font-size: var(--fs-md);
  font-weight: 600;
  margin-bottom: 0 !important;
  font-family: var(--ff-body-alt);
}

.value-item[open] .values-title {
  color: var(--lightgray);
}

.value-heading {
  display: flex;
  flex-direction: row;
  gap: var(--gap-xl);
  align-items: center;
}

.values-content {
  display: block;
  max-height: 0;
  overflow: hidden;
  padding: 0 1rem;
/*   background-color: var(--white); */
  opacity: 0;
  transition: opacity var(--transition), max-height var(--transition), padding var(--transition);
}

.values-content p {
  font-size: var(--fs-base);
/*   color: var(--black); */
  font-weight: 400;
  margin: 0 0 0.75rem 0;
}

.values-content p:last-child {
  margin-bottom: 0;
}

.value-item[open] .values-content {
  max-height: 20rem;
  opacity: 1;
  padding: 1rem;
}

@media (max-width: 1024px) {
  .concept .container {
    grid-template-columns: 1fr;
    gap: var(--gap-xl);
  }
}

@media (max-width: 768px) {
  .concept-slide-images {
    gap: var(--gap-sm);
  }

  .concept-content .text {
    margin-bottom: var(--gutter);
  }

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

  .concept-inner {
    max-width: 100%;
  }

  .concept-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .concept-item:last-child {
    grid-column: 1 / -1;
  }

  .concept-image {
    min-height: 20rem;
  }

  .concept-slide {
    min-height: 20rem;
  }

  .concept-content {
    padding: 0rem;
  }

  .concept-content .values {
    max-height: none;
  }
	
  .concept-heading .line {
    max-width: 3rem;
  }

  .concept-item {
    flex-direction: column;
  }

  .concept-icon {
    flex: 0 0 auto;
    width: 100%;
    clip-path: none;
    padding: 1.25rem;
  }
}

/* --- 6.9 Project Experience --- */
.project .container {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xl);
}

.category-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-sm);
}

.category-cards .card {
  height: 100%;
  min-height: 17rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}

.category-cards .card-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transition: transform var(--transition);
}

.card-bg-1 {
  background-image: url("assets/images/education-cover-sm.jpg");
}

.card-bg-2 {
  background-image: url("assets/images/government-cover-sm.jpg");
}

.card-bg-3 {
  background-image: url("assets/images/commercial-cover-sm.jpg");
}

.card-bg-4 {
  background-image: url("assets/images/industrial-cover-sm.jpg");
}

.card-bg-5 {
  background-image: url("assets/images/healthcare-cover-sm.jpg");
}

.card-bg-6 {
  background-image: url("assets/images/religious-cover-sm.jpg");
}

.category-cards .card:hover .card-bg {
  transform: scale(var(--scale-hover));
}

.category-cards .card::before {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  inset: 0;
  left: 0;
  top: 0;
  background: linear-gradient(to top, var(--black) 10%, transparent 24%);
  z-index: 1;
}

.category-cards .card span {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--white);
  position: relative;
  z-index: 2;
  font-family: var(--ff-body-alt);
}

@media (max-width: 1024px) {
  .category-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .category-cards {
    grid-template-columns: 1fr;
  }

  .project .heading {
    display: contents;
  }

  .project .title {
    order: 1;
    text-align: center;
  }

  .project .category-cards {
    order: 2;
  }

  .project .heading .btn {
    order: 3;
    align-self: center;
  }
}

/* --- 6.10 Featured Project --- */
.design {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.design-image {
  width: 100%;
  height: 100%;
  background-image: url("assets/images/design-rendering.jpg");
  background-size: cover;
  background-position: center;
}

.design-content {
  padding: 6rem;
  background-color: var(--blue);
  color: var(--white);
}

.design-inner {
  max-width: 40rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}

.design-inner h2 {
  margin-bottom: 0;
}

.design-inner a {
  color: var(--blue) !important;
}

@media (max-width: 1024px) {
  .design {
    grid-template-columns: 1fr;
  }

  .design-image {
    min-height: 20rem;
  }

  .design-content {
    padding: 3rem var(--gutter);
  }
}

@media (max-width: 768px) {
  .design-content {
    padding: 2.5rem var(--gutter);
  }
}

/* --- 6.11 Global News --- */

.global-news {
  background-color: var(--white);
}

.global-news .container {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xl);
  padding-block: 5rem 3rem;
}

.global-news .heading {
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}

.global-news .title {
  text-align: center;
  color: var(--black);
}

.news-cards {
  width: 100%;
}

.news-cards .splide__slide {
  display: flex;
  height: auto;
}

.global-news .splide__list {
  padding-inline: 0.5rem!important;
  padding-block: 0 0.5rem!important;
}

.news-cards .card {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.news-cards .card img {
  aspect-ratio: 1 / 1;
  object-position: center;
  object-fit: cover;
  width: auto;
  height: auto;
}

.news-cards .card-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--white);
  color: var(--black);
  padding: 1.5rem;
}

.news-cards .date {
  font-size: var(--fs-sm);
  font-weight: 400;
  margin-bottom: 1rem;
}

.news-cards .post-title {
  height: 100%;
  font-size: 1.1rem;
  font-weight: 600;
}

.news-cards .splide__pagination {
  display: flex !important;
  justify-content: center;
  gap: var(--gap-sm);
  padding: 1.5rem 0 0;
  bottom: unset;
  position: static;
}

.news-cards .splide__pagination__page {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background-color: var(--gray);
  border: none;
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition);
}

.news-cards .splide__pagination__page.is-active {
  background-color: var(--black);
  transform: scale(var(--scale-dot-active-lg));
}

.global-news .btn-black {
  margin-inline: auto;
}

@media (max-width: 768px) {
  .global-news .container {
    gap: var(--gutter);
  }
}

/* --- 6.12 Contact Us --- */

.contact-us {
  position: relative;
  background-image: url("assets/images/rcc-office.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.contact-us::before {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  inset: 0;
  left: 0;
  top: 0;
  background: linear-gradient(
    270deg,
    rgba(7, 86, 163, 0.85) 0%,
    rgba(7, 86, 163, 0.85) 64.9%
  );
  z-index: 1;
}

.contact-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 50ch;
  text-align: center;
  margin-inline: auto;
}

/* ===================================== */
/* 7. ANIMATIONS & KEYFRAMES */
/* ===================================== */

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================================== */
/* 8. INSIDE PAGES (KADENCE) */
/* ===================================== */

.service-card {
  overflow: hidden;
}

.service-card-inner {
  position: absolute;
  inset: 0;
  transition: var(--transition);
}

.service-card-inner::before {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  inset: 0;
  left: 0;
  top: 0;
  background: linear-gradient(to top, var(--black) 10%, transparent 24%);
  z-index: 2 !important;
}

.service-card-content {
  position: absolute;
  inset: 0;
  justify-content: end;
  z-index: 2 !important;
}

.service-card img {
  transition: var(--transition);
}

/* Hovers */

.service-card:hover .service-card-inner {
  transform: scale(var(--scale-hover));
}

.service-card:hover img {
  transform: scale(var(--scale-hover));
}

/* Projects Archive */

.category-cards-sm {
  grid-template-columns: repeat(2, 1fr);
}

.category-cards-sm .card {
  min-height: 22rem;
}

.category-cards-sm .card span {
  font-size: var(--fs-base);
}

/* Locations Cards */

.locations {
  background-color: var(--lightgray);
}

.locations .container {
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
}

.category-cards-locations {
  grid-template-columns: repeat(4, 1fr);
}

.category-cards-locations .card span {
  font-size: var(--fs-sm);
}

.card-bg-location-1 {
  background-image: url("assets/images/rcc-office.jpg");
}

.card-bg-location-2 {
  background-image: url("assets/images/Benton-Office.jpg");
}

.card-bg-location-3 {
  background-image: url("assets/images/RCC-Ashland-Office.jpg");
}

.card-bg-location-4 {
  background-image: url("assets/images/ofallon-office.jpg");
}

@media (max-width: 1024px) {
  .category-cards-locations {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .category-cards-locations {
    grid-template-columns: 1fr;
  }
}

/* Project Gallery */
.projects-gallery .kadence-blocks-gallery-item__caption {
  position: absolute!important;
  font-family: var(--ff-body-alt);
  font-size: var(--fs-md)!important;
  line-height: normal!important;
  color: var(--white)!important;
  z-index: 1;
  background: transparent!important;
  text-align: left!important;
}

.projects-gallery .kb-gallery-image-contain {
  padding-bottom: 22rem!important;
}

.projects-gallery .kb-gallery-image-contain::before {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  inset: 0;
  left: 0;
  top: 0;
  background: linear-gradient(to top, var(--black) 10%, transparent 24%);
  z-index: 1;
}

.projects-gallery img {
  height: 22rem!important;
}

.projects-gallery .kadence-blocks-gallery-item img {
   transition: var(--transition);
}

.projects-gallery .kadence-blocks-gallery-item:hover img {
    transform: scale(var(--scale-hover));
}