/* Home page: performance, accessibility and responsive UX refinements. */

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Keep the scrolled header immediately opaque and animate only geometry. */
.wsmainfull {
  transition: padding 250ms ease-in-out, box-shadow 250ms ease-in-out;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  padding: 12px 18px;
  color: #fff;
  background: #1f1f1f;
  border-radius: 4px;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  color: #fff;
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #1b5fcc !important;
  outline-offset: 4px;
}

#main-content:focus {
  outline: 0;
}

/* Meet WCAG AA contrast without changing any content. */
.txt-color-02,
.txt-color-02 h2,
.txt-color-02 h3,
.txt-color-02 h4,
.txt-color-02 h5,
.txt-color-02 h6,
.txt-color-02 p,
.txt-color-02 a,
.txt-color-02 li,
.txt-color-02 i,
.txt-color-02 span,
.white-color .txt-color-02 {
  color: #755e59;
}

/* The theme lowers decorative headers to 15% opacity, producing a 1.4:1
   effective contrast. Keep the same muted palette without transparency. */
.tra-header.txt-color-02 {
  color: #8a6f69;
  opacity: 1;
}

.txt-color-05,
.txt-color-05 h2,
.txt-color-05 h3,
.txt-color-05 h4,
.txt-color-05 h5,
.txt-color-05 h6,
.txt-color-05 p,
.txt-color-05 a,
.txt-color-05 li,
.txt-color-05 i,
.txt-color-05 span,
.white-color .txt-color-05 {
  color: #585858;
}

.btn-tra-01,
.scroll .btn-tra-01,
.white-color .btn-tra-01 {
  color: #8a493e !important;
  border-color: #8a493e !important;
}

.btn-tra-01:hover,
.btn-tra-01:focus-visible,
.color-02-hover:hover {
  color: #fff !important;
  background-color: #8a493e;
  border-color: #8a493e !important;
}

.bg-color-09 {
  background-color: #8a493e;
}

.about-5-banner,
.about-5-banner h2,
.about-5-banner p,
.about-5-banner li {
  color: #fff;
}

/* Accessible static hero: one LCP image, no autoplay and no animation library. */
#hero-9.fixed-hero {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: #2d2927;
}

.fixed-hero-media,
.fixed-hero-media img,
.fixed-hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.fixed-hero-media img {
  object-fit: cover;
  object-position: center;
}

.fixed-hero-overlay {
  z-index: 1;
  background: linear-gradient(90deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .48) 52%, rgba(0, 0, 0, .24) 100%);
}

.fixed-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  padding-top: 150px;
  padding-bottom: 58px;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .68);
}

.fixed-hero-primary {
  max-width: 780px;
}

.fixed-hero-title {
  margin: 0 0 18px;
  color: #fff;
  font-family: 'Lustria', serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1.05;
}

.fixed-hero-primary > p:last-child {
  max-width: 720px;
  margin-bottom: 38px;
  color: #fff;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.5;
}

.fixed-hero-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 920px;
}

.fixed-hero-highlight {
  padding: 18px 20px;
  background: rgba(20, 18, 17, .7);
  border-left: 4px solid #efa697;
  border-radius: 0 4px 4px 0;
  backdrop-filter: blur(4px);
}

.fixed-hero-highlight p {
  margin: 0;
  color: #fff;
  line-height: 1.45;
}

.fixed-hero-highlight .fixed-hero-highlight-title {
  margin-bottom: 6px;
  font-family: 'Lustria', serif;
  font-size: 1.22rem;
}

/* Navigation uses real buttons and exposes submenu state to assistive tech. */
.services-menu-toggle {
  display: block;
  position: relative;
  padding: 10px 32px 10px 18px;
  color: #666;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .5px;
  line-height: 50px;
  cursor: pointer;
}

.services-menu-toggle .wsarrow::after {
  content: "";
  position: absolute;
  top: 33px;
  right: 16px;
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}

.wsmenu > .wsmenu-list > .services-menu-item.is-open > #services-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.wsmenu > .wsmenu-list > li > ul.sub-menu > li > a,
.wsmenu > .wsmenu-list > li > ul.sub-menu > li > a:hover {
  color: #4f4f4f;
}

