/* ===== DESIGN TOKENS ===== */
:root {
  --primary: #37574a;
  --primary-light: #e0ebe7;
  --primary-dark: #2a4239;
  --text-900: #111827;
  --text-800: #171717;
  --text-700: #404040;
  --text-500: #737373;
  --text-neutral-600: #4b5563;
  --text-neutral-500: #6b7280;
  --text-gray-200: #e5e5e5;
  --white: #ffffff;
  --border: #e5e7eb;
  --border-gray: #e5e5e5;
  --font-display: 'DM Serif Display', serif;
  --font-serif: 'Playfair Display', serif;
  --font-body: 'Rubik', sans-serif;
  --font-lato: 'Lato', sans-serif;
  --shadow-sm: 0px 2px 6px 0px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0px 8px 24px -3px rgba(16, 24, 40, 0.10), 0px 8px 24px -3px rgba(16, 24, 40, 0.05);
  --container: 1216px;
  /* TODO: */
  /* --container: 1264px; */
  --header-height: 72px;
}

/* ===== RESET ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  color: var(--text-900);
  background: var(--white);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s ease, border-color 0.35s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: var(--border);
}

.header-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-style: normal;
  color: var(--primary);
  white-space: nowrap;
  line-height: 1.2;
  flex-shrink: 0;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-nav a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-900);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 8px;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.header-nav a:hover {
  background-color: rgba(55, 87, 74, 0.08);
}

.header-logo-img {
  flex-shrink: 0;
}

.header-logo-img img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

/* ===== HERO ===== */
.hero {
  /* Pull up behind the sticky header so the gradient bleeds through the transparent header */
  margin-top: calc(-1 * var(--header-height));
  padding-top: var(--header-height);
  border-bottom: 1px solid var(--border);
  /* overflow must NOT be hidden — it would break position:sticky on the header inside */
  background: linear-gradient(180deg, #E7FCF1 0%, #FFFFFF 100%);
}

.hero-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 30px 24px 0;
  display: flex;
  gap: 32px;
  align-items: center;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
  justify-content: center;
  min-width: 0;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-heading-group {
  display: flex;
  flex-direction: column;
}

.hero-overline {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--text-500);
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 20px;
}

.hero-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 52px;
  color: var(--text-800);
  letter-spacing: -1.04px;
  line-height: 56px;
}

.hero-description {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 20px;
  color: var(--text-700);
  letter-spacing: -0.4px;
  line-height: 28px;
}

.hero-description strong {
  font-weight: 600;
  color: var(--text-700);
}

.hero-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 20px;
  color: var(--text-700);
  letter-spacing: -0.4px;
  line-height: 28px;
}

.hero-location svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--text-700);
}

.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-image {
  width: 592px;
  height: 434px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  padding: 14px 20px;
  height: 48px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  line-height: 18px;
  transition: background-color 0.2s;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-primary svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  padding: 14px 20px;
  height: 48px;
  border-radius: 8px;
  border: 1px solid var(--primary);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  white-space: nowrap;
  line-height: 18px;
  transition: background-color 0.2s;
}

.btn-secondary:hover {
  background: #cdddd9;
}

.btn-secondary svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--primary);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  padding: 14px 20px;
  height: 48px;
  border-radius: 8px;
  border: 1px solid var(--primary);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  transition: background-color 0.2s;
}

.btn-outline:hover {
  background: var(--primary-light);
}

/* ===== SHARED SECTION STYLES ===== */
.section-header {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 48px;
}

.section-header.centered {
  align-items: center;
  text-align: center;
}

.heading-group {
  display: flex;
  flex-direction: column;
  align-items: inherit;
}

.overline {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  color: var(--text-500);
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 20px;
}

.section-heading {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 36px;
  color: var(--text-900);
  letter-spacing: -0.72px;
  line-height: 44px;
}

.section-description {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  color: var(--text-700);
  letter-spacing: -0.36px;
  line-height: 28px;
  max-width: 800px;
}

/* ===== FEATURES / SPECJALIZACJE ===== */
.features {
  padding: 64px 0;
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.feature-icon img,
.feature-icon svg {
  width: 48px;
  height: 48px;
}

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 20px;
  color: var(--text-900);
  letter-spacing: -0.4px;
  line-height: 28px;
}

.feature-desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  color: var(--text-500);
  line-height: 24px;
}

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

/* ===== TESTIMONIAL ===== */
.testimonial {
  background: var(--primary-light);
  padding: 64px 0;
}

.testimonial-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}

.testimonial-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  max-width: 800px;
  width: 100%;
}

.testimonial-quote-icon {
  width: 42px;
  height: 32px;
  flex-shrink: 0;
}

.testimonial-text {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  color: var(--text-900);
  letter-spacing: -0.56px;
  line-height: 36px;
  text-align: center;
  width: 100%;
}

.testimonial-author {
  display: flex;
  gap: 12px;
  align-items: center;
}

.testimonial-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--primary);
  flex-shrink: 0;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.testimonial-name {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  color: var(--text-900);
  line-height: 24px;
}

.testimonial-role {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: var(--text-neutral-600);
  line-height: 20px;
}

/* ===== ABOUT / O KANCELARII ===== */
.about {
  padding: 64px 0;
  background: var(--white);
}

.about-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  color: var(--text-900);
  line-height: 28px;
  min-width: 218px;
}

