/* Background for subpages */
.page-bg-mountains {
  background-color: #ffffff;
  background-image: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8)), url('/images/mountain.jpg');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.page-bg-mountains h1,
.page-bg-mountains h3,
.page-bg-mountains p,
.page-bg-mountains span,
.page-bg-mountains div {
  color: var(--primary) !important;
}

.page-bg-mountains .text-white\/60,
.page-bg-mountains .text-white\/50,
.page-bg-mountains .text-white\/40 {
  color: rgba(15, 61, 46, 0.6) !important;
}

.page-bg-mountains .border-white\/10 {
  border-color: rgba(15, 61, 46, 0.1) !important;
}

.page-bg-mountains .bg-white\/5,
.page-bg-mountains .bg-white-0-03 {
  background-color: rgba(15, 61, 46, 0.03) !important;
}

.page-bg-mountains .prose-invert {
  --tw-prose-body: var(--primary);
  --tw-prose-headings: var(--primary);
  --tw-prose-links: var(--primary);
  --tw-prose-bold: var(--primary);
}

/* Prose styles for rich text content */
.prose {
  color: var(--primary);
  line-height: 1.6;
}

.prose p {
  margin-top: 0.75em;
  margin-bottom: 0.75em;
  line-height: 1.6;
}

.prose p:first-child {
  margin-top: 0;
}

.prose br {
  display: block;
  content: "";
  margin-top: 0;
}

.prose strong {
  color: var(--primary);
  font-weight: 700;
}

.prose em {
  font-style: italic;
}

.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
  font-family: 'Playfair Display', serif;
  font-style: normal;
  color: var(--primary);
  font-weight: 600;
  line-height: 1.2;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.prose h1 {
  font-size: 2.25em;
  font-weight: 700;
}

.prose h2 {
  font-size: 1.875em;
}

.prose h3 {
  font-size: 1.5em;
}

.prose h4 {
  font-size: 1.25em;
}

.prose ul, .prose ol {
  margin-top: 0.75em;
  margin-bottom: 0.75em;
  padding-left: 1.625em;
}

.prose ul {
  list-style-type: disc;
}

.prose ol {
  list-style-type: decimal;
}

.prose li {
  margin-top: 0.25em;
  margin-bottom: 0.25em;
  line-height: 1.6;
}

.prose a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 500;
  transition: opacity 0.2s;
}

.prose a:hover {
  opacity: 0.8;
}

.prose blockquote {
  font-style: italic;
  border-left: 6px solid rgba(15, 61, 46, 0.3);
  background-color: rgba(15, 61, 46, 0.03);
  padding: 0.75em 1em;
  margin: 1em 0;
  color: rgba(15, 61, 46, 0.85);
  border-radius: 0 0.25rem 0.25rem 0;
}

.prose code {
  background-color: rgba(15, 61, 46, 0.1);
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: monospace;
  color: var(--primary);
}

.prose pre {
  background-color: rgba(15, 61, 46, 0.05);
  padding: 1em;
  border-radius: 0.375rem;
  overflow-x: auto;
  margin: 1em 0;
}

.prose pre code {
  background-color: transparent;
  padding: 0;
}

.prose img {
  margin: 1.5em 0;
  border-radius: 0.375rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
}

.prose th, .prose td {
  border: 1px solid rgba(15, 61, 46, 0.2);
  padding: 0.75em;
  text-align: left;
}

.prose th {
  background-color: rgba(15, 61, 46, 0.05);
  font-weight: 600;
  color: var(--primary);
}

.prose-lg {
  font-size: 1.125rem;
  line-height: 1.6;
}

.prose-lg p {
  margin-top: 0.75em;
  margin-bottom: 0.75em;
}

.max-w-none {
  max-width: none;
}

.btn-minimal-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.btn-minimal-dark:hover {
  opacity: 1;
  transform: translateX(-4px);
}

:root {
  --background: #FDFBF7;
  --foreground: #1A1A1A;
  --primary: #0F3D2E;
  --primary-foreground: #FFFFFF;
  --secondary: #d1c766;
  --secondary-foreground: #1A1A1A;
  --accent: #EBEBE0;
  --dark: #1A1A1A;
}

