/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;700;800;900&display=swap');

:root {
  /* Brand Colors - Prawniczy Niebieski & Szampańskie Złoto */
  --navy-deep: #0f1e36;       /* Głęboki, autorytatywny granat nocny (tła premium, hero) */
  --navy: #1a365d;            /* Klasyczny, bezpieczny błękit instytucjonalny (główny kolor) */
  --navy-bright: #2b5c96;     /* Jaśniejszy błękit korporacyjny (hover, akcenty) */
  --accent: #c5a059;          /* Eleganckie, stonowane złoto szampańskie (CTA, ważniejsze akcenty) */
  --accent-light: #e2d4b7;    /* Jasne, miękkie złoto (stany hover dla akcentów) */
  --accent-deep: #997b41;     /* Ciemne, głębokie złoto mosiężne (teksty pomocnicze) */
  --bg-light: #f4f6f9;        /* Chłodna, biznesowa złamana biel (główne tło) */
  --bg-warm: #e9eff5;         /* Soft slate-grey-blue (tła sekcji pomocniczych) */
  --text-main: #090e18;       /* Bardzo ciemny granat (tekst główny) */

  /* Typography */
  --font-display: 'Montserrat', "Segoe UI", sans-serif;
  --font-editorial: "Times New Roman", Times, Georgia, serif;

  /* Spacing & Layout */
  --max-width: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-padding: clamp(80px, 12vw, 140px);
}

/* Base resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-light);
  color: var(--text-main);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Global Grid Container */
.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  width: 100%;
}

/* Typography styles */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

em {
  font-family: var(--font-editorial);
  font-style: italic;
  text-transform: none;
  letter-spacing: normal;
}

.eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--accent-deep);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  color: var(--navy-deep);
  margin-bottom: 24px;
}

.lead-italic {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: clamp(19px, 3vw, 26px);
  line-height: 1.4;
  color: var(--navy-deep);
  margin-bottom: 24px;
}

.body-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-main);
  opacity: 0.95;
}

/* Button & CTA Elements */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  text-decoration: none;
  padding: 18px 36px;
  border-radius: 999px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

/* Mapowanie starych klas przycisków na nową paletę */
.btn-gold-pill {
  background-color: var(--accent);
  color: var(--navy-deep);
}

.btn-gold-pill:hover {
  background-color: var(--accent-light);
  transform: translateY(-2px);
}

.btn-burgundy-pill {
  background-color: var(--navy);
  color: var(--bg-light);
}

.btn-burgundy-pill:hover {
  background-color: var(--navy-bright);
  transform: translateY(-2px);
}

/* Navigation Topbar */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: rgba(15, 30, 54, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(197, 160, 89, 0.15);
  display: flex;
  align-items: center;
}

.topbar-inner {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar .logo {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--bg-light);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.1em;
}

.topbar .logo .sub-logo {
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
  margin-left: 8px;
}

/* Hero Section */
.hero {
  position: relative;
  background-color: var(--navy-deep);
  color: var(--bg-light);
  padding-top: calc(80px + var(--section-padding));
  padding-bottom: var(--section-padding);
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: 50%;
  left: 30%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(43, 92, 150, 0.4) 0%, rgba(0,0,0,0) 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.hero-left {
  position: relative;
}

.hero-title {
  font-size: clamp(48px, 8vw, 110px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--bg-light);
}

.hero-subtitle {
  display: block;
  font-size: clamp(16px, 2.5vw, 32px);
  font-weight: 300;
  letter-spacing: -0.01em;
  margin-top: 16px;
  color: var(--accent);
}

.hero-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-lead {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: clamp(20px, 3.5vw, 36px);
  line-height: 1.35;
  color: var(--bg-warm);
  margin-bottom: 24px;
}

.hero-paragraph {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(244, 246, 249, 0.85);
  margin-bottom: 32px;
}

/* Marquee Strip */
.marquee-strip {
  background-color: var(--text-main);
  color: var(--accent);
  border-top: 1px solid var(--accent-deep);
  border-bottom: 1px solid var(--accent-deep);
  padding: 16px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 5;
}

.marquee-track {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  animation: marqueeLoop 40s linear infinite;
}

/* Intro Section */
.intro-section {
  background-color: var(--bg-warm);
  padding: var(--section-padding) 0;
}

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

/* Pillars Section */
.pillars-section {
  padding: var(--section-padding) 0;
  background-color: var(--bg-light);
}

.center-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px auto;
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.pillar-card {
  background-color: var(--bg-warm);
  border: 1px solid rgba(26, 54, 93, 0.08);
  border-radius: 4px;
  padding: 40px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--navy));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(15, 30, 54, 0.05);
}

.pillar-card:hover::before {
  opacity: 1;
}

.pillar-num {
  display: block;
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 32px;
  color: var(--accent-deep);
  margin-bottom: 20px;
  line-height: 1;
}

.pillar-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy-deep);
  margin-bottom: 12px;
}

