/* ==========================================================
   Site-wide header & footer (v2 design) — single source of truth.
   Loaded by BOTH templates/main/base.html and templates/main/v2/base.html
   after Bootstrap, so the header/footer render identically on every page.

   Covers the markup in:
   - templates/main/v2/components/header.html
   - templates/main/v2/components/footer.html
   - templates/main/components/deliver.html ("Let's talk" CTA)

   Colour tokens live in css_v2/base/variable.css.
   ========================================================== */

/* Header & footer always use the v2 body font, whatever the page's base stylesheet sets
   (main/css/base.css puts headings in Space Grotesk and restyles <p>) */
.site-header-wrap,
.site-footer,
.lets-talk,
.site-footer h4,
.content-talk h2 {
  font-family: "Montserrat", sans-serif;
}
.site-footer p {
  font-size: inherit;
  font-weight: inherit;
}

/* Inner pages load main/css/bootstrap.min.css (a patched 5.0 build with `.container { max-width: 1060px;
   padding: 0 25px }` at >=992px, plus main/css/home.css forcing `.container { max-width: 90% }` below 990px)
   while the homepage loads Bootstrap 5.3.3 from the CDN. Pin the 5.3 container metrics for the header and
   footer so they sit in exactly the same place on every page instead of jumping between the two builds. */