/* Typography Components */
.heading-serif {
  font-family: 'Playfair Display', serif;
  letter-spacing: -0.02em;
  color: var(--primary);
}

.text-body {
  font-family: 'Inter', sans-serif;
  color: var(--foreground);
}

.text-muted {
  color: rgba(26, 26, 26, 0.5);
  /* dark/50 */
}

/* Services Carousel Styles */
.services-carousel-container {
  position: relative;
  overflow: visible;
}

.services-carousel-track {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */
  padding-top: 1rem;
  padding-bottom: 2rem;
  width: 100%;
}

.services-carousel-track::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari and Opera */
}

.services-carousel-item {
  flex: 0 0 85%;
  min-width: 85%;
  padding: 0.5rem 0;
}

@media (min-width: 768px) {
  .services-carousel-item {
    flex: 0 0 calc(50% - 1rem);
    min-width: calc(50% - 1rem);
  }
}

@media (min-width: 1024px) {
  .services-carousel-item {
    flex: 0 0 calc(33.333% - 1.333rem);
    min-width: calc(33.333% - 1.333rem);
  }

  .services-carousel-track {
    overflow: hidden;
  }
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

@media (min-width: 1024px) {
  .services-carousel-container .carousel-arrow {
    display: flex;
  }
}

.carousel-arrow:hover {
  background: var(--secondary);
  color: var(--dark);
  border-color: var(--secondary);
  transform: translateY(-50%) scale(1.1);
}

.carousel-arrow-left {
  left: -1.5rem;
}

.carousel-arrow-right {
  right: -1.5rem;
}

.carousel-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* Carousel Indicators */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(15, 61, 46, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.indicator-dot.active {
  width: 32px;
  border-radius: 4px;
  background-color: var(--primary);
}

@media (min-width: 1024px) {
  .carousel-indicators {
    display: none;
  }
}

.card-base {
  background-color: white;
  border-radius: 0.5rem;
  /* rounded-lg */
  border: 1px solid rgba(15, 61, 46, 0.05);
  /* Using primary with low opacity */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-base:hover {
  transform: translateY(-8px);
  border-color: var(--secondary) !important;
  box-shadow: 0 20px 40px -15px rgba(15, 61, 46, 0.15);
}

/* Card without hover lift - for segment cards etc. */
.card-base-static {
  background-color: white;
  border-radius: 0.5rem;
  border: 1px solid rgba(15, 61, 46, 0.1);
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.card-base-static:hover {
  border-color: var(--secondary);
}

.card-image-wrapper {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 0.5rem;
  /* rounded-lg */
}

.card-image-zoom {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

.group:hover .card-image-zoom {
  transform: scale(1.1);
}

/* Services Grid Design */
.service-card {
  position: relative;
  padding: 3rem 2rem;
  background: white;
  border: 1px solid rgba(15, 61, 46, 0.05);
  border-radius: 0.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--secondary);
  box-shadow: 0 20px 40px -15px rgba(15, 61, 46, 0.1);
}

.service-icon-wrapper {
  width: 50px;
  height: 50px;
  background: var(--accent);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
  transition: all 0.3s ease;
}

.service-card:hover .service-icon-wrapper {
  background: var(--primary);
  color: white;
  transform: scale(1.1) rotate(5deg);
}

.service-number {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: rgba(15, 61, 46, 0.1);
  font-weight: 700;
  transition: all 0.3s ease;
}

.service-card:hover .service-number {
  color: rgba(15, 61, 46, 0.2);
  transform: translateY(-5px);
}

.service-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.service-dot {
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: 50%;
  display: inline-block;
  margin-right: 10px;
  opacity: 0;
  transition: all 0.3s ease;
}

.service-card:hover .service-dot {
  opacity: 1;
}

.section-cta-light {
  background-color: var(--background);
}

.section-cta-accent {
  background-color: var(--accent);
}

/* Standardized Section Headers */
.section-header {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  padding: 1rem 0; /* Reduced padding from 4rem to 1rem */
}

/* Mountain background for headers - Default (Left) */
.section-header::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -5%;
  transform: translateY(-50%);
  width: 100%;
  max-width: 600px;
  height: 100%;
  background-image: url('/images/Mount_4.svg');
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
}

/* Right alignment for specific sections */
.mountain-right .section-header::before {
  left: auto;
  right: -5%;
  background-position: right center;
}

@media (max-width: 768px) {
  .section-header::before {
    max-width: 300px;
    left: 0;
  }
  .mountain-right .section-header::before {
    left: auto;
    right: 0;
  }

  /* Reduce section vertical padding on mobile */
  section.py-24 {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  /* Tighten section header block */
  .section-header {
    margin-bottom: 2rem;
    padding: 0;
  }

  .section-header-plain {
    margin-bottom: 2rem;
  }

  /* Tighten spacing between subtitle → title → divider → content */
  .section-subtitle {
    margin-bottom: 0.5rem;
  }

  h2 {
    margin-bottom: 0.75rem;
  }

  .section-title {
    margin-bottom: 0.75rem;
  }

  .section-divider {
    margin-bottom: 1.5rem;
  }
}

/* Section header without mountain SVG decoration */
.section-header-plain {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  margin-bottom: 4rem;
}

.section-subtitle {
  position: relative;
  z-index: 1;
  color: var(--secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.625rem;
  margin-bottom: 1rem;
  display: block;
}

h2 {
  position: relative;
  z-index: 1;
  font-family: 'Playfair Display', serif;
  font-style: normal;
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--primary);
  letter-spacing: -0.01em;
  display: block;
}

@media (min-width: 1024px) {
  h2 {
    font-size: 3.5rem;
  }
}

.section-title {
  position: relative;
  z-index: 1;
  font-family: 'Playfair Display', serif;
  font-style: normal;
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-weight: 600;
  font-size: 2.5rem;
  line-height: 1.1;
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 3.5rem;
  }
}

.section-divider {
  position: relative;
  z-index: 1;
  width: 3rem;
  height: 4px;
  background-color: var(--secondary);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3rem;
}

/* Section description removed as it's now handled by inline tailwind classes in the template */

/* Clean up old background rules */
html, body {
  background-color: transparent !important;
}

#content-wrapper {
  background-color: transparent !important;
}

/* Site base layer */
html {
  background: #1A1A1A;
}

/* Fixed background for the parallax "peek" effect */
.site-parallax-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.site-parallax-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.site-parallax-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55); /* Darker overlay */
}

