/* style.css */

/* ZMIENNE CSS */
:root {
  --color-primary: #23473b;
  --color-bg: #FDFDFD;
  --color-bg-alt: #F4F6F5;
  --color-accent: #C5A059;
  --color-text: #333333;
  --color-text-light: #FDFDFD;

  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;

  --shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.1);

  --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* DEV WARNING BANNER */
.dev-banner {
  background-color: #f59e0b;
  color: #1c1917;
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.01em;
  z-index: 9999;
  position: relative;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* MODUŁY / KLASY POMOCNICZE */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: var(--spacing-xl) 0;
}

.section-padding--small {
  padding: var(--spacing-lg) 0;
}

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

.text-center {
  text-align: center;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  border-radius: 2px;
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-text-light);
}

.btn--primary:hover {
  background-color: #b08d4b;
  transform: translateY(-2px);
}

/* HEADER */
.header {
  background-color: var(--color-primary);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__logo {
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header__logo-img {
  height: 40px;
  width: auto;
}

.header__nav {
  display: flex;
  gap: 2rem;
}

.header__link {
  color: var(--color-text-light);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  padding-bottom: 0.25rem;
}

.header__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-accent);
  transition: var(--transition-smooth);
}

.header__link:hover::after,
.header__link--active::after {
  width: 100%;
}

/* FOOTER */
.footer {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  padding: var(--spacing-lg) 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer__logo {
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 1.5rem;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: right;
}

.footer__contact-link {
  color: var(--color-accent);
}

.footer__contact-link:hover {
  text-decoration: underline;
}

/* HERO SECTION */
.hero {
  min-height: 80vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.hero__content {
  padding-right: 4rem;
}

.hero__title {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.hero__description {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero__image-wrapper {
  height: 100%;
  width: 100%;
  position: relative;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 600px;
}

/* NEWS SECTION */
.news {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.news__title {
  font-size: 2.5rem;
  text-align: center;
}

.news__widget {
  box-shadow: var(--shadow-subtle);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

/* FEATURE GRID (MEDIACJA) */
.features__header {
  max-width: 800px;
  margin: 0 auto 4rem auto;
  text-align: center;
}

.features__title {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.features__description {
  font-size: 1.1rem;
  color: #555;
}

.features__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
}

.feature-card {
  flex: 1 1 300px;
  max-width: 400px;
  background: var(--color-bg);
  padding: 3rem 2rem;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
  border-top: 3px solid var(--color-accent);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.feature-card__icon {
  width: 40px;
  height: 40px;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
}

.feature-card__title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-card__desc {
  color: #666;
}

/* TEAM GRID (ZESPÓŁ) */
.team__header {
  text-align: center;
  margin-bottom: 4rem;
}

.team__title {
  font-size: 3rem;
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 4rem;
}

.team-card {
  text-align: center;
}

.team-card__image-wrapper {
  width: 300px;
  height: 300px;
  margin: 0 auto 2rem auto;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
}

.team-card:hover .team-card__image-wrapper {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.team-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card__name {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.team-card__role {
  color: var(--color-accent);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.team-card__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.badge {
  background-color: var(--color-bg-alt);
  color: var(--color-primary);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  border: 1px solid rgba(32, 60, 43, 0.1);
}

/* PRICING & DOCUMENTS */
.pricing__header {
  text-align: center;
  margin-bottom: 4rem;
}

.pricing__title {
  font-size: 3rem;
}

.pricing-table {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
  padding: 1.5rem;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pricing-table th {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-size: 1.2rem;
}

.pricing-table td:last-child {
  font-weight: 600;
  color: var(--color-accent);
  text-align: right;
}

.docs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.doc-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  background: var(--color-bg);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-subtle);
  color: var(--color-primary);
  font-weight: 500;
  transition: var(--transition-smooth);
}

.doc-btn:hover {
  border-color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.doc-btn__icon {
  width: 24px;
  height: 24px;
  fill: var(--color-accent);
}

.placeholder-text {
  color: #ff3333;
  font-weight: 800;
  background-color: rgba(255, 0, 0, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* CONTACT */
.contact__wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: var(--spacing-xl);
}

.contact-card {
  background: var(--color-primary);
  color: var(--color-text-light);
  padding: 5rem 4rem;
  max-width: 800px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-hover);
  position: relative;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  border: 1px solid rgba(197, 160, 89, 0.3);
  pointer-events: none;
}

.contact-card__title {
  color: var(--color-accent);
  font-size: 3rem;
  margin-bottom: 2rem;
}

.contact-card__info {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  opacity: 0.9;
}

.contact-card__links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-card__link {
  font-size: 2rem;
  font-family: var(--font-heading);
  color: var(--color-bg);
}

.contact-card__link:hover {
  color: var(--color-accent);
}

.map {
  width: 100vw;
  height: 450px;
  margin-left: calc(-50vw + 50%);
}

/* FB IFRAME RESPONSIVE WRAPPER */
.news__widget iframe {
  max-width: 100%;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 4rem;
  }

  .hero__content {
    padding-right: 0;
    margin-bottom: 3rem;
  }

  .hero__description {
    margin: 0 auto 2.5rem auto;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .footer__contact {
    text-align: center;
  }

  .section-padding {
    padding: var(--spacing-lg) 0;
  }
}

/* BURGER MENU STYLES */
.header__burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 101;
}

.header__burger span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--color-accent);
  border-radius: 3px;
  transition: var(--transition-smooth);
}

.header__burger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.header__burger.active span:nth-child(2) {
  opacity: 0;
}

.header__burger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 768px) {
  .header__container {
    flex-direction: row;
    justify-content: space-between;
  }

  .header__burger {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: var(--color-primary);
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 6rem;
    padding-left: 2rem;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    gap: 2rem;
  }

  .header__nav.active {
    right: 0;
  }

  .header__link::after {
    display: none;
  }

  .hero__title {
    font-size: 2.5rem;
  }

  .contact-card {
    padding: 2rem 1rem;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .contact-card__link {
    font-size: 1.1rem;
    word-break: break-all;
  }

  .contact-card__info {
    font-size: 1rem;
  }

  .contact-card__title {
    font-size: 1.8rem;
  }

  .features__title,
  .team__title,
  .pricing__title {
    font-size: 2.2rem;
  }

  .news__widget {
    width: 100% !important;
    max-width: 100% !important;
  }

  .news__widget iframe {
    width: 100% !important;
    max-width: 100% !important;
  }

  .hero__widget-wrapper {
    width: 100%;
    overflow: hidden;
  }

  /* Prevent horizontal scroll caused by fixed-width children */
  .contact__wrapper {
    margin-bottom: var(--spacing-md);
    padding: 0;
  }
}