/*
Theme Name: residencehun
Author: Me
Text Domain: residencehun
*/

:root {
  --clr-main: 195 94% 26%;
  --clr-accent: 27 15% 45%;
  --clr-secondary: 60 5% 20%;
  --clr-light: 45 80% 88%;
  --clr-white: 0 0% 100%;
  --clr-dark: 14 62% 19%;
  --clr-black: 0 0% 0%;

  --ff-main: "Jost", serif;
}

/* ------------------- */
/* Reset               */
/* ------------------- */

/* https://piccalil.li/blog/a-modern-css-reset/ */
html {
  scroll-behavior: smooth;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
figure,
picture {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  font-weight: 400;
}

img,
picture {
  max-width: 100%;
  display: block;
}

input,
button,
textarea,
select {
  font: inherit;
}

/* remove animations for people who've turned them off */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  background-color: hsl(var(--clr-light) / 0.7);
  font-family: var(--ff-main);
  color: hsl(var(--clr-black));
  line-height: 1.5;
  font-size: 1.125rem;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

h1 {
  font-size: 2.5rem;
}
main {
  flex-grow: 1;
}

a {
  color: hsl(var(--clr-accent) / 1);
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}
a:hover {
  color: hsl(var(--clr-accent) / 0.5);
}

.container {
  margin-inline: auto;
  width: 100%;
}

.grid-container {
  display: grid;
  text-align: center;
  place-items: center;
  padding-inline: 1rem;
}

.primary-navigation a {
  text-decoration: none;
}

.primary-navigation a > span {
  font-weight: 700;
  margin-right: 0.5em;
}

header.primary-header {
  background-color: hsl(var(--clr-dark));
  padding: 0 0.125rem;
}

.footer {
  display: flex;
  flex-direction: column;
  margin-top: 1rem;
}
.footer {
  background-color: hsl(var(--clr-dark));
}

.footer-inner {
  margin-inline: auto;
  display: flex;
  padding: 1.5rem 2rem;
  justify-content: center;
  gap: 0.5rem;

  flex-direction: column;
}
.footer-inner > * {
  width: 100%;
}
.footer-inner h5 {
  background-color: hsl(var(--clr-white) / 1);
  color: hsl(var(--clr-dark));
  font-size: 1rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--br-small);
  text-align: center;
}
.footer-inner p {
  margin: 0.25rem 0.625rem;
  font-size: 0.875rem;
}
.footer-copyright {
  border-top: 1px solid hsl(var(--clr-white) / 0.2);
  max-width: 1200px;
  color: hsl(var(--clr-white) / 0.6);
  width: 100%;
  margin: 5px auto;
  display: flex;
  flex-direction: column;
  padding: 1rem 2rem;
  justify-content: center;
}
.footer-copyright p {
  font-size: 0.875rem;
  margin: 0.125rem 0.5rem;
  text-align: center;
}
.footer a {
  color: hsl(var(--clr-light) / 1);
}
.footer a:hover {
  color: hsl(var(--clr-light) / 0.8);
}
.primary-header > * {
  width: 100%;
}

.logo-and-phones {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
}
.header-logo-img,
.header-phones {
  width: 100%;
  display: flex;
  align-items: center;
}
.header-logo-img figure {
  display: flex;
  align-items: center;
}
.header-phones {
  flex-direction: column;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .header-phones {
    justify-content: flex-end;
    align-items: flex-end;
  }

  .logo-and-phones .footer-inner {
    flex-direction: row;
  }
}

.phone-header-text,
.header-phones a {
  text-decoration: none;
  color: hsl(var(--clr-dark));
}

.header-phones--phone {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}
.header-phones--location {
  display: flex;
  font-size: 0.875rem;
}

@media (max-width: 35rem) {
  .header-logo-img {
    width: 80%;
  }
}

.mobile-nav-toggle {
  display: none;
}

header.primary-header {
  position: sticky;
  top: 0;
  z-index: 999;
}
@media only screen and (max-width: 768px) {
  header.primary-header {
    position: relative;
  }
  .navbar-1 {
    position: absolute;
    z-index: 1011;
    right: 8px;
    top: 12px;
    width: auto;
    height: 40px;
    z-index: 99999999999;
  }
}

h2 {
  font-size: 2.5rem;
}

.btn2 {
  background-color: hsl(var(--clr-accent) / 0.1);
  color: hsl(var(--clr-dark) / 0.9);
  padding: 0.5rem 1rem;
  border-radius: var(--br-small);
  display: inline-block;
  text-decoration: none;
}
.btn2:hover {
  background-color: hsl(var(--clr-accent) / 0.3);
}

