/*--------------------------------------------------------------
# Font & Color Variables
# Help: https://bootstrapmade.com/color-system/
--------------------------------------------------------------*/
/* Fonts */
:root {
  --default-font:
    "Roboto", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Raleway", sans-serif;
  --nav-font: "Poppins", sans-serif;
}

/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website */
:root {
  --background-color: #f8f8f8; /* Background color for the entire website, including individual sections */
  --default-color: #2f3e46; /* Default color used for the majority of the text content across the entire website */
  --heading-color: #1d3c34; /* Color for headings, subheadings and title throughout the website */
  --accent-color: #a12c2f; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
  --surface-color: #ffffff; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
  --contrast-color: #d4af37; /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
}

/* Nav Menu Colors - The following color variables are used specifically for the navigation menu. They are separate from the global colors to allow for more customization options */
:root {
  --nav-color: #f8f8f8; /* The default color of the main navmenu links */
  --nav-hover-color: #d4af37; /* Applied to main navmenu links when they are hovered over or active */
  --nav-mobile-background-color: #ffffff; /* Used as the background color for mobile navigation menu */
  --nav-dropdown-background-color: #f8f8f8; /* Used as the background color for dropdown items that appear when hovering over primary navigation items */
  --nav-dropdown-color: #2f3e46; /* Used for navigation links of the dropdown items in the navigation menu. */
  --nav-dropdown-hover-color: #a12c2f; /* Similar to --nav-hover-color, this color is applied to dropdown navigation links when they are hovered over. */
}

/* Color Presets - These classes override global colors when applied to any section or element, providing reuse of the sam color scheme. */

.light-background {
  --background-color: #f8f8f8;
  --default-color: #2f3e46;
  --heading-color: #1d3c34;
  --accent-color: #a12c2f;
  --surface-color: #ffffff;
  --contrast-color: #d4af37;
}

.dark-background {
  --background-color: #1c1f26;
  --default-color: #f8f8f8;
  --heading-color: #d4af37;
  --accent-color: #a12c2f;
  --surface-color: #2f3e46;
  --contrast-color: #1d3c34;
}

.accent-background {
  --background-color: #fff6d6;
  --default-color: #2f3e46;
  --heading-color: #1d3c34;
  --accent-color: #a12c2f;
  --surface-color: #ffffff;
  --contrast-color: #d4af37;
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

.grecaptcha-badge {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

p.recaptcha-disclosure {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  text-shadow: none;
  color: color-mix(in srgb, var(--default-color), transparent 18%);
}

p.recaptcha-disclosure a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

/* PHP Email Form Messages
------------------------------*/
.php-email-form .error-message {
  display: none;
  background: #df1529;
  color: #ffffff;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .sent-message {
  display: none;
  color: #ffffff;
  background: #059652;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .loading {
  display: none;
  background: var(--surface-color);
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}

.php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid var(--accent-color);
  border-top-color: var(--surface-color);
  animation: php-email-form-loading 1s linear infinite;
}

@keyframes php-email-form-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  --background-color: rgba(255, 255, 255, 0);
  --default-color: #ffffff;
  --heading-color: #ffffff;
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 15px 0;
  transition: all 0.5s;
  z-index: 997;
}

.header .logo {
  line-height: 1;
}

.header .logo img {
  max-height: 62px;
  margin-right: 8px;
}

.header .logo h1 {
  font-size: 26px;
  margin: 0;
  font-weight: 700;
  color: var(--heading-color);
  text-transform: uppercase;
}

.scrolled .header {
  box-shadow: 0px 0 18px rgba(0, 0, 0, 0.1);
}

/* Global Header on Scroll
------------------------------*/
.scrolled .header {
  --background-color: #1d3c34;
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Desktop Navigation */
@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
  }

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

  .navmenu li {
    position: relative;
  }

  .navmenu > ul > li {
    white-space: nowrap;
    padding: 15px 14px;
  }

  .navmenu > ul > li:last-child {
    padding-right: 0;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-color);
    font-size: 15px;
    padding: 0 2px;
    font-family: var(--nav-font);
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
    position: relative;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    transition: 0.3s;
  }

  .navmenu > ul > li > a:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -6px;
    left: 0;
    background-color: var(--accent-color);
    visibility: hidden;
    width: 0px;
    transition: all 0.3s ease-in-out 0s;
  }

  .navmenu a:hover:before,
  .navmenu li:hover > a:before,
  .navmenu .active:before {
    visibility: visible;
    width: 100%;
  }

  .navmenu li:hover > a,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-hover-color);
  }

  .navmenu .dropdown ul {
    margin: 0;
    padding: 10px 0;
    background: var(--nav-dropdown-background-color);
    display: block;
    position: absolute;
    visibility: hidden;
    left: 14px;
    top: 130%;
    opacity: 0;
    transition: 0.3s;
    border-radius: 4px;
    z-index: 99;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }

  .navmenu .dropdown ul li {
    min-width: 200px;
  }

  .navmenu .dropdown ul a {
    padding: 10px 20px;
    font-size: 15px;
    text-transform: none;
    color: var(--nav-dropdown-color);
  }

  .navmenu .dropdown ul a i {
    font-size: 12px;
  }

  .navmenu .dropdown ul a:hover,
  .navmenu .dropdown ul .active:hover,
  .navmenu .dropdown ul li:hover > a {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .dropdown:hover > ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }

  .navmenu .dropdown .dropdown ul {
    top: 0;
    left: -90%;
    visibility: hidden;
  }

  .navmenu .dropdown .dropdown:hover > ul {
    opacity: 1;
    top: 0;
    left: -100%;
    visibility: visible;
  }
}

/* Mobile Navigation */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: var(--nav-color);
    font-size: 28px;
    line-height: 0;
    margin-right: 10px;
    cursor: pointer;
    transition: color 0.3s;
  }

  .navmenu {
    padding: 0;
    z-index: 9997;
  }

  .navmenu ul {
    display: none;
    list-style: none;
    position: absolute;
    inset: 60px 20px 20px 20px;
    padding: 10px 0;
    margin: 0;
    border-radius: 6px;
    background-color: var(--nav-mobile-background-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    box-shadow: none;
    overflow-y: auto;
    transition: 0.3s;
    z-index: 9998;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-dropdown-color);
    padding: 10px 20px;
    font-family: var(--nav-font);
    font-size: 17px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  }

  .navmenu a i:hover,
  .navmenu a:focus i:hover {
    background-color: var(--accent-color);
    color: var(--contrast-color);
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .active i,
  .navmenu .active:focus i {
    background-color: var(--accent-color);
    color: var(--contrast-color);
    transform: rotate(180deg);
  }

  .navmenu .dropdown ul {
    position: static;
    display: none;
    z-index: 99;
    padding: 10px 0;
    margin: 10px 20px;
    background-color: var(--nav-dropdown-background-color);
    transition: all 0.5s ease-in-out;
  }

  .navmenu .dropdown ul ul {
    background-color: rgba(33, 37, 41, 0.1);
  }

  .navmenu .dropdown > .dropdown-active {
    display: block;
    background-color: rgba(33, 37, 41, 0.03);
  }

  .mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-active .mobile-nav-toggle {
    color: #fff;
    position: absolute;
    font-size: 32px;
    top: 15px;
    right: 15px;
    margin-right: 0;
    z-index: 9999;
  }

  .mobile-nav-active .navmenu {
    position: fixed;
    overflow: hidden;
    inset: 0;
    background: rgba(33, 37, 41, 0.8);
    transition: 0.3s;
  }

  .mobile-nav-active .navmenu > ul {
    display: block;
  }
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #1d3c34;
  color: #fff;
  padding: 8px 12px;
  z-index: 10000;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 10px;
}
.footer {
  color: #333333;
  background-color: #0ac5e6; /* Client-requested bright blue */
  font-size: 14px;
  position: relative;
  line-height: 1.6; /* Better legibility on vivid backgrounds */
}

