/**
 * @file
 * Component styles for Forttech Theme.
 */

/* Buttons */
.button,
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

.button:hover,
.btn:hover {
  background-color: #0056b3;
}

/* Cards */
.card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background-color: white;
}

/* Hero section */
.hero {
  padding: 4rem 2rem;
  text-align: center;
  background-color: #f8f9fa;
}

.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  color: #666;
}

/* Site Branding Block */
.site-branding {
  width: 70%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-branding__logo {
  float: left;
  margin-right: 1rem;
  flex-shrink: 0;
}

.site-branding__logo-link {
  display: block;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.site-branding__logo-link:hover {
  opacity: 0.8;
}

.site-branding__logo-image {
  display: block;
  height: 50px;
  width: auto;
  max-width: 200px;
  background-color: #ffffff;
}

.site-branding__text {
  flex: 1;
  overflow: hidden;
}

.site-branding__name {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1.2;
}

.site-branding__name-link {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-branding__name-link:hover {
  color: #007bff;
}

.site-branding__slogan {
  font-family: 'Inter', sans-serif;
  margin-top: 0.25rem;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
}

/* Clear float for older browsers */
.site-branding::after {
  content: "";
  display: table;
  clear: both;
}

.header-content nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  position: relative;
}

.header-content nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-content nav li {
  margin: 0 1rem;
  padding: 0;
}

.header-content nav li a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 17.25px;
  line-height: 100%;
  color: #ffffff;
  letter-spacing: 0%;
  text-decoration: none;
}

.header-content nav li a:hover {
  color: #fff;
  background-color: none;
  border-top: 3px #fff solid;
  padding: 1rem;
}

.header-content nav li a.is-active {
  color: #ffffff;
  border-top: 3px #fff solid;
  font-weight: 700;
  padding: 1rem 0;
}

/* Search Form Wide (CodeConvey Style - Expanding Search Box).
   Expands left from the toggle; .header-content shifts the menu via margin when open (layout.css). */
.search-form-wide-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  /* Fallback if the block is not under .header-content */
  --search-open-width: min(300px, calc(100vw - 2rem));
  --search-toggle-slot: 40px;
}

@media (max-width: 768px) {
  .search-form-wide-wrapper {
    --search-open-width: min(280px, calc(100vw - 1.5rem));
    --search-toggle-slot: 36px;
  }
}

@media (max-width: 480px) {
  .search-form-wide-wrapper {
    --search-open-width: min(260px, calc(100vw - 1rem));
  }
}

.search-box-container {
  position: relative;
  display: flex;
  align-items: center;
  height: 40px;
}

.search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background-color: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #333;
  flex-shrink: 0;
  z-index: 2;
  position: relative;
}

.search-toggle:hover {
  background-color: #f8f9fa;
  color: #5F7372;
}

.search-toggle[aria-expanded="true"] {
  color: #5F7372;
}

.search-toggle__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease, color 0.3s ease;
  color: #fff;
}

.search-toggle:hover .search-toggle__icon {
  color: rgb(51, 51, 51);
}

.search-toggle[aria-expanded="true"] .search-toggle__icon {
  transform: rotate(90deg);
  color: rgb(51, 51, 51);
}

.search-toggle__icon svg {
  width: 100%;
  height: 100%;
}

.search-form-inline {
  position: absolute;
  right: 0;
  top: 0;
  width: 0;
  max-width: var(--search-open-width);
  height: 40px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: width 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.3s ease 0.1s, visibility 0s linear 0.4s;
  z-index: 1;
  box-sizing: border-box;
}

.search-form-inline[aria-hidden="false"] {
  width: var(--search-open-width);
  opacity: 1;
  visibility: visible;
  transition: width 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.3s ease 0.1s, visibility 0s;
}

.search-form-inline__form {
  position: relative;
  width: 100%;
  height: 100%;
  display: inline-block;
  align-items: center;
  background-color: white;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 0 15px;
  box-sizing: border-box;
}

.search-form-inline__form .form-item {
  margin: 0;
  width: 100%;
  flex: 1;
}

.search-form-inline__form input[type="search"],
.search-form-inline__form input[type="text"] {
  width: 100%;
  height: 100%;
  padding: 0 10px;
  border: none;
  background: transparent;
  margin-top: 0.5rem;
  font-size: 17px;
  color: #333;
  outline: none;
  font-family: 'Inter', sans-serif;
}

.search-form-inline__form input[type="search"]::placeholder,
.search-form-inline__form input[type="text"]::placeholder {
  color: #999;
}

.search-form-inline__form .form-actions {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.search-form-inline__form .form-actions input[type="submit"],
.search-form-inline__form .form-actions button[type="submit"] {
  padding: 0;
  background: transparent;
  border: none;
  color: #5F7372;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  min-width: 24px;
  margin-left: 8px;
  transition: color 0.3s ease;
  font-size: 0;
  line-height: 0;
}

.search-form-inline__form .form-actions input[type="submit"]:hover,
.search-form-inline__form .form-actions button[type="submit"]:hover {
  color: #333;
}

.search-form-inline__form .form-actions input[type="submit"] svg,
.search-form-inline__form .form-actions button[type="submit"] svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .search-form-inline__form input[type="search"],
  .search-form-inline__form input[type="text"] {
    font-size: 13px;
  }
}

/* ==========================================================================
   Main Menu Navbar
   ========================================================================== */

.main-menu-navbar {
  padding: 0;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  position: relative;
}

/* Hamburger button — hidden on desktop */
.main-menu-navbar .navbar-toggler {
  display: none;
  border: none;
  padding: 0.25rem 0.5rem;
  background-color: transparent;
  cursor: pointer;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}
.main-menu-navbar .navbar-toggler:hover { opacity: 0.8; }

.main-menu-navbar .navbar-toggler-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
}

.main-menu-navbar .navbar-toggler-icon-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.main-menu-navbar .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon-line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.main-menu-navbar .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon-line:nth-child(2) { opacity: 0; }
.main-menu-navbar .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon-line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.main-menu-navbar .navbar-collapse {
  flex: 1 1 auto;
  min-width: 0;
}

/* Single <ul> from menu--main.html.twig */
.main-menu-navbar .nav-list {
  display: flex;
  flex-direction: row;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  justify-content: flex-end;
}
.main-menu-navbar .nav-item {
  margin: 0;
  padding: 0;
  position: relative;
}
.main-menu-navbar .nav-link {
  display: block;
  padding: 0.5rem 1rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 17.25px;
  line-height: 1;
  color: #ffffff;
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease, font-weight 0.2s ease;
  white-space: nowrap;
}
.main-menu-navbar .nav-link:hover,
.main-menu-navbar .nav-link:focus { color: #ffffff; font-weight: 500; }
.main-menu-navbar .nav-link:hover::after,
.main-menu-navbar .nav-link:focus::after { width: calc(100% - 2rem); }
.main-menu-navbar .nav-link:focus-visible {
  outline: 2px solid rgba(255,255,255,0.7);
  outline-offset: 3px;
  border-radius: 2px;
}
.main-menu-navbar .nav-link.is-active { color: #ffffff; font-weight: 700; }
.main-menu-navbar .nav-link.is-active::after { width: calc(100% - 2rem); }

/* Mobile (<=991px) */
@media (max-width: 991px) {
  .main-menu-navbar .navbar-toggler { display: block; }
  .main-menu-navbar .navbar-collapse {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgb(13, 38, 38);
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    z-index: 1001;
    padding: 0;
  }
  .main-menu-navbar .navbar-collapse.show { display: block; }
  .main-menu-navbar .nav-list {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
  }
  .main-menu-navbar .nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .main-menu-navbar .nav-item:last-child { border-bottom: none; }
  .main-menu-navbar .nav-link {
    padding: 0.9rem 1.25rem;
    width: 100%;
    font-size: 1rem;
    color: #ffffff;
    transition: background-color 0.15s ease, padding-left 0.15s ease;
  }
  .main-menu-navbar .nav-link:hover,
  .main-menu-navbar .nav-link:focus {
    background-color: rgba(255,255,255,0.07);
    color: #ffffff;
    padding-left: 1rem;
    font-weight: 400;
  }
  .main-menu-navbar .nav-link::after { display: none; }
  .main-menu-navbar .nav-link.is-active {
    color: #ffffff;
    background-color: rgba(255,255,255,0.1);
    border-left: 3px solid rgba(255,255,255,0.6);
    padding-left: calc(1.25rem - 3px);
    font-weight: 600;
  }
}

/* Desktop (>=992px) */
@media (min-width: 992px) {
  .main-menu-navbar .navbar-toggler { display: none; }
  .main-menu-navbar .navbar-collapse {
    display: flex !important;
    position: static;
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
  }
}

@media (max-width: 768px) {
  .search-form-wide {
    padding-top: 10vh;
  }
  
  .search-form-wide__inner {
    width: 95%;
    padding: 1.5rem;
  }
  
  .search-toggle {
    width: 36px;
    height: 36px;
  }
}

/* Page Banner Section */
.page-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #333;
  z-index: 1;
  pointer-events: none;
}

.page-banner > * {
  pointer-events: auto;
}

/* Ensure banner doesn't cover content on initial load */
body.node-type-page {
  position: relative;
}

/* Make sure content area is above banner */
body.node-type-page #main.content {
  position: relative;
  z-index: 10;
}

.page-banner__image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-banner__image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.page-banner__video {
  position: relative;
  width: 100%;
  height: 100%;
  opacity: 0.6;
  overflow: hidden;
}

.page-banner__video-iframe {
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0 */
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
}

.page-banner__video-element {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
}

.page-banner__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
  z-index: 2;
}

.page-banner__content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 4rem 0;
  margin-top: 80px; /* Account for header height */
}

.page-banner__text {
  text-align: center;
  color: white;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

  /* Contact page styling for consistent layout */
  body.path-contact .page-banner {
    position: relative;
    min-height: 60vh;
    pointer-events: auto;
  }

  body.path-contact .page-banner__content {
    margin-top: 0;
    padding: 3rem 0;
  }

  body.path-contact .page-banner__text {
    max-width: 900px;
    margin: 0 auto;
  }

  body.path-contact .content {
    margin-top: 0;
    padding: 0 1rem 4rem;
  }

  body.path-contact .content-area {
    max-width: 960px;
    margin: 0 auto;
  }

  body.path-contact .clients-section {
    display: none;
  }

  body.path-contact #footer.footer {
    background-color: #0f1717;
    color: #f4f2ee;
  }

  body.path-contact #footer.footer a {
    color: #c0a98b;
  }
  margin: 0;
  line-height: 1.5;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  opacity: 0.95;
}

/* Clients Section */
.clients-section {
  background-color: #f8f9fa;
  padding: 4rem 0;
  margin-top: 3rem;
  overflow-x: hidden; /* prevent horizontal scroll from children */
}

@media (min-width: 769px) {
  /* Desktop: enable carousel/grid presentation */
  .clients-slider-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    transform: none !important;
    overflow: hidden;
  }

  .clients-slider.bxslider {
    /* Desktop carousel: keep items inline and allow JS to size/translate */
    white-space: nowrap;
    overflow: visible;
  }

  .clients-slider.bxslider .clients-slider__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    padding: 1rem;
    box-sizing: border-box;
    text-align: center;
    min-height: 170px;
    height: 170px;
    flex-direction: column;
    opacity: 1;
    visibility: visible;
    flex-shrink: 0;
  }

  body.node-type-page .clients-section {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  }
}
.clients-section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.clients-section__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  color: #333;
}