/* Ensure ALL possible section containers are white */
section, 
main > div:not(.hero-parallax-container), 
.section-cta-light, 
.section-cta-accent,
.bg-background,
.bg-accent,
#content-wrapper main > section {
  background-color: #ffffff !important;
  background-image: none !important;
  position: relative;
  z-index: 5;
  margin-bottom: 0 !important;
}

/* Force dark background for footer and hero */
footer, .hero-parallax-container, .bg-dark, .bg-primary, .bg-primary-dark {
  background-color: #1A1A1A !important;
  background-image: none !important;
  position: relative;
  z-index: 10;
  margin-bottom: 0 !important;
  margin-top: 0 !important;
}

/* Ensure main is transparent and use spacing between sections */
main {
  display: flex;
  flex-direction: column;
  background-color: transparent !important;
}

/* Create the gap ONLY before footer */
main > section, 
main > div:not(.hero-parallax-container) {
  margin-top: 0 !important; 
  box-shadow: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05); /* Added delicate divider line */
}

/* Remove divider from last section to not clash with the gap */
main > section:last-of-type,
main > div:not(.hero-parallax-container):last-of-type {
  border-bottom: none;
}

/* Specific gap before footer */
footer {
  margin-top: 200px !important;
}

/* Hero and Footer must stay dark and cover the parallax bg */
.hero-parallax-container, 
footer, 
.bg-dark, 
.bg-primary {
  background-color: #1A1A1A !important;
  background-image: none !important;
  position: relative;
  z-index: 10;
  margin-bottom: 0 !important;
}

/* Fix for any nested containers that might have the old beige color */
div[class*="bg-background"], 
div[class*="bg-accent"] {
  background-color: #ffffff !important;
}

