:root {
  --flority-green: #245e24;
  --flority-leaf: #6d8b4d;
  --flority-blush: #f5e5df;
  --flority-cream: #fffaf4;
  --flority-ink: #22251f;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--flority-ink);
  font-family: "Lato", Arial, sans-serif;
  background: var(--flority-cream);
}

h1,
h2,
h3,
.navbar-brand {
  font-family: "Playfair Display", Georgia, serif;
}

.navbar {
  background: rgba(255, 250, 244, 0.95);
  backdrop-filter: blur(10px);
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  padding-block: 0.25rem;
}

.navbar-brand img {
  width: 132px;
  height: auto;
  display: block;
}

.nav-link {
  color: #394034;
  font-weight: 700;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--flority-green);
}

.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: end;
  overflow: hidden;
  color: #fff;
  padding: 7rem 0 5rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -10px;
  background: url("../images/kosz-kwiatow.webp") center / cover;
  filter: blur(5px);
  transform: scale(1.02);
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 34, 18, 0.82), rgba(20, 34, 18, 0.32));
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  line-height: 0.98;
}

.hero .lead {
  max-width: 660px;
  font-size: 1.25rem;
}

.btn-flority {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--flority-green);
  --bs-btn-border-color: var(--flority-green);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #1b491b;
  --bs-btn-hover-border-color: #1b491b;
  border-radius: 999px;
  font-weight: 700;
  padding: 0.8rem 1.3rem;
}

.btn-outline-flority {
  --bs-btn-color: #fff;
  --bs-btn-border-color: rgba(255, 255, 255, 0.82);
  --bs-btn-hover-color: var(--flority-green);
  --bs-btn-hover-bg: #fff;
  --bs-btn-hover-border-color: #fff;
  border-radius: 999px;
  font-weight: 700;
  padding: 0.8rem 1.3rem;
}

.section {
  padding: 5rem 0;
  scroll-margin-top: 6.5rem;
}

.section-title {
  color: var(--flority-green);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
}

.eyebrow {
  color: var(--flority-leaf);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.soft-band {
  background: #ffffff;
}

.info-box {
  height: 100%;
  border-left: 4px solid var(--flority-green);
  background: #fff;
  padding: 1.5rem;
  box-shadow: 0 18px 45px rgba(36, 94, 36, 0.08);
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.gallery-filter-btn {
  border: 1px solid rgba(36, 94, 36, 0.24);
  border-radius: 999px;
  background: #fff;
  color: var(--flority-green);
  font-weight: 800;
  padding: 0.55rem 0.95rem;
}

.gallery-filter-btn:hover,
.gallery-filter-btn:focus,
.gallery-filter-btn.active {
  background: var(--flority-green);
  border-color: var(--flority-green);
  color: #fff;
}

.gallery-tile {
  position: relative;
  overflow: hidden;
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 35px rgba(36, 94, 36, 0.12);
  cursor: zoom-in;
}

.gallery-tile img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.gallery-caption {
  position: absolute;
  left: 0.65rem;
  bottom: 0.65rem;
  max-width: calc(100% - 1.3rem);
  border-radius: 999px;
  background: rgba(23, 34, 21, 0.76);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  padding: 0.45rem 0.65rem;
}

.gallery-tile:hover img,
.gallery-tile:focus-visible img {
  transform: scale(1.035);
}

.gallery-tile img {
  transition: transform 0.2s ease;
}

.gallery-lightbox .modal-content {
  border: 0;
  border-radius: 8px;
  background: var(--flority-cream);
  box-shadow: 0 24px 80px rgba(23, 34, 21, 0.22);
}

.gallery-lightbox .modal-body {
  padding: 1rem;
}

.gallery-lightbox img {
  display: block;
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
}

.gallery-lightbox-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  opacity: 0.9;
  border-radius: 50%;
  background-color: rgba(255, 250, 244, 0.86);
  padding: 0.65rem;
}

.gallery-lightbox-caption {
  margin: 0.75rem 0 0;
  color: #394034;
  text-align: center;
}

.feature-image {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: 8px;
}

.team-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.team-person {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  min-height: 84px;
  border-radius: 8px;
  background: #fff;
  padding: 0.75rem;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(36, 94, 36, 0.08);
}

.team-person img {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  filter: sepia(0.18) saturate(1.35) brightness(1.06) contrast(0.9);
  background: var(--flority-blush);
  border: 3px solid #f7dfd6;
  box-shadow: 0 8px 20px rgba(36, 94, 36, 0.12);
}

.team-photo-ewa {
  object-position: 50% 24%;
}

.team-photo-asia {
  object-position: 50% 23%;
}

.team-photo-kasia {
  object-position: 50% 22%;
}

.team-photo-bartek {
  object-position: 50% 24%;
}

.team-person span {
  display: block;
  min-width: 0;
  line-height: 1.2;
}

.contact-list p {
  margin-bottom: 0.55rem;
}

.contact-list a {
  color: var(--flority-green);
  font-weight: 700;
  text-decoration: none;
}

.contact-list a:hover,
.contact-list a:focus {
  text-decoration: underline;
}

.map-frame {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(36, 94, 36, 0.1);
  background: #fff;
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}

.footer {
  background: #172215;
  color: rgba(255, 255, 255, 0.84);
}

.footer a {
  color: #fff;
  text-decoration: none;
}

.footer a:hover,
.footer a:focus {
  text-decoration: underline;
}

.funding-note {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
}

@media (max-width: 767.98px) {
  .hero {
    min-height: 78vh;
    padding: 8.25rem 0 3.5rem;
  }

  .section {
    padding: 3.5rem 0;
    scroll-margin-top: 6.5rem;
  }

  .feature-image {
    min-height: 300px;
  }

  .team-list {
    grid-template-columns: 1fr;
  }
}