.clients-section__content {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Clients Slider Wrapper */
.clients-slider-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.clients-slider.bxslider {
  /* Mobile-first: stack items vertically and avoid horizontal scrolling */
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  white-space: normal;
  display: block;
  min-height: 170px;
}

.clients-slider.bxslider .clients-slider__item {
  /* Mobile: each item is full-width and centered */
  display: block;
  width: 100%;
  padding: 0.75rem 0.5rem;
  box-sizing: border-box;
  text-align: center;
  min-height: 120px;
  height: auto;
  opacity: 1;
  visibility: visible;
}

.clients-slider.bxslider .clients-slider__item img {
  max-width: 80%;
  height: auto;
  margin: 0 auto;
}

.clients-slider.bxslider .clients-slider__item img {
  max-width: 100%;
  max-height: 150px;
  width: auto;
  height: auto;
  display: block;
  margin: auto;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
  object-fit: contain;
  align-self: center;
}

.clients-slider.bxslider .clients-slider__item:hover img {
  filter: grayscale(0%);
}

.clients-slider.bxslider .clients-slider__item-name {
  display: block;
  text-align: center;
  font-size: 1rem;
  color: #333;
  padding: 1rem;
}

.clients-slider__controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Show controls when hovering over clients section - highest priority */
.clients-section:hover .clients-slider__controls,
.clients-section:hover .clients-section__content .clients-slider__controls {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Show controls when hovering over slider container */
.clients-section__content:hover .clients-slider__controls {
  opacity: 1;
  visibility: visible;
}

/* Show controls when hovering over slider itself */
.clients-slider.bxslider:hover ~ .clients-slider__controls {
  opacity: 1;
  visibility: visible;
}

/* Also show controls when hovering directly over controls */
.clients-slider__controls:hover {
  opacity: 1;
  visibility: visible;
}

.clients-slider__button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  background-color: #fff;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.12s ease, box-shadow 0.12s ease;
  color: #333;
  line-height: 0;
}

.clients-slider__button:hover {
  transform: translateY(-1px);
  background-color: #5F7372;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.12);
}

.clients-slider__button:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.12);
}

.clients-slider__button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.clients-slider__button svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* Ensure SVG strokes follow current text color */
.clients-slider__button svg path,
.clients-slider__button svg line,
.clients-slider__button svg polyline {
  stroke: currentColor;
  fill: none;
}

/* Position prev/next buttons at the sides of the slider on wider screens */
.clients-slider-wrapper {
  position: relative; /* ensure absolutely positioned arrows are relative to wrapper */
}

.clients-slider__button--prev,
.clients-slider__button--next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  background-clip: padding-box;
}

.clients-slider__button--prev {
  left: 12px;
}

.clients-slider__button--next {
  right: 12px;
}

/* On small screens make arrows inline and part of the controls flow */
@media (max-width: 768px) {
  .clients-slider__button--prev,
  .clients-slider__button--next {
    transform: none;
    margin: 0 8px;
  }

  /* Ensure wrapper doesn't hide inline controls area on mobile */
  .clients-slider-wrapper {
    padding: 0.5rem 0;
  }
}

.clients-slider__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.clients-slider__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ccc;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.clients-slider__dot.active {
  background-color: #007bff;
  transform: scale(1.2);
}

.clients-slider__dot:hover {
  background-color: #007bff;
  opacity: 0.7;
}

/* Add spacing for content after banner */
body.node-type-page .content {
  position: relative;
  z-index: 10;
  margin-top: 100vh;
  background-color: #fff;
  min-height: 100vh;
}

/* When header is not fixed, adjust content position to show clients section */
body.node-type-page:not(.header-fixed) .content {
  margin-top: calc(100vh - 300px); /* Show more content when header is not fixed */
}

/* Ensure clients section is always visible and fixed at bottom */
body.node-type-page .clients-section {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  background-color: transparent;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  padding: 2rem 0;
  margin-top: 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

body.node-type-page .clients-section li {
  background-color: transparent;
}

/* Ensure node content is visible on page load */
body.node-type-page .node--type-page {
  position: relative;
  z-index: 10;
}

/* Ensure footer is visible on node pages */
body.node-type-page #footer.footer {
  position: relative;
  z-index: 10;
  display: block;
  visibility: visible;
  opacity: 1;
  margin-top: 0;
  background-color: #333;
  color: white;
  padding: 2rem 0;
}

/* Responsive adjustments for banner and clients */
@media (max-width: 768px) {
  .page-banner {
    height: 100vh;
    min-height: 100vh;
  }
  
  .page-banner__title {
    font-size: 2.5rem;
  }
  
  .page-banner__subtitle {
    font-size: 1.2rem;
  }
  
  .page-banner__content {
    padding: 2rem 0;
    margin-top: 60px; /* Smaller header on mobile */
  }
  
  body.node-type-page .content {
    margin-top: 100vh;
  }
  
  .clients-section {
    padding: 3rem 0;
  }
  
  .clients-section__title {
    font-size: 2rem;
  }
  
  .clients-slider__item {
    padding: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    min-height: 170px;
    height: 100%;
  }
  
  .clients-slider__controls {
    margin-top: 1.5rem;
    /* On mobile (touch), show controls by default since hover is not available */
    opacity: 1;
    visibility: visible;
  }
}

@media (min-width: 769px) {
  /* Desktop: use wrapper grid and show carousel controls */
  .clients-slider-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    transform: none !important;
    overflow: hidden;
  }
  
  .clients-slider.bxslider {
    white-space: nowrap;
    overflow: visible;
  }
  
  .clients-slider.bxslider .clients-slider__item {
    flex: none;
    opacity: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    min-height: 170px;
    height: 170px;
    padding: 1rem;
    box-sizing: border-box;
    text-align: center;
  }
  
  /* Show controls/dots on desktop (they will still be toggled by hover rules elsewhere) */
  .clients-slider__controls,
  .clients-slider__dots {
    display: flex;
  }
}

/* Advanced Language Selector — minimal (flags only, visually) */
.lang-selector.lang-selector--minimal {
  position: relative;
  display: inline-flex;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.lang-selector--minimal .lang-selector__wrapper {
  position: relative;
}

.lang-selector--minimal .lang-selector__button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.45rem;
  min-width: unset;
  margin: 0;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  color: #5f7372;
  cursor: pointer;
  box-shadow: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.lang-selector--minimal .lang-selector__button:hover {
  background: #f6f7f7;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.lang-selector--minimal .lang-selector__button[aria-expanded="true"] {
  background: #fff;
  border-color: #5f7372;
  box-shadow: 0 0 0 1px rgba(95, 115, 114, 0.2);
}

.lang-selector--minimal .lang-selector__button[aria-expanded="true"] .lang-selector__arrow {
  transform: rotate(180deg);
}

.lang-selector--minimal .lang-selector__button-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: auto;
}

.lang-selector--minimal .lang-selector__flag {
  display: block;
  width: 1.375rem;
  height: 1rem;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.lang-selector--minimal .lang-selector__flag--current {
  width: 1.375rem;
  height: 1rem;
}

.lang-selector--minimal .lang-selector__code-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1rem;
  padding: 0 0.2rem;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #5f7372;
  background: rgba(95, 115, 114, 0.12);
  border-radius: 2px;
}

.lang-selector--minimal .lang-selector__arrow {
  margin-left: 0;
  width: 8px;
  height: 5px;
  flex-shrink: 0;
  opacity: 0.65;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.lang-selector--minimal .lang-selector__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: unset;
  width: max-content;
  padding: 0.25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  z-index: 1002;
  max-height: 280px;
  overflow-y: auto;
  overflow-x: hidden;
}

.lang-selector--minimal .lang-selector__dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
}

.lang-selector--minimal .lang-selector__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.lang-selector--minimal .lang-selector__item {
  margin: 0;
  padding: 0;
}

.lang-selector--minimal .lang-selector__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  margin: 0 auto;
  color: inherit;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  background: transparent;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.lang-selector--minimal .lang-selector__link:hover {
  background: rgba(95, 115, 114, 0.08);
}

.lang-selector--minimal .lang-selector__item--active .lang-selector__link {
  background: rgba(95, 115, 114, 0.12);
  box-shadow: inset 0 0 0 1px rgba(95, 115, 114, 0.35);
}

.lang-selector--minimal .lang-selector__link .lang-selector__flag {
  width: 1.5rem;
  height: 1.0625rem;
}

.lang-selector--minimal .lang-selector__link .lang-selector__code-fallback {
  min-width: 1.5rem;
  height: 1.0625rem;
  font-size: 0.5625rem;
}

.lang-selector--minimal .lang-selector__dropdown::-webkit-scrollbar {
  width: 4px;
}

.lang-selector--minimal .lang-selector__dropdown::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}

@media (max-width: 768px) {
  .lang-selector--minimal .lang-selector__button {
    padding: 0.3rem 0.4rem;
  }

  .lang-selector--minimal .lang-selector__flag,
  .lang-selector--minimal .lang-selector__flag--current {
    width: 1.25rem;
    height: 0.9375rem;
  }

  .lang-selector--minimal .lang-selector__link {
    width: 2.375rem;
    height: 2.375rem;
  }
}

/* Dark header / nav strip */
.header .lang-selector--minimal .lang-selector__button,
.navigation .lang-selector--minimal .lang-selector__button {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.9);
}

.header .lang-selector--minimal .lang-selector__button:hover,
.navigation .lang-selector--minimal .lang-selector__button:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
}

.header .lang-selector--minimal .lang-selector__button[aria-expanded="true"],
.navigation .lang-selector--minimal .lang-selector__button[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.header .lang-selector--minimal .lang-selector__arrow,
.navigation .lang-selector--minimal .lang-selector__arrow {
  color: rgba(255, 255, 255, 0.85);
  opacity: 0.9;
}

.navigation .lang-selector--minimal .lang-selector__dropdown {
  color: #333;
}

.navigation .lang-selector--minimal .lang-selector__link:hover {
  background: rgba(95, 115, 114, 0.08);
}

.navigation .lang-selector--minimal .lang-selector__code-fallback {
  color: #5f7372;
  background: rgba(95, 115, 114, 0.12);
}

/* Projects View Styles */
.projects-view__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 2rem;
  color: #333;
}

.form-item-field-portfolio-category-target-id {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.project-filter-options {
  display: flex;
  justify-content: center;
}

.project-filter-options ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-filter-options li {
  position: relative;
}

.project-filter-options li + li::before {
  content: "|";
  margin: 0 0.75rem;
  color: #999;
}

.project-filter-options li:last-child::after {
  content: "";
}

.project-filter-options a {
  font-family: 'Montserrat', sans-serif;
  text-decoration: none;
  color: #333;
  font-weight: 100;
}

.project-filter-options a.bef-link--selected {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  margin-right: 0.5rem;
  color: #333;
}

.project-filter-options li a.bef-link--selected {
  text-decoration: underline;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
}

.projects-view__filters {
  margin-bottom: 3rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid #e0e0e0;
}

.projects-view__filters .views-exposed-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}
.projects-view__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  margin: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Tablet: 2 columns */
@media (min-width: 576px) {
  .projects-view__content {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.35rem;
  }
}

/* Desktop: 3 columns */
@media (min-width: 992px) {
  .projects-view__content {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
}

/* Large screens: 4 columns max */
@media (min-width: 1200px) {
  .projects-view__content {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
  }
}

/* Project Item Styles */
.project-item {
  position: relative;
}

.project-item__image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 75%; /* 4:3 aspect ratio */
  overflow: hidden;
  background-color: #f0f0f0;
}

.project-item__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.project-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(70%) sepia(25%) hue-rotate(90deg);
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.project-item:hover .project-item__image img {
  filter: none;
  opacity: 0.75;
}

.project-item__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
}

