/* ============================================================
   Vertum Decor — modern redesign
   Typography: Cormorant Garamond (display) + Manrope (body)
   ============================================================ */

:root {
  --bg:            #f6f4ef;
  --surface:       #ffffff;
  --dark:          #101214;
  --dark-soft:     #16181c;
  --text:          #23262b;
  --muted:         #6d7076;
  --accent:        #b28a4c;
  --accent-light:  #d6ba8a;
  --line:          rgba(16, 18, 20, .10);
  --line-light:    rgba(255, 255, 255, .12);
  --radius:        14px;
  --shadow:        0 18px 50px -18px rgba(16, 18, 20, .22);
  --header-h:      76px;
  --font-display:  "Cormorant Garamond", Georgia, serif;
  --font-body:     "Manrope", -apple-system, "Segoe UI", sans-serif;
  --ease:          cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

.container {
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
}

.section { padding: clamp(80px, 11vw, 140px) 0; }

/* Sections offset for fixed header when anchor-jumping */
#o-nas, #oferta, #kontakt { scroll-margin-top: var(--header-h); }

/* ---------- Section headings ---------- */
.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--accent);
}
.section__eyebrow::before {
  content: "";
  width: 42px;
  height: 1px;
  background: var(--accent);
}
.section__eyebrow--light { color: var(--accent-light); }
.section__eyebrow--light::before { background: var(--accent-light); }

.section__title {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: clamp(38px, 5.4vw, 62px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: .01em;
  color: currentColor;
}

.section__head {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 84px);
}
.section__head .section__eyebrow { justify-content: center; }
.section__head .section__eyebrow::after {
  content: "";
  width: 42px;
  height: 1px;
  background: var(--accent);
}

/* ============================================================
   Header
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: box-shadow .45s var(--ease);
  background: linear-gradient(to bottom, rgba(10, 11, 13, .55), transparent);
}
/* Blur layer lives on a pseudo-element: backdrop-filter on .header itself
   would turn it into the containing block for the fixed mobile nav overlay,
   clipping the menu background to the header bar. */
.header::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(13, 14, 17, .92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s var(--ease);
}
.header.is-scrolled::before { opacity: 1; }
.header.is-scrolled {
  box-shadow: 0 1px 0 var(--line-light), 0 12px 32px -18px rgba(0, 0, 0, .55);
}
.header__inner { position: relative; z-index: 1; }

.header__inner {
  width: min(1320px, 100% - 48px);
  margin-inline: auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

@media (max-width: 860px) {
  /* The full-screen nav overlay must escape the header's paint order */
  .header { z-index: 100; }
}

.header__logo img {
  width: 120px;
  height: auto;
  transition: transform .35s var(--ease);
}
.header__logo:hover img { transform: scale(1.04); }

.nav__list {
  display: flex;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link {
  position: relative;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  transition: color .3s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent-light);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--accent-light); }
.nav__link:hover::after, .nav__link.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Burger */
.burger {
  display: none;
  position: relative;
  z-index: 120;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: #fff;
  border-radius: 2px;
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .burger { display: block; }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 110;
    display: grid;
    place-items: center;
    background: #000;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s var(--ease), visibility .4s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }

  .nav__list {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .nav__link {
    display: inline-block;
    padding: 12px 8px;
    font-family: var(--font-display);
    font-size: clamp(30px, 8vw, 42px);
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: none;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .5s var(--ease), transform .5s var(--ease), color .3s;
  }
  .nav.is-open .nav__link { opacity: 1; transform: none; }
  .nav.is-open li:nth-child(1) .nav__link { transition-delay: .10s; }
  .nav.is-open li:nth-child(2) .nav__link { transition-delay: .18s; }
  .nav.is-open li:nth-child(3) .nav__link { transition-delay: .26s; }
}

/* ============================================================
   Hero slider
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--dark);
  color: #fff;
}

.hero__slides, .hero__slide { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }

.hero__slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s var(--ease), visibility 1.2s;
}
.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero__bg {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-size: cover;
  background-position: center;
}
.hero__bg::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background:
    linear-gradient(to bottom, rgba(10, 11, 13, .5), rgba(10, 11, 13, .35) 40%, rgba(10, 11, 13, .62));
}
/* Ken Burns */
.hero__slide.is-active .hero__bg {
  animation: kenburns 8s var(--ease) forwards;
}
@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}

.hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0 24px;
}

.hero__title {
  max-width: 980px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 4.6vw, 54px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .015em;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
}
.hero__slide.is-active .hero__title {
  animation: heroText 1.1s var(--ease) .25s both;
}
@keyframes heroText {
  from { opacity: 0; transform: translateY(34px); }
  to   { opacity: 1; transform: none; }
}

/* Arrows */
.hero__arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: rgba(16, 18, 20, .25);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.hero__arrow svg { width: 22px; height: 22px; }
.hero__arrow--prev { left: clamp(12px, 3vw, 40px); }
.hero__arrow--next { right: clamp(12px, 3vw, 40px); }
.hero__arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-50%) scale(1.07);
}
@media (max-width: 640px) {
  .hero__arrow { display: none; }
}

/* Bullets */
.hero__bullets {
  position: absolute;
  bottom: 92px;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 12px;
}
.hero__bullet {
  width: 34px;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: rgba(255, 255, 255, .35);
  cursor: pointer;
  transition: background .3s, width .4s var(--ease);
}
.hero__bullet.is-active {
  width: 56px;
  background: var(--accent-light);
}

/* Scroll hint */
.hero__scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .8);
  animation: bounce 2.2s infinite var(--ease);
}
.hero__scroll svg { width: 26px; height: 26px; }
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 10px); }
}

/* ============================================================
   O nas
   ============================================================ */
.about { background: var(--bg); position: relative; }

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.about__descr {
  margin: 26px 0 0;
  font-size: 17px;
  line-height: 1.85;
  color: var(--muted);
}

.about__collage {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.about__img {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about__img--tall { grid-row: 1 / 3; }

.about__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.about__img:hover img { transform: scale(1.06); }

@media (max-width: 920px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__collage { margin-top: 8px; }
}
@media (max-width: 520px) {
  .about__collage {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .about__img--tall { grid-row: auto; }
}

/* ============================================================
   Oferta
   ============================================================ */
.offer { background: var(--surface); }

.offer__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
@media (max-width: 820px) {
  .offer__grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.card__media {
  display: block;
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #e8e5de;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease);
}
.card:hover .card__media img { transform: scale(1.07); }
.card__media::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(to top, rgba(16, 18, 20, .28), transparent 45%);
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.card:hover .card__media::after { opacity: 1; }

.card__body {
  position: relative;
  padding: 30px 30px 36px;
}

.card__num {
  position: absolute;
  top: -28px;
  right: 26px;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--accent-light);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  box-shadow: 0 10px 24px -10px rgba(16, 18, 20, .5);
}

.card__title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--dark);
}
.card__title strong { font-weight: 600; }

.card__link {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: color .35s var(--ease), background-size .45s var(--ease);
}
.card__link:hover {
  color: var(--accent);
  background-size: 100% 2px;
}

.card__descr {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}
.card__descr strong {
  font-weight: 600;
  color: var(--text);
}

/* ============================================================
   Podstrony oferty (detail pages)
   ============================================================ */
.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 54vh;
  min-height: 400px;
  overflow: hidden;
  background: var(--dark);
  color: #fff;
}
.page-hero__bg {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-size: cover;
  background-position: center;
  animation: kenburns 8s var(--ease) forwards;
}
.page-hero__bg::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(to bottom, rgba(10, 11, 13, .55), rgba(10, 11, 13, .28) 45%, rgba(10, 11, 13, .78));
}
.page-hero__content {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(40px, 6vw, 70px);
}
.page-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 10px 22px;
  border: 1px solid rgba(214, 186, 138, .55);
  border-radius: 999px;
  background: rgba(16, 18, 20, .35);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent-light);
  animation: heroText .9s var(--ease) .15s both;
  transition: color .3s, background .3s, border-color .3s;
}
.page-hero__back:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}
.page-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 6.4vw, 68px);
  font-weight: 600;
  line-height: 1.08;
  text-shadow: 0 2px 26px rgba(0, 0, 0, .4);
  animation: heroText 1s var(--ease) .3s both;
}

