﻿/* Style Globalne */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-white: #fff;
  --color-grey: #f5f5f3;
  --color-dark: #222;
  --color-pr: #0e4643;
  --color-sc: #f7c06d;
  --color-th: #08233d;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  font-family: "poppins", sans-serif;
  font-display: swap;
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-dark);
  background-color: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h4 {
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1rem;
  color: var(--color-dark);
}

h4 {
  margin-bottom: 0.8rem;
}

h1,
h2 {
  font-size: 3.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
  margin-bottom: 1rem;
  color: var(--color-dark);
}

a {
  text-decoration: none;
  font-family: "poppins", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-dark);
  transition: all 0.2s ease-in-out;
}

a:hover {
  color: var(--color-sc);
}

li {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto; 
}

.flags:hover  {
   transform: translateY(-2px);
}

polygon {
  stroke-width: 0;
  stroke: black;
  fill: transparent;
}

polygon:hover {
  fill: rgba(23,56,2,0.65);
}

address {
  font-style: normal;
}

.container {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container2 {
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container2 img{
  max-width: 100%;
  height: auto; 
  border: 1px solid #ddd;
  border-radius: 0.5em;
  padding: 1em;
  margin: 0 0 0 1.5em;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border-radius: 0;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  border: 0;
  max-height: 50px;
}

.btn-primary {
  background-color: var(--color-pr);
  color: var(--color-white);
}

.btn-primary:hover {
  transform: translateX(-2px);
}

.section-padding {
  padding-top: 3rem;
  padding-bottom: 1rem;
}

#myvideo {
  position: relative;
  align-items: center;
  right: 0;
  bottom: 0;
  width:100%; 
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1024px) {
  h1 {
    font-size: 3rem;
    line-height: 1.25;
  }

  h2 {
    font-size: 3rem;
    line-height: 1.3;
  }

  h4 {
    font-size: 1.15rem;
    line-height: 1.4;
  }

  p,
  a {
    font-size: 1rem;
    line-height: 1.6;
  }

  .container {
    padding: 0 0.8rem;
  }

  .btn {
    padding: 0.9rem 1.4rem;
    font-size: 1rem;
    height: 50px;
  }

  .section-padding {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h4 {
    font-size: 1.125rem;
  }

  p,
  a {
    font-size: 0.9rem;
  }

  .btn {
    padding: 0.75rem 1.2rem;
    font-size: 0.9rem;
  }

  .section-padding {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

/* Header */
header {
  position: sticky;
  top: 0;
  width: 100%;
  background: var(--color-white);
  z-index: 999;
  padding: 1rem 0;
  transition:
    padding 300ms ease,
    box-shadow 300ms ease;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  column-gap: 0.3rem;
  max-width: 1920px;
}

.menu-logo {
  width: 420px;
}

.menu-cta {
  display: flex;
  align-items: center;
  justify-content: end;
  column-gap: 0.5rem;
  width: 320px;
}

.menu-cta svg {
  width: 26px;
  margin-right: 0.5rem;
}

header .menu-cta a {
  font-size: 0.8rem;
}

header .menu-cta a.btn {
  padding: 0.5rem 1rem;
  white-space: nowrap;
}

header .menu-cta a.btn:hover {
  color: var(--color-white);
}

header .menu-logo img {
  height: 3.5rem;
}

@media (max-width: 768px) {
  header {
    padding: 0.75rem 0;
  }

  header .menu-cta a.btn {
    padding: 0.3rem 0.75rem;
  }
}

/* Navigation */
nav.menu-box {
  padding: 0.5rem;
}

ul.nav-list {
  display: flex;
}

ul.nav-list li a {
  padding: 0.5rem 0.7rem;
  font-weight: 700;
  transition: all 0.3s ease-in-out;
  width: fit-content;
  cursor: pointer;
  white-space: nowrap;
}

ul.nav-list li:hover > a {
  color: var(--color-sc);
}

.nav-list li {
  position: relative;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  height: 3px;
  width: 100%;
  background-color: var(--color-dark);
  border-radius: 2px;
  transition: 0.3s ease;
}

@media (min-width: 1101px) {
  .menu-cta.menu-cta-mobile {
    display: none;
  }
}

@media (max-width: 1100px) {
  .menu-toggle {
    display: flex;
  }

  nav.menu-box {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--color-white);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: left 0.3s ease;
    z-index: 1000;
    border: 0;
    border-right: 2px solid var(--color-sc);
    border-radius: 0;
  }

  ul.nav-list {
    flex-direction: column;
    row-gap: 0.8rem;
  }

  header .menu-cta {
    display: none;
  }

  .menu-cta.menu-cta-mobile {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
  }
}

/* Contact Items */
.contact-items {
  display: grid;
  grid-template-columns: auto auto ;
  gap: 1rem;
  justify-content: center;
}

.contact-item {
  border: 1px solid var(--color-sc);
  border-radius: 0.2rem;
  padding: 2rem;
  width: fit-content;
}

.contact-item img {
  margin-bottom: 0.8rem;
}

.contact-meta h4 {
  margin-bottom: 0;
}

.contact-meta p {
  font-size: 12px;
  line-height: auto;
}

address.contact-methods {
  display: flex;
  flex-direction: column;
  row-gap: 0.8rem;
}

address.contact-methods a {
  display: flex;
  align-items: center;
  column-gap: 0.8rem;
}

address.contact-methods svg {
  width: 25px;
}

@media (max-width: 1024px) {
  .contact-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .contact-items {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Estate Slider */
.estate-slider {
  position: relative;
  overflow: hidden;
  height: 80vh;
  min-height: 520px;
  max-height: 700px;
}

.estate-slider-items {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease;
}

.estate-slider-item {
  position: relative;
  min-width: 100%;
  height: 100%;
}

.estate-slider-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.estate-slider-caption {
  position: absolute;
  left: 2rem;
  bottom: 2rem;
  z-index: 2;
  background: rgba(20, 55 ,57 , 0.5);
  backdrop-filter: blur(2px);
  padding: 1rem 2.5rem;
  border-radius: 2px;
  text-align: center;
  color: #fff;
  max-width: 680px;
  width: calc(100% - 2rem);
}

.estate-slider-caption h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 1rem;
  color: var(--color-white);
}

.estate-slider-caption p {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: var(--color-white);
  max-width: 600px;
}

.estate-slider-logo {
  position: absolute;
  right: 0;
  bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  background: #0e4643;
  width: clamp(240px, 80%, 300px);
  height: clamp(120px, 80%, 200px);
  border-radius: 0;
  max-width: 300px;
}

.estate-slider-logo img {
  width: 100%;
  height: auto;
  padding: 2.6rem;
}

@media (max-width: 1024px) {
  .estate-slider-caption {
    left: 50%;
    top: 50%;
    right: unset;
    bottom: unset;
    transform: translate(-50%, -50%);
  }

  .estate-slider-logo {
    bottom: 0;
    border-radius: 0;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .estate-slider {
    height: 70vh;
  }
}

/* Estate */
.estate h1 {
  text-align: center;
}

.estate-numbers {
  padding: 3rem 0;
  background: var(--color-grey);
}

.estate-numbers-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.estate-numbers-item {
  text-align: center;
}

.estate-numbers-value {
  display: inline-block;
  font-size: clamp(2.5rem, 4vw, 5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--color-pr);
}

.estate-numbers-label {
  margin-top: 0.75rem;
  font-size: 1rem;
  color: #222;
}

@media (max-width: 1024px) {
  .estate-numbers-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .estate-numbers-items {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Gallery */
.estate-gallery h2 {
  text-align: center;
}

.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 3vw, 3rem);
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.gallery-tab {
  background: transparent;
  border: 0;
  font-size: 1rem;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  color: #222;
  transition: color 0.2s ease-in-out;
}

.gallery-tab.is-active {
  color: var(--color-pr);
}

.gallery-tab:hover {
  color: var(--color-sc);
}

.gallery-grid {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 1.5rem;
  justify-content: center;
}

.gallery-image {
  overflow: hidden;
}

.gallery-image img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  will-change: transform;
  cursor: pointer;
}

.gallery-image:hover img {
  transform: scale(1.08);
}

.gallery-panel[hidden] {
  display: none;
}

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-tab {
    font-size: 0.8rem;
  }
}

/* Lightbox */
.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(34, 34, 34, 0.95);
  display: grid;
  place-items: center;
  z-index: 9999;
  padding: 2rem;
}

.lightbox__img {
  max-width: min(1100px, 92vw);
  max-height: 80vh;
  width: auto;
  height: auto;
}

.lightbox__close {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(34, 34, 34, 0.15);
}

.lightbox__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(34, 34, 34, 0.15);
}

.lightbox__prev {
  left: 18px;
}

.lightbox__next {
  right: 18px;
}

.lightbox__prev svg,
.lightbox__next svg {
  fill: var(--color-grey);
  width: 25px;
  height: 25px;
}

.lightbox__close svg {
  fill: var(--color-grey);
  width: 20px;
  height: 20px;
}

@media (max-width: 768px) {
  .lightbox {
    padding: 1rem;
  }

  .lightbox__img {
    max-width: 96vw;
    max-height: 72vh;
    border-radius: 10px;
    width: 100%;
  }

  .lightbox__close {
    top: 12px;
    right: 12px;
    width: 46px;
    height: 46px;
    font-size: 30px;
  }

  .lightbox__nav {
    top: auto;
    bottom: 12px;
    transform: none;
    width: 56px;
    height: 56px;
    font-size: 36px;
  }

  .lightbox__prev {
    left: 12px;
  }
  .lightbox__next {
    right: 12px;
  }
}

/* Estate Location */
.estate-location {
  width: 100%;
}

.estate-location-grid {
  display: grid;
  grid-template-columns: auto;
  gap: 1.5rem;
  align-items: stretch;
}

.estate-map {
  width: 100%;
  min-height: 520px;
}

.estate-map iframe {
  width: 100%;
  height: 100%;
  min-height: 520px;
  border: 0;
  display: block;
}

@media (max-width: 1024px) {
  .estate-location-grid {
    grid-template-columns: 1fr;
  }

  .estate-map,
  .estate-map iframe {
    min-height: 450px;
  }
}

/* Footer */
.site-footer {
  background: var(--color-grey);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  column-gap: 3rem;
}

.footer-col {
  position: relative;
}

.footer-text {
  font-size: 1rem;
  color: rgba(34, 34, 34, 0.5);
  text-align: center;
}

.information-clause p {
  margin-top: 20px;
  font-style: italic;
  font-size: 12px;
  color: rgba(34, 34, 34, 0.5);
  line-height: normal;
  text-align: center;
}

/* ===== RWD ===== */
@media (max-width: 1504px) {
  .footer-grid {
    column-gap: 2rem;
  }
}

@media (max-width: 820px) {
  .footer-grid {
    grid-template-columns: 1fr;
    row-gap: 2rem;
  }

  .footer-text {
    max-width: 100%;
    text-align: center;
  }
 
}