/* Fonty serwowane lokalnie z /static/fonts.css (bez Google Fonts) */

/* Dropdown Menu for Oferta */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(44,56,48,0.10);
  border-radius: 8px;
  z-index: 1000;
  padding: 8px 0;
}

.dropdown:hover > .dropdown-menu,
.dropdown:focus-within > .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu a {
  display: block;
  padding: 10px 24px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  border-radius: 0;
  transition: background 0.2s, color 0.2s;
}

.dropdown-menu a:hover {
  background: var(--sage-pale);
  color: var(--deep);
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

  /* Skip-nav link (accessibility) */
  .skip-nav {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 10000;
    padding: 12px 24px;
    background: var(--deep, #2c3830);
    color: #fff;
    border-radius: 0 0 8px 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    text-decoration: none;
    transition: top 0.2s ease;
  }
  .skip-nav:focus {
    top: 0;
    outline: 2px solid var(--sage, #8aab96);
    outline-offset: 2px;
  }

  :root {
    --sage: #8aab96;
    --sage-dark: #5a8068;
    --sage-pale: #dde7e2;
    --sage-light: #aac596;
    --cream: #f7f4ee;
    --cream-dark: #e8e4dc;
    --deep: #2c3830;
    --text: #3d4a42;
    --muted: #7a8c82;
    --white: #ffffff;
    --rose: #b87068;
    --rose-pale: #f5e8e3;
  }
  
  main {
    padding-left: 48px;
    padding-right: 48px;
    padding-bottom: 100px;
    padding-top: 80px;
    width: 100%;
    position: relative;
    z-index: 1;
  }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
  padding: 0;
}

/* ─── FOOTER ─── */
.site-footer {
  background: var(--deep);
  color: #c8d1cb;
  font-family: 'DM Sans', sans-serif;
  padding: 28px 48px 0;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
  padding-bottom: 20px;
}
.footer-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 6px;
}
.footer-text {
  font-size: 13px;
  line-height: 1.6;
  color: #a3b0a8;
  max-width: 300px;
}
.footer-subheading {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 4px;
}
.footer-links a {
  color: #a3b0a8;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: var(--sage);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  padding: 14px 0;
  font-size: 12px;
  color: #6b7c72;
}
@media (max-width: 768px) {
  .site-footer { padding: 20px 24px 0; }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-bottom: 14px;
  }
}

  /* ─── NAVBAR ─── */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: 72px;
    display: flex;
    align-items: center;
    padding: 0 48px;
    background: rgba(247, 244, 238, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: background 0.5s ease, box-shadow 0.5s ease, height 0.4s ease;
  }

  nav.scrolled {
    background: rgba(247, 244, 238, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 2px 0 rgba(138, 171, 150, 0.35), 0 4px 24px rgba(44, 56, 48, 0.06);
    height: 60px;
  }

  .nav-inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* Nav Links */
  .nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
  }

  .nav-links a {
    position: relative;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    color: var(--text);
    padding: 8px 18px;
    border-radius: 100px;
    letter-spacing: 0.01em;
    transition: color 0.3s ease, background 0.3s ease;
    display: block;
  }

  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 4px; left: 50%; right: 50%;
    height: 1.5px;
    background: var(--sage-dark);
    transition: left 0.35s ease, right 0.35s ease;
    border-radius: 2px;
  }

  .nav-links a:hover {
    color: var(--deep);
    background: rgba(138, 171, 150, 0.25);
  }
  .nav-links a:hover::after { left: 18px; right: 18px; }
  .nav-links a.active { color: var(--deep); font-weight: 500; }
  .nav-links a.active::after { left: 18px; right: 18px; }

  /* CTA Button */
  .btn-primary {
    font-family: 'DM Sans', sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--white);
    background: var(--sage-dark);
    border: none;
    cursor: pointer;
    padding: 11px 24px;
    border-radius: 100px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 60% 40%, rgba(255,255,255,0.15), transparent 60%);
    pointer-events: none;
  }
  .btn-primary:hover {
    background: var(--sage);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(90, 128, 104, 0.35);
  }
  .btn-primary:active { transform: translateY(0); }
  .btn-primary .arrow {
    display: inline-block;
    transition: transform 0.3s ease;
  }
  .btn-primary:hover .arrow { transform: translateX(3px); }

  /* Hamburger */
  .hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    border: none;
    background: transparent;
  }
  .hamburger span {
    display: block;
    width: 24px; height: 1.5px;
    background: var(--deep);
    border-radius: 2px;
    transition: transform 0.4s ease, opacity 0.3s ease, width 0.3s ease;
  }
  .hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  /* Mobile Menu */
  .mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(247, 244, 238, 0.97);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.4s ease, transform 0.4s ease;
    overflow-y: auto;
    padding: 88px 24px 40px;
  }
  .mobile-menu.open { opacity: 1; pointer-events: auto; transform: scale(1); }
  /* centruje menu, gdy jest miejsce; przy niskich ekranach pozwala przewijać */
  .mobile-menu > :first-child { margin-top: auto; }
  .mobile-menu > :last-child { margin-bottom: auto; }

  .mobile-menu a.mobile-link {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(26px, 6vw, 34px);
    font-weight: 300;
    color: var(--deep);
    text-decoration: none;
    padding: 4px 24px;
    letter-spacing: 0.02em;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
  }

  .mobile-dropdown {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .mobile-dropdown-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin: 2px 0 8px;
  }
  .mobile-menu .mobile-dropdown-menu a.mobile-link {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--text);
    padding: 4px 16px;
  }
  .mobile-menu.open a.mobile-link { opacity: 1; transform: translateY(0); }
  .mobile-menu a.mobile-link:nth-child(1) { transition-delay: 0.05s; }
  .mobile-menu a.mobile-link:nth-child(2) { transition-delay: 0.12s; }
  .mobile-menu a.mobile-link:nth-child(3) { transition-delay: 0.19s; }
  .mobile-menu a.mobile-link:hover { color: var(--sage-dark); }

  .mobile-cta {
    margin-top: 28px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s;
  }
  .mobile-menu.open .mobile-cta { opacity: 1; transform: translateY(0); }

  @media (max-width: 1080px) {
    nav { padding: 0 24px; }
    .nav-links, nav .btn-primary { display: none; }
    .hamburger { display: flex; margin-left: auto; }
    .hero-visual { display: none; }
    .hero { grid-template-columns: 1fr; }
  }

  /* ─── SHARED PAGE CONTENT STYLES ─── */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .section-label {
    font-size: 10px; font-weight: 500;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--sage-dark);
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 6px;
  }
  .section-label::before { content:''; display:block; width:24px; height:1px; background:var(--sage); }

  .section-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    font-weight: 300;
    color: var(--deep);
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-bottom: 32px;
  }
  .section-heading em { font-style: italic; color: var(--sage-dark); }

  /* ─── FLIP CARD STYLES ─── */
  .flip-card {
    cursor: pointer;
    position: relative;
    height: 100%;
  }

  .flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
  }

  /* Front face - visible by default */
  .flip-card-front {
    position: relative;
    height: 100%;
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

  /* Back face - hidden by default, stacked on top */
  .flip-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
    transform: rotateY(180deg) scale(0.95);
  }

  /* When flipped: hide front, show back */
  .flip-card.flipped .flip-card-front {
    opacity: 0;
    pointer-events: none;
    transform: rotateY(-180deg) scale(0.95);
  }

  .flip-card.flipped .flip-card-back {
    opacity: 1;
    pointer-events: auto;
    transform: rotateY(0deg) scale(1);
  }

  /* Make the inner card fill the back face */
  .flip-card-back > .feature-card,
  .flip-card-back > .service-item,
  .flip-card-back > .mission-card,
  .flip-card-back > .value-item {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, var(--sage-pale) 0%, rgba(138, 171, 150, 0.25) 100%);
  }

  /* Flip card hint */
  .flip-card::after {
    content: 'Kliknij, aby dowiedzieć się więcej';
    position: absolute;
    bottom: 10px;
    right: 14px;
    font-size: 10px;
    font-weight: 500;
    color: var(--sage);
    letter-spacing: 0.04em;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 3;
  }

  .flip-card:hover::after {
    opacity: 1;
  }

  .flip-card.flipped::after {
    content: 'Kliknij, aby wrócić';
    color: var(--sage-dark);
    opacity: 0.6;
  }

  /* ─── HOME PAGE STYLES ─── */

  /* Hero Section */
  .hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 0px;
    animation: fadeUp 0.6s ease both;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 300;
    color: var(--deep);
    line-height: 1.15;
    letter-spacing: -0.015em;
  }

  .hero-title em {
    font-style: italic;
    color: var(--sage-dark);
    font-weight: 400;
  }

  .hero-subtitle {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.7;
    max-width: 480px;
    font-weight: 300;
  }

  .cta-primary {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--white);
    background: var(--sage-dark);
    border: none;
    cursor: pointer;
    padding: 14px 32px;
    border-radius: 100px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
  }

  .cta-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 60% 40%, rgba(255,255,255,0.15), transparent 60%);
    pointer-events: none;
  }

  .cta-primary:hover {
    background: var(--sage);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(90, 128, 104, 0.3);
  }

  .cta-primary .arrow {
    display: inline-block;
    transition: transform 0.3s ease;
  }

  .cta-primary:hover .arrow {
    transform: translateX(4px);
  }

  .hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    padding-left: 40px;
  }

  .visual-accent {
    width: 280px;
    height: 280px;
    background: linear-gradient(135deg, var(--sage-pale) 0%, rgba(138, 171, 150, 0.3) 100%);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: blob 8s infinite;
    margin-top: 0px;
  }

  .visual-accent.accent-2 {
    width: 220px;
    height: 220px;
    background: linear-gradient(135deg, var(--sage-pale) 0%, rgba(138, 171, 150, 0.3) 100%);
    animation: blob 7s infinite 1s;
    margin-left: -60px;
  }

  .visual-accent.accent-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--sage-pale) 0%, rgba(138, 171, 150, 0.3) 100%);
    animation: blob 9s infinite 2s;
    margin-left: -50px;
  }

  @keyframes blob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -30px) scale(1.05); }
    50% { transform: translate(-15px, 25px) scale(0.95); }
    75% { transform: translate(25px, 15px) scale(1.02); }
  }

  /* Features Section */
  .features {
    margin-bottom: 60px;
    animation: fadeUp 0.6s ease 0.1s both;
  }

  .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
  }

  .feature-card {
    background: var(--white);
    border: 2px solid var(--cream-dark);
    border-radius: 20px;
    padding: 32px 26px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
  }

  .feature-card:hover {
    border-color: var(--sage-light);
    box-shadow: 0 12px 36px rgba(90, 128, 104, 0.1);
  }

  .feature-icon {
    font-size: 40px;
    margin-bottom: 16px;
    display: block;
  }

  .feature-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--deep);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
  }

  .feature-card p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.65;
    font-weight: 300;
  }

  /* Services Section */
  .services {
    margin-bottom: 60px;
    animation: fadeUp 0.6s ease 0.2s both;
  }

  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
  }

  .service-item {
    background: var(--white);
    border: 2px solid var(--cream-dark);
    border-radius: 16px;
    padding: 32px;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
  }

  .service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--sage);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
  }

  .service-item:hover {
    border-color: var(--sage-light);
    box-shadow: 0 12px 40px rgba(90, 128, 104, 0.08);
  }

  .service-item:hover::before {
    transform: scaleX(1);
  }

  .service-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 300;
    color: var(--sage-pale);
    line-height: 1;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
  }

  .service-item h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--deep);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
  }

  .service-item p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.65;
    font-weight: 300;
  }

  /* CTA Section */
  .cta-section {
    background: linear-gradient(135deg, var(--sage-pale) 0%, rgba(138, 171, 150, 0.25) 100%);
    border: 2px solid var(--sage);
    border-radius: 28px;
    padding: 64px 48px;
    text-align: center;
    margin-bottom: 50px;
    animation: fadeUp 0.6s ease 0.3s both;
  }

  .cta-section h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 3.5vw, 2.6rem);
    font-weight: 300;
    color: var(--deep);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
  }

  .cta-section p {
    font-size: 15px;
    color: var(--muted);
    margin-bottom: 28px;
    line-height: 1.6;
  }

  .cta-section .cta-primary {
    margin: 0 auto;
  }

  /* Responsive */
  @media (max-width: 920px) {
    .hero {
      grid-template-columns: 1fr;
      gap: 40px;
      margin-bottom: 80px;
    }

    .hero-visual {
      display: none;
    }

    main {
      padding-left: 32px;
      padding-right: 32px;
    }

    .story {
      grid-template-columns: 1fr;
      gap: 40px;
    }
  }

  @media (max-width: 640px) {
    .hero {
      gap: 20px;
      margin-bottom: 40px;
    }

    main {
      padding: 72px 20px 100px;
    }
    
    .features-grid,
    .services-grid,
    .mission-content,
    .values-grid {
      grid-template-columns: 1fr;
    }

    .story {
      grid-template-columns: 1fr;
      gap: 40px;
    }

    .cta-section {
      padding: 48px 24px;
    }

    .cta-section h2 {
      font-size: 1.8rem;
    }

    .service-number {
      font-size: 2.2rem;
    }

    .about-hero {
      margin-bottom: 40px;
      padding: 24px 0;
    }

    .about-hero .hero-title {
      font-size: 2rem;
    }

    .contact-container {
      grid-template-columns: 1fr;
      gap: 40px;
    }

    .contact-form-wrapper {
      padding: 28px;
    }

    .contact-hero {
      margin-bottom: 40px;
      padding: 20px 0;
    }

    .contact-hero .hero-title {
      font-size: 2rem;
    }

    .faq-grid {
      grid-template-columns: 1fr;
    }
  }

/* Link "Dowiedz się więcej" na kaflach oferty */
.card-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--sage-dark);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.card-link:hover { border-bottom-color: var(--sage-dark); }
.card-link .arrow { display: inline-block; transition: transform 0.2s ease; }
.card-link:hover .arrow { transform: translateX(3px); }