.footer .footer-top {
  padding-top: 50px;
  border-top: 1px solid
    color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer .footer-about .logo {
  line-height: 1;
  margin-bottom: 25px;
}

.footer .footer-about .logo img {
  max-height: 40px;
  margin-right: 6px;
}

.footer .footer-about .logo span {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
  font-family: var(--heading-font);
  color: #1d3c34;
}

.footer .footer-about p {
  font-size: 14px;
  font-family: var(--heading-font);
}

.footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, #1d3c34, transparent 50%);
  font-size: 16px;
  color: color-mix(in srgb, #1d3c34, transparent 30%);
  margin-right: 10px;
  transition: 0.3s;
}

.footer .social-links a:hover,
.footer .social-links a:focus-visible {
  color: #1d3c34; /* Evergreen accent in footer */
  border-color: #1d3c34;
  background-color: rgba(255, 255, 255, 0.15);
  outline: none;
}

.footer h4 {
  font-size: 16px;
  font-weight: bold;
  position: relative;
  padding-bottom: 12px;
  color: #1d3c34;
}

.footer .footer-links {
  margin-bottom: 30px;
}

.footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-links ul i {
  padding-right: 2px;
  font-size: 12px;
  line-height: 0;
}

.footer .footer-links ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}

.footer .footer-links ul li:first-child {
  padding-top: 0;
}

.footer .footer-links ul a {
  color: #0f2e27; /* Dark evergreen for stronger contrast on blue */
  display: inline-block;
  line-height: 1;
  font-weight: 500;
}

.footer .footer-links ul a:hover {
  color: #1d3c34; /* Evergreen hover in footer */
  text-decoration: underline;
}

/* Accessible focus styles for footer links */
.footer a:focus-visible {
  outline: 2px dashed #1d3c34;
  outline-offset: 2px;
  border-radius: 3px;
}

.footer .footer-contact p {
  margin-bottom: 5px;
}

.footer .footer-newsletter .newsletter-form {
  margin-top: 30px;
  margin-bottom: 15px;
  padding: 6px 8px;
  position: relative;
  border-radius: 4px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
  display: flex;
  background-color: var(--background-color);
  transition: 0.3s;
}

.footer .footer-newsletter .newsletter-form:focus-within {
  border-color: var(--accent-color);
}

.footer .footer-newsletter .newsletter-form input[type="email"] {
  border: 0;
  padding: 4px;
  width: 100%;
  background-color: var(--background-color);
  color: var(--default-color);
}

.footer .footer-newsletter .newsletter-form input[type="email"]:focus-visible {
  outline: none;
}

.footer .footer-newsletter .newsletter-form input[type="submit"] {
  border: 0;
  font-size: 16px;
  padding: 0 20px;
  margin: -7px -8px -7px 0;
  background: var(--accent-color);
  color: var(--contrast-color);
  transition: 0.3s;
  border-radius: 0 4px 4px 0;
}

.footer .footer-newsletter .newsletter-form input[type="submit"]:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
}

.footer .copyright {
  padding: 25px 0;
  border-top: 1px solid
    color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer .copyright p {
  margin-bottom: 0;
}

.footer .credits {
  margin-top: 6px;
  font-size: 13px;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--background-color);
  transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #ffffff;
  border-color: var(--accent-color) transparent var(--accent-color) transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1.5s linear infinite;
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: -15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 15px;
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.page-title {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 160px 0 80px 0;
  text-align: center;
  position: relative;
}

.page-title:before {
  content: "";
  background-color: color-mix(
    in srgb,
    var(--background-color),
    transparent 50%
  );
  position: absolute;
  inset: 0;
}

.page-title h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-title .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  justify-content: center;
  padding: 0;
  margin: 0;
  font-size: 16px;
  font-weight: 400;
}

.page-title .breadcrumbs ol li + li {
  padding-left: 10px;
}

.page-title .breadcrumbs ol li + li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

.page-title.legal-page-title {
  color: #ffffff;
  background-color: #10261f;
  background-image: url("../img/heroup.png");
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
}

.page-title.legal-page-title:before {
  background: linear-gradient(
    180deg,
    rgba(16, 38, 31, 0.8) 0%,
    rgba(16, 38, 31, 0.7) 55%,
    rgba(16, 38, 31, 0.82) 100%
  );
}

.page-title.legal-page-title h1,
.page-title.legal-page-title p,
.page-title.legal-page-title .breadcrumbs ol,
.page-title.legal-page-title .breadcrumbs a,
.page-title.legal-page-title .breadcrumbs .current,
.page-title.legal-page-title .breadcrumbs ol li + li::before {
  color: #ffffff;
}

.page-title.legal-page-title p {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.page-title.legal-page-title h1 {
  color: #ffffff;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.35);
}

.page-title.legal-page-title .breadcrumbs a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  scroll-margin-top: 74px;
  overflow: clip;
}

@media (max-width: 1199px) {
  section,
  .section {
    scroll-margin-top: 82px;
  }
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.section-title h2::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 122px;
  height: 66px;
  background: url(../img/section-title-bg2.png) no-repeat;
  z-index: -1;
}

.section-title p {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  width: 100%;
  min-height: 100vh;
  position: relative;
  padding: 220px 0 140px 0; /* Increased bottom padding for space above divider */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible; /* Allow shape divider to render flush without clipping seams */
}

.hero .hero-text-container {
  background-color: transparent;
  padding: 2.5rem;
  margin: 0 auto;
  text-align: center;
  max-width: 950px;
  position: relative;
  overflow: hidden;
}

/* Add subtle light effect around the border */
.hero .hero-text-container::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 2px;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent,
    rgba(255, 255, 255, 0.4)
  );
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  display: none;
}

.hero:before {
  content: "";
  background: linear-gradient(
    170deg,
    rgba(0, 0, 0, 1) 20%,
    rgba(0, 0, 0, 0) 100%
  ); /* Darker overlay */
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hero img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 10; /* Form and text stack below gnome and wave in new scheme */
}

.hero h2 {
  margin: 0;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  color: var(--background-color); /* White text for better contrast */
  letter-spacing: 0.5px;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.5),
    0 0 20px rgba(255, 255, 255, 0.3),
    0 0 30px rgba(255, 255, 255, 0.2),
    2px 2px 3px rgba(0, 0, 0, 0.6); /* Maintains readability with dark shadow */
}