.project-item__info {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.project-item__title a {
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
}

.project-item__details_title a {
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
}

.project-item__details {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.project-item:hover .project-item__info {
  opacity: 0;
}

.project-item:hover .project-item__details {
  opacity: 1;
  visibility: visible;
}

.project-item__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: #666;
  font-family: 'Inter', sans-serif;
}

/* Pager Styles */
.projects-view .pager {
  margin-top: 3rem;
  text-align: center;
}

.projects-view .pager__items {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.projects-view .pager__item {
  margin: 0;
}

.projects-view .pager__item a,
.projects-view .pager__item span {
  display: inline-block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: #333;
  font-family: 'Inter', sans-serif;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.projects-view .pager__item a:hover {
  background-color: #f8f9fa;
  border-color: #007bff;
}

.projects-view .pager__item.is-active span {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}

/* ==========================================================================
   Portfolio paragraph — featured projects (bento grid)
   ========================================================================== */

.paragraph--type--portfolio.portfolio-showcase {
  --portfolio-accent: #a68966;
  --portfolio-text: #333333;
  --portfolio-muted: #777777;
  --portfolio-radius: 20px;
  --portfolio-gap: 20px;
  --portfolio-bg: #f5f5f4;
  position: relative;
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  background-color: var(--portfolio-bg);
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 51.1vw);
  margin-right: calc(50% - 50vw);
  background-image: url("../images/testimonial-decor.png");
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: 100% auto;
}

.portfolio-showcase__waves {
  position: absolute;
  top: 8%;
  bottom: 8%;
  width: min(140px, 12vw);
  pointer-events: none;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='400' viewBox='0 0 80 400' fill='none'%3E%3Cpath stroke='%23c8c8c4' stroke-width='1.2' d='M12 0c0 40-8 80 0 120s8 80 0 120 8 80 0 120 8 80 0 120'/%3E%3Cpath stroke='%23c8c8c4' stroke-width='1.2' d='M28 0c0 35 10 75 0 115s-10 75 0 115 10 75 0 115-10 75 0 115'/%3E%3Cpath stroke='%23c8c8c4' stroke-width='1.2' d='M44 0c0 42-6 82 0 122s6 82 0 122-6 82 0 122 6 82 0 122'/%3E%3Cpath stroke='%23c8c8c4' stroke-width='1.2' d='M60 0c0 38 7 78 0 118s-7 78 0 118 7 78 0 118-7 78 0 118'/%3E%3C/svg%3E");
  background-repeat: repeat-y;
  background-size: 100% auto;
}

.portfolio-showcase__waves--left {
  left: 0;
}

.portfolio-showcase__waves--right {
  right: 0;
  transform: scaleX(-1);
}

.portfolio-showcase__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.portfolio-showcase__header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
}

.portfolio-showcase__eyebrow {
  margin: 0 0 0.65rem;
  font-family: 'Scala Sans Pro', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: none;
  color: var(--portfolio-accent);
}

.portfolio-showcase__title {
  margin: 0 0 1rem;
  font-family: 'Scala Sans Pro', sans-serif;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--portfolio-text);
}

.portfolio-showcase__subtitle {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--portfolio-muted);
}

.portfolio-showcase__subtitle .field__label,
.portfolio-showcase__subtitle .field-label {
  display: none;
}

.portfolio-showcase__subtitle .text-formatted > *:last-child {
  margin-bottom: 0;
}

.portfolio-showcase__grid {
  display: grid;
  gap: var(--portfolio-gap);
  grid-template-columns: 1fr;
}

.portfolio-showcase__card {
  position: relative;
  display: block;
  border-radius: var(--portfolio-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  min-height: 220px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.portfolio-showcase__card:hover,
.portfolio-showcase__card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  outline: none;
}

.portfolio-showcase__card:focus-visible {
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--portfolio-accent);
}

.portfolio-showcase__card-media {
  position: absolute;
  inset: 0;
  background-color: #e5e5e2;
}

.portfolio-showcase__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.portfolio-showcase__card:hover .portfolio-showcase__card-img,
.portfolio-showcase__card:focus-visible .portfolio-showcase__card-img {
  transform: scale(1.04);
}

.portfolio-showcase__card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.2) 38%,
    transparent 72%
  );
  pointer-events: none;
}

.portfolio-showcase__card-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 1.35rem 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  text-align: left;
}

.portfolio-showcase__card-category {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--portfolio-accent);
}

.portfolio-showcase__card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.35;
  color: #ffffff;
  max-width: 100%;
}

.portfolio-showcase__empty {
  text-align: center;
  font-family: 'Inter', sans-serif;
  color: var(--portfolio-muted);
  margin: 2rem 0;
}

.portfolio-showcase__actions {
  display: flex;
  justify-content: center;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.portfolio-showcase__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 320px);
  padding: 0.95rem 2.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--portfolio-text);
  border: 1px solid #d0d0cd;
  background-color: transparent;
  border-radius: 2px;
  transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}

.portfolio-showcase__cta:hover,
.portfolio-showcase__cta:focus-visible {
  border-color: var(--portfolio-accent);
  color: var(--portfolio-accent);
  outline: none;
}

/* Tablet: two columns, first card full width */
@media (min-width: 768px) {
  .portfolio-showcase__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(200px, auto);
  }

  .portfolio-showcase__card:nth-child(1) {
    grid-column: 1 / -1;
    min-height: 340px;
  }
}

/* Desktop: bento layout */
@media (min-width: 992px) {
  .portfolio-showcase__grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: minmax(200px, 14vw) minmax(200px, 14vw) minmax(180px, 12vw);
  }

  .portfolio-showcase__card {
    min-height: 0;
  }

  .portfolio-showcase__card:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
    min-height: 0;
  }

  .portfolio-showcase__card:nth-child(2) {
    grid-column: 3;
    grid-row: 1;
  }

  .portfolio-showcase__card:nth-child(3) {
    grid-column: 3;
    grid-row: 2;
  }

  .portfolio-showcase__card:nth-child(4) {
    grid-column: 1;
    grid-row: 3;
  }

  .portfolio-showcase__card:nth-child(5) {
    grid-column: 2;
    grid-row: 3;
  }

  .portfolio-showcase__card:nth-child(6) {
    grid-column: 3;
    grid-row: 3;
  }
}

/* ==========================================================================
   Testimonials paragraph
   ========================================================================== */

.paragraph--type--testimonials.testimonials-section {
  --testimonials-bg: #f9f7f2;
  --testimonials-accent: #c5a075;
  --testimonials-title: #333333;
  --testimonials-quote: #555555;
  --testimonials-muted: #999999;
  --testimonials-rule: #e8e8e4;
  --testimonials-wave: #e8dfd0;
  position: relative;
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  padding-top: 0;
  background-color: var(--testimonials-bg);
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 51.1vw);
  margin-right: calc(50% - 50vw);
}

.testimonials-section__waves {
  position: absolute;
  top: 5%;
  bottom: 5%;
  width: min(160px, 14vw);
  pointer-events: none;
  opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='400' viewBox='0 0 72 400' fill='none'%3E%3Cpath stroke='%23e8dfd0' stroke-width='1.15' d='M10 0c2 48-6 96 2 144s6 96-2 144 6 96 2 144'/%3E%3Cpath stroke='%23e8dfd0' stroke-width='1.15' d='M26 0c-2 44 8 92 0 140s-8 92 0 140 8 92 0 140'/%3E%3Cpath stroke='%23e8dfd0' stroke-width='1.15' d='M42 0c4 52-4 100 4 148s4 100-4 148 4 100 4 148'/%3E%3Cpath stroke='%23e8dfd0' stroke-width='1.15' d='M58 0c-3 46 7 94-1 142s7 94-1 142 7 94-1 142'/%3E%3C/svg%3E");
  background-repeat: repeat-y;
  background-size: 100% auto;
}

.testimonials-section__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: clamp(3.5rem, 8vw, 5.5rem) !important;
  background-image: url("../images/testimonial-decor.png");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;
  overflow: hidden;
}

.testimonials-section__header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.testimonials-section__eyebrow {
  margin: 0 0 0.75rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--testimonials-accent);
}

.testimonials-section__title {
  margin: 0 0 1rem;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--testimonials-title);
}

.testimonials-section__lead {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--testimonials-muted);
}

.testimonials-section__lead .field__label,
.testimonials-section__lead .field-label {
  display: none;
}

.testimonials-section__lead .text-formatted > *:last-child {
  margin-bottom: 0;
}

.testimonials-section__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 3vw, 1.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 768px) {
  .testimonials-section__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .testimonials-section__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }
}

.testimonials-section__cell {
  margin: 0;
  padding: 0;
  list-style: none;
}

.testimonials-section__card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
}

.testimonials-section__stars {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.2rem;
  margin-bottom: 1.25rem;
  line-height: 1;
}

.testimonials-section__star {
  font-size: 1.05rem;
  color: var(--testimonials-rule);
  opacity: 0.45;
}

.testimonials-section__star.is-filled {
  color: var(--testimonials-accent);
  opacity: 1;
}

.testimonials-section__quote {
  flex: 1 1 auto;
  width: 100%;
  margin: 0 0 1.35rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--testimonials-quote);
}

.testimonials-section__quote > *:first-child {
  margin-top: 0;
}

.testimonials-section__quote > *:last-child {
  margin-bottom: 0;
}

.testimonials-section__rule {
  width: 100%;
  height: 0;
  margin: 0 0 1.15rem;
  border: 0;
  border-top: 1px solid var(--testimonials-rule);
}

.testimonials-section__author {
  margin: 0 0 0.35rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--testimonials-title);
}

.testimonials-section__project {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--testimonials-muted);
}

.testimonials-section__empty {
  text-align: center;
  font-family: 'Inter', sans-serif;
  color: var(--testimonials-muted);
  margin: 2rem 0 0;
}

/* ==========================================================================
   Contact paragraph
   ========================================================================== */

.paragraph--type--contact.contact-section {
  --contact-bg: #3e3e3b;
  --contact-accent: #c0a98b;
  --contact-button: #a7b19e;
  --contact-text: #ffffff;
  --contact-input-border: rgba(255, 255, 255, 0.28);
  --contact-placeholder: rgba(255, 255, 255, 0.45);
  --contact-pattern: rgba(255, 255, 255, 0.07);
  position: relative;
  padding: clamp(3.25rem, 7vw, 5.5rem) 0;
  background-color: var(--contact-bg);
  color: var(--contact-text);
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 51.1vw);
  margin-right: calc(50% - 50vw);
}

.contact-section__pattern {
  position: absolute;
  inset: 0 50% 0 0;
  pointer-events: none;
  opacity: 0.1;
  background-image: url("../images/footer-decor.png");
  background-repeat: no-repeat;
  background-position: 0 0%;
  background-size: min(100%, 100%) auto;
}

@media (max-width: 991px) {
  .contact-section__pattern {
    inset: 0;
    opacity: 0.35;
  }
}

.contact-section__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.contact-section__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 3.5rem);
  align-items: start;
}

@media (min-width: 992px) {
  .contact-section__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: stretch;
  }
}

.contact-section__eyebrow {
  margin: 0 0 1rem;
  font-family: 'Scala Sans Pro', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--contact-accent);
}

.contact-section__title {
  margin: 0 0 1.25rem;
  font-family: 'Scala Sans Pro', sans-serif;
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--contact-text);
}

.contact-section__lead {
  margin: 0 0 2.25rem;
  max-width: 28rem;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--contact-text);
  opacity: 0.95;
}

.contact-section__lead .field__label,
.contact-section__lead .field-label {
  display: none;
}

.contact-section__lead .text-formatted > *:last-child {
  margin-bottom: 0;
}

.contact-section__channels {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-section__channel {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-section__channel-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--contact-accent);
}