.card {
  border: 1px solid hsl(var(--clr-accent) / 0.1);
  padding: 1rem;
  border-radius: var(--br-medium);
}
.card a {
  text-decoration: none;
  color: hsl(var(--clr-accent) / 1);
}
.card h4 {
  font-size: 1.5rem;
}

.product-img img {
  width: 100%;
  height: 245px;
  object-fit: cover;
}

.forminator-row.forminator-row-last .forminator-field {
  display: flex;
  justify-content: center;
}

.postheader {
  text-align: center;
  margin-top: 1rem;
}

@media (min-width: 20rem) and (max-width: 42rem) {
  .container {
    padding-inline: 0rem;
  }
  .products-wrapper {
    grid-template-columns: repeat(auto-fill, minmax(160px, 2fr));

    grid-template-rows: auto;
    gap: 0.5rem;
  }
  .product-img img {
    width: 100%;
  }
}
.fw-900 {
  font-weight: 900;
}
.text-underline {
  color: #fff;
  border-radius: 3px;
  padding: 0.375rem 0.25rem;
  background-color: #333;
}
.btn-header {
  cursor: pointer;
  border-radius: 3px;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid hsl(var(--clr-accent));
  background-color: hsl(var(--clr-accent));
  color: #fff;
  width: 100%;
  transition: background-color 0.3s ease-in-out;
}

.btn-header:hover {
  color: #222;
}
.btn-header:hover,
.header-phone-link:hover {
  background-color: hsl(var(--clr-accent) / 0.15);
}

.phone-icon-header {
  border-radius: 6px;
  border: 1px solid hsl(var(--clr-accent));
  background-color: #fff;
  padding: 5px;
  border-radius: 3px;
}
a.phone-header-text {
  align-items: center;
  display: flex;
  justify-content: space-between;
  width: 100%;
}
.logo-and-phones {
  width: 100%;
  max-width: 1280px;
  margin: 5px auto;
  padding: 0px;
  display: flex;
  justify-content: space-between;
}
.logo-and-phones .navbar-1 {
  flex-grow: 1;
  display: flex;
  align-items: center;
  /* background: #fff; */
  justify-content: flex-end;
  padding: 0;
}
.logo-and-phones .header-logo-img,
.logo-and-phones .header-phones {
  width: auto;
}
.logo-and-phones .header-logo-img {
  width: 275px;
}
.logo-and-phones .header-phones {
  margin: 0;
}
.logo-and-phones .header-phones--phone {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  justify-content: flex-end;
  align-items: end;
}
.logo-and-phones img {
  width: 300px;
  height: auto;
}
@media all and (max-width: 680px) {
  .logo-and-phones .header-phones--phone {
    flex-direction: row;
    width: 100%;
  }
  .logo-and-phones img {
    width: 250px;
    height: auto;
  }
}
.max-width-1200 {
  width: 100%;
  max-width: 1200px;
}

.lang-item img {
  border-radius: 8px;
  width: 28px;
  height: auto;
}
@media all and (max-width: 680px) {
  .lang-item {
    margin-top: 8px;
  }
}

/*--------------main navigation  */
.main-nav {
  display: flex;
  justify-content: end;
  align-items: center;
}
.main-nav ul {
  list-style-type: none;
  display: flex;
}
.main-nav .nav li {
  font-weight: 400;
  font-size: 1.125rem;
  padding: 0 10px;
  display: flex;
  align-items: center;
}
.main-nav .nav a {
  color: hsl(var(--clr-white) / 0.8);
  margin: 0px;
  display: block;
  text-decoration: none;
  padding: 0;
  transition: color 0.3s ease-in-out;
  position: relative;
}
.main-nav .nav li:first-of-type {
  border-left: 0;
  box-shadow: none;
}

.main-nav .nav a:hover {
  color: hsl(var(--clr-light) / 1);
}
.main-nav .nav a::after {
  content: "";
  background-color: hsl(var(--clr-light) / 1);
  position: absolute;
  height: 1px;
  width: 100%;
  display: block;
  margin: 0 auto;
  scale: 0;
  transition: width 0.2s ease-in-out;
  transition: scale 0.3s ease-in-out;
}
.main-nav .nav a:hover::after {
  content: "";
  background-color: hsl(var(--clr-light) / 1);
  height: 1px;
  width: 100%;
  scale: 1;
}
.main-nav .nav .menu-cta a {
  background-color: hsl(var(--clr-dark) / 1);
  border: 1px solid hsl(var(--clr-light) / 1);
  padding: 0.5rem 1rem;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}