/* New hero title refinement */
.hero-title {
  font-family: var(--heading-font);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.3rem);
  line-height: 1.1;
  text-transform: none;
  color: #fff;
  letter-spacing: 0.5px;
  position: relative;
  margin-bottom: 2.5rem;
}
.hero-title .hero-accent {
  background: linear-gradient(90deg, #ffd86b, #fff9e3 55%, #ffd86b 90%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
  position: relative;
}
.hero-title .hero-accent:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 10px;
  width: 100%;
  background:
    radial-gradient(
      circle at 15% 60%,
      rgba(255, 216, 107, 0.5),
      transparent 70%
    ),
    linear-gradient(90deg, rgba(255, 216, 107, 0.55), rgba(255, 255, 255, 0.1));
  filter: blur(3px) brightness(1.1);
  opacity: 0.7;
  pointer-events: none;
}
.hero-title .hero-brand {
  background: linear-gradient(90deg, #ffd86b, #fff9e3 55%, #ffd86b 90%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
  position: relative;
}
.hero-title .hero-brand:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 10px;
  width: 100%;
  background:
    radial-gradient(
      circle at 15% 60%,
      rgba(255, 216, 107, 0.5),
      transparent 70%
    ),
    linear-gradient(90deg, rgba(255, 216, 107, 0.55), rgba(255, 255, 255, 0.1));
  filter: blur(3px) brightness(1.1);
  opacity: 0.7;
  pointer-events: none;
}
.hero-subtitle {
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  font-weight: 400;
  color: #f4f4f4;
  max-width: 640px;
  margin: 0 auto 1.7rem auto;
  line-height: 1.55;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.hero h2 .static-glow {
  display: inline-block;
  color: #fff;
  /* Simpler text shadow */
  text-shadow:
    0 0 6px rgba(161, 44, 47, 0.5),
    1px 1px 2px rgba(0, 0, 0, 0.6);
}

.hero h2 .magic-glow {
  display: inline-block;
  color: #e6b325;
  text-shadow:
    0 0 8px rgba(230, 179, 37, 0.6),
    1px 1px 2px rgba(0, 0, 0, 0.6);
  /* Less frequent animation */
  animation: subtle-glow 4s infinite alternate;
}

@keyframes subtle-glow {
  0% {
    text-shadow:
      0 0 6px rgba(230, 179, 37, 0.5),
      1px 1px 2px rgba(0, 0, 0, 0.6);
  }
  100% {
    text-shadow:
      0 0 12px rgba(230, 179, 37, 0.7),
      1px 1px 2px rgba(0, 0, 0, 0.6);
  }
}

/* For mobile responsiveness */
@media (max-width: 768px) {
  .hero h2 .static-glow,
  .hero h2 .magic-glow {
    display: block;
    margin-bottom: 8px;
  }
}

/* Adjust bottom spacing on smaller screens so divider isn't cramped */
@media (max-width: 992px) {
  .hero {
    padding-bottom: 120px;
  }
}
@media (max-width: 576px) {
  .hero {
    padding-bottom: 110px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .snowflake,
  .string-light {
    /* Remove animations for users who prefer reduced motion */
    animation: none !important;
  }

  .magic-glow {
    animation: none !important;
    text-shadow: 0 0 8px rgba(230, 179, 37, 0.6) !important;
  }
}
.hero p {
  color: #fff;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Add a highlight effect for key phrases */
.hero p .text-highlight {
  font-weight: 600;
  color: #e6b325; /* Golden highlight color */
  text-shadow: 0 0 8px rgba(230, 179, 37, 0.5);
  position: relative;
  white-space: nowrap;
}

/* Hero enhanced buttons */
.hero .btn-get-quote.btn-alt {
  background: #ffffff;
  color: #a12c2f;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.hero .btn-get-quote.btn-alt:hover {
  background: #ffe9e9;
  color: #7f2326;
}
.hero .btn-get-quote.btn-outline {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
}
.hero .btn-get-quote.btn-outline:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Adjust spacing with new headline */
.hero .hero-buttons {
  margin-top: 0.25rem;
}

/* Trust badges */
.hero-trust-badges-marquee {
  position: relative;
  margin-top: 1.55rem;
  overflow: visible;
  padding: 2px 0 4px;
}
.hero-trust-badges {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 0.6rem;
  justify-content: flex-start;
  align-items: stretch;
  animation: heroBadgesScrollReverse 30s linear infinite; /* Slower scroll */
  will-change: transform;
}
@keyframes heroBadgesScrollReverse {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

/* Retain forward animation (used by JS cloning logic if direction toggled later) */
@keyframes heroBadgesScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.hero-trust-badges-marquee:hover .hero-trust-badges {
  animation-play-state: paused;
}
.hero-trust-badges li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.7rem 0.45rem 0.6rem; /* added vertical padding to avoid clip */
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 40px;
  font-size: 0.72rem;
  letter-spacing: 0.3px;
  color: #fff;
  backdrop-filter: blur(5px);
  line-height: 1.1;
  position: relative;
  white-space: nowrap; /* prevent internal wrap */
  flex: 0 0 auto; /* prevent shrinking so full badge shows */
}

/* Duplicate list for seamless loop (JS will clone if needed) */
.hero-trust-badges li i {
  font-size: 0.95rem;
  color: #ffd86b;
}
.hero-trust-badges li:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 640px) {
  .hero-trust-badges li {
    font-size: 0.62rem;
  }
}

/* Hero form header */
.hero-form-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.hero-form-header h3 {
  margin: 0;
}
.response-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #1d3c34, #2f5f52);
  color: #fff;
  padding: 6px 10px 6px 8px;
  border-radius: 999px;
  font-size: 0.65rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  position: relative;
}
.response-time-badge i {
  color: #ffd86b;
  font-size: 0.9rem;
  line-height: 0;
}

/* Mobile: stack header and badge with equal spacing */
@media (max-width: 768px) {
  .hero-form-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px; /* space between h3 and badge */
    margin-bottom: 10px; /* equal space before first form field */
  }
  /* Remove extra heading margin so spacing is symmetrical */
  .hero-form-header h3 {
    margin: 0 !important;
  }
}

/* Sparkles */
.hero-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 14; /* Topmost decorative overlay */
  overflow: hidden;
}
.sparkle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, #fff 0%, #ffe9a8 60%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  animation: sparkle-fade 4.8s linear infinite;
  filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 8px #ffd86b);
}
@keyframes sparkle-fade {
  0% {
    transform: scale(0.2) translateY(0);
    opacity: 0;
  }
  8% {
    opacity: 1;
    transform: scale(1);
  }
  60% {
    opacity: 0.9;
  }
  85% {
    opacity: 0;
    transform: scale(0.1) translateY(10px);
  }
  100% {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sparkle {
    animation: none;
    opacity: 0;
  }
}

/* Shape divider */
.hero-shape-divider {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px; /* Avoid negative offset that can cause a visible seam on mobile */
  width: 100%;
  line-height: 0;
  z-index: 13; /* Above gnome and content; keeps gnome tucked behind curve */
}
.hero-shape-divider svg {
  transform: none; /* Keep the wave flush with the section edge to prevent clipping */
  height: 120px; /* Match viewBox height to avoid fractional rendering gaps */
}
.hero-shape-divider svg {
  display: block;
  width: 100%;
  height: auto;
}
.hero-shape-divider path {
  transition: fill 0.3s ease;
}

/* Gnome gentle bob */
.hero-gnome .gnome-image {
  animation: gnome-bob 6s ease-in-out infinite;
}
@keyframes gnome-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-gnome .gnome-image {
    animation: none;
  }
}

/* Button styling */
.hero .btn-get-started,
.hero .btn-get-quote {
  display: inline-block;
  padding: 12px 30px;
  margin: 5px;
  border-radius: 4px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.hero .btn-get-started {
  background-color: var(--accent-color);
  color: #fff;
  border: 2px solid var(--accent-color);
}

.hero .btn-get-quote {
  background-color: transparent;
  color: #fff;
  border: 2px solid var(--accent-color);
}

.hero .btn-get-started:hover {
  background-color: rgb(170, 61, 65);
}

.hero .btn-get-quote:hover {
  background-color: var(--accent-color);
  color: #fff;
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 30px;
    line-height: 36px;
  }
  .hero h2 {
    font-size: 30px;
    line-height: 36px;
  }
}

.hero-line {
  display: block;
  margin-bottom: 0.1em; /* Adjustable spacing between lines */
}

/* For mobile screens */
@media (max-width: 768px) {
  .hero h2 .static-glow,
  .hero h2 .magic-glow {
    display: inline; /* Keep them inline on mobile */
  }

  /* Add spacing only where needed on mobile */
  .hero-line:not(:last-child) {
    margin-bottom: 0;
  }
}

.hero .btn-scroll {
  transition: 0.4s;
  color: var(--contrast-color);
  display: block;
  margin-top: 30px;
  animation: btn-up-down 1s ease-in-out infinite alternate-reverse both;
}