@media (min-width: 992px) {
  .tra-menu .wsmainfull:not(.scroll) .services-menu-toggle {
    color: #fff;
  }

  .tra-menu .wsmainfull.scroll .services-menu-toggle {
    color: #666;
  }

  .wsmenu > .wsmenu-list > .services-menu-item > #services-submenu {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .wsmenu > .wsmenu-list > .services-menu-item:hover > #services-submenu,
  .wsmenu > .wsmenu-list > .services-menu-item.is-open > #services-submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .wsmenu > .wsmenu-list > li.header-socials {
    display: flex;
    align-items: center;
    height: 70px;
    padding: 0;
  }

  .header-socials span {
    display: flex;
    align-items: center;
    height: 100%;
  }

  .header-socials a {
    width: 44px;
    height: 44px;
    min-width: 44px;
    margin-left: 2px;
    line-height: 1 !important;
  }

  .tra-menu .wsmainfull:not(.scroll) .header-socials a {
    color: #efa697 !important;
  }

  .tra-menu .wsmainfull.scroll .header-socials a {
    color: #8a493e !important;
  }
}

#wsnavtoggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 18px 8px 0 0;
  padding: 0;
  background: transparent;
  border: 0;
}

.desktoplogo picture,
.smllogo picture,
.footer-info picture {
  display: block;
}

/* Keep the service cards and their calls to action aligned. */
#services-10 .sbox-10-wrapper .row {
  align-items: stretch;
}

#services-10 .sbox-10-wrapper [class*="col-"] {
  display: flex;
}

#services-10 .sbox-10 {
  display: flex;
  flex-direction: column;
  width: 100%;
}

#services-10 .sbox-10-txt {
  display: flex;
  flex: 1;
  flex-direction: column;
}

#services-10 .sbox-10-txt .btn {
  align-self: center;
  margin-top: auto;
}

@media (min-width: 992px) {
  #services-10 .sbox-10-txt h2 {
    min-height: 4em;
  }

  #services-10 .sbox-10-txt p {
    min-height: 5.75em;
  }
}

/* Replace the cloned carousel with a stable, keyboard-friendly grid. */
.home-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.home-gallery-grid .carousel-image {
  padding: 0;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 5px 14px rgba(0, 0, 0, .08);
  overflow: hidden;
}

.home-gallery-grid .hover-overlay img {
  width: 100%;
  height: auto;
  transform: none;
}

.home-gallery-grid .item-overlay {
  display: none;
}

.home-gallery-grid .image-description {
  position: static;
  width: auto;
  height: auto;
  padding: 18px 14px 20px;
  color: #313131;
  background: #fff;
  opacity: 1;
}

.home-gallery-grid .image-data {
  position: static;
  transform: none;
}

.home-gallery-grid .image-data h3,
.home-gallery-grid .image-data p {
  color: #313131;
  transform: none;
}

.home-gallery-grid .image-data a {
  color: #6f3b33;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.banner-5-txt h2 a {
  color: #000;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

#banner-5.bg-image {
  background-image: url("../images/banner-5-1280.webp");
}

.footer-contacts address {
  margin: 0;
  font-style: normal;
}

.footer-contacts address p {
  margin-bottom: 0;
}

.header-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  text-align: center;
}

.social-icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  fill: currentColor;
  vertical-align: -.2em;
}

.social-icon-instagram {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.social-icon-instagram circle:last-child {
  fill: currentColor;
  stroke: none;
}

.bottom-footer-list .social-icon {
  margin-right: 4px;
}

@media (max-width: 991px) {
  #hero-9.fixed-hero {
    min-height: 620px;
    margin-top: 80px;
  }

  .fixed-hero-content {
    padding-top: 90px;
    padding-bottom: 38px;
  }

  .wsmenu > .wsmenu-list > li > .services-menu-toggle {
    width: 100%;
    padding: 12px 42px 12px 17px;
    color: #666;
    line-height: 25px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, .13);
  }

  .tra-menu .wsmenu > .wsmenu-list > li > a,
  .white-menu .wsmenu > .wsmenu-list > li > a,
  .wsmenu > .wsmenu-list > li > a {
    color: #383838 !important;
  }

  .services-menu-toggle .wsarrow::after {
    top: 18px;
    right: 20px;
  }

  .wsmenu > .wsmenu-list > .services-menu-item.is-open > #services-submenu {
    display: block;
  }

  .header-socials a {
    min-width: 48px;
  }

  .home-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  #hero-9.fixed-hero {
    min-height: 720px;
  }

  .fixed-hero-overlay {
    background: rgba(0, 0, 0, .62);
  }

  .fixed-hero-title {
    font-size: 2.35rem;
  }

  .fixed-hero-primary > p:last-child {
    margin-bottom: 24px;
  }

  .fixed-hero-highlights,
  .home-gallery-grid {
    grid-template-columns: 1fr;
  }

  .fixed-hero-highlight {
    padding: 14px 16px;
  }

  #gallery-3.wide-100 {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  #banner-5.bg-image {
    background-image: url("../images/banner-5-768.webp");
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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