﻿/* plik: onas.css – styl sekcji „O nas” */

/* ---- Reset zakreślony tylko do sekcji ---- */
.about-wrapper,
.about-wrapper *,
.about-wrapper *::before,
.about-wrapper *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.about-section {
  width: 100%;
  background: linear-gradient(
    to right,
    #f2e8d8 0%,
    #fffdf8 35%,
    #fffdf8 65%,
    #f2e8d8 100%
  );
  border-top:60px solid rgb(161, 144, 108);
  padding-bottom: 40px;
  padding-top: 40px;
}

/* ---- Layout i tło z gradientem ---- */
.about-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
  min-width: 360px;
  min-height: 100vh;
  padding: 5px 20px;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  
}

/* ---- Karta tekstowa bez ramki ---- */
.star-card {
  position: relative;
  width: 320px;
  padding: 2.5rem 2rem;
  text-align: center;
  background-color: #fffdf8;
  border: none;
  border-radius: 0;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.06);
  z-index: 1;
}

.star-card h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  letter-spacing: 0.08rem;
  margin-bottom: 1.2rem;
}

.star-card .hours {
  font-size: 0.9rem;
  letter-spacing: 0.05rem;
  margin-bottom: 1.2rem;
}

.star-card .desc {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.6rem;
}

.star-card .site {
  font-size: 0.95rem;
  color: #000;
  text-decoration: none;
}

/* ---- Ramka na zdjęcie ---- */
.image-frame {
  position: relative;
}

.image-frame img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  border: 3px solid #000;
}

.image-frame::before {
  content: "";
  position: absolute;
  inset: -14px;
  border: 6px solid #000;
}

.image-frame::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -28px;
  width: 18px;
  height: 18px;
  background: #fff;
  border: 3px solid #000;
  transform: translateY(-50%) rotate(45deg);
  box-shadow:
    calc(100% + 56px) 0 0 0 #fff,
    calc(100% + 56px) 0 0 0 3px #000;
}

/* --- Onas‑slider podstawowy --- */
.onas-slider {
  position: relative;
  width: 320px;
  height: 420px;
  max-width: 420px;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  border: 0;
}

.onas-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s ease;
  display: block;
  margin: 0;
}

.onas-slider img.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

/* ---- Nawigacja kropek ---- */
.onas-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.onas-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #aaa;
  cursor: pointer;
  transition: background-color .3s;
}

.onas-dot.active {
  background: #000;
}

/* ---- Przyciski nawigacji ---- */
.onas-nav {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 2;
}

.onas-nav button {
  background: rgba(0, 0, 0, 0.123);
  border: none;
  color: #fff;
  font-size: 2em;
  padding: 0.15em 0.5em;
  border-radius: 6px;
  margin: 0 8px;
  cursor: pointer;
  pointer-events: all;
  transition: background .2s;
  user-select: none;
}

.onas-nav button:hover {
  background: #000;
}

/* ---- Responsywność ---- */
@media (max-width: 768px) {
  .about-wrapper {
    flex-direction: column;
    gap: 3rem;
  }

  .star-card {
    order: 1;
  }

  .image-frame {
    order: 2;
  }

  .image-frame img {
    max-width: 100%;
  }

  .image-frame::after {
    display: none;
  }
}

@media (min-width: 1200px) {
  .star-card {
    width: 380px;
    padding: 3rem 2.5rem;
  }

  .star-card h1 {
    font-size: 3rem;
  }

  .star-card .hours {
    font-size: 1rem;
  }

  .star-card .desc,
  .star-card .site {
    font-size: 1.05rem;
  }

  .onas-slider {
    width: 380px;
    height: 500px;
    max-width: 500px;
  }

  .image-frame img {
    max-width: 500px;
  }

  .image-frame::before {
    inset: -16px;
    border: 6px solid #000;
  }

  .image-frame::after {
    left: -32px;
    width: 20px;
    height: 20px;
    border: 3px solid #000;
    box-shadow:
      calc(100% + 64px) 0 0 0 #fff,
      calc(100% + 64px) 0 0 0 3px #000;
  }
}