.hero .btn-scroll i {
  font-size: 48px;
}

.hero .btn-scroll:hover {
  color: var(--accent-color);
}

@keyframes btn-up-down {
  0% {
    transform: translateY(5px);
  }

  100% {
    transform: translateY(-5px);
  }
}

.hero-gnome {
  position: absolute;
  bottom: 144px; /* Lower a touch more on desktop/fullscreen */
  right: 30px;
  z-index: 12; /* In front of form/content, still behind curve (z=13) */
  width: 400px;
  height: 400px;
  transform: translateY(-30px); /* Ease lift slightly to lower overall */
}

/* Desktop tuning */
@media (min-width: 1200px) {
  .hero-gnome {
    transform: translateY(-22px); /* Lower a bit more on desktop */
  }
}

/* Extra tuning on very large desktops */
@media (min-width: 1400px) {
  .hero-gnome {
    bottom: 158px !important; /* Lower a touch more on very large screens */
    transform: translateY(-18px); /* A touch lower to balance composition */
  }
}

/* Large desktop screens */
@media (max-width: 1600px) {
  .hero-gnome {
    width: 350px !important;
    height: 350px !important;
    bottom: 116px !important; /* Move further down at this size */
    transform: translateY(-12px) !important;
  }
}

/* Standard desktop */
@media (max-width: 1400px) {
  .hero-gnome {
    width: 320px !important;
    height: 320px !important;
    right: 20px !important;
    bottom: 112px !important; /* Move further down for narrower screens */
    transform: translateY(-8px) !important;
  }
}

/* Small desktop/large laptop */
@media (max-width: 1200px) {
  .hero-gnome {
    width: 300px !important;
    height: 300px !important;
    right: 15px !important;
    bottom: 104px !important; /* Slightly lower at <=1200 */
    transform: translateY(-6px) !important;
  }
}

/* Laptop */
@media (max-width: 1024px) {
  .hero-gnome {
    width: 250px !important;
    height: 250px !important;
    right: 10px !important;
    bottom: 88px !important; /* Tiny bit lower at <=1024 */
  }
}

/* Tablet landscape */
@media (max-width: 900px) {
  .hero-gnome {
    width: 260px !important; /* match 991 size for <=900 */
    height: 260px !important;
    right: 8px !important;
    bottom: 90px !important; /* retain existing vertical positioning */
  }
}

/* Tablet portrait */
@media (max-width: 768px) {
  .hero-gnome {
    width: 260px !important; /* keep size consistent with <=900 */
    height: 260px !important;
    right: 8px !important;
    bottom: 80px !important;
  }
}

/* Large mobile */
@media (max-width: 576px) {
  .hero-gnome {
    width: 260px !important; /* maintain same size down to 576 */
    height: 260px !important;
    right: -16px !important; /* shift further right on mobile */
    bottom: 74px !important; /* move up a bit */
    opacity: 0.9;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero-gnome {
    width: 260px !important; /* maintain same size down to 480 */
    height: 260px !important;
    right: -16px !important; /* shift further right on mobile */
    bottom: 68px !important; /* move up a bit */
  }
}

/* Very small screens */
@media (max-width: 400px) {
  .hero-gnome {
    width: 260px !important; /* maintain same size down to 400 */
    height: 260px !important;
    right: -16px !important; /* shift further right on mobile */
    bottom: 62px !important; /* move up a bit */
  }
}

/* Final mobile overrides to ensure right offset wins after all rules */
@media (max-width: 576px) {
  .hero-gnome {
    right: -24px !important; /* push further right so it clears the button */
  }
}
@media (max-width: 480px) {
  .hero-gnome {
    right: -24px !important;
  }
}
@media (max-width: 400px) {
  .hero-gnome {
    right: -24px !important;
  }
}

/* Ultimate mobile override (keep at end): ensure right offset applies on phones */
@media (max-width: 576px) {
  .hero.section .hero-gnome {
    right: -28px !important; /* final nudge to the right so it clears the button */
  }
}

/* Unify gnome size to match 991px design for 900px and below */
@media (max-width: 900px) {
  .hero-gnome {
    width: 260px !important;
    height: 260px !important;
    right: 8px !important;
    /* Keep existing bottom/transform from prior tuning unless adjusted next */
  }
}

/* Landscape orientation adjustments */
@media (max-height: 700px) and (orientation: landscape) {
  .hero-gnome {
    width: 150px !important;
    height: 150px !important;
    bottom: 10px !important;
    transform: translateY(-22px); /* Still less than global to avoid clipping */
  }
}

@media (max-height: 600px) and (orientation: landscape) {
  .hero-gnome {
    width: 120px !important;
    height: 120px !important;
    bottom: 5px !important;
    transform: translateY(-18px); /* Still less than global to avoid clipping */
  }
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about .content h3 {
  font-weight: 700;
  font-size: 34px;
  margin-bottom: 30px;
}

/* Remove extra bottom padding only for About section */
#about.section,
section#about.about {
  padding-bottom: 0 !important;
}

.about .content p {
  margin-bottom: 30px;
}

.about .content .about-btn {
  padding: 8px 30px 9px 30px;
  color: var(--accent-color);
  border-radius: 50px;
  transition: 0.3s;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--accent-color);
}

.about .content .about-btn i {
  font-size: 16px;
  padding-left: 5px;
}

.about .content .about-btn:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.about .icon-box i {
  font-size: 40px;
  color: var(--accent-color);
  margin-bottom: 10px;
}

.about .icon-box h4 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px 0;
}

.about .icon-box h4 a {
  color: var(--heading-color);
  transition: 0.3s;
}

.about .icon-box p {
  font-size: 15px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin-bottom: 0;
}

.about .icon-box:hover h4 a {
  color: var(--accent-color);
}

/* About Section Styling */
.about-feature {
  padding: 1.5rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.about-feature h4 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.about-feature p {
  color: var(--text-color);
  margin-bottom: 0;
}

.about img {
  height: 240px;
  object-fit: cover;
  width: 100%;
  transition: all 0.4s ease;
}

.about img:hover {
  transform: translateY(-5px);
}

.about .about-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 30px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 6px;
  margin-top: 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.about .about-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

.about .about-btn i {
  margin-left: 8px;
  font-size: 1rem;
  transition: all 0.3s;
}

.about .about-btn:hover i {
  transform: translateX(5px);
}

@media (max-width: 992px) {
  .about .col-md-6:last-child {
    margin-top: 2rem;
  }
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services.section,
section#services.services,
#services.section {
  padding-top: 20px !important; /* Slight top padding to avoid clipping header image */
}
.services .service-item {
  background-color: var(--surface-color);
  box-shadow: 0px 0 25px 0 rgba(0, 0, 0, 0.1);
  padding: 50px 30px;
  transition: all 0.3s ease-in-out;
  height: 100%;
  position: relative;
  z-index: 1;
}

.services .service-item:before {
  content: "";
  position: absolute;
  background: var(--accent-color);
  inset: 100% 0 0 0;
  transition: all 0.3s;
  z-index: -1;
}

.services .service-item .icon {
  margin-bottom: 10px;
}

.services .service-item .icon i {
  color: var(--accent-color);
  font-size: 36px;
  transition: ease-in-out 0.3s;
}

.services .service-item h4 {
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 20px;
}

.services .service-item h4 a {
  color: var(--heading-color);
  transition: ease-in-out 0.3s;
}

.services .service-item p {
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
  transition: ease-in-out 0.3s;
}

.services .service-item:hover h4 a,
.services .service-item:hover .icon i,
.services .service-item:hover p {
  color: var(--contrast-color);
}

.services .service-item:hover:before {
  background: var(--accent-color);
  inset: 0;
  border-radius: 0px;
}

/*--------------------------------------------------------------
# Stats Section
--------------------------------------------------------------*/
.stats .stats-item {
  padding: 30px;
  width: 100%;
}

.stats .stats-item i {
  color: var(--accent-color);
  display: block;
  font-size: 44px;
  float: left;
  line-height: 0;
}

.stats .stats-item .purecounter {
  color: var(--heading-color);
  font-size: 48px;
  line-height: 40px;
  display: block;
  font-weight: 700;
  margin-left: 60px;
}

.stats .stats-item p {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  padding: 15px 0 0 0;
  margin: 0 0 0 60px;
  font-family: var(--heading-font);
  font-size: 14px;
}

/*--------------------------------------------------------------
# Call To Action Section
--------------------------------------------------------------*/
.call-to-action {
  padding: 80px 0;
  position: relative;
  clip-path: inset(0);
}

.call-to-action img {
  position: fixed;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

#call-to-action::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(
    0,
    0,
    0,
    0.6
  ); /* Darker overlay for better text visibility */
  z-index: 2;
}