@layer base {
  h1,
  h3,
  h4,
  h5,
  h6 {
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.02em;
    color: var(--primary);
  }
  h1 { font-size: 2rem; font-weight: 700; line-height: 1.2; }
}

/* Link Components */
.link-underline {
  display: inline-block;
  font-size: 0.625rem;
  /* 10px */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: all 0.3s ease;
}

.link-underline:hover {
  color: var(--secondary);
  text-decoration-color: var(--secondary);
}

/* Segments Section */
#segments {
  position: relative;
  overflow: hidden;
  padding-bottom: 4rem !important;
}

/* Hide mountain image for segments section header */
#segments .section-header::before {
  display: none !important;
}

/* Segment card styles - narrow vertical cards */
#segments .segment-item {
  background: #fff;
  border-radius: 0.5rem;
  border: 1px solid rgba(15, 61, 46, 0.08);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

#segments .segment-item:hover {
  box-shadow: 0 4px 16px rgba(15, 61, 46, 0.12);
}

#segments .segment-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  flex-shrink: 0;
}

#segments .segment-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

#segments .segment-item:hover .segment-img img {
  transform: scale(1.05);
}

#segments .segment-body {
  padding: 0.75rem 0.9rem 0.85rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.segment-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.segment-card-link {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.segment-card-link:hover {
  color: var(--secondary);
}

/* Mobile: single column stack */
#segments .segments-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Desktop: two-column trail layout */
@media (min-width: 1024px) {
  #segments {
    padding-bottom: 8rem !important;
  }

  #segments::before {
    content: "";
    position: absolute;
    top: 220px;
    left: 0;
    width: 100%;
    height: calc(100% - 220px);
    background-image: url('/images/sciezka.svg');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: contain;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
  }

  #segments .segments-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 24px 320px !important;
    max-width: 1100px;
    margin: 0 auto;
    overflow: visible;
    position: relative;
    z-index: 1;
  }

  #segments .segments-grid .segment-item {
    flex: none;
  }

  #segments .segment-item:nth-child(1) { transform: translateY(0); }
  #segments .segment-item:nth-child(2) { transform: translateY(25px); }
  #segments .segment-item:nth-child(3) { transform: translateY(25px); }
  #segments .segment-item:nth-child(4) { transform: translateY(50px); }
  #segments .segment-item:nth-child(5) { transform: translateY(50px); }
  #segments .segment-item:nth-child(6) { transform: translateY(75px); }
  #segments .segment-item:nth-child(7) { transform: translateY(75px); }
}

/* Offer Grid - mobile: single column */
#nasza-oferta .offer-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* Offer Grid - desktop: two-column trail layout with sciezka.svg background */
@media (min-width: 1024px) {
  #nasza-oferta {
    padding-bottom: 8rem !important;
  }

  #nasza-oferta::before {
    content: "";
    position: absolute;
    top: 380px;
    left: 0;
    width: 100%;
    height: calc(100% - 380px);
    background-image: url('/images/sciezka.svg');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: contain;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
  }

  #nasza-oferta .offer-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 24px 320px !important;
    max-width: 1100px;
    margin: 0 auto;
    overflow: visible;
    position: relative;
    z-index: 1;
  }

  #nasza-oferta .offer-card-item {
    flex: none;
  }

  #nasza-oferta .offer-card-item .p-8 {
    padding: 1.25rem;
  }

  #nasza-oferta .offer-card-item .mb-8 {
    margin-bottom: 1rem;
  }

  #nasza-oferta .offer-card-item .mb-4 {
    margin-bottom: 0.5rem;
  }

  #nasza-oferta .offer-card-item .pt-6 {
    padding-top: 0.75rem;
  }

  #nasza-oferta .offer-card-item h3 {
    font-size: 1.25rem;
  }

  #nasza-oferta .offer-card-item:nth-child(1) { transform: translateY(0); }
  #nasza-oferta .offer-card-item:nth-child(2) { transform: translateY(100px); }
  #nasza-oferta .offer-card-item:nth-child(3) { transform: translateY(30px); }
  #nasza-oferta .offer-card-item:nth-child(4) { transform: translateY(130px); }
  #nasza-oferta .offer-card-item:nth-child(5) { transform: translateY(60px); }
  #nasza-oferta .offer-card-item:nth-child(6) { transform: translateY(160px); }
  #nasza-oferta .offer-card-item:nth-child(7) { transform: translateY(90px); }
}