.contact-section__svg {
  display: block;
}

.contact-section__channel-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-top: 0.15rem;
}

.contact-section__channel-label {
  font-family: 'Scala Sans Pro', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: capitalize;
  color: var(--contact-accent);
}

.contact-section__channel-value {
  font-family: 'Scala Sans Pro', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--contact-text);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a.contact-section__channel-value:hover,
a.contact-section__channel-value:focus-visible {
  opacity: 0.85;
  outline: none;
}

.contact-section__form-card {
  background-color: transparent;
}

.contact-section__form-unavailable {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--contact-placeholder);
  padding: 1rem 0;
}

/* Core Contact message form inside section */
.contact-section .contact-section__message-form .form-item {
  margin-top: 0;
  margin-bottom: 1.35rem;
}

.contact-section .contact-section__message-form label,
.contact-section .contact-section__message-form .fieldset-legend,
.contact-section .contact-section__message-form .form-item__label {
  display: block;
  margin-bottom: 0.45rem;
  font-family: 'Scala Sans Pro', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--contact-accent);
}

.contact-section .contact-section__message-form input[type='text'],
.contact-section .contact-section__message-form input[type='email'],
.contact-section .contact-section__message-form input[type='tel'],
.contact-section .contact-section__message-form input[type='url'],
.contact-section .contact-section__message-form select,
.contact-section .contact-section__message-form textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 0.95rem;
  font-family: 'Scala Sans Pro', sans-serif;
  font-size: 0.95rem;
  color: var(--contact-text);
  background-color: rgba(0, 0, 0, 0.12);
  border: 1px solid var(--contact-input-border);
  border-radius: 2px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.contact-section .contact-section__message-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-section .contact-section__message-form input:focus,
.contact-section .contact-section__message-form select:focus,
.contact-section .contact-section__message-form textarea:focus {
  outline: none;
  border-color: var(--contact-accent);
  background-color: rgba(0, 0, 0, 0.18);
}

.contact-section .contact-section__message-form input::placeholder,
.contact-section .contact-section__message-form textarea::placeholder {
  color: var(--contact-placeholder);
  opacity: 1;
}

.contact-section .contact-section__message-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23c0a98b' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.25rem;
  cursor: pointer;
}

.contact-section .contact-section__message-form select option {
  color: #1a1a1a;
  background-color: #fff;
}

.contact-section .contact-section__message-form .form-actions {
  margin-top: 0.5rem;
  margin-bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.contact-section .contact-section__message-form .form-actions .button,
.contact-section .contact-section__message-form .form-actions input[type='submit'],
.contact-section .contact-section__message-form .form-actions .button--primary {
  margin: 0;
  padding: 0.9rem 1.85rem;
  font-family: 'Scala Sans Pro', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--contact-text);
  background-color: var(--contact-button);
  border: 1px solid var(--contact-button);
  border-radius: 2px;
  cursor: pointer;
  transition: filter 0.2s ease, background-color 0.2s ease;
}

.contact-section .contact-section__message-form .form-actions .button:hover,
.contact-section .contact-section__message-form .form-actions input[type='submit']:hover {
  filter: brightness(1.06);
}

.contact-section .contact-section__message-form .contact-hidden,
.contact-section .contact-section__message-form .contact-hidden-rendering,
.contact-section .contact-section__message-form .js-form-type-checkbox.contact-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;
}

.contact-section .contact-section__message-form .contact-section__preview-button {
  display: none !important;
}

.contact-section .contact-section__message-form .form-item-copy {
  margin-top: -0.5rem;
}

  /* Bootstrap-inspired Contact page form styles */
  .contact-page .form-item,
  .contact-page .form-type-textfield,
  .contact-page .form-type-email,
  .contact-page .form-type-textarea,
  .contact-page .form-type-select {
    margin-bottom: 1rem;
  }

  .contact-page .form-item label,
  .contact-page .fieldset-legend,
  .contact-page .form-item__label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4a4a4a;
  }

  .contact-page input[type='text'],
  .contact-page input[type='email'],
  .contact-page input[type='tel'],
  .contact-page select,
  .contact-page textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.35rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  }

  .contact-page input[type='text']:focus,
  .contact-page input[type='email']:focus,
  .contact-page input[type='tel']:focus,
  .contact-page select:focus,
  .contact-page textarea:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  }

  .contact-page textarea {
    min-height: 180px;
    resize: vertical;
  }

  .contact-page .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.25rem;
  }

  .contact-page .button,
  .contact-page input[type='submit'],
  .contact-page .button--primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.6rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background-color: #4a5568;
    border: 1px solid #4a5568;
    border-radius: 0.35rem;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  }

  .contact-page .button:hover,
  .contact-page input[type='submit']:hover,
  .contact-page .button--primary:hover {
    background-color: #2d3748;
    border-color: #2d3748;
    transform: translateY(-1px);
  }

  .contact-page .form-text,
  .contact-page .description,
  .contact-page .help-block {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 0.35rem;
  }

.landing-footer__inner {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.landing-footer__main {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.25rem, 5vw, 3.5rem);
  align-items: start;
}

@media (min-width: 768px) {
  .landing-footer__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-footer__col--brand {
    grid-column: 1 / -1;
    max-width: 28rem;
  }
}

@media (min-width: 992px) {
  .landing-footer__main {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr) minmax(0, 0.85fr);
    gap: clamp(2rem, 4vw, 3.5rem);
  }

  .landing-footer__col--brand {
    grid-column: auto;
    max-width: none;
  }
}

.landing-footer__logo {
  margin: 0 0 1.1rem;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--footer-logo);
  line-height: 1.2;
}

.landing-footer__logo .field__item,
.landing-footer__logo {
  color: var(--footer-logo);
}

.landing-footer__tagline {
  margin: 0;
  max-width: 22rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--footer-text);
}

.landing-footer__tagline .field__label,
.landing-footer__tagline .field-label {
  display: none;
}

.landing-footer__tagline .text-formatted > *:last-child {
  margin-bottom: 0;
}

.landing-footer__heading {
  margin: 0 0 1.25rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--footer-accent);
}

.landing-footer__nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.landing-footer__nav-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--footer-text);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.landing-footer__nav-link:hover,
.landing-footer__nav-link:focus-visible {
  color: var(--footer-logo);
  opacity: 0.95;
  outline: none;
}

.landing-footer__social-wrap {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.landing-footer__social-wrap > * {
  margin: 0;
  padding: 0;
}

.landing-footer__social-paragraph {
  margin: 0;
  padding: 0;
}

.landing-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  text-decoration: none;
  color: var(--footer-text);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.landing-footer__social-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-sizing: border-box;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.landing-footer__social-link:hover .landing-footer__social-ring,
.landing-footer__social-link:focus-visible .landing-footer__social-ring {
  border-color: var(--footer-accent);
  color: var(--footer-accent);
  outline: none;
}

.landing-footer__social-svg {
  display: block;
  opacity: 0.95;
}

.landing-footer__sub {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 5vw, 3.25rem);
  padding-top: clamp(1.75rem, 3vw, 2.25rem);
  border-top: 1px solid var(--footer-rule);
}

@media (min-width: 768px) {
  .landing-footer__sub {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
  }
}

.landing-footer__copyright {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--footer-text);
  max-width: 36rem;
}

.landing-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.landing-footer__legal-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--footer-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.landing-footer__legal-link:hover,
.landing-footer__legal-link:focus-visible {
  color: var(--footer-logo);
  outline: none;
}

/* ==========================================================================
   Words banner paragraph
   ========================================================================== */

.paragraph--type--words-banner.words-banner {
  --words-banner-bg: #a7b09e;
  --words-banner-fg: #f1f1ed;
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  max-width: 100vw;
  margin-left: -51.1vw;
  margin-right: -50vw;
  background-color: var(--words-banner-bg);
  padding: clamp(2.75rem, 6vw, 4.25rem) 0 clamp(2.25rem, 5vw, 3.5rem);
  box-sizing: border-box;
}

.words-banner__inner {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding-left: clamp(1rem, 4vw, 2.5rem);
  padding-right: clamp(1rem, 4vw, 2.5rem);
  box-sizing: border-box;
}

.words-banner__intro {
  margin: 0 auto clamp(2rem, 4vw, 2.75rem);
  max-width: 52rem;
  padding: 0 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.9rem, 1.35vw, 1.05rem);
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--words-banner-fg);
}

.words-banner__rows.cms-marquee_component {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(0.5rem, 1.5vw, 0.85rem);
  min-height: 0;
}

.words-banner__rows:not(.is-built) {
  min-height: 8rem;
}

/* Archipelago-style horizontal marquee: duplicated track, translate -50%. */
.words-banner__marquee {
  width: 100%;
  min-height: 0;
}

.words-banner__marquee-viewport {
  overflow: hidden;
  width: 100%;
  line-height: 1.05;
}

.words-banner__marquee-track {
  --words-banner-marquee-duration: 420s;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: max-content;
  align-items: baseline;
  will-change: transform;
  animation: words-banner-marquee-shift var(--words-banner-marquee-duration) linear infinite;
}

.words-banner__marquee-track[data-marquee-direction='reverse'] {
  animation-direction: reverse;
}

.words-banner__marquee-segment {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  flex: 0 0 auto;
  align-items: baseline;
  white-space: nowrap;
  padding-right: clamp(2rem, 5vw, 4rem);
  box-sizing: content-box;
}

@keyframes words-banner-marquee-shift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .words-banner__marquee-track {
    animation: none;
    transform: none;
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.35rem;
  }

  .words-banner__marquee-track .words-banner__marquee-segment[aria-hidden='true'] {
    display: none;
  }

  .words-banner__marquee-segment {
    flex-wrap: wrap;
    justify-content: center;
    white-space: normal;
    padding-right: 0;
    text-align: center;
  }
}

.words-banner__word {
  flex-shrink: 0;
  font-family: 'Montserrat', sans-serif;
  --wb-freq: 0.2;
  font-size: clamp(
    0.65rem,
    calc(0.55rem + var(--wb-freq) * 2.35rem + 1.65vw),
    2.85rem
  );
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgb(
    calc(241 - var(--wb-freq) * 190),
    calc(241 - var(--wb-freq) * 190),
    calc(237 - var(--wb-freq) * 186)
  );
}

.words-banner__sep {
  flex-shrink: 0;
  display: inline-block;
  padding: 0 0.28em;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.1rem, 2.8vw, 2rem);
  font-weight: 700;
  line-height: 1;
  color: var(--words-banner-fg);
  opacity: 0.95;
  transform: translateY(-0.06em);
}

@media (min-width: 1200px) {
  .words-banner__word {
    font-size: clamp(
      0.85rem,
      calc(0.72rem + var(--wb-freq) * 2.65rem + 0.55vw),
      3.4rem
    );
  }

  .words-banner__sep {
    font-size: clamp(1.75rem, 2.2vw, 2.25rem);
  }
}

/* ==========================================================================
   User Login Pages Styles
   ========================================================================== */