.call-to-action .container {
  position: relative;
  z-index: 3;
}

#call-to-action .text-center {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

#call-to-action h3 {
  margin-bottom: 1.5rem;
  color: #184e35; /* Dark green for better visibility */
  font-size: 1.8rem;
}

#call-to-action p {
  margin-bottom: 1.5rem;
  color: #333;
  font-size: 1.1rem;
  line-height: 1.6;
}

.call-to-action .cta-btn {
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 12px 40px;
  border-radius: 5px;
  transition: 0.5s;
  margin: 10px;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
}

.call-to-action .cta-btn:hover {
  color: var(--contrast-color);
  background: var(--accent-color);
  border: 2px solid var(--accent-color);
}

/*--------------------------------------------------------------
# Portfolio Section
--------------------------------------------------------------*/
.portfolio .portfolio-filters {
  padding: 0;
  margin: 0 auto 20px auto;
  list-style: none;
  text-align: center;
}

.portfolio .portfolio-filters li {
  cursor: pointer;
  display: inline-block;
  padding: 0;
  font-size: 16px;
  font-weight: 600;
  margin: 0 10px;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 5px;
  transition: all 0.3s ease-in-out;
}

.portfolio .portfolio-filters li:hover,
.portfolio .portfolio-filters li.filter-active {
  color: var(--accent-color);
}

.portfolio .portfolio-filters li:first-child {
  margin-left: 0;
}

.portfolio .portfolio-filters li:last-child {
  margin-right: 0;
}

@media (max-width: 575px) {
  .portfolio .portfolio-filters li {
    font-size: 14px;
    margin: 0 5px;
  }
}

.portfolio .portfolio-item {
  position: relative;
}

.portfolio .portfolio-item .portfolio-info {
  background-color: color-mix(in srgb, var(--surface-color), transparent 10%);
  opacity: 0;
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 0;
  z-index: 3;
  transition: all ease-in-out 0.3s;
  padding: 15px;
}

.portfolio .portfolio-item .portfolio-info h4 {
  font-size: 18px;
  font-weight: 600;
  padding-right: 50px;
  margin: 0 0 5px 0;
}

.portfolio .portfolio-item .portfolio-info p {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  font-size: 14px;
  margin-bottom: 0;
  padding-right: 50px;
}

.portfolio .portfolio-item .portfolio-info .preview-link,
.portfolio .portfolio-item .portfolio-info .details-link {
  position: absolute;
  right: 50px;
  font-size: 24px;
  top: calc(50% - 14px);
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  transition: 0.3s;
  line-height: 0;
}

.portfolio .portfolio-item .portfolio-info .preview-link:hover,
.portfolio .portfolio-item .portfolio-info .details-link:hover {
  color: var(--accent-color);
}

.portfolio .portfolio-item .portfolio-info .details-link {
  right: 14px;
  font-size: 28px;
}

.portfolio .portfolio-item:hover .portfolio-info {
  opacity: 1;
  bottom: 20px;
}

/*--------------------------------------------------------------
# Testimonials Section
--------------------------------------------------------------*/
.testimonials .testimonials-carousel,
.testimonials .testimonials-slider {
  overflow: hidden;
}

.testimonials .testimonial-item {
  box-sizing: content-box;
  text-align: center;
  min-height: 320px;
}

.testimonials .testimonial-item .testimonial-img {
  width: 90px;
  border-radius: 50%;
  margin: 0 auto;
}

.testimonials .testimonial-item h3 {
  font-size: 18px;
  font-weight: bold;
  margin: 10px 0 5px 0;
}

.testimonials .testimonial-item h4 {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin: 0;
}

.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
  color: color-mix(in srgb, var(--accent-color), transparent 40%);
  font-size: 26px;
  line-height: 0;
}

.testimonials .testimonial-item .quote-icon-left {
  display: inline-block;
  left: -5px;
  position: relative;
}

.testimonials .testimonial-item .quote-icon-right {
  display: inline-block;
  right: -5px;
  position: relative;
  top: 10px;
  transform: scale(-1, -1);
}

.testimonials .testimonial-item p {
  font-style: italic;
  margin: 0 15px 15px 15px;
  padding: 20px;
  background: var(--surface-color);
  position: relative;
  margin-bottom: 35px;
  border-radius: 6px;
}

.testimonials .testimonial-item p::after {
  content: "";
  width: 0;
  height: 0;
  border-top: 20px solid var(--surface-color);
  border-right: 20px solid transparent;
  border-left: 20px solid transparent;
  position: absolute;
  bottom: -20px;
  left: calc(50% - 20px);
}

.testimonials .swiper-wrapper {
  height: auto;
}

.testimonials .swiper-pagination {
  margin-top: 40px;
  position: relative;
}

.testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: var(--background-color);
  opacity: 1;
  border: 1px solid var(--accent-color);
}

.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
}

/*--------------------------------------------------------------
# Team Section
--------------------------------------------------------------*/
.team .team-member .member-img {
  border-radius: 8px;
  overflow: hidden;
}