.trips-carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
  gap: 2rem;
  padding: 1rem 0;
}

.trips-carousel-track::-webkit-scrollbar {
  display: none;
}

.trips-carousel-track article,
.trips-carousel-track .trips-carousel-item {
  flex: 0 0 85%;
  max-width: 400px; /* Constrain card width on larger mobile/tablets */
  scroll-snap-align: center;
}

@media (min-width: 1024px) {
  .trips-carousel-track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
    gap: 2rem;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
  }

  .trips-carousel-track article,
  .trips-carousel-track .trips-carousel-item {
    flex: none;
  }
}

/* Typography - Headings */
@layer base {
  h1, .heading-serif-lg {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
  }

  h3, .card-title {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
  }
}

/* Global CTA Section */
.cta-section {
  position: relative;
  padding: 100px 0;
  background-color: #ffffff;
  overflow: hidden;
  z-index: 10;
}

.cta-bg-wrapper {
  display: none !important;
}

.cta-tag {
  display: none !important;
}

.cta-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem !important;
  line-height: 1.1;
  margin-bottom: 0 !important;
  color: var(--primary);
  text-align: center;
}

.cta-description {
  display: none !important;
}

.cta-decorative-1, .cta-decorative-2 {
  display: none !important;
}

@media (min-width: 768px) {
  .cta-title {
    font-size: 2.5rem !important;
    margin-bottom: 0 !important;
  }
}

.card-wyprawy {
  background-color: white;
  border-radius: 0.5rem;
  border: 1px solid rgba(15, 61, 46, 0.1);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: left;
}

.card-wyprawy:hover {
  border-color: var(--secondary);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -15px rgba(15, 61, 46, 0.15);
}

.card-wyprawy .card-image-wrapper {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.card-wyprawy .card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-wyprawy .card-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.875rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: var(--primary);
  transition: color 0.3s ease;
}

.card-wyprawy:hover .card-title {
  color: var(--primary);
}


.card-wyprawy .card-footer {
  padding-top: 1rem;
  border-top: 1px solid rgba(26, 26, 26, 0.05);
}

/* Event Card */
.card-event {
  background-color: white;
  border-radius: 0.5rem;
  border: 1px solid rgba(15, 61, 46, 0.05);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.card-event-title {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  color: var(--dark);
  line-height: 1.15;
  margin-bottom: 2rem;
  font-size: 1.875rem;
}

@media (min-width: 1024px) {
  .card-event-title {
    font-size: 2.25rem;
  }
}

/* Past / inactive event card */
.card-event-past {
  opacity: 0.6;
  filter: grayscale(0.5);
  transition: all 0.5s ease;
}

.card-event-past:hover {
  opacity: 0.8;
  filter: grayscale(0.2);
}

/* Agenda Item (minimal "save the date" event card — used in Wydarzenia dalsze) */
.agenda-item {
  background-color: white;
  border-radius: 0.5rem;
  border: 1px solid rgba(15, 61, 46, 0.07);
  box-shadow: 0 1px 2px rgba(15, 61, 46, 0.03);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  transition: border-color 0.5s ease, box-shadow 0.5s ease, transform 0.5s ease;
}

.agenda-item:hover {
  border-color: rgba(209, 199, 102, 0.55);
  box-shadow: 0 10px 28px rgba(15, 61, 46, 0.07);
  transform: translateY(-2px);
}

.agenda-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1.5rem;
  min-width: 108px;
  background-color: rgba(15, 61, 46, 0.025);
  transition: background-color 0.5s ease;
}

.agenda-item:hover .agenda-date {
  background-color: rgba(209, 199, 102, 0.08);
}

.agenda-day {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.agenda-month {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--primary);
  margin-top: 0.2rem;
  text-transform: lowercase;
}

.agenda-year {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(26, 26, 26, 0.4);
  margin-top: 0.5rem;
  text-transform: uppercase;
}