.site-header.container,
.site-footer .container,
.footer-cta.container {
  max-width: none;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
@media (min-width: 576px) {
  .site-header.container,
  .site-footer .container,
  .footer-cta.container {
    max-width: 540px;
  }
}
@media (min-width: 768px) {
  .site-header.container,
  .site-footer .container,
  .footer-cta.container {
    max-width: 720px;
  }
}
@media (min-width: 992px) {
  .site-header.container,
  .site-footer .container,
  .footer-cta.container {
    max-width: 960px;
  }
}
@media (min-width: 1200px) {
  .site-header.container,
  .site-footer .container,
  .footer-cta.container {
    max-width: 1140px;
  }
}
@media (min-width: 1400px) {
  .site-header.container,
  .site-footer .container,
  .footer-cta.container {
    max-width: 1320px;
  }
}
/* Bootstrap 5.0 gives .navbar-brand 5px vertical padding; 5.3 does not */
.site-header .navbar-brand {
  padding: 0;
  margin-right: 0;
}

.btn-brand {
  background-color: var(--brand-green);
  color: #fff;
  border-radius: 25px;
  padding: 0.6rem 0.7rem;
  font-weight: 500;
  border: none;
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
}
.btn-brand:hover {
  background-color: #1e4a22;
  color: #fff;
}
.navbar-brand img {
  height: 60px;
}
.site-header .nav-link {
  font-weight: 400;
  color: #101828 !important;
}
.site-header .nav-link.active {
  color: var(--brand-green) !important;
  font-weight: 500;
  border-bottom: 2px solid var(--brand-green);
}
.main-nav {
  display: flex;
  align-items: center;
}
.content-talk {
  padding: 4.7rem 6rem 4.4rem;
  background-image: url(../../main/images/talk-bg.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  width: 74.6%;
}
.content-talk h2 {
  max-width: 650px;
  color: #eeede9;
  line-height: 1.2;
  font-weight: 500;
  font-size: 3.25rem;
  margin-bottom: 0;
  opacity: 1;
}
.site-footer {
  background-color: #083a2d;
  background-image: url(../../assets/img/ic_footer_earth.png);
  background-position: left bottom;
  background-size: contain;
  background-repeat: no-repeat;
  color: var(--white);
}
.site-footer-row {
  display: grid;
  /* grid-template-columns: 1fr 1fr; */
  color: var(--white);
  grid-template-columns: 219px 1.6fr 1fr 1.4fr;
  gap: 3.438rem;
}
.footer-social li {
  padding: 0 10px;
  list-style: none;
}
.footer-social li svg {
  fill: var(--white);
  width: 25px;
  height: 25px;
}
.footer-col-address {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col-address li {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.footer-col-address li img {
  width: 30px;
  border-radius: 2px;
  margin-top: 5px;
}
.footer-col h4 {
  font-size: 1.125rem;
  color: var(--white);
  font-weight: 600;
}
.footer-col a {
  color: var(--white);
  font-size: 0.85rem;
  line-height: 40px;
  display: block;
}
.footer-col a:hover {
  color: var(--white);
  opacity: 0.7;
}
.footer-services {
  columns: 2;
  column-gap: 1.5rem;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle svg {
  width: 28px;
  height: 28px;
  stroke: #101828;
}
.nav-close {
  display: none;
  padding: 0; /* main/css/base.css resets button padding; match it everywhere */
}
.nav-overlay {
  display: none;
}
.site-header-wrap {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: #fff;
  transition:
  box-shadow 0.25s ease,
  padding 0.25s ease;
}
.site-header-wrap.is-scrolled {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.nav-item.has-dropdown {
  position: relative;
}
.nav-item.has-dropdown > .nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-item.has-dropdown > .nav-link .caret {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
}
.dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 260px;
  background: #fff;
  border: 1px solid #eef2ee;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(16, 24, 40, 0.12);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
  opacity 0.2s ease,
  transform 0.2s ease,
  visibility 0.2s ease;
  z-index: 1040;
}
.nav-item.has-dropdown:hover > .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-item.has-dropdown:hover > .nav-link .caret {
  transform: rotate(180deg);
}
.dropdown-item,
.dropdown-panel a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #101828;
  cursor: default;
}
.dropdown-item:hover,
.dropdown-panel a:hover {
  background: var(--brand-green-light);
  color: var(--brand-green);
}
.dropdown-item .chevron {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.6;
}
.submenu-panel {
  position: absolute;
  top: -10px;
  left: calc(100% + 10px);
  min-width: 260px;
  background: #fff;
  border: 1px solid #eef2ee;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(16, 24, 40, 0.12);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition:
  opacity 0.2s ease,
  transform 0.2s ease,
  visibility 0.2s ease;
  z-index: 1041;
}
.dropdown-item:hover > .submenu-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
.submenu-panel a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.87rem;
  color: #101828;
}
.submenu-panel a:hover {
  background: var(--brand-green-light);
  color: var(--brand-green);
}
@media (max-width: 992px) {
  .dropdown-panel {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    display: none;
    width: 100%;
    margin-top: 4px;
    padding-left: 8px;
  }
  .nav-item.has-dropdown.mobile-open > .dropdown-panel {
    display: block;
  }
  .nav-item.has-dropdown:hover > .dropdown-panel {
    display: none;
  }
  .nav-item.has-dropdown.mobile-open:hover > .dropdown-panel,
  .nav-item.has-dropdown.mobile-open > .dropdown-panel {
    display: block;
  }
  .nav-item.has-dropdown > .nav-link .caret {
    transform: none !important;
  }
  .nav-item.has-dropdown.mobile-open > .nav-link .caret {
    transform: rotate(180deg) !important;
  }
  .submenu-panel {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    display: none;
    margin-top: 4px;
    padding-left: 12px;
  }
  .dropdown-item.mobile-open > .submenu-panel {
    display: block;
    padding: 0px;
  }
  .menu-toggle {
    display: block;
  }
  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    flex-direction: column;
    width: min(320px, 80vw);
    height: 100vh;
    background: #fff;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1050;
    justify-content: space-between;
    padding: 24px;
    overflow-y: auto;
  }
  .main-nav.open {
    transform: translateX(0);
  }
  .main-nav .navbar-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 48px;
    width: 100%;
  }
  .main-nav .nav-link {
    display: block;
    padding: 12px 8px;
    width: 100%;
  }
  .main-nav .nav-link.active {
    border-bottom: none;
    background: var(--brand-green-light);
    border-radius: 8px;
  }
  .main-nav .btn-brand {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
  }
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1049;
  }
  .nav-overlay.open {
    display: block;
  }
  .nav-close {
    display: block;
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
  }
  .nav-close svg {
    width: 24px;
    height: 24px;
  }
  .main-nav-menu {
    width: 100%;
  }
  .dropdown-item.mobile-open {
    flex-direction: column;
    background: transparent;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  .site-footer-row {
    grid-template-columns: 1fr;
  }
}
.footer-address p {
  margin-bottom: 1rem;
  color: var(--white);
}
.footer-address p:last-child {
  margin-bottom: 0;
}
.cd-contact-popup-trigger {
  position: relative;
  display: flex;
  align-items: center;
  z-index: 99;
}
.cd-custom-cta-contact {
  font-size: 18px;
  cursor: pointer;
}
.cd-custom-cta-contact .hs-cta-node {
  line-height: 1em;
  position: relative;
  z-index: 11;
  transition: 0.2s ease-in-out;
  white-space: nowrap;
}
.cd-contact-popup-trigger .talk-btn a:before {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  background-image: url(../../main/images/dotted-talk.svg);
  background-repeat: no-repeat;
  background-size: contain;
  max-width: 228px;
  height: 100%;
  width: 15vw;
  z-index: -1;
  transition: all 0.3s ease-in;
}
.cd-contact-popup-trigger .talk-btn a {
  transition: all 0.3s ease-in;
  max-width: 428px;
  height: 414px;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 30px;
  width: 25.4vw;
  margin-bottom: 0;
  padding-bottom: 26px;
  position: relative;
  color: #eeede9;
  font-size: 40px;
  font-family: "TomatoGrotesk-Medium", sans-serif;
  padding-left: 0;
  flex-direction: column;
  top: 0;
}
.cd-contact-popup-trigger .talk-btn .arrow-down {
  position: relative;
  width: 100%;
  transition: all 0.3s ease-in;
}
.cd-contact-popup-trigger .talk-btn .arrow-down:before {
  content: url(../../main/images/arrow-talk.svg);
  position: absolute;
  bottom: -67px;
  left: 0;
  transition: all 0.3s ease-in;
  opacity: 0;
}
.cd-contact-popup-trigger .talk-btn .arrow-down:after {
  content: url(../../main/images/arrow-talk.svg);
  position: absolute;
  bottom: -67px;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.3s ease-in;
}
.cd-contact-popup-trigger .talk-btn a:hover:before {
  top: 50%;
  right: 50%;
  transform: translate(50%, -24%);
}
.cd-contact-popup-trigger .talk-btn a:hover {
  color: #eeede9 !important;
}
.cd-contact-popup-trigger .talk-btn a:hover .arrow-down:before {
  left: 50%;
  transform: translateX(-50%);
  opacity: 1;
}
.cd-contact-popup-trigger .talk-btn a:hover .arrow-down:after {
  left: 95%;
  opacity: 0;
}
.btn-brand {
  transition:
  transform 0.2s ease,
  box-shadow 0.2s ease,
  background-color 0.2s ease;
}
.btn-brand:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(31, 111, 67, 0.22);
}
.btn-brand svg {
  transition: transform 0.2s ease;
}
.btn-brand:hover svg {
  transform: translateX(3px);
}
.footer-col a,
.dropdown-panel a,
.submenu-panel a {
  transition:
  opacity 0.2s ease,
  background-color 0.2s ease,
  color 0.2s ease;
}
@media (prefers-reduced-motion: reduce) {
  .btn-brand:hover {
    transform: none;
  }
}
@media (max-width: 1400px) {
  .site-footer-row {
    grid-template-columns: 180px 1.5fr 1fr 1.3fr;
    gap: 2.25rem;
  }
}
@media (max-width: 1200px) {
  .site-footer-row {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 2.5rem;
  }
}
@media (max-width: 992px) {
  .footer-col a {
    line-height: 32px;
  }
}
@media (max-width: 768px) {
  .navbar-brand img {
    height: 46px;
  }
  .site-footer-row {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .footer-services {
    columns: 2;
    column-gap: 1rem;
  }
  .btn-brand {
    padding: 0.6rem 1.1rem;
  }
}
@media (max-width: 576px) {
  .footer-col ul {
    line-height: 40px;
  }
  .footer-col ul.footer-col-address {
    line-height: 26px;
  }
  .btn-brand {
    justify-content: flex-start;
  }
}
.lets-talk .btn-talk {
  padding: 3rem;
  background-color: var(--primary-color);
  margin-left: -60px;
  position: relative;
  right: 0;
  max-width: 428px;
  height: 414px;
  display: flex;
  align-items: center;
  transition: all 0.5s ease-in-out;
  justify-content: center;
  top: 30px;
  width: calc(25.4% + 8.6%);
  margin-left: -8.6%;
  overflow: hidden;
  z-index: 1;
}
.lets-talk {
  padding: 3rem 0 7.5rem;
}
@media only screen and (max-width: 1440px) {
  .lets-talk .btn-talk,
  .cd-contact-popup-trigger .talk-btn a {
    height: 400px;
  }
  .cd-contact-popup-trigger .talk-btn a:before {
    right: -1rem;
  }
}
@media only screen and (max-width: 1280px) {
  .content-talk h2 {
    max-width: 440px;
    font-size: 2.9rem;
  }
}
@media only screen and (max-width: 1200px) {
  .navbar-nav {
    font-size: 0.9rem;
  }
}
@media only screen and (max-width: 990px) {
  .content-talk h2 {
    max-width: 350px;
    font-size: 2.5rem;
  }
  .lets-talk {
    padding: 1.36rem 0 3.5rem;
  }
  .lets-talk .btn-talk {
    width: calc(34.4% + 8.6%);
  }
  .content-talk {
    padding: 3.7rem 3rem 4.4rem;
    width: 65.6%;
  }
}
@media (max-width: 768px) {
  .content-talk {
    width: 95%;
    padding: 3.9rem 1.6rem 12.1rem;
  }
  .content-talk h2 {
    font-size: 2.38rem;
  }
  .site-footer {
    background-position: center;
    background-size: 313% 100%;
  }
  .lets-talk .btn-talk {
    width: 100%;
    max-width: 318px;
    height: 308px;
    margin-left: auto;
    margin-top: -12.5rem;
  }
  .lets-talk {
    margin-top: 0px !important;
    padding: 75px 0 110px;
  }
  .site-footer {
    margin-top: 40px;
  }
}
@media (min-width: 765px) and (max-width: 1024px) {
  .lets-talk {
    margin-top: 0px !important;
    padding: 1.36rem 0 21px !important;
  }
}
.floating_btn {
  position: fixed;
  bottom: 30px;
  right: 5px;
  width: 100px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.contact_icon {
  background: #40865a;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 70px;
  height: 70px;
  padding: 0;
  border-radius: 50%;
  text-decoration: none;
  animation: pulse 1.5s ease-out infinite;
}
@media (max-width: 768px) {
  .floating_btn {
    width: 60px;
    height: 60px;
    bottom: 16px;
    right: 12px;
  }
  .contact_icon {
    width: 56px;
    height: 56px;
  }
  .contact_icon svg {
    width: 32px;
    height: 32px;
  }
}
@keyframes pulse {
  0% {
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  80% {
  box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }
}
@media (max-width: 992px) {
  .dropdown-item > .dd-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  .dropdown-item.mobile-open > .dd-toggle .chevron {
    transform: rotate(90deg);
  }
  .submenu-panel {
    width: 100%;
  }
}
.site-footer-row > div:first-child > a {
  display: block;
  width: 100%;
  max-width: 219px;
}
@media (max-width: 768px) {
  .site-footer-row {
    gap: 2rem;
  }
  .site-footer-row > div:first-child {
    align-items: center;
  }
  .footer-social {
    justify-content: center;
    width: 100%;
  }
  .footer-col h4 {
    margin-bottom: 1rem !important;
  }
  .footer-col a {
    line-height: 1.5;
    padding: 8px 0;
  }
  .footer-services li {
    break-inside: avoid;
  }
}
@media (max-width: 400px) {
  .footer-services {
    columns: 1;
  }
}

/* ---------- Site-wide CTA banner (above the footer) ----------
   Same gradient as the homepage .years-banner, but self-contained so it also
   renders on pages that do not load css/home_v2.css. */
.footer-cta .cta-banner {
  background:
    linear-gradient(90deg, #0f3d22 0%, #14532d 20%, #1f6f43 45%, #2e8b57 70%, #3faf68 100%),
    radial-gradient(50% 50% at 50% 50%, rgba(126, 223, 166, 0.1) 0%, rgba(102, 102, 102, 0) 35%);
  border-radius: 20px;
  color: #fff;
  margin: 2rem 0;
  font-family: "Montserrat", sans-serif;
}
.cta-banner h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.5rem);
  font-weight: 600;
  color: #fff;
}
.cta-banner__kicker {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7edfa6;
}
.cta-banner__text {
  opacity: 0.75;
}
.cta-banner__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 0;
  font-size: 0.875em;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
}
.cta-banner__btn:hover {
  color: #fff;
}
.cta-banner__btn svg {
  width: 30px;
  height: 30px;
  padding: 4px;
  border-radius: 50%;
  background-color: #fff;
  color: var(--brand-green);
  transition: transform 0.2s ease;
}
.cta-banner__btn:hover svg {
  transform: translateX(3px) scale(1.08);
}
