/*
 Theme Name: amberhaven
 Author: tadamart.pl
 Version: 1.0
 */

:root {
  --color: #d4c2b0;
  --color2: #483928;
  --color2-rgb: 72, 57, 40;
  --bs-border-color: #eaf4ec;
}

body {
  font-family: "lato", sans-serif;
  background-color: var(--color);
  color: var(--color2);
}

.admin-bar {
  margin-top: 32px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 1;
  font-family: "ivymode", sans-serif;
}
strong {
  font-weight: 600;
}
a {
  transition: 0s !important;
  font-size: 14px;
}
p,
li,
td,
th {
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
}
.w-fit {
  width: fit-content;
  margin: 0 auto;
  margin-bottom: 15px;
}
.cky-btn-revisit-wrapper {
  display: none !important;
}
.small {
  font-size: 11px;
}
.text-primary {
  color: var(--color) !important;
}
.bg-dark {
  background-color: var(--color2) !important;
}
.bg-primary {
  background-color: var(--color) !important;
}
.bg-secondary {
  background-color: var(--color2) !important;
}
.bg-primary.border-bottom {
  border-bottom: 1px solid rgba(var(--color2-rgb), 0.1) !important;
}
.border-top {
  border-top: 1px solid rgba(var(--color2-rgb), 0.1) !important;
}
.btn-close {
  opacity: 1;
}
.shadow-sm {
  box-shadow: 0px 0px 20px #0000001a !important;
}
.text-secondary {
  color: var(--color2) !important;
}
.mbml {
  mix-blend-mode: luminosity;
}
.btn {
  border-radius: 0px;
  font-weight: 400;
  font-size: 14px;
  padding: 10px 25px;
}
.btn-sm {
  padding: 5px 10px;
}
.btn-primary {
  background-color: var(--color2);
  color: var(--color);
  border-color: var(--color2);
}
.btn-primary:hover {
  background-color: var(--color2) !important;
  color: var(--color) !important;
  border-color: var(--color2) !important;
  opacity: 0.8;
}
.btn-secondary {
  background-color: var(--color);
  border-color: var(--color);
  color: var(--color2);
}
.btn-secondary:hover {
  background-color: var(--color) !important;
  border-color: var(--color) !important;
  color: var(--color2) !important;
  opacity: 0.7 !important;
}
.hero .btn-primary:hover {
  background-color: white;
  color: black;
  border-color: var(--color);
}
.btn-outline-light {
  border-radius: 0px;
  font-weight: 600;
  font-size: 18px;
  border-color: white;
  padding: 10px 25px;
}
.btn-outline-light:hover {
  background-color: white;
  color: black;
  border-color: var(--color);
}

.offcanvas {
  background-color: transparent;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.overlay1 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, var(--color) 0%, transparent 60%);
  pointer-events: none;
}
.overlay2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, var(--color) 40%, transparent 100%);
  pointer-events: none;
}
.overlay3 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, var(--color) 0%, transparent 100%);
  pointer-events: none;
}
.back-img {
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
}
.ul-list li {
}
.img-min {
  min-height: 300px;
}
.full-img {
}