.main-nav .nav .menu-cta a::after {
  content: none;
}
.main-nav .nav .menu-cta a:hover {
  background-color: hsl(var(--clr-light) / 1);
  color: hsl(var(--clr-black));
}

.header-social-languages {
  margin-left: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: space-between;
  align-items: center;
}
.header-languages,
.header-social {
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 3px;
  justify-content: space-between;
  align-items: center;
}
.header-languages a {
  text-transform: uppercase;
  display: flex;
  gap: 3px;
  text-decoration: none;
  color: hsl(var(--clr-white) / 0.8);
  font-size: 14px;
  padding: 3px;
}

.header-languages a:hover {
  color: hsl(var(--clr-accent) / 1);
}
.header-social a {
  color: hsl(var(--clr-dark) / 0.4);
  transition: color 0.3s ease-in-out;
}
.header-social a:hover {
  color: hsl(var(--clr-accent) / 1);
}

.header-social span a {
  display: flex;
  align-items: center;
}
.hamburger {
  display: none;
  width: 40px;
  height: 40px;
}
@media only screen and (max-width: 768px) {
  .hamburger {
    position: absolute;
    z-index: 101;
    right: 10px;
    top: 18px;
    padding: 0px;
    display: flex;
    cursor: pointer;
    transition-property: opacity, filter, top;
    transition-duration: 0.15s;
    transition-timing-function: linear;
    font: inherit;
    color: inherit;
    text-transform: none;
    background-color: transparent;
    border: 0;
    margin: 0;
    overflow: visible;
  }
  .sticky .hamburger {
    /* top: 22px; */
  }
  .hamburger:hover {
    /* opacity: 0.7; */
  }
  .hamburger.is-active:hover {
    /* opacity: 0.7; */
  }
  .hamburger.is-active .hamburger-inner,
  .hamburger.is-active .hamburger-inner::before,
  .hamburger.is-active .hamburger-inner::after {
    background-color: hsl(var(--clr-white));
  }

  .hamburger-box {
    width: 40px;
    height: 24px;
    display: inline-block;
    position: relative;
  }

  .hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -2px;
  }

  .hamburger-inner,
  .hamburger-inner::before,
  .hamburger-inner::after {
    width: 30px;
    height: 3px;
    background-color: hsl(var(--clr-white));
    border-radius: 4px;
    position: absolute;
    transition-property: transform;
    transition-duration: 0.15s;
    transition-timing-function: ease;
  }

  .hamburger-inner::before,
  .hamburger-inner::after {
    content: "";
    display: block;
  }
  .hamburger-inner::before {
    top: -8px;
  }
  .hamburger-inner::after {
    bottom: -8px;
  }

  .hamburger--squeeze .hamburger-inner {
    transition-duration: 0.075s;
    transition-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
  }
  .hamburger--squeeze .hamburger-inner::before {
    transition: top 0.075s 0.12s ease, opacity 0.075s ease;
  }
  .hamburger--squeeze .hamburger-inner::after {
    transition: bottom 0.075s 0.12s ease,
      transform 0.075s cubic-bezier(0.55, 0.055, 0.675, 0.19);
  }

  .hamburger--squeeze.is-active .hamburger-inner {
    transform: rotate(45deg);
    transition-delay: 0.12s;
    transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }

  .hamburger--squeeze.is-active .hamburger-inner::before {
    top: 0;
    opacity: 0;
    transition: top 0.075s ease, opacity 0.075s 0.12s ease;
  }

  .hamburger--squeeze.is-active .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-90deg);
    transition: bottom 0.075s ease,
      transform 0.075s 0.12s cubic-bezier(0.215, 0.61, 0.355, 1);
  }

  .main-nav {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    position: absolute;
    z-index: 99;
    text-align: left;
    top: 0;
    left: 0;
    background: hsl(var(--clr-dark) / 1);
    width: 100%;
    height: 100vh;
    padding: 20px 10px 10px 30px;
    transform: translateX(-100%);
    transition: transform 400ms ease-in-out;
  }
  .main-nav.show-nav {
    transform: translateX(0);
  }
  .main-nav ul {
    display: flex;
    flex-direction: column;
    align-items: start;
    padding: 10px 0px;
    gap: 15px;
  }

  .main-nav .nav li {
    border: 0;
    box-shadow: none;
    margin: 5px 0;
  }
  .main-nav .nav li {
    font-size: 1.25rem;
  }

  .footer-copyright {
    flex-direction: column;
    gap: 15px;
  }
}