.team .team-member .social {
  position: absolute;
  left: 0;
  top: -18px;
  right: 0;
  opacity: 0;
  transition: ease-in-out 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team .team-member .social a {
  transition: color 0.3s;
  color: var(--contrast-color);
  background: var(--accent-color);
  margin: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: 0.3s;
}

.team .team-member .social a i {
  line-height: 0;
  font-size: 16px;
}

.team .team-member .social a:hover {
  background: color-mix(in srgb, var(--accent-color) 90%, black 15%);
}

.team .team-member .social i {
  font-size: 18px;
  margin: 0 2px;
}

.team .team-member .member-info {
  background-color: var(--surface-color);
  padding: 30px 15px;
  text-align: center;
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
  background: var(--surface-color);
  margin: -50px 20px 0 20px;
  position: relative;
  border-radius: 8px;
}

.team .team-member .member-info h4 {
  font-weight: 500;
  margin-bottom: 5px;
  font-size: 20px;
}

.team .team-member .member-info span {
  display: block;
  font-size: 16px;
  font-weight: 400;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

.team .team-member .member-info p {
  font-style: italic;
  font-size: 14px;
  line-height: 26px;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

.team .team-member:hover .social {
  opacity: 1;
}

/*--------------------------------------------------------------
# Pricing Section
--------------------------------------------------------------*/
.pricing .pricing-item {
  background-color: var(--surface-color);
  box-shadow: 0 3px 20px -2px rgba(0, 0, 0, 0.1);
  border-top: 4px solid var(--background-color);
  padding: 60px 40px;
  height: 100%;
  border-radius: 5px;
}

.pricing h3 {
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 20px;
}

.pricing h4 {
  color: var(--accent-color);
  font-size: 48px;
  font-weight: 400;
  font-family: var(--heading-font);
  margin-bottom: 0;
}

.pricing h4 sup {
  font-size: 28px;
}

.pricing h4 span {
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 18px;
}

.pricing ul {
  padding: 20px 0;
  list-style: none;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  text-align: left;
  line-height: 20px;
}

.pricing ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}

.pricing ul i {
  color: #059652;
  font-size: 24px;
  padding-right: 3px;
}

.pricing ul .na {
  color: color-mix(in srgb, var(--default-color), transparent 60%);
}

.pricing ul .na i {
  color: color-mix(in srgb, var(--default-color), transparent 60%);
}

.pricing ul .na span {
  text-decoration: line-through;
}

.pricing .buy-btn {
  color: var(--accent-color);
  display: inline-block;
  padding: 8px 35px 10px 35px;
  border-radius: 50px;
  transition: none;
  font-size: 16px;
  font-weight: 500;
  font-family: var(--heading-font);
  transition: 0.3s;
  border: 1px solid var(--accent-color);
}

.pricing .buy-btn:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.pricing .featured {
  border-top-color: var(--accent-color);
}

.pricing .featured .buy-btn {
  background: var(--accent-color);
  color: var(--contrast-color);
}

@media (max-width: 992px) {
  .pricing .box {
    max-width: 60%;
    margin: 0 auto 30px auto;
  }
}

@media (max-width: 767px) {
  .pricing .box {
    max-width: 80%;
    margin: 0 auto 30px auto;
  }
}

@media (max-width: 420px) {
  .pricing .box {
    max-width: 100%;
    margin: 0 auto 30px auto;
  }
}

/*--------------------------------------------------------------
# Faq Section
--------------------------------------------------------------*/
.faq .faq-item {
  margin: 20px 0;
  padding: 20px 0;
  border-bottom: 1px solid
    color-mix(in srgb, var(--default-color), transparent 85%);
}

.faq .faq-item i {
  color: var(--accent-color);
  font-size: 18px;
  margin-right: 10px;
}

.faq .faq-item h4 {
  font-size: 16px;
  line-height: 26px;
  font-weight: 700;
}

.faq .faq-item p {
  font-size: 15px;
}

.faq .faq-item:first-child {
  padding-top: 0;
  margin-top: 0;
}

.faq .faq-item:last-child {
  border: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact .info-wrap {
  background-color: var(--surface-color);
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
}

@media (max-width: 575px) {
  .contact .info-wrap {
    padding: 20px;
  }
}

.contact .info-item {
  margin-bottom: 40px;
}

.contact .info-item i {
  font-size: 20px;
  color: var(--accent-color);
  background: color-mix(in srgb, var(--accent-color), transparent 92%);
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
  margin-right: 15px;
}

.contact .info-item h3 {
  padding: 0;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
}

.contact .info-item p {
  padding: 0;
  margin-bottom: 0;
  font-size: 14px;
}

.contact .info-item:hover i {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.contact .php-email-form,
.contact .contact-form {
  background-color: var(--surface-color);
  height: 100%;
  padding: 30px;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 575px) {
  .contact .php-email-form,
  .contact .contact-form {
    padding: 20px;
  }
}

.contact .php-email-form input[type="text"],
.contact .php-email-form input[type="email"],
.contact .php-email-form textarea,
.contact .php-email-form select,
.contact .contact-form input[type="text"],
.contact .contact-form input[type="email"],
.contact .contact-form textarea,
.contact .contact-form select {
  font-size: 14px;
  padding: 10px 15px;
  box-shadow: none;
  border-radius: 0;
  color: var(--default-color);
  background-color: var(--surface-color);
  border-color: color-mix(in srgb, var(--default-color), transparent 80%);
}

.contact .php-email-form input[type="text"]:focus,
.contact .php-email-form input[type="email"]:focus,
.contact .php-email-form textarea:focus,
.contact .php-email-form select:focus,
.contact .contact-form input[type="text"]:focus,
.contact .contact-form input[type="email"]:focus,
.contact .contact-form textarea:focus,
.contact .contact-form select:focus {
  border-color: var(--accent-color);
}

.contact .php-email-form input[type="text"]::placeholder,
.contact .php-email-form input[type="email"]::placeholder,
.contact .php-email-form textarea::placeholder,
.contact .contact-form input[type="text"]::placeholder,
.contact .contact-form input[type="email"]::placeholder,
.contact .contact-form textarea::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.contact .php-email-form button[type="submit"],
.contact .contact-form button[type="submit"] {
  color: var(--contrast-color);
  background: var(--accent-color);
  border: 0;
  padding: 12px 30px;
  transition: 0.4s;
  border-radius: 5px;
}

.contact .php-email-form button[type="submit"]:hover,
.contact .contact-form button[type="submit"]:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 25%);
}

/*--------------------------------------------------------------
# Portfolio Details Section
--------------------------------------------------------------*/
.portfolio-details .portfolio-details-slider img {
  width: 100%;
}

.portfolio-details .portfolio-details-slider .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.portfolio-details
  .portfolio-details-slider
  .swiper-pagination
  .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: color-mix(in srgb, var(--default-color), transparent 85%);
  opacity: 1;
}

.portfolio-details
  .portfolio-details-slider
  .swiper-pagination
  .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
}

.portfolio-details .portfolio-info {
  background-color: var(--surface-color);
  padding: 30px;
  box-shadow: 0px 0 30px rgba(0, 0, 0, 0.1);
}

.portfolio-details .portfolio-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid
    color-mix(in srgb, var(--default-color), transparent 85%);
}

.portfolio-details .portfolio-info ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.portfolio-details .portfolio-info ul li + li {
  margin-top: 10px;
}

.portfolio-details .portfolio-description {
  padding-top: 30px;
}

.portfolio-details .portfolio-description h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
}