/* Lists inside offer cards (detail pages) */
.card__descr ul, .card__descr ol {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.card__descr li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
}
.card__descr ul > li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.card__descr ol { counter-reset: item; }
.card__descr ol > li { counter-increment: item; }
.card__descr ol > li::before {
  content: counter(item) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--accent);
}

/* CTA band on detail pages */
.cta {
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(178, 138, 76, .14), transparent 60%),
    var(--dark);
  color: #fff;
  padding: clamp(70px, 9vw, 110px) 0;
  text-align: center;
}
.cta__text {
  max-width: 620px;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 500;
  line-height: 1.5;
  text-wrap: balance;
}
.btn {
  display: inline-block;
  margin-top: 30px;
  padding: 15px 46px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .3s, transform .3s var(--ease), box-shadow .3s;
}
.btn:hover {
  background: #c39a58;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px rgba(178, 138, 76, .7);
}
.btn--ghost {
  margin-top: 0;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}
.btn--ghost:hover {
  background: var(--accent);
  color: #fff;
}
.offer__back {
  text-align: center;
  margin-top: clamp(44px, 6vw, 70px);
}

/* ============================================================
   Kontakt
   ============================================================ */
.contact {
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(178, 138, 76, .13), transparent 60%),
    var(--dark);
  color: #fff;
}

.contact__intro {
  max-width: 620px;
  margin: 18px auto 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 500;
  line-height: 1.45;
  text-wrap: balance;
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(22px, 3vw, 40px);
}
@media (max-width: 860px) {
  .contact__grid { grid-template-columns: 1fr; }
}

.contact__col {
  padding: 42px 30px;
  text-align: center;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .03);
  transition: transform .5s var(--ease), background .5s var(--ease), border-color .5s var(--ease);
}
.contact__col:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, .055);
  border-color: rgba(214, 186, 138, .4);
}

.contact__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(214, 186, 138, .45);
  border-radius: 50%;
  color: var(--accent-light);
}
.contact__icon svg { width: 30px; height: 30px; }

.contact__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: .01em;
}

.contact__descr {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: rgba(255, 255, 255, .72);
}
.contact__descr a {
  text-decoration: none;
  color: rgba(255, 255, 255, .72);
  transition: color .3s;
}
.contact__descr a:hover { color: var(--accent-light); }

.contact__descr--links a {
  display: inline-block;
  max-width: 100%;
  font-size: 13px;
  line-height: 1.6;
  word-break: break-all;
  overflow-wrap: anywhere;
  margin-bottom: 10px;
}

/* ============================================================
   Mapa
   ============================================================ */
.map { background: var(--dark); }

.map__frame {
  position: relative;
  height: min(60vh, 520px);
  min-height: 340px;
  background: #1a1c20;
}
.map__frame iframe {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) contrast(1.04);
  transition: filter .6s var(--ease);
}
.map__frame:hover iframe { filter: grayscale(.15) contrast(1); }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--dark-soft);
  border-top: 1px solid var(--line-light);
  color: rgba(255, 255, 255, .65);
  padding: 42px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__logo { width: 108px; height: auto; }

.footer__copy {
  margin: 0;
  font-size: 13px;
  letter-spacing: .06em;
}

.footer__nav {
  display: flex;
  gap: 26px;
}
.footer__nav a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, .65);
  transition: color .3s;
}
.footer__nav a:hover { color: var(--accent-light); }

@media (max-width: 640px) {
  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================================
   Back to top
   ============================================================ */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 12px 28px -10px rgba(178, 138, 76, .65);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s, background .3s;
}
.to-top svg { width: 22px; height: 22px; }
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.to-top:hover { background: #c39a58; }

/* ============================================================
   Scroll reveal (only when JS is available)
   ============================================================ */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
html.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Focus visibility ---------- */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