/*-------------*/
.header-languages ul {
  margin: 0;
  padding: 0;
  list-style: none;
  flex-direction: column;
}
/* Styling the language switcher container */
.header-social-languages {
  position: relative;
  margin-left: 20px;
  width: 100px;
  margin-top: -30px;
}

.header-languages {
  position: relative;
  cursor: pointer;
}

.polylang_langswitcher::after {
  content: "▼";
  color: white;
  font-size: 10px;
  position: absolute;
  right: 8px;
  top: 10px;
  transition: transform 0.2s;
}

.header-languages:hover .polylang_langswitcher::after {
  transform: rotate(180deg);
}
.polylang_langswitcher {
  position: absolute;
  top: 100%;
  right: 0;
  background: hsl(var(--clr-dark) / 1);
  min-width: 90px;
  padding: 8px 0;
  margin: 0;
  list-style: none;
  z-index: 1000;
}

.lang-item {
  display: none;
  padding: 4px 8px;
}

.lang-item.current-lang {
  display: block;
}

.header-languages:hover .lang-item {
  display: block;
}

.lang-item:hover {
  background-color: hsl(var(--clr-light) / 0.1);
}

.lang-item a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
}

.gallery-white-bg .kb-splide .splide__slide {
  background-color: hsl(var(--clr-white));
}
.forminator-row label {
  display: none !important;
}
.forminator-ui.forminator-custom-form:not(
    .forminator-size--small
  )[data-grid="open"]
  .forminator-row:not(:last-child) {
  margin-bottom: 15px !important;
}

body.no-scroll {
  overflow-y: hidden;
}

.forminator-button-submit {
  font-weight: 400 !important;
  border-radius: 0 !important;
  color: hsl(var(--clr-white)) !important;
  border: 1px solid hsl(var(--clr-white)) !important;
}

.services img {
  background-color: hsl(var(--clr-accent) / 1);
  padding: 0.5rem;
}
.services .kt-adv-heading-has-icon {
  justify-content: space-between;
}

h2.custom-h2 {
  display: flex;
  width: fit-content;
  padding-bottom: 40px;
  background-image: url("images/h2-brown.png");
  background-position: bottom center;
  background-size: 100px;
  background-repeat: no-repeat;
}
.custom-underline {
}
.custom-underline em {
  font-style: normal;
  position: relative;
}
.custom-underline em::after {
  content: "";
  background-color: hsl(var(--clr-accent) / 0.2);
  height: 10px;
  width: 100%;
  position: absolute;
  bottom: 5px;
  right: 0;
  left: 0;
  z-index: -1;
}
.custom-underline strong {
  /* font-weight: normal; */
  position: relative;
}
.custom-underline strong::after {
  content: "";
  background-color: #ffe5b4;
  height: 10px;
  width: 100%;
  position: absolute;
  z-index: -1;
  bottom: 5px;
  right: 0;
  left: 0;
}
.subtitle-text {
  position: relative;
  display: inline-block;
  color: hsl(var(--clr-accent));
}
.subtitle-text::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: -23px;
  background-color: hsl(var(--clr-dark) / 0.8);
  height: 18px;
  width: 15px;
}
.subtitle-text::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: -23px;
  background-color: hsl(var(--clr-dark) / 0.8);
  height: 18px;
  width: 15px;
}

/* LANGUAGES */
.languages {
  position: relative;
  display: inline-block;
  font-family: Arial, sans-serif;
}

.dropdown-toggle {
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 4px;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 100%;
  z-index: 10;
}

.dropdown-menu li {
  padding: 8px 12px;
  cursor: pointer;
}

.dropdown-menu li:hover {
  background-color: #f0f0f0;
}

.languages.active .dropdown-menu {
  display: block;
}

.footer-row {
  margin-bottom: 0;
}

@media only screen and (max-width: 768px) {
  .header-social-languages {
    position: static;
    margin-left: 0px;
    width: 90%;
    margin-top: 10px;
  }
  .header-languages,
  .polylang_langswitcher {
    position: static;
  }
  .main-nav ul.polylang_langswitcher {
    padding: 0;
    display: flex;
    flex-direction: row;
    gap: 0.25rem;
  }
  .polylang_langswitcher::after {
    content: none;
  }
  .lang-item.current-lang {
    background-color: hsl(var(--clr-white) / 0.1);
  }
  .lang-item {
    display: block;
  }
}