.about-feature svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--primary);
}

/* ===== CONTACT ===== */
.contact {
  background: var(--primary);
  padding: 64px 0 180px;
  position: relative;
  z-index: 1;
}

.contact-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.contact-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.contact-heading-group {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-overline {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  color: var(--text-gray-200);
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 20px;
}

.contact-heading {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 36px;
  color: var(--white);
  letter-spacing: -0.72px;
  line-height: 44px;
}

.contact-description {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  color: var(--text-gray-200);
  letter-spacing: -0.36px;
  line-height: 28px;
}

.contact-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-item-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 20px;
  color: var(--white);
  letter-spacing: -0.4px;
  line-height: 28px;
}

.contact-item-label svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--white);
}

.contact-item-value {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  color: var(--text-gray-200);
  line-height: 24px;
  text-decoration: none;
}

a.contact-item-value:hover {
  color: var(--white);
  text-decoration: underline;
}

/* ===== MAP ===== */
.map-section {
  position: relative;
  z-index: 2;
  margin-top: -130px;
  padding: 0 24px 60px;
  /* background: var(--white); */
}

.map-wrapper {
  max-width: var(--container);
  margin: 0 auto;
  height: 658px;
  /* TODO */
  /* border-radius: 12px;
  overflow: hidden;
  box-shadow: 0px 8px 24px -3px rgba(16, 24, 40, 0.10), 0px 8px 24px -3px rgba(16, 24, 40, 0.05); */
  padding: 0 24px;
}

.map-wrapper iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;

  /* TODO */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0px 8px 24px -3px rgba(16, 24, 40, 0.10), 0px 8px 24px -3px rgba(16, 24, 40, 0.05);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--white);
  border-top: 1px solid var(--border-gray);
  padding: 36px 0;
  position: relative;
  z-index: 1;
}

.footer-container {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 24px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-style: normal;
  color: var(--primary);
  flex-shrink: 0;
}

.footer-copyright {
  font-family: var(--font-lato);
  font-weight: 400;
  font-size: 14px;
  color: var(--text-neutral-500);
  line-height: 20px;
  white-space: nowrap;
}

.footer-logo-img {
  flex-shrink: 0;
}

.footer-logo-img img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

/* ===== HAMBURGER BUTTON (hidden on desktop) ===== */
.header-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid var(--primary);
  border-radius: 6px;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.2s;
}

.header-menu-btn:hover {
  background: var(--primary-light);
}

/* ===== MOBILE NAV (full-screen overlay, hidden by default) ===== */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: var(--white);
  flex-direction: column;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  flex-shrink: 0;
}

.mobile-nav-logo {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--primary);
  line-height: 1.2;

  /* TODO */
  width: 119px;
}

.mobile-nav-logo-img img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.mobile-nav-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 80px 16px 24px;
  overflow-y: auto;
}

.mobile-nav-links a {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  color: var(--text-900);
  text-decoration: none;
  padding: 14px 20px;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.mobile-nav-links a:hover {
  background-color: rgba(55, 87, 74, 0.08);
}

.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  flex-shrink: 0;
}

.mobile-nav-actions .btn-primary,
.mobile-nav-actions .btn-secondary {
  justify-content: center;
  width: 100%;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-image {
    width: 420px;
    height: 340px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  /* Container */
  .container {
    padding: 0 16px;
  }

  /* Header */
  .header-container {
    padding: 10px 16px;
  }

  .header-logo {
    font-size: 20px;
    white-space: normal;
    line-height: 1.2;

    /* TODO */
    width: 119px;

    /* font-family: var(--font-display);
    font-size: 20px;
    color: var(--primary);
    line-height: 1.2; */

  }

  .header-nav {
    display: none;
  }

  .header-menu-btn {
    display: flex;
  }

  .header-logo-img img {
    height: 48px;
  }

  /* Hero */
  .hero-container {
    flex-direction: column;
    padding: 24px 16px 0;
    gap: 32px;
  }

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

  .hero-description {
    font-size: 20px;
  }

  .hero-location {
    font-size: 16px;
    text-align: left;
    justify-content: flex-start;
  }

  .hero-image {
    width: 100%;
    height: 251px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    justify-content: center;
  }

  /* Features */
  .features {
    padding: 48px 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .feature-item {
    align-items: center;
  }

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

  /* Testimonial */
  .testimonial {
    padding: 48px 0;
  }

  .testimonial-container {
    padding: 0 16px;
  }

  /* About */
  .about {
    padding: 48px 0;
  }

  .about-features {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    justify-content: flex-start;
  }

  .about-feature {
    min-width: unset;
    width: 100%;
  }

  /* Contact */
  .contact {
    padding: 48px 0;
  }

  .contact-container {
    flex-direction: column;
    gap: 32px;
    padding: 0 16px;
  }

  .contact-left {
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .contact-heading-group {
    align-items: center;
  }

  .contact-overline,
  .contact-heading,
  .contact-description {
    text-align: center;
  }

  .contact-item-label {
    gap: 4px;
  }

  /* Map */
  .map-section {
    margin-top: 0;
    padding: 40px 16px 40px;
  }

  .map-wrapper {
    height: 339px;
    padding: 0;
  }

  /* Footer */
  .footer-container {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .footer-copyright {
    white-space: normal;
    text-align: center;
  }
}