.agenda-divider {
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(15, 61, 46, 0.1) 20%,
    rgba(15, 61, 46, 0.1) 80%,
    transparent
  );
  transition: background 0.5s ease;
}

.agenda-item:hover .agenda-divider {
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(209, 199, 102, 0.5) 20%,
    rgba(209, 199, 102, 0.5) 80%,
    transparent
  );
}

.agenda-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.25rem 1.75rem;
  min-width: 0;
}

.agenda-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--dark);
  line-height: 1.3;
  margin: 0;
  transition: color 0.4s ease;
}

.agenda-item:hover .agenda-title {
  color: var(--primary);
}

@media (min-width: 1024px) {
  .agenda-date {
    padding: 1.5rem 1.75rem;
    min-width: 124px;
  }
  .agenda-day {
    font-size: 2.75rem;
  }
  .agenda-month {
    font-size: 1rem;
  }
  .agenda-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 640px) {
  .agenda-date {
    padding: 1rem 0.875rem;
    min-width: 84px;
  }
  .agenda-day {
    font-size: 1.875rem;
  }
  .agenda-month {
    font-size: 0.8rem;
  }
  .agenda-year {
    font-size: 0.55rem;
    margin-top: 0.35rem;
  }
  .agenda-body {
    padding: 0.875rem 1.125rem;
  }
  .agenda-title {
    font-size: 1.05rem;
    line-height: 1.35;
  }
}

@media (min-width: 768px) {
  h2, .section-title {
    font-size: 3.5rem;
  }
  
  h3, .card-title {
    font-size: 1.875rem; /* 30px */
  }
}

/* Navbar Base Styles */
.nav-glass {
  background: transparent !important;
  border-bottom: 1px solid transparent !important;
  transition: all 0.3s ease;
}

.nav-scrolled {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

#mobile-menu-btn {
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

#mobile-menu-btn #hamburger-icon {
  color: white;
  transition: color 0.3s ease;
}

.nav-scrolled #mobile-menu-btn #hamburger-icon {
  color: var(--primary) !important;
}

/* Ensure white on hero when not scrolled */
.nav-glass:not(.nav-scrolled) #mobile-menu-btn #hamburger-icon {
  color: white !important;
}

/* On Hero / Dark Background */
.navbar-hero {
  background: rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

.navbar-hero .text-dark:not([id^="menu-"]) {
  color: white !important;
}

.navbar-hero .logo-wrapper img {
  filter: brightness(0) invert(1);
}

.navbar-hero #mobile-menu-btn #hamburger-icon {
  color: white !important;
}