/* User Login Page Container */
.user-login-page {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.user-login-container {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.user-login-wrapper {
  width: 100%;
}

/* Login Card */
.user-login-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  padding: 3rem 2.5rem;
  width: 100%;
  transition: box-shadow 0.3s ease;
}

.user-login-card:hover {
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

/* Login Header */
.user-login-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.user-login-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 0.75rem 0;
  line-height: 1.2;
}

.user-login-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

/* Login Messages */
.user-login-messages {
  margin-bottom: 1.5rem;
}

.user-login-messages .messages {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
}

.user-login-messages .messages--status {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.user-login-messages .messages--error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.user-login-messages .messages--warning {
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  color: #856404;
}

/* Login Content */
.user-login-content {
  margin-bottom: 2rem;
}

/* Form Styles */
.user-login-content .form-item {
  margin-bottom: 1.5rem;
}

.user-login-content .form-item:last-child {
  margin-bottom: 0;
}

.user-login-content label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.user-login-content label.option {
  font-weight: 400;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.user-login-content .form-required::after {
  content: '*';
  color: #dc3545;
  margin-left: 0.25rem;
}

/* Input Fields */
.user-login-content input[type="text"],
.user-login-content input[type="email"],
.user-login-content input[type="password"],
.user-login-content input[type="tel"],
.user-login-content textarea,
.user-login-content select {
  width: 100%;
  padding: 0.875rem 1.25rem;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: #333;
  background-color: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  line-height: 1.5;
}

.user-login-content input[type="text"]:focus,
.user-login-content input[type="email"]:focus,
.user-login-content input[type="password"]:focus,
.user-login-content input[type="tel"]:focus,
.user-login-content textarea:focus,
.user-login-content select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.user-login-content input[type="text"]:hover,
.user-login-content input[type="email"]:hover,
.user-login-content input[type="password"]:hover,
.user-login-content input[type="tel"]:hover,
.user-login-content textarea:hover,
.user-login-content select:hover {
  border-color: #b0b0b0;
}

.user-login-content input[type="text"]::placeholder,
.user-login-content input[type="email"]::placeholder,
.user-login-content input[type="password"]::placeholder {
  color: #999;
  opacity: 1;
}

/* Checkbox and Radio */
.user-login-content input[type="checkbox"],
.user-login-content input[type="radio"] {
  width: 18px;
  height: 18px;
  margin-right: 0.5rem;
  cursor: pointer;
  accent-color: #007bff;
}

.user-login-content .form-checkbox,
.user-login-content .form-radio {
  display: inline-flex;
  align-items: center;
  margin-right: 1rem;
}

/* Description Text */
.user-login-content .description {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: #666;
  margin-top: 0.5rem;
  line-height: 1.4;
}

/* Password Strength Indicator */
.user-login-content .password-strength {
  margin-top: 0.5rem;
}

.user-login-content .password-strength__title {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 0.25rem;
}

.user-login-content .password-strength__meter {
  height: 4px;
  background-color: #e0e0e0;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.user-login-content .password-strength__meter div {
  height: 100%;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.user-login-content .password-strength--weak .password-strength__meter div {
  background-color: #dc3545;
}

.user-login-content .password-strength--fair .password-strength__meter div {
  background-color: #ffc107;
}

.user-login-content .password-strength--good .password-strength__meter div {
  background-color: #17a2b8;
}

.user-login-content .password-strength--strong .password-strength__meter div {
  background-color: #28a745;
}

/* Submit Button */
.user-login-content .form-actions {
  margin-top: 2rem;
  margin-bottom: 0;
}

.user-login-content input[type="submit"],
.user-login-content button[type="submit"],
.user-login-content .button--primary {
  width: 100%;
  padding: 1rem 2rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: none;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.user-login-content input[type="submit"]:hover,
.user-login-content button[type="submit"]:hover,
.user-login-content .button--primary:hover {
  background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
  box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
  transform: translateY(-1px);
}

.user-login-content input[type="submit"]:active,
.user-login-content button[type="submit"]:active,
.user-login-content .button--primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.user-login-content input[type="submit"]:focus,
.user-login-content button[type="submit"]:focus,
.user-login-content .button--primary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3);
}

.user-login-content input[type="submit"]:disabled,
.user-login-content button[type="submit"]:disabled,
.user-login-content .button--primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Login Footer Links */
.user-login-footer {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
}

.user-login-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

.user-login-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: #007bff;
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-block;
}

.user-login-link:hover {
  color: #0056b3;
  text-decoration: underline;
}

.user-login-link--register {
  font-weight: 600;
}

.user-login-link--password {
  color: #666;
}

.user-login-link--password:hover {
  color: #333;
}

.user-login-link--back {
  color: #666;
}

.user-login-link--back:hover {
  color: #333;
}

/* Form Errors */
.user-login-content .form-item--error-message {
  color: #dc3545;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: block;
}

.user-login-content .form-item--error input,
.user-login-content .form-item--error textarea,
.user-login-content .form-item--error select {
  border-color: #dc3545;
}

.user-login-content .form-item--error input:focus,
.user-login-content .form-item--error textarea:focus,
.user-login-content .form-item--error select:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .user-login-page {
    padding: 2rem 1rem;
    min-height: calc(100vh - 150px);
  }

  .user-login-card {
    padding: 2rem 1.5rem;
    border-radius: 12px;
  }

  .user-login-title {
    font-size: 1.75rem;
  }

  .user-login-subtitle {
    font-size: 0.9rem;
  }

  .user-login-content input[type="text"],
  .user-login-content input[type="email"],
  .user-login-content input[type="password"],
  .user-login-content input[type="tel"],
  .user-login-content textarea,
  .user-login-content select {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }

  .user-login-content input[type="submit"],
  .user-login-content button[type="submit"],
  .user-login-content .button--primary {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .user-login-card {
    padding: 1.5rem 1rem;
  }

  .user-login-title {
    font-size: 1.5rem;
  }

  .user-login-links {
    gap: 0.75rem;
  }

  .user-login-link {
    font-size: 0.85rem;
  }
}

/* Accessibility Improvements */
.user-login-content input:focus-visible,
.user-login-content textarea:focus-visible,
.user-login-content select:focus-visible,
.user-login-content button:focus-visible {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

.user-login-content .visually-hidden {
  position: absolute !important;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  word-wrap: normal;
}

/* Loading State */
.user-login-content .form-submitting input[type="submit"],
.user-login-content .form-submitting button[type="submit"] {
  position: relative;
  color: transparent;
}

.user-login-content .form-submitting input[type="submit"]::after,
.user-login-content .form-submitting button[type="submit"]::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   Local Tasks (Tabs) Styles
   ========================================================================== */

/* Local Tasks Wrapper */
.local-tasks-wrapper {
  width: 100%;
}

/* Local Tasks Container */
.local-tasks {
  margin-bottom: 1.5rem;
}

.local-tasks:last-child {
  margin-bottom: 0;
}

/* Visually Hidden Headings */
.local-tasks .visually-hidden {
  position: absolute !important;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  word-wrap: normal;
}

/* Local Tasks List */
.local-tasks__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 2px solid #e0e0e0;
  gap: 0;
}

/* Local Tasks Item */
.local-tasks__item {
  margin: 0;
  padding: 0;
  position: relative;
}

/* Local Tasks Links */
.local-tasks__item a {
  display: block;
  padding: 0.875rem 1.5rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: #666;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
  background-color: transparent;
}

.local-tasks__item a:hover,
.local-tasks__item a:focus {
  color: #007bff;
  background-color: rgba(0, 123, 255, 0.05);
  outline: none;
}

/* Active Tab */
.local-tasks__item.is-active a,
.local-tasks__item.is-active a:hover,
.local-tasks__item.is-active a:focus {
  color: #007bff;
  font-weight: 600;
  border-bottom-color: #007bff;
  background-color: rgba(0, 123, 255, 0.08);
}

/* Primary Tabs */
.local-tasks--primary .local-tasks__list {
  border-bottom-color: #d0d0d0;
}

.local-tasks--primary .local-tasks__item a {
  font-size: 1rem;
  padding: 1rem 1.75rem;
}

.local-tasks--primary .local-tasks__item.is-active a {
  border-bottom-width: 4px;
}

/* Secondary Tabs */
.local-tasks--secondary {
  margin-top: 0.5rem;
}

.local-tasks--secondary .local-tasks__list {
  border-bottom-width: 1px;
  border-bottom-color: #e8e8e8;
}

.local-tasks--secondary .local-tasks__item a {
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  color: #888;
}

.local-tasks--secondary .local-tasks__item a:hover,
.local-tasks--secondary .local-tasks__item a:focus {
  color: #007bff;
  background-color: rgba(0, 123, 255, 0.05);
}

.local-tasks--secondary .local-tasks__item.is-active a {
  color: #007bff;
  border-bottom-width: 2px;
  border-bottom-color: #007bff;
  background-color: rgba(0, 123, 255, 0.05);
}

/* Focus States for Accessibility */
.local-tasks__item a:focus-visible {
  outline: 2px solid #007bff;
  outline-offset: 2px;
  border-radius: 4px 4px 0 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .local-tasks-wrapper {
    margin: 1.5rem 0;
  }

  .local-tasks__list {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #c0c0c0 transparent;
  }

  .local-tasks__list::-webkit-scrollbar {
    height: 6px;
  }

  .local-tasks__list::-webkit-scrollbar-track {
    background: transparent;
  }

  .local-tasks__list::-webkit-scrollbar-thumb {
    background-color: #c0c0c0;
    border-radius: 3px;
  }

  .local-tasks__list::-webkit-scrollbar-thumb:hover {
    background-color: #a0a0a0;
  }

  .local-tasks__item {
    flex-shrink: 0;
  }

  .local-tasks__item a {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }

  .local-tasks--primary .local-tasks__item a {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }

  .local-tasks--secondary .local-tasks__item a {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .local-tasks-wrapper {
    margin: 1rem 0;
  }

  .local-tasks__item a {
    padding: 0.625rem 1rem;
    font-size: 0.85rem;
  }

  .local-tasks--primary .local-tasks__item a {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }

  .local-tasks--secondary .local-tasks__item a {
    padding: 0.5rem 0.875rem;
    font-size: 0.8rem;
  }
}

/* Hide local tasks for service content type */
body.node-type-service .local-tasks-wrapper {
  display: none !important;
}

/* Print Styles */
@media print {
  .local-tasks-wrapper {
    display: none;
  }
}

/* ==========================================================================
   Portfolio Detail Page Styles
   ========================================================================== */

/* Prevent horizontal scroll on portfolio detail pages */
html.node-type-portfolio,
body.node-type-portfolio {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body.node-type-portfolio #main,
body.node-type-portfolio .main,
body.node-type-portfolio main {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body.node-type-portfolio .portfolio-detail {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body.node-type-portfolio main .container {
  max-width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}

/* Remove padding from content-area for portfolio content type */
body.node-type-portfolio .content-area {
  padding: 0;
}

/* ==========================================================================
   Blog/Article Styles
   ========================================================================== */

/* Blog Listing View */
.blog-view {
  padding: 4rem 0;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-view__header {
  text-align: center;
  margin-bottom: 3rem;
}

.blog-view__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: #333;
  margin: 0;
  line-height: 1.2;
}

.blog-view__content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .blog-view__content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .blog-view__title {
    font-size: 2rem;
  }
}

/* Blog Item Card */
.blog-item {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.blog-item__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.blog-item__image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 60%; /* 5:3 aspect ratio */
  overflow: hidden;
  background-color: #f0f0f0;
}

.blog-item__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.blog-item__image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
  object-position: center;
}

.blog-item:hover .blog-item__image img {
  transform: scale(1.05);
}

.blog-item__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.blog-item:hover .blog-item__overlay {
  opacity: 1;
}

.blog-item__content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-item__tags {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #5F7372;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-item__tags a {
  color: #5F7372;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-item__tags a:hover {
  color: #333;
}

.blog-item__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 1rem 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-item__title a {
  color: inherit;
  text-decoration: none;
}

.blog-item__summary {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 1rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-item__summary p {
  margin: 0;
}

.blog-item__meta {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
}

.blog-item__date {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: #999;
}

/* Blog Detail Page */
.blog-detail {
  width: 100%;
}

/* Prevent horizontal scroll on article pages */
html.node-type-article,
body.node-type-article {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

/* Remove padding from containers for blog-hero to break out */
body.node-type-article main .container {
  padding-left: 0;
  padding-right: 0;
  max-width: 100%;
}

body.node-type-article .row {
  margin-left: 0;
  margin-right: 0;
}

body.node-type-article .content-area {
  padding-left: 0;
  padding-right: 0;
}

body.node-type-article .node--type-article {
  padding-left: 0;
  padding-right: 0;
  padding-top: 0;
  padding-bottom: 2rem;
}

.blog-hero {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  height: 60vh;
  min-height: 500px;
  max-height: 700px;
  overflow: hidden;
  background-color: #333;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.blog-hero__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

/* Handle rendered images in blog-hero */
.blog-hero__image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.blog-hero__image-wrapper img,
.blog-hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  display: block;
}

.blog-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(194, 190, 190, 0.75) 0%,
    rgba(33, 51, 50, 0.75) 72.6%,
    rgba(194, 190, 190, 0) 100%
  );
  z-index: 2;
}

.blog-hero__content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 2rem;
}

.blog-hero__text {
  max-width: 900px;
  margin: 0 auto;
}

.blog-hero__tags {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-hero__tags a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-hero__tags a:hover {
  color: #ffffff;
}

.blog-hero__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 1.5rem 0;
  line-height: 1.2;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.blog-hero__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.blog-hero__author {
  font-weight: 500;
}

.blog-hero__separator {
  color: rgba(255, 255, 255, 0.7);
}

.blog-hero__date {
  color: rgba(255, 255, 255, 0.9);
}

/* Restore padding for content after blog-hero */
body.node-type-article .blog-hero ~ .blog-content {
  padding-left: 2rem;
  padding-right: 2rem;
}

.blog-content {
  background-color: #ffffff;
  padding: 4rem 0;
}

.blog-content__container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.blog-content__header {
  margin-bottom: 3rem;
  text-align: center;
}

.blog-content__tags {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #5F7372;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-content__tags a {
  color: #5F7372;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-content__tags a:hover {
  color: #333;
}

.blog-content__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 1.5rem 0;
  line-height: 1.2;
}

.blog-content__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: #666;
  margin-top: 1rem;
}

.blog-content__author {
  font-weight: 500;
}

.blog-content__separator {
  color: #999;
}

.blog-content__date {
  color: #999;
}

.blog-content__body {
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  line-height: 1.8;
  color: #555;
}

.blog-content__body p {
  margin-bottom: 1.5rem;
}

.blog-content__body p:last-child {
  margin-bottom: 0;
}

.blog-content__body h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: #333;
  margin: 2.5rem 0 1rem 0;
  line-height: 1.3;
}

.blog-content__body h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin: 2rem 0 1rem 0;
  line-height: 1.3;
}