/* form */
.form-label {
  width: 100%;
}
textarea {
  height: 80px;
}
.form-control {
  border: 0px;
  border-radius: 0px;
  padding: 5px 0px;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 6px;
  color: white !important;
  background-color: transparent;
}
::placeholder {
  color: #635748 !important;
}
.form-control:focus {
  outline: none;
  box-shadow: none;
  border-bottom: 1px solid #e5e5e5;
}
.wpcf7-not-valid-tip {
  font-size: 11px !important;
}
.form-check-input {
  border-radius: 0px !important;
  margin-left: -1.9rem !important;
  width: 1.7em !important;
  height: 1.7em !important;
  cursor: pointer !important;
  border-color: #ddd !important;
}
.form-check-input:checked {
  background-color: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.form-control:focus {
  background-color: transparent;
}
.wpcf7-list-item-label {
  cursor: pointer !important;
}
.form-check-input:focus {
  box-shadow: none !important;
  outline: none !important;
}
.accept p {
  font-size: 11px !important;
  line-height: 1.2 !important;
}
.accept a {
  font-size: 11px !important;
}
.accept {
  margin-top: -15px;
  margin-bottom: 30px;
}
.wpcf7-spinner {
  position: absolute !important;
}
/* form */
header {
  z-index: 1000;
}

.hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 700px;
}
.sec1 {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.max-1 {
  max-width: 450px;
}
.foot-info p {
  line-height: 1.6;
}
.foot-info a:hover {
  text-decoration: underline !important;
}
.gtranslate_wrapper img {
  margin-left: 5px !important;
}
.custom-page a {
  color: black;
}
.wpcf7-submit {
  transition: 0s !important;
}
.modal-content {
  border-radius: 0px !important;
  padding: 17px;
}

.header-badge {
  width: fit-content;
  font-size: 11px;
  margin-bottom: -26px;
  padding: 2px 10px;
}
.border-bottom {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.max {
  max-width: 660px !important;
}
.swiper-pagination-bullet {
  width: 15px;
  height: 15px;
  border-radius: 0px;
}
.swiper-pagination-bullet-active {
  background: var(--color2);
}
.rounded-circle {
  width: 40px;
  height: 40px;
}
.table > :not(caption) > * > * {
  background-color: transparent !important;
  padding: 0.5rem 0rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}
tbody td {
  color: white !important;
}
table {
  min-width: 500px;
}
.overflow-scroll {
  overflow-x: scroll;
}
tbody tr:last-child td {
  border-bottom: 0px !important;
}
/* kontener hero z animowanym tłem na pseudoelemencie */
.hero-zoom {
  position: relative;
  overflow: hidden; /* żeby powiększane tło nie wychodziło poza sekcję */
}

/* tło przeniesione na ::before — dzięki temu możemy je skalować i przesuwać */
.hero-zoom::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0; /* pod overlayem i treścią */
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: left center; /* „kotwica” po lewej */
  background-repeat: no-repeat;

  /* klucz — rośnij od lewej krawędzi */
  transform-origin: left center;

  /* start */
  transform: scale(1) translateX(0);
  will-change: transform;

  /* animacja po załadowaniu */
  animation: heroZoom 15s ease-out forwards;
}

/* upewnij się, że overlay i treść leżą ponad tłem */
.hero .overlay1 {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero .container,
.hero .hero-content {
  position: relative;
  z-index: 2;
}
#galeria .swiper-slide img {
  height: 250px;
  object-fit: cover;
  width: 100%;
}

/* klatki animacji: delikatny zoom + minimalne przesunięcie w lewo */
@keyframes heroZoom {
  0% {
    transform: scale(1) translateX(0);
  }
  100% {
    transform: scale(1.5) translateX(-2%);
  }
}

/* opcjonalnie: wersja z pętlą (zamień linię z animation powyżej)
.hero-zoom::before { animation: heroZoom 20s ease-in-out infinite alternate; }
*/

/* dostępność: wyłącz animację, gdy użytkownik prosi o redukcję ruchu */
@media (prefers-reduced-motion: reduce) {
  .hero-zoom::before {
    animation: none;
  }
}

@media (min-width: 1400px) {
  .fi2 {
    width: 173% !important;
  }
  .full-img .max {
    max-width: 460px !important;
  }
  .full-img {
    margin-top: -50px;
  }
  .secmin {
    margin-top: -40px;
  }
}

/* XX-Large devices (larger desktops) */
@media (max-width: 1400px) {
}

/* X-Large devices (large desktops) */
@media (max-width: 1200px) {
}

/* Large devices (desktops) */
@media (max-width: 992px) {
  .hero {
    height: 600px;
  }

  .overlay1 {
    background: linear-gradient(to top, var(--color) 0%, transparent 100%);
  }
}

/* Medium devices (tablets) */
@media (max-width: 768px) {
  .sec1 {
    background-size: cover;
    background-position: right;
    background-repeat: no-repeat;
  }
  .sec1 .overlay2 {
    background: var(--color);
    opacity: 0.8;
  }
  .back-img {
    border-right: 0px !important;
    border-bottom: 1px solid white;
  }
  .lh-big {
    line-height: 2.1 !important;
  }
}

/* Small devices (landscape phones) */
@media (max-width: 576px) {
  .hero-zoom::before {
    transform-origin: center center; /* rośnij od środka */
    animation: heroZoomMobile 12s ease-out forwards;
    width: 120%; /* zwiększona szerokość elementu */
    left: -10%; /* przesunięcie w lewo aby zrównoważyć większą szerokość */
  }

  @keyframes heroZoomMobile {
    0% {
      transform: scale(1) translateX(0);
    }
    100% {
      transform: scale(1.4) translateY(-10%) translateX(-10%); /* zachowane przesunięcie w lewo */
    }
  }
}