.portfolio-details .portfolio-description p {
  padding: 0;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

/*--------------------------------------------------------------
# Service Details Section
--------------------------------------------------------------*/
.service-details .services-list {
  background-color: var(--surface-color);
  padding: 10px 30px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  margin-bottom: 20px;
}

.service-details .services-list a {
  display: block;
  line-height: 1;
  padding: 8px 0 8px 15px;
  border-left: 3px solid
    color-mix(in srgb, var(--default-color), transparent 70%);
  margin: 20px 0;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  transition: 0.3s;
}

.service-details .services-list a.active {
  color: var(--heading-color);
  font-weight: 700;
  border-color: var(--accent-color);
}

.service-details .services-list a:hover {
  border-color: var(--accent-color);
}

.service-details .services-img {
  margin-bottom: 20px;
}

.service-details h3 {
  font-size: 26px;
  font-weight: 700;
}

.service-details h4 {
  font-size: 20px;
  font-weight: 700;
}

.service-details p {
  font-size: 15px;
}

.service-details ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.service-details ul li {
  padding: 5px 0;
  display: flex;
  align-items: center;
}

.service-details ul i {
  font-size: 20px;
  margin-right: 8px;
  color: var(--accent-color);
}

/*--------------------------------------------------------------
# Starter Section Section
--------------------------------------------------------------*/

/* Snowflake Animation for Hero Section */
/* Enhanced snowflakes */
.snowflake {
  position: absolute;
  width: 10px;
  height: 10px;
  --flake-bright: rgba(255, 255, 255, 0.95);
  background: radial-gradient(
    circle at 30% 35%,
    #ffffff 0%,
    #e7f5ff 60%,
    rgba(255, 255, 255, 0.05) 100%
  );
  border-radius: 50%;
  box-shadow:
    0 0 4px var(--flake-bright),
    0 0 10px rgba(255, 255, 255, 0.6);
  z-index: 4;
  opacity: 0.9;
  pointer-events: none;
  will-change: transform, opacity;
  animation:
    snowfall var(--fall-speed, 9s) linear infinite,
    flake-shimmer 5s ease-in-out infinite;
  mix-blend-mode: screen;
}

@keyframes flake-shimmer {
  0%,
  100% {
    filter: brightness(1) blur(0px);
    opacity: 0.9;
  }
  50% {
    filter: brightness(1.2) blur(0.5px);
    opacity: 0.75;
  }
}

@keyframes snowfall {
  0% {
    transform: translate3d(var(--drift-x, 0px), -120px, 0) rotate(0deg);
    opacity: 0;
  }
  5% {
    opacity: 0.9;
  }
  50% {
    transform: translate3d(calc(var(--drift-x, 0px) * 0.6), 50vh, 0)
      rotate(180deg);
  }
  100% {
    transform: translate3d(calc(var(--drift-x, 0px) * 1.2), 100vh, 0)
      rotate(360deg);
    opacity: 0;
  }
}

/* Create different sized snowflakes */
/* Variation buckets (size + speed) */
.snowflake:nth-child(3n) {
  width: 13px;
  height: 13px;
  --fall-speed: 10s;
}
.snowflake:nth-child(3n + 1) {
  width: 7px;
  height: 7px;
  --fall-speed: 8s;
}
.snowflake:nth-child(3n + 2) {
  width: 10px;
  height: 10px;
  --fall-speed: 9s;
}

@media (prefers-reduced-motion: reduce) {
  .snowflake {
    animation: none;
    opacity: 0.5;
  }
}

/* String Lights Animation */
/* Refined Christmas lights */
.christmas-lights-container {
  position: absolute;
  top: 90px; /* Slightly closer to header */
  left: 0;
  right: 0;
  height: 80px; /* Taller curve area */
  z-index: 60; /* Above hero form */
  pointer-events: none;
}

.christmas-lights-container::before {
  content: none;
}

/* Curved cord SVG */
.christmas-lights-cord {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: visible;
}
.christmas-lights-cord path {
  fill: none;
  stroke: rgba(40, 40, 40, 0.55);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

/* Individual bulbs */
.string-light {
  position: absolute;
  width: 14px;
  height: 18px;
  border-radius: 40% 40% 55% 55%;
  background: #fff;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.4),
    0 0 6px 2px currentColor,
    0 0 14px 4px color-mix(in srgb, currentColor, transparent 40%);
  animation: bulb-pulse 2.4s ease-in-out infinite;
  transform-origin: 50% -14px;
  z-index: 2;
}
.hero-form-card {
  position: relative;
  z-index: 40;
}

.string-light::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at 50% 35%,
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0) 70%
  );
  mix-blend-mode: overlay;
  opacity: 0.85;
  pointer-events: none;
}

/* Palette rotation */
.string-light:nth-child(4n + 1) {
  color: #ff4d4d;
  animation-delay: 0s;
}
.string-light:nth-child(4n + 2) {
  color: #2ecc5f;
  animation-delay: 0.4s;
}
.string-light:nth-child(4n + 3) {
  color: #ffd86b;
  animation-delay: 0.8s;
}
.string-light:nth-child(4n + 4) {
  color: #4dabff;
  animation-delay: 1.2s;
}

@keyframes bulb-pulse {
  0%,
  100% {
    filter: brightness(0.85);
    transform: translateY(0) rotate(0deg);
  }
  30% {
    filter: brightness(1.25);
  }
  50% {
    filter: brightness(1);
    transform: translateY(2px) rotate(3deg);
  }
  70% {
    filter: brightness(1.3);
  }
}

/* Legacy specific color classes retained (map to color) */
.string-light-0 {
  color: #ff4d4d;
}
.string-light-1 {
  color: #2ecc5f;
}
.string-light-2 {
  color: #ffd86b;
}
.string-light-3 {
  color: #4dabff;
}

/* Mobile adjustments for Christmas lights */
@media (max-width: 575.98px) {
  .christmas-lights-container {
    top: 72px; /* Closer to the header on small screens */
    height: 62px; /* Slightly shorter vertical space */
  }
  .string-light {
    width: 10px;
    height: 14px;
    box-shadow:
      0 1px 3px rgba(0, 0, 0, 0.35),
      0 0 4px 1px currentColor,
      0 0 10px 3px color-mix(in srgb, currentColor, transparent 45%);
    animation-duration: 2.1s; /* Slightly faster for smaller bulbs */
  }
  .string-light::after {
    opacity: 0.75;
  }
}

@media (prefers-reduced-motion: reduce) {
  .string-light {
    animation: none;
    filter: brightness(0.9);
  }
}

/* Christmas Countdown Styling */
.christmas-countdown {
  margin: 1.1rem auto 1.4rem;
  max-width: 200px;
  text-align: center;
  padding: 0.55rem 0.7rem;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  position: relative;
  transform: rotate(-2deg);
  border: 1px solid #c94a4d;
  backdrop-filter: blur(3px);
}

/* Remove large corner emojis in compact style */
.christmas-countdown::before,
.christmas-countdown::after {
  position: absolute;
  display: block;
  pointer-events: none;
}
.christmas-countdown::before {
  content: "🎄";
  top: -10px;
  left: -8px;
  font-size: 18px;
  transform: rotate(12deg);
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.15));
}
.christmas-countdown::after {
  content: "🎁";
  bottom: -8px;
  right: -8px;
  font-size: 16px;
  transform: rotate(-8deg);
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.15));
}

.christmas-countdown .count-label,
.christmas-countdown .count-suffix {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #3a3a3a;
  text-transform: uppercase;
}

.christmas-countdown .days-number {
  display: inline-block;
  font-size: 26px;
  font-weight: 800;
  color: #a12c2f;
  line-height: 1;
  margin: 0 0.45rem;
  min-width: 2.6ch;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  position: relative;
}

/* Inline variant adjustments */
.countdown-inline {
  max-width: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  transform: rotate(-1deg);
  padding: 0.5rem 0.85rem;
}
.countdown-inline .days-number {
  font-size: 28px;
}
.countdown-inline .count-label {
  margin-right: 0.15rem;
}
.countdown-inline .count-suffix {
  margin-left: 0.1rem;
  text-transform: none;
  font-size: 12px;
  letter-spacing: 0.4px;
  font-weight: 500;
}

/* Make it stand out more on mobile */
@media (max-width: 768px) {
  .christmas-countdown {
    margin: 2rem auto;
    transform: rotate(-2deg);
  }
}

.truck-animation-container {
  position: relative;
  height: 330px;
  margin: 70px 0 5px; /* reduce bottom gap further */
  overflow: hidden;
  width: 100%;
}

.truck-container {
  position: absolute;
  right: 0;
  top: 50%;
  z-index: 5;
  max-width: 400px;
  transition: none;
  transform-origin: right center;
  transform: translateX(100%) translateY(-50%);
}

/* Make these selectors more specific to override .about img styles */
.truck-container img.animated-truck-image {
  height: 250px !important; /* Use !important to override */
  width: auto !important; /* Override any width constraints */
  max-width: none !important; /* Override any max-width constraints */
  object-fit: contain !important; /* Override object-fit if set */
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
  transition: none !important;
  transform: none !important;
}

/* Prevent hover effects */
.truck-container:hover img.animated-truck-image,
img.animated-truck-image:hover {
  transform: none !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .truck-animation-container {
    height: 290px;
    margin: 60px 0 0;
  }

  .truck-container {
    max-width: 200px;
  }

  .truck-container img.animated-truck-image {
    height: 300px !important;
  }
}

@media (max-width: 768px) {
  .hero-gnome {
    width: 260px !important; /* match 991 size for <=900 */
    height: 260px !important;
    right: 8px !important;
  }
}