.blog-content__body ul,
.blog-content__body ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.blog-content__body li {
  margin-bottom: 0.75rem;
}

.blog-content__body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
}

.blog-content__body blockquote {
  border-left: 4px solid #5F7372;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #666;
}

.blog-content__comments {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid #e0e0e0;
}

/* Responsive Design */
@media (max-width: 992px) {
  .blog-content__title {
    font-size: 2.5rem;
  }
  
  .blog-view__content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-hero {
    height: 50vh;
    min-height: 400px;
    max-height: 500px;
  }
  
  .blog-hero__title {
    font-size: 2.5rem;
  }
  
  .blog-hero__content {
    padding: 1.5rem;
  }
  
  .blog-content {
    padding: 3rem 0;
  }
  
  .blog-content__title {
    font-size: 2rem;
  }
  
  .blog-content__body {
    font-size: 1rem;
  }
  
  .blog-content__body h2 {
    font-size: 1.75rem;
  }
  
  .blog-content__body h3 {
    font-size: 1.25rem;
  }
  
  .blog-view__content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .blog-hero {
    height: 40vh;
    min-height: 350px;
    max-height: 450px;
  }
  
  .blog-hero__title {
    font-size: 2rem;
  }
  
  .blog-hero__content {
    padding: 1rem;
  }
  
  .blog-hero__meta {
    font-size: 0.9rem;
    flex-wrap: wrap;
  }
  
  .blog-content {
    padding: 2rem 0;
  }
  
  .blog-content__container {
    padding: 0 1rem;
  }
  
  .blog-content__title {
    font-size: 1.75rem;
  }
  
  .blog-item__content {
    padding: 1.25rem;
  }
  
  .blog-item__title {
    font-size: 1.25rem;
  }
}

/* Portfolio Hero Section */
.portfolio-hero {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0;
  margin-right: 0;
}

.portfolio-hero__slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.portfolio-hero__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.portfolio-hero__slide.is-active {
  opacity: 1;
  z-index: 2;
}

.portfolio-hero__image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.portfolio-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.portfolio-hero__content {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.portfolio-hero__text {
  margin-bottom: 2rem;
}

.portfolio-hero__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 4rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 1rem 0;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.portfolio-hero__location {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.portfolio-hero__pagination {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 3rem;
  align-items: center;
  justify-content: center;
}

.portfolio-hero__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  background-color: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
  position: relative;
}

.portfolio-hero__dot:hover {
  border-color: #ffffff;
  transform: scale(1.2);
}

.portfolio-hero__dot.is-active {
  background-color: #ffffff;
  border-color: #ffffff;
  width: 14px;
  height: 14px;
}

.portfolio-hero__cta {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
}

.portfolio-hero__info-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background-color: rgba(51, 51, 51, 0.9);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.portfolio-hero__info-btn:hover {
  background-color: rgba(51, 51, 51, 1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.portfolio-hero__info-btn:active {
  transform: translateY(0);
}

.portfolio-hero__info-btn svg {
  transition: transform 0.3s ease;
}

.portfolio-hero__info-btn:hover svg {
  transform: translateY(2px);
}

/* Portfolio Content Section */
.portfolio-content {
  background-color: #f5f5f5;
  padding: 4rem 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.portfolio-content__header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.portfolio-content__header::before {
  content: '';
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background-color: #333;
}

.portfolio-content__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin: 0;
  line-height: 1.2;
}

.portfolio-content__body {
  max-width: 900px;
  margin: 0 auto;
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  line-height: 1.8;
  color: #555;
}

.portfolio-content__body p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

.portfolio-content__body p:last-child {
  margin-bottom: 0;
}

.portfolio-content__meta {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.portfolio-meta__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.portfolio-meta__label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.portfolio-meta__value {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: #333;
  font-weight: 500;
}

/* Portfolio Gallery Section */
.portfolio-gallery {
  background-color: #ffffff;
  padding: 4rem 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.portfolio-gallery__header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.portfolio-gallery__header::before {
  content: '';
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background-color: #333;
}

.portfolio-gallery__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin: 0;
  line-height: 1.2;
}

.portfolio-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.portfolio-gallery__item {
  position: relative;
  width: 100%;
  padding-top: 75%; /* 4:3 aspect ratio */
  overflow: hidden;
  background-color: #f0f0f0;
}

.portfolio-gallery__link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-decoration: none;
}

.portfolio-gallery__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-gallery__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #ffffff;
}

.portfolio-gallery__link:hover .portfolio-gallery__overlay {
  opacity: 1;
}

.portfolio-gallery__link:hover .portfolio-gallery__image {
  transform: scale(1.1);
}

.portfolio-gallery__overlay svg {
  width: 48px;
  height: 48px;
}

/* Visually Hidden */
.visually-hidden {
  position: absolute !important;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  word-wrap: normal;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .portfolio-gallery__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 992px) {
  .portfolio-hero__title {
    font-size: 3rem;
  }

  .portfolio-content__title,
  .portfolio-gallery__title {
    font-size: 2rem;
  }

  .portfolio-gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .portfolio-hero {
    min-height: 500px;
    height: 70vh;
  }

  .portfolio-hero__title {
    font-size: 2.5rem;
  }

  .portfolio-hero__location {
    font-size: 1.1rem;
  }

  .portfolio-hero__info-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  .portfolio-content {
    padding: 3rem 0;
  }

  .portfolio-content__title,
  .portfolio-gallery__title {
    font-size: 1.75rem;
  }

  .portfolio-content__body {
    font-size: 1rem;
  }

  .portfolio-content__meta {
    flex-direction: column;
    gap: 1.5rem;
  }

  .portfolio-gallery {
    padding: 3rem 0;
  }

  .portfolio-gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .portfolio-hero {
    min-height: 400px;
    height: 60vh;
  }

  .portfolio-hero__title {
    font-size: 2rem;
  }

  .portfolio-hero__location {
    font-size: 1rem;
  }

  .portfolio-hero__pagination {
    margin-bottom: 2rem;
  }

  .portfolio-hero__cta {
    bottom: 2rem;
  }

  .portfolio-content {
    padding: 2rem 0;
  }

  .portfolio-content__title,
  .portfolio-gallery__title {
    font-size: 1.5rem;
  }

  .portfolio-gallery {
    padding: 2rem 0;
  }

  .portfolio-gallery__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .portfolio-gallery__item {
    padding-top: 75%;
  }
}

/* ==========================================================================
   Portfolio Modal Styles
   ========================================================================== */

.portfolio-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.portfolio-modal.is-open {
  pointer-events: auto;
}

.portfolio-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.portfolio-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.portfolio-modal__container {
  position: relative;
  z-index: 10;
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.portfolio-modal__close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  z-index: 20;
}

.portfolio-modal__close:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: rotate(90deg);
}

.portfolio-modal__close:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.portfolio-modal__close svg {
  width: 20px;
  height: 20px;
}

.portfolio-modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  z-index: 20;
}

.portfolio-modal__nav:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.1);
}

.portfolio-modal__nav:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.portfolio-modal__nav--prev {
  left: -70px;
}

.portfolio-modal__nav--next {
  right: -70px;
}

.portfolio-modal__nav svg {
  width: 24px;
  height: 24px;
}

.portfolio-modal__content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.portfolio-modal__image {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  animation: modalImageFadeIn 0.4s ease;
}

@keyframes modalImageFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.portfolio-modal__info {
  margin-top: 1.5rem;
  text-align: center;
  color: #ffffff;
}

.portfolio-modal__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: #ffffff;
}