/* Mega Menu Dark Theme for Hero */
.navbar-hero [id^="menu-"] {
  background: rgba(26, 26, 26, 0.95) !important;
  backdrop-filter: blur(25px) !important;
  -webkit-backdrop-filter: blur(25px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.navbar-hero [id^="menu-"] * {
  color: white !important;
}

.navbar-hero [id^="menu-"] a:hover,
.navbar-hero [id^="menu-"] a:hover * {
  color: var(--secondary) !important;
}

.navbar-hero [id^="menu-"] .text-dark\/60,
.navbar-hero [id^="menu-"] .text-dark\/50,
.navbar-hero [id^="menu-"] .text-dark\/40 {
  color: rgba(255, 255, 255, 0.6) !important;
}

.navbar-hero [id^="menu-"] .border-r {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.navbar-hero [id^="menu-"] .border-l-primary\/20 {
  border-left-color: rgba(255, 255, 255, 0.2) !important;
}

.navbar-hero [id^="menu-"] .group-hover\/item\:border-l-primary {
  border-left-color: var(--secondary) !important;
}

/* On Scrolled / White Background */
.nav-scrolled .text-dark:not([id^="menu-"]) {
  color: var(--primary) !important;
}

.nav-scrolled .logo-wrapper img {
  filter: none !important;
}

.nav-scrolled #mobile-menu-btn #hamburger-icon {
  color: var(--primary) !important;
}

.navbar-dark {
  background: rgba(0, 0, 0, 0.1) !important; /* Minimalne przyciemnienie dla czytelności */
  backdrop-filter: blur(4px) !important; /* Zmniejszone rozmycie */
  -webkit-backdrop-filter: blur(4px) !important;
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

.navbar-dark [id^="menu-"] {
  background: rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(25px) !important;
  -webkit-backdrop-filter: blur(25px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  isolation: isolate;
  z-index: 9999;
}

.navbar-dark [id^="menu-"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: -1;
}

.navbar-dark [id^="menu-"] * {
  color: white !important;
}

.navbar-dark [id^="menu-"] a:hover,
.navbar-dark [id^="menu-"] a:hover * {
  color: var(--secondary) !important;
}

.navbar-dark [id^="menu-"] .text-dark\/60,
.navbar-dark [id^="menu-"] .text-dark\/50,
.navbar-dark [id^="menu-"] .text-dark\/40,
.navbar-dark [id^="menu-"] .text-gray-500,
.navbar-dark [id^="menu-"] .text-gray-400 {
  color: rgba(255, 255, 255, 0.7) !important;
}

.navbar-dark [id^="menu-"] .border-r,
.navbar-dark [id^="menu-"] .border-b {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.navbar-dark [id^="menu-"] .group-hover\/item\:border-l-primary {
  border-left-color: var(--secondary) !important;
}

.navbar-dark [id^="menu-"] .text-dark:hover,
.navbar-dark [id^="menu-"] .text-dark:hover span {
  color: var(--secondary) !important;
}

.navbar-dark .text-dark:not([id^="menu-"]) {
  color: white !important;
}

.navbar-dark .text-dark:hover:not([id^="menu-"]) {
  color: var(--secondary) !important;
}

.navbar-dark #mobile-menu-btn #hamburger-icon {
  color: white !important;
}


.navbar-dark #mobile-menu-btn {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.navbar-dark img {
  filter: brightness(0) invert(1);
}

/* Hero Section Styles Removed/Modified for Split Layout */
.hero-parallax-container {
  display: none !important;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: fit-content;
  align-items: flex-start;
}


/* Utilities mapping to vars */
.text-primary {
  color: var(--primary);
}

.bg-primary {
  background-color: var(--primary);
}

.bg-primary\/10 {
  background-color: rgba(15, 61, 46, 0.1);
}

.bg-primary\/5 {
  background-color: rgba(15, 61, 46, 0.05);
}

.border-primary {
  border-color: var(--primary);
}

.hover\:text-primary:hover {
  color: var(--primary);
}

.group-hover\:text-primary:hover {
  color: var(--primary);
}

.group-hover\/item\:text-primary:hover {
  color: var(--primary);
}

.group-hover\/item\:border-l-primary:hover {
  border-left-color: var(--primary);
}

.border-l-primary\/20 {
  border-left-color: rgba(15, 61, 46, 0.2);
}

/* PDF download card component (partials/components/pdf-download.ejs) */
.pdf-download-card:hover .pdf-download-btn {
  background-color: #16A34A !important;
}
.pdf-download-card:hover .pdf-download-icon {
  color: #FFFFFF !important;
}

/* ─────────────────────────────────────────────────────────────────────
   Home page — graph-paper (kratka) background on every section.
   The pattern lives on a ::before pseudo-element to bypass the section
   background-image: none !important rule above. Hero and CTA hide it
   naturally via their own absolute-positioned image/overlay layers.
   ───────────────────────────────────────────────────────────────────── */
/* Top layer: white radial that fades the pattern in the center (vignette in reverse).
   Bottom layer: kratka SVG tile. Higher specificity than #content-wrapper main > section. */
body.page-home #content-wrapper main > section,
body.page-wycieczki-rodzinne #content-wrapper main > section {
  background-image:
    radial-gradient(ellipse at center, rgba(253, 251, 247, 0.75) 0%, rgba(253, 251, 247, 0) 100%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32'><g stroke='%230F3D2E' stroke-width='0.5' stroke-opacity='0.06' fill='none'><path d='M 32 0 L 0 0 L 0 32'/></g></svg>") !important;
  background-size: 100% 100%, 32px 32px !important;
  background-repeat: no-repeat, repeat !important;
  background-position: center center, top left !important;
}