.hero .container {
  position: relative;
  z-index: 10;
}

.hero-form-card {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  margin: 20px auto;
  max-width: 500px;
}

.hero-form-card h3 {
  font-size: 24px;
  color: #293c32;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 600;
}

.hero-form .form-control {
  border: 1px solid rgba(41, 60, 50, 0.2);
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.8);
}

.btn-form-submit {
  background: #a12c2f;
  color: #fff;
  border: 0;
  padding: 12px 30px;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-form-submit:hover {
  background: #7f2326;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(161, 44, 47, 0.3);
}

/* Ensure the hero section has proper height */
.hero {
  min-height: 700px;
  overflow: hidden; /* Clip animated gnome so it doesn't show into next section */
}

/* Ensure gnome stays in position */
.hero-gnome {
  pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .hero-form-card {
    margin-top: 30px;
  }

  .hero-text-container {
    text-align: center;
    padding-top: 50px;
  }

  .hero {
    min-height: 680px; /* reduce height to prevent excessive crop on mobile */
  }

  /* Improve hero image focal point and crop on small screens */
  @media (max-width: 768px) {
    .hero img {
      object-position: 50% 22%;
    }
  }
  @media (max-width: 576px) {
    .hero {
      min-height: 640px;
    }
    .hero img {
      object-position: 50% 18%;
    }
  }
  .hero-gnome {
    width: 260px !important; /* unify gnome size for <=991 and below */
    height: 260px !important;
  }
}

/* Fine-tune position only between 901px and 991px */
@media (min-width: 901px) and (max-width: 991px) {
  .hero-gnome {
    width: 260px !important; /* increase size a bit more in this range */
    height: 260px !important;
    right: 8px !important;
    bottom: 84px !important; /* slight move down at ~991 */
    transform: translateY(-4px) !important; /* a touch lower than <=1200 */
  }
}

/* Service Roadmap Styles (Vertical Timeline Restored) */
.roadmap-title {
  color: #293c32;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
}
.roadmap-subtitle {
  color: #666;
  font-size: 17px;
  max-width: 760px;
  margin: 0 auto 35px;
}

.service-roadmap {
  position: relative;
  padding: 20px 0 10px;
}
.roadmap-timeline {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 10px 10px;
  display: block;
}
.roadmap-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--accent-color);
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
  border-radius: 2px;
  opacity: 0.9;
}

.roadmap-item {
  position: relative;
  width: 50%;
  padding: 0 50px 55px;
  box-sizing: border-box;
}
.roadmap-item:last-child {
  padding-bottom: 0;
}
.roadmap-item:nth-child(odd) {
  left: 0;
  text-align: right;
}
.roadmap-item:nth-child(even) {
  left: 50%;
}

/* Connector dot */
.roadmap-item .roadmap-icon {
  position: absolute;
  top: 0;
  right: -30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.4);
  z-index: 3;
  transition:
    background 0.35s,
    transform 0.45s,
    color 0.35s;
}
.roadmap-item .roadmap-icon i {
  font-size: 1em;
  line-height: 1;
}
.roadmap-item:nth-child(even) .roadmap-icon {
  left: -30px;
  right: auto;
}

.roadmap-number {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #fff;
  color: #293c32;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px -3px rgba(0, 0, 0, 0.25);
}
.roadmap-item:nth-child(even) .roadmap-number {
  left: -8px;
  right: auto;
}

.roadmap-content {
  background: #fff;
  padding: 24px 26px 22px;
  border-radius: 14px;
  position: relative;
  box-shadow: 0 8px 28px -10px rgba(0, 0, 0, 0.12);
  z-index: 1;
}
.roadmap-content h4 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: #293c32;
}
.roadmap-content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #555;
}

/* Arrow pointers */
.roadmap-content:after {
  content: "";
  position: absolute;
  top: 20px;
  right: -14px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 14px solid #fff;
}
.roadmap-item:nth-child(even) .roadmap-content:after {
  right: auto;
  left: -14px;
  border-left: none;
  border-right: 14px solid #fff;
}

/* Hover */
.roadmap-item:hover .roadmap-icon {
  background: #d4af37;
  color: #293c32;
  transform: scale(1.08) rotate(-8deg);
}
.roadmap-item:hover .roadmap-icon i {
  color: inherit;
}

/* Animation (reuse) */
.roadmap-item {
  opacity: 0;
  transform: translateY(35px);
  transition: all 0.7s cubic-bezier(0.22, 0.75, 0.25, 1);
}
.roadmap-animate {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile stacking */
@media (max-width: 880px) {
  .roadmap-line {
    left: 28px;
    transform: none;
  }
  .roadmap-item,
  .roadmap-item:nth-child(even),
  .roadmap-item:nth-child(odd) {
    width: 100%;
    left: 0;
    text-align: left;
    padding: 0 0 55px 68px;
  }
  .roadmap-item .roadmap-icon,
  .roadmap-item:nth-child(even) .roadmap-icon {
    left: 0;
    right: auto;
  }
  .roadmap-item .roadmap-number,
  .roadmap-item:nth-child(even) .roadmap-number {
    left: 42px;
    right: auto;
  }
  .roadmap-content {
    margin-top: 0;
  }
  .roadmap-content:after,
  .roadmap-item:nth-child(even) .roadmap-content:after {
    left: -14px;
    right: auto;
    border-right: 14px solid #fff;
    border-left: none;
  }
  .roadmap-title {
    font-size: 28px;
  }
}
@media (max-width: 520px) {
  .roadmap-item {
    padding: 0 0 48px 62px;
  }
  .roadmap-item .roadmap-icon {
    width: 54px;
    height: 54px;
    font-size: 22px;
  }
  .roadmap-content {
    padding: 20px 20px 18px;
  }
  .roadmap-content h4 {
    font-size: 17px;
  }
  .roadmap-content p {
    font-size: 13px;
  }
}

/* Shovel decoration styles */
.shovel-decoration-container {
  position: absolute; /* anchored to parent .container (has position-relative via Bootstrap) */
  left: -170px; /* moved outward so it isn't hidden behind roadmap (adjust as needed) */
  bottom: -30px; /* overlap tweak */
  z-index: 3; /* above roadmap and other decorations */
  pointer-events: none;
}

.shovel-image {
  display: block;
  width: 400px;
  max-width: 100%;
  height: auto;
  transform: rotate(-15deg); /* simple stylistic tilt */
  filter: drop-shadow(3px 5px 10px rgba(0, 0, 0, 0.15));
  will-change: transform, opacity;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  /* Tight gradient: solid until 88%, then rapid fade to fully hide bottom edge */
  /* Stronger multi-stop fade: extends solid area, feathers aggressively to eliminate visible bottom line */
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .shovel-image {
    display: none;
  }
}

@media (max-width: 768px) {
  .shovel-image {
    display: none;
  }
}

@media (max-width: 576px) {
  .shovel-image {
    display: none; /* Hide on very small screens to avoid clutter */
  }
}

/* Ensure the roadmap has proper z-index to appear above the shovel */
.service-roadmap {
  position: relative;
  z-index: 2;
}

/* Top-right gnome for process tree */
.process-gnome-topright {
  position: absolute;
  top: -40px;
  right: -200px;
  width: 450px;
  height: auto;
  z-index: 2;
  opacity: 0.95;
  pointer-events: none;
  /* Bottom fade for roadmap top-right gnome */
  /* Tightened to match shovel: no early fogging */
  /* Match stronger multi-stop fade used for shovel */
}

@media (max-width: 991px) {
  .process-gnome-topright {
    display: none;
  }
}

@media (max-width: 576px) {
  .process-gnome-topright {
    display: none;
  }
}