.portfolio-modal__counter {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.portfolio-modal__current,
.portfolio-modal__total {
  font-weight: 600;
}

.portfolio-modal__separator {
  opacity: 0.6;
}

/* Responsive Modal */
@media (max-width: 992px) {
  .portfolio-modal__nav {
    width: 44px;
    height: 44px;
  }

  .portfolio-modal__nav--prev {
    left: 10px;
  }

  .portfolio-modal__nav--next {
    right: 10px;
  }

  .portfolio-modal__nav svg {
    width: 20px;
    height: 20px;
  }

  .portfolio-modal__close {
    top: -40px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 768px) {
  .portfolio-modal__container {
    width: 95%;
    max-height: 95vh;
  }

  .portfolio-modal__nav {
    width: 40px;
    height: 40px;
  }

  .portfolio-modal__nav--prev {
    left: 5px;
  }

  .portfolio-modal__nav--next {
    right: 5px;
  }

  .portfolio-modal__image {
    max-height: 75vh;
  }

  .portfolio-modal__title {
    font-size: 1.25rem;
  }

  .portfolio-modal__counter {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .portfolio-modal__container {
    width: 100%;
    padding: 1rem;
  }

  .portfolio-modal__close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background-color: rgba(0, 0, 0, 0.7);
  }

  .portfolio-modal__nav {
    width: 36px;
    height: 36px;
    background-color: rgba(0, 0, 0, 0.7);
  }

  .portfolio-modal__nav--prev {
    left: 5px;
  }

  .portfolio-modal__nav--next {
    right: 5px;
  }

  .portfolio-modal__image {
    max-height: 70vh;
  }

  .portfolio-modal__info {
    margin-top: 1rem;
  }

  .portfolio-modal__title {
    font-size: 1.1rem;
  }
}

/* ==========================================================================
   Services Hero Slider Styles
   ========================================================================== */

/* Remove main padding on services page to prevent horizontal scroll */
html.path-services,
body.path-services {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body.path-services #main,
body.path-services .main,
body.path-services main {
  padding: 0;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
  z-index: 1;
}

body.path-services .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.path-services .content-area,
body.path-services .col,
body.path-services .col-12 {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Restore normal padding for services grid */
body.path-services .views-element-container {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: visible !important;
}

body.path-services .content-area {
  overflow-x: visible !important;
}

body.path-services #block-forttech-theme-content {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: visible !important;
}

body.path-services .views-element-container {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: visible !important;
}

body.path-services .services-view {
  overflow-x: visible !important;
  overflow-y: visible !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  position: relative;
  min-height: auto;
}

/* Ensure main content wrapper doesn't overlap footer */
body.path-services #main.content {
  position: relative;
  z-index: 1;
}

/* Ensure content area has proper spacing */
body.path-services .content {
  position: relative;
  z-index: 1;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* Prevent body padding-top from affecting services page layout */
body.path-services.header-fixed {
  padding-top: 0 !important;
}

/* ==========================================================================
   Services Full-Width Stacked Layout Styles
   ========================================================================== */
   
/* Service Section - Full width stacked layout */
.service-section {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  left: 0;
  right: 0;
  scroll-margin-top: 6rem;
}

.wixui-anchor-menu {
  position: fixed;
  top: 35%;
  right: 1.5rem;
  z-index: 30;
  width: auto;
  padding: 0.75rem;
  display: flex;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border-radius: 1.5rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

.wixui-anchor-menu__list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wixui-anchor-menu__item {
  margin: 0;
}

.wixui-anchor-menu__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.95rem;
  height: 0.95rem;
  padding: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.14);
  color: transparent;
  font-size: 0;
  text-decoration: none;
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.wixui-anchor-menu__link::before {
  content: '';
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.wixui-anchor-menu__link:hover,
.wixui-anchor-menu__link:focus-visible,
.wixui-anchor-menu__link.is-active {
  color: #111111;
  background: #ffffff;
  border-color: rgba(34, 34, 34, 0.18);
  transform: translate3d(0, -1px, 0);
}

.wixui-anchor-menu__link.is-active {
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

.service-section__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.service-section__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(194, 190, 190, 0.75) 0%,
    rgba(33, 51, 50, 0.75) 72.6%,
    rgba(194, 190, 190, 0) 100%
  );
  z-index: 2;
}

.service-section__content {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 4rem 2rem;
}

.service-section__container {
  max-width: 1200px;
  width: 100%;
  text-align: center;
  color: #ffffff;
}

.service-section__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 1.5rem 0;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.service-section__description {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 2rem 0;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.service-section__link {
  display: inline-block;
  padding: 1rem 3rem;
  background-color: transparent;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.service-section__link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.service-section__link:active {
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
  .service-section__title {
    font-size: 2.5rem;
  }

  .service-section__description {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .service-section {
    min-height: 80vh;
  }

  .service-section__content {
    min-height: 80vh;
    padding: 3rem 1.5rem;
  }

  .service-section__title {
    font-size: 2rem;
    letter-spacing: 1px;
  }

  .service-section__description {
    font-size: 1rem;
  }

  .service-section__link {
    padding: 0.875rem 2rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .service-section {
    min-height: 70vh;
  }

  .service-section__content {
    min-height: 70vh;
    padding: 2rem 1rem;
  }

  .service-section__title {
    font-size: 1.75rem;
    letter-spacing: 0.5px;
  }

  .service-section__description {
    font-size: 0.95rem;
  }

  .service-section__link {
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
  }
}

/* Landing page — Header paragraph (full-viewport hero) */

.paragraph--type--header {
  width: 100%;
  margin: 0;
  padding: 0;
}

body.node-type-landing_page .paragraph--type--header,
body.path-landing .paragraph--type--header {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -51.1vw;
  margin-right: -50vw;
  width: 100vw;
  max-width: 100vw;
}

.landing-hero.header-hero {
  --landing-hero-pad-x: clamp(1rem, 4vw, 2.5rem);
  --landing-hero-pad-y: clamp(1.25rem, 3vw, 2rem);
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: #1a1a1a;
  background-image: var(--landing-hero-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  overflow: hidden;
}

.landing-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.12) 45%,
    rgba(0, 0, 0, 0.45) 100%
  );
  pointer-events: none;
}

.landing-hero__inner {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  padding: var(--landing-hero-pad-y) var(--landing-hero-pad-x) clamp(2rem, 6vh, 4rem);
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.65s ease;
}

.landing-hero.is-ready .landing-hero__inner {
  opacity: 1;
}

.landing-hero__logo {
  position: absolute;
  top: var(--landing-hero-pad-y);
  left: var(--landing-hero-pad-x);
  z-index: 3;
  display: block;
  line-height: 0;
}

.landing-hero__logo-img {
  display: block;
  height: clamp(36px, 5vw, 52px);
  width: auto;
  max-width: min(200px, 45vw);
  filter: brightness(0) invert(1);
}

.landing-hero__nav {
  position: absolute;
  top: var(--landing-hero-pad-y);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  padding-top: 0.35rem;
  max-width: calc(100% - 12rem);
}

.landing-hero__nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.landing-hero__nav-link {
  font-family:'Scala Sans Pro', sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: clamp(0.7rem, 1.1vw, 0.8125rem);
  letter-spacing: 0.12em;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.25s ease, color 0.25s ease;
  line-height: 20px;
  letter-spacing: 0.2px;
}

.landing-hero__nav-link:hover,
.landing-hero__nav-link:focus-visible {
  opacity: 0.85;
  outline: none;
}

.landing-hero__nav-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.landing-hero__scroll {
  position: absolute;
  left: var(--landing-hero-pad-x);
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
}

.landing-hero__scroll-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #fff;
  transition: opacity 0.25s ease;
}

.landing-hero__scroll-btn:hover,
.landing-hero__scroll-btn:focus-visible {
  opacity: 0.85;
  outline: none;
}

.landing-hero__scroll-btn:focus-visible .landing-hero__scroll-line {
  background: rgba(255, 255, 255, 0.95);
}

.landing-hero__scroll-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}

.landing-hero__scroll-line {
  display: block;
  width: 1px;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.95);
}

.landing-hero__headline {
  position: absolute;
  left: 50%;
  bottom: clamp(2rem, 6vh, 4rem);
  transform: translate(-50%, 12px);
  width: 100%;
  max-width: 48rem;
  padding: 0 1rem;
  text-align: center;
  z-index: 3;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.75s ease 0.12s, transform 0.75s ease 0.12s;
}

.landing-hero.is-ready .landing-hero__headline {
  opacity: 1;
  transform: translate(-50%, 0);
}

.landing-hero__title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5rem;
  color: #fff;
}

.landing-hero__subtitle {
  font-family:'Scala Sans Pro', sans-serif;
  font-size: clamp(0.95rem, 1.6vw, 1.125rem);
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

.landing-hero__subtitle p {
  margin: 0;
}

@media (max-width: 767px) {
  .landing-hero__logo {
    position: static;
    margin: 0 auto 1rem;
  }

  .landing-hero__nav {
    position: static;
    transform: none;
    max-width: 100%;
    margin-bottom: 1.5rem;
  }

  .landing-hero__nav-list {
    gap: 0.65rem 1rem;
  }

  .landing-hero__scroll {
    position: static;
    transform: none;
    margin: 0 auto 2rem;
  }

  .landing-hero__scroll-label {
    font-size: 0.58rem;
  }

  .landing-hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: clamp(2rem, 8vh, 4rem);
  }

  .landing-hero__headline {
    position: static;
    transform: translateY(12px);
    margin-top: auto;
    padding-bottom: 2rem;
  }

  .landing-hero.is-ready .landing-hero__headline {
    transform: translateY(0);
  }
}

body.node-type-landing_page,
body.path-landing {
  overflow-x: hidden;
}

.paragraph--type--header .logo-nauma,
.landing-hero .logo-nauma {
  position: absolute; 
  left: var(--landing-hero-pad-x);
  z-index: 10;
  width: 391px;
  height: auto;
  max-width: calc(100% - (var(--landing-hero-pad-x) * 2));
  filter: brightness(0) invert(1);
  pointer-events: none;
}

@media (max-width: 767px) {
.paragraph--type--header .logo-nauma,
.landing-hero .logo-nauma {
    left: 50%;
    transform: translateX(-50%);
    top: clamp(2rem, 8vh, 4rem);
    width: 120px;
    height: auto;
  }
}

.landing-hero__logo {
  width: 391px;
  height: auto;
}

/* ==========================================================================
   Landing — Company presentation paragraph
   ========================================================================== */

body.node-type-landing_page .paragraph--type--company-presentation,
body.path-landing .paragraph--type--company-presentation {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -51.1vw;
  margin-right: -50vw;
  width: 100vw;
  max-width: 100vw;
}

.company-presentation {
  position: relative;
  background-color: #f5f2ef;
  overflow: hidden;
}

.company-presentation::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: min(90vw, 490px);
  height: min(90vw, 570px);
  background-image: url("../images/texture.png");
  background-repeat: no-repeat;
  background-position: top right;
  background-size: contain;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.company-presentation__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(3rem, 7vw, 4.5rem) clamp(1.25rem, 5vw, 3rem);
  box-sizing: border-box;
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.company-presentation.js-company-presentation:not(.is-visible) .company-presentation__inner {
  opacity: 0;
  transform: translateY(16px);
}

@media (prefers-reduced-motion: reduce) {
  .company-presentation__inner {
    transition: none;
  }

  .company-presentation.js-company-presentation:not(.is-visible) .company-presentation__inner {
    opacity: 1;
    transform: none;
  }
}

.company-presentation__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  margin: 0 auto clamp(3rem, 6vw, 2.5rem);
  max-width: 1200px;
}

.company-presentation__title {
  font-family:'Scala Sans Pro', sans-serif;
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 400;
  line-height: 90px;
  color: #2d2d2d;
  margin: 0 0 1.25rem;
}

.company-presentation__subtitle {
  font-size: clamp(0.95rem, 1.35vw, 1.0625rem);
  font-weight: 400;
  line-height: 39px;
  color: #3a3a3a;
  margin: 0;
}

.company-presentation__subtitle p {
  margin: 0;
  font-family:'Scala Sans Pro', sans-serif;
}

.company-presentation__intro-media {
  position: relative;
  border-radius: clamp(16px, 2vw, 24px);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.company-presentation__intro-media img,
.company-presentation__intro-media picture img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

/* Full-width features band: three columns, left-aligned content */
.company-presentation__features {
  width: 100%;
  margin: 0;
  padding: clamp(2.5rem, 7vw, 2rem) 0;
  box-sizing: border-box;
}

/*
 * Theme override field--paragraph--field-items--company-presentation.html.twig outputs:
 * .features-grid > .field.field__items > article × 3 (no per-delta wrappers).
 * Grid applies to the .field__items element so the three cards are columns.
 */
.company-presentation__features-grid {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  box-sizing: border-box;
}

.company-presentation__features-grid .field__items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  width: 90%;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.company-presentation__features-grid .field__item {
  margin: 0;
  padding: 0;
  min-width: 0;
}

.company-presentation__feature {
  display: flex;
  flex-direction: column;
  align-items: anchor-center;
  text-align: left;
  max-width: 26rem;
}

.company-presentation__feature-icon {
  position: relative;
  width: 6.25rem;
  height: 6.25rem;
  flex-shrink: 0;
  margin: 0 0 1.5rem;
}

.company-presentation__feature-icon-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    repeating-radial-gradient(
      circle at center,
      transparent 0,
      transparent 3px,
      rgba(0, 0, 0, 0.045) 3px,
      rgba(0, 0, 0, 0.045) 4px
    ),
    radial-gradient(
      circle at 30% 30%,
      rgba(255, 255, 255, 0.4) 0%,
      transparent 55%
    );
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
  opacity: 1;
}