.pillar-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-main);
  opacity: 0.8;
}

/* Values Section */
.values-section {
  padding: var(--section-padding) 0;
  background-color: var(--navy-deep);
  color: var(--bg-light);
  text-align: center;
}

.values-card {
  max-width: 800px;
  margin: 0 auto;
}

.values-card .section-title {
  color: var(--bg-light);
}

.values-card .lead-italic {
  color: var(--accent-light);
}

.values-card .body-text {
  color: rgba(244, 246, 249, 0.8);
}

/* Form Section */
.form-section {
  padding: var(--section-padding) 0;
  background-color: var(--bg-warm);
}

.form-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

.form-intro .section-title {
  margin-bottom: 16px;
}

.card {
  background-color: var(--bg-light);
  border: 1px solid rgba(15, 30, 54, 0.1);
  border-radius: 4px;
  padding: clamp(24px, 4vw, 48px);
  box-shadow: 0 20px 50px rgba(9, 14, 24, 0.05);
}

/* Form Styling Details */
.fieldset {
  border: none;
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

legend {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 1px solid rgba(26, 54, 93, 0.15);
  padding-bottom: 8px;
  margin-bottom: 16px;
  width: 100%;
}

.form-row {
  display: flex;
  flex-direction: column;
}

label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 6px;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(15, 30, 54, 0.15);
  border-radius: 4px;
  font-size: 0.95rem;
  padding: 14px 16px;
  color: var(--text-main);
  background-color: #ffffff;
  font-family: var(--font-display);
  transition: all 0.2s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
}

/* Form errors & validation */
.error {
  min-height: 18px;
  color: #c0392b; /* Profesjonalna, bezpieczna czerwień walidacyjna */
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 4px;
}

.message {
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 24px;
  font-size: 0.9rem;
  font-weight: 500;
}

.message.success {
  background-color: rgba(111, 158, 118, 0.15);
  color: #2b5c32;
  border: 1px solid rgba(111, 158, 118, 0.3);
}

.message.error {
  background-color: rgba(192, 57, 43, 0.1);
  color: #c0392b;
  border: 1px solid rgba(192, 57, 43, 0.2);
}

.hidden {
  display: none;
}

#submitBtn {
  width: 100%;
  padding: 20px;
  background-color: var(--navy);
  color: var(--bg-light);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.15em;
  font-size: 13px;
  text-transform: uppercase;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
}

#submitBtn:hover {
  background-color: var(--navy-bright);
  transform: translateY(-2px);
}

#submitBtn:active {
  transform: translateY(1px);
}

button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* FAQ Section */
.faq-section {
  padding: var(--section-padding) 0;
  background-color: var(--bg-light);
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}

details {
  border-bottom: 1px solid rgba(15, 30, 54, 0.12);
  padding: 24px 0;
}

summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(14px, 2.5vw, 16px);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  color: var(--navy-deep);
}

summary::-webkit-details-marker {
  display: none;
}

.faq-icon::after {
  content: '+';
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--accent);
  transition: transform 0.3s ease;
  display: inline-block;
  line-height: 1;
}

details[open] .faq-icon::after {
  content: '×';
  transform: rotate(90deg);
}

.faq-content {
  padding-top: 16px;
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-main);
  opacity: 0.9;
}

/* Final CTA Section */
.final-cta {
  position: relative;
  background-color: var(--navy-deep);
  color: var(--bg-light);
  padding: var(--section-padding) 0;
  text-align: center;
  overflow: hidden;
}

.final-cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(43, 92, 150, 0.5) 0%, rgba(0,0,0,0) 80%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.final-cta-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Footer styling */
.footer {
  background-color: var(--text-main);
  color: var(--bg-light);
  padding: 80px 0 120px 0; /* space for mobile sticky bar */
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  border-bottom: 1px solid rgba(244, 246, 249, 0.1);
  padding-bottom: 48px;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.2em;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}

.footer-text {
  font-size: 14px;
  opacity: 0.7;
  max-width: 400px;
}

.footer-contacts h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-light);
  margin-bottom: 16px;
}

.footer-contacts p {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 8px;
}

.footer-bottom {
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 12px;
  opacity: 0.5;
}

/* Mobile Sticky CTA */
.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(15, 30, 54, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 16px var(--gutter);
  border-top: 1px solid rgba(197, 160, 89, 0.25);
  z-index: 999;
  display: flex;
  justify-content: center;
}

.mobile-sticky-cta .btn {
  width: 100%;
  max-width: 400px;
  padding: 14px 24px;
}

/* Animations & Microinteractions */
@keyframes marqueeLoop {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-33.333%, 0, 0);
  }
}

/* Media Queries */
@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
  
  .intro-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
  }

  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-wrapper {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 64px;
  }

  .fieldset {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .fieldset .full-width {
    grid-column: span 2;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  .mobile-sticky-cta {
    display: none;
  }

  .footer {
    padding-bottom: 80px;
  }
}

@media (min-width: 1024px) {
  .pillars-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}