.company-presentation__feature-icon-media {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.125rem;
}

.company-presentation__feature-icon-media img,
.company-presentation__feature-icon-media picture img {
  max-width: 100%;
  max-height: 3.25rem;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0);
}

.company-presentation__feature-title {
  font-family:'Scala Sans Pro', sans-serif;
  font-size: clamp(1.125rem, 1.65vw, 1.35rem);
  font-weight: 400;
  color: #b0916e;
  margin: 0 0 1rem;
  text-align: left;
  line-height: 1.25;
}

.company-presentation__feature-body {
  font-family:'Scala Sans Pro', sans-serif;
  font-size: clamp(0.9rem, 1.15vw, 1rem);
  font-weight: 400;
  line-height: 1.7;
  color: #555;
  margin: 0;
  text-align: center;
}

.company-presentation__quote {
  margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
  padding: 0 clamp(1rem, 3vw, 1.5rem);
  max-width: 52rem;
  border: none;
  text-align: center;
}

.company-presentation__quote-text div{
  font-family:'Scala Sans Pro', sans-serif;
  font-size: clamp(0.8rem, 1.15vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.65;
  text-transform: uppercase;
  color: #888;
  margin: 0;
}

.company-presentation__quote-text strong {
  font-weight: 700;
  color: #6a6a6a;
}

/* Hide field labels if any formatter still outputs them */
.company-presentation .field__label,
.company-presentation__feature .field__label {
  display: none !important;
}

@media (max-width: 992px) {
  .company-presentation__features-grid .field__items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 4vw, 2.5rem);
  }

  .company-presentation__feature {
    max-width: none;
  }
}

@media (max-width: 767px) {
  .company-presentation__intro {
    grid-template-columns: 1fr;
  }

  .company-presentation__features-grid .field__items {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .company-presentation__feature {
    max-width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Animated title paragraph (Archipelago-style reveal_section: sticky + scrub)
   -------------------------------------------------------------------------- */
.paragraph--type--animated-title {
  margin: 0;
  padding: 0;
}

/* CONTENEDOR SCROLL */
.animated-title.reveal_section {
  position: relative;
  min-height: 220vh;
  width: 100vw;
  margin-left: calc(50% - 51.1vw);
  margin-right: calc(50% - 50vw);
}

/* STICKY */
.reveal_section__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

/* background */
.animated-title__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.animated-title__bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

/* overlay reveal */
.animated-title__bg-reveal {
  position: absolute;
  inset: 0;
  background: #f5f2eb;
  transform-origin: top;
  transform: scaleY(1);
  z-index: 2;
}

/* logo */
.animated-title__logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(180px, 40vw, 500px);
  z-index: 3;
}

/* logo solid */
.animated-title__logo-solid {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(180px, 40vw, 500px);
  opacity: 0;
  z-index: 4;
}

/* --------------------------------------------------------------------------
   Process paragraph (paragraph--type--process)
   -------------------------------------------------------------------------- */
.paragraph--type--process {
  margin: 0;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
  &:before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: min(90vw, 590px);
    height: min(90vw, 900px);
    background-image: url("../images/process-section-decor.png");
    background-repeat: no-repeat;
    background-position: top right;
    background-size: cover;
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
  }
}

.process-section {
  position: relative;
  overflow: hidden;
  background-color: #98a68d;
  color: #ffffff;
  padding: clamp(3rem, 8vw, 1.5rem) 0;
  width: 100vw;
  margin-left: calc(50% - 51.1vw);
  margin-right: calc(50% - 50vw);
}

.process-section__decor {
  position: absolute;
  top: 0;
  right: 0;
  width: min(55vw, 32rem);
  height: min(65vh, 40rem);
  max-width: 100%;
  background: url(../images/services-section-decor.png) no-repeat top right / contain;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

.process-section__inner {
  position: relative;
  z-index: 1;
}

.process-section__head {
  text-align: left;
  max-width: 52rem;
  margin: 0 0 clamp(2.5rem, 6vw, 4rem);
}

.process-section__eyebrow {
  font-family:'Scala Sans Pro', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 20px;
  letter-spacing: 0px;
  text-align: left;
  text-transform: none;
  color: #3C3C3B;
  margin: 0;
}

.process-section__title {
  font-family:'Scala Sans Pro', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 72px;
  line-height: 90px;
  letter-spacing: 0.12px;
  vertical-align: middle;
  color: #F6F3EF;
  text-align: left;
  margin: 0;
}

.process-section__lead {
  font-family:'Scala Sans Pro', sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 28px;
  letter-spacing: -0.44px;
  text-align: left;
  color: #ffffff;
}

.process-section__lead .field {
  margin: 0;
}

.process-section__lead p {
  margin: 0;
  font-family:'Scala Sans Pro', sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 28px;
  letter-spacing: -0.44px;
  text-align: left;
  color: #FFFFFF99;
}

.process-section__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
  margin: 0 0 clamp(2.5rem, 6vw, 4rem);
}

.process-section__cell--text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0rem;
  min-width: 0;
}

.process-section__step-num {
  font-family: Inter;
  font-weight: 300;
  font-size: 128px;
  line-height: 128px;
  letter-spacing: 0px;
  color: #ffff;
}

.process-section__step-title {
  font-family: Inter;
  font-weight: 300;
  font-size: 36px;
  line-height: 40px;
  letter-spacing: 0.37px;
  color: #ffff;
  margin: 0;
}

.process-section__step-desc {
  font-family: Inter;
  font-weight: 400;
  font-size: 18px;
  line-height: 25px;
  letter-spacing: 0px;
  color: #ffff;
  margin: 0;
}

.process-section__cell--media {
  min-width: 0;
}

.process-section__media-placeholder {
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: 14px;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.process-section__footer {
  text-align: center;
  margin-top: clamp(2rem, 5vw, 3rem);
}

.process-section__duration {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  text-align: left;
}

.process-section__duration-value {
  font-family: Inter;
  font-weight: 300;
  font-style: Light;
  font-size: 60px;
  line-height: 60px;
  letter-spacing: 0.26px;
  text-align: center;
  color: #ffff;
}

.process-section__duration-aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  padding-top: 0.35rem;
}

.process-section__duration-unit,
.process-section__duration-unit .field {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #c5a67c;
  line-height: 20px;
}

.process-section__duration-legend {
  font-family: Inter;
  font-weight: 400;
  font-style: Regular;
  font-size: 16px;
  leading-trim: NONE;
  line-height: 24px;
  letter-spacing: -0.31px;
  color: #ffff;
  max-width: 16rem;
}

@media (max-width: 992px) {
  .process-section__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .process-section__decor {
    width: min(72vw, 22rem);
    height: 11rem;
    opacity: 0.45;
  }
}

@media (max-width: 640px) {
  .process-section__decor {
    opacity: 0.35;
  }

  .process-section__grid {
    grid-template-columns: 1fr;
  }

  .process-section__duration {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .process-section__duration-aside {
    align-items: center;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   Services paragraph (paragraph--type--services)
   -------------------------------------------------------------------------- */
.paragraph--type--services {
  margin: 0;
  padding: 0;
}

.services-section {
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
  padding: clamp(3rem, 8vw, 5.5rem) 0;
  width: 100vw;
  margin-left: calc(50% - 51.1vw);
  margin-right: calc(50% - 50vw);
}

.services-section__decor {
  position: absolute;
  top: 7rem;
  right: 0;
  width: min(45vw, 36rem);
  height: min(45vw, 36rem);
  max-width: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  background-image: url("../images/services-section-decor.png");
  background-repeat: no-repeat;
  background-position: top right;
  background-size: contain;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.services-section__decor-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(70vh, 42rem);
  object-fit: contain;
  object-position: top left;
}

.services-section__inner {
  position: relative;
  z-index: 1;
}

.services-section__head {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto clamp(2.5rem, 0vw, 4rem);
}

.services-section__eyebrow {
  font-family:'Scala Sans Pro', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0em;
  text-transform: uppercase;
  color: #c5a67c;
  margin: 0 0 1rem;
}

.services-section__title div {
  font-family:'Scala Sans Pro', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 400;
  color: #333333;
  margin: 0 0 1rem;
  line-height: 1.2;
}

.services-section__title .field {
  margin: 0;
}

.services-section__title .field__item {
  margin: 0;
  font: inherit;
  color: inherit;
}

.services-section__lead {
  font-family:'Scala Sans Pro', sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  line-height: 1.65;
  color: #333333;
  margin: 0;
}

.services-section__lead .field {
  margin: 0;
}

.services-section__lead p {
  margin: 0;
  font-family:'Scala Sans Pro', sans-serif;
}

/*
 * Services field_items: use field--paragraph--field-items--services.html.twig so
 * .field__items always wraps cards. Core field.html.twig often omits .field__items
 * when the label is hidden + multiple, which broke the grid (one column).
 */
 .services-section__grid {
  width: 70%;
  margin: 0 auto;
 }
.services-section__grid .field__items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 1.5rem);
  margin: 0;
  padding: 0;
}

.services-section__grid .field__item {
  margin: 0;
  padding: 0;
  min-width: 0;
}

.services-section__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
}

.services-section__card-media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  /* Height comes from min-height (matches img); avoids fighting img min-height */
  min-height: 489px;
  background: #e8e6e2;
}

.services-section__card-media-inner {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.services-section__card-media-inner .field {
  margin: 0;
  height: 100%;
}

.services-section__card-media-inner .field__item {
  height: 100%;
}

.services-section__card-media-inner img,
.services-section__card-media-inner picture img {
  width: 100%;
  min-height: 489px;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.services-section__card-media-inner video {
  width: 100%;
  min-height: 489px;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 992px) {
  .services-section__card-media {
    min-height: clamp(300px, 36vw, 400px);
  }

  .services-section__card-media-inner img,
  .services-section__card-media-inner picture img,
  .services-section__card-media-inner video {
    min-height: clamp(300px, 36vw, 400px);
  }
}

@media (max-width: 640px) {
  .services-section__card-media {
    min-height: clamp(220px, 55vw, 320px);
  }

  .services-section__card-media-inner img,
  .services-section__card-media-inner picture img,
  .services-section__card-media-inner video {
    min-height: clamp(220px, 55vw, 320px);
  }
}

.services-section__card-media-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.68) 0%,
    rgba(0, 0, 0, 0.12) 45%,
    transparent 72%
  );
  pointer-events: none;
  border-radius: inherit;
  z-index: 1;
}

.services-section__card-overlay-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 1.25rem 1rem 1.5rem;
  font-family:'Scala Sans Pro', sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  z-index: 2;
}

.services-section__card-body {
  padding: 1.25rem 0 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.services-section__card-text {
  font-family:'Scala Sans Pro', sans-serif;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #666666;
  margin: 0 0 1rem;
  white-space: pre-line;
}

.services-section__card-cta {
  margin-top: auto;
}

.services-section__card-cta a {
  font-family:'Scala Sans Pro', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c5a67c;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  &:after {
    content: "→";
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #c5a67c;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
  }
}

.services-section__card-cta a:hover,
.services-section__card-cta a:focus {
  text-decoration: underline;
}

@media (max-width: 992px) {
  .services-section__grid .field__items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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