/* =========================================================
   STYLE.CSS — wspólne style dla wszystkich podstron
   Geodezja Piwosz
   Ten plik zawiera WYŁĄCZNIE elementy współdzielone:
   fonty, reset, zmienne, header, footer, klasy ogólne.
   Style unikalne dla danej podstrony (hero, sekcje treści itd.)
   powinny zostać w bloku <style> danego pliku .html.
   ========================================================= */

/* ========================= */
/* FONTY (Poppins) */
/* ========================= */
/* Uwaga: style.css leży w tym samym katalogu co pliki .html,
   dlatego ścieżka do fontów jest względna do tego katalogu. */

/* Poppins 400 */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/poppins-v24-latin_latin-ext-regular.woff2") format("woff2");
}

/* Poppins 500 */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/poppins-v24-latin_latin-ext-500.woff2") format("woff2");
}

/* Poppins 600 */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/poppins-v24-latin_latin-ext-600.woff2") format("woff2");
}

/* Poppins 700 */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./fonts/poppins-v24-latin_latin-ext-700.woff2") format("woff2");
}

/* Poppins 800 */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("./fonts/poppins-v24-latin_latin-ext-800.woff2") format("woff2");
}


/* ========================= */
/* ZMIENNE */
/* ========================= */

:root {
  --navy: #16315c;
  --navy-dark: #10233f;

  --orange: #f26a21;
  --orange-dark: #dd5a15;

  --background: #ffffff;
  --foreground: #1a2230;

  --secondary: #f1f4f8;
  --border: #e3e8ef;

  --muted-foreground: #5b6b82;

  --max-width: 72rem;
}


/* ========================= */
/* RESET */
/* ========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: light only;
  background: var(--background);
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: "Poppins", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}


/* ========================= */
/* ELEMENTY WSPÓLNE */
/* ========================= */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.section-title-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-title {
  margin: 0;
  color: var(--navy);
  font-size: 1.875rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-align: center;
}

.section-line {
  width: 3.5rem;
  height: 0.25rem;
  margin-top: 0.75rem;
  border-radius: 9999px;
  background: var(--orange);
}

.orange-line {
  display: inline-block;
  width: 3.5rem;
  height: 0.25rem;
  border-radius: 9999px;
  background: var(--orange);
}

.text-muted {
  color: var(--muted-foreground);
}


/* ========================= */
/* PRZYCISK GRANATOWY (używany na wielu podstronach) */
/* ========================= */

.primary-dark-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  background: var(--navy);
  padding: 0.875rem 1.5rem;
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.primary-dark-button:hover {
  background: rgba(22, 49, 92, 0.9);
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.primary-dark-button:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}


/* ========================= */
/* ANIMACJE SCROLL */
/* ========================= */

.scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
  will-change: opacity, transform;
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal-item {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.scroll-reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal,
  .scroll-reveal-item {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}


/* ========================= */
/* RESPONSYWNOŚĆ 640 PX */
/* ========================= */

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .section-title {
    font-size: 2.25rem;
  }
}






/* =========================================================
   LAYOUT.CSS — header (pasek nawigacyjny) + footer (stopka)
   Geodezja Piwosz
   Wymaga wcześniejszego podlinkowania base.css (zmienne CSS).
   ========================================================= */


/* ========================= */
/* HEADER */
/* ========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  height: 5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.header-logo {
  display: block;
  flex-shrink: 0;
}

.header-logo img {
  width: auto;
  height: auto;
  max-height: 3.5rem;
  object-fit: contain;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.desktop-nav a {
  color: var(--navy);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--orange);
}

/* Aktywna pozycja menu — dodaj klasę is-active na danej podstronie */
.desktop-nav a.is-active,
.mobile-menu a.is-active,
.footer-nav a.is-active {
  color: var(--orange);
}

.header-offer-button {
  display: none;
  align-items: center;
  gap: 0.625rem;
  border-radius: 0.75rem;
  background: var(--orange);
  padding: 0.75rem 1.25rem;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: background-color 0.2s ease;
}

.header-offer-button:hover {
  background: var(--orange-dark);
}


/* ========================= */
/* MENU MOBILNE */
/* ========================= */

.mobile-menu-wrapper {
  position: relative;
}

.mobile-menu-button {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.mobile-menu-button:hover {
  background: var(--navy-dark);
}

.mobile-menu-button:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.mobile-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.75rem);
  z-index: 50;
  width: 16rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: #fff;
  padding: 0.5rem;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 8px 10px -6px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.5rem) scale(0.95);
  transform-origin: top right;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.mobile-menu a {
  display: block;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--navy);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.mobile-menu a:hover {
  background: var(--secondary);
  color: var(--orange);
}


/* ========================= */
/* FOOTER */
/* ========================= */

.site-footer {
  border-top: 1px solid rgba(227, 232, 239, 0.4);
  background: var(--background);
  color: var(--navy);
}

.footer-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1rem;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-logo {
  display: flex;
  flex-shrink: 0;
  align-items: center;
}

.footer-logo img {
  width: auto;
  max-height: 4rem;
  object-fit: contain;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: rgba(22, 49, 92, 0.9);
  font-size: 0.875rem;
}

.footer-contact-item svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: var(--orange);
}

.footer-address {
  margin: 0;
  color: rgba(22, 49, 92, 0.9);
  font-size: 0.875rem;
  line-height: 1.375;
  font-style: normal;
}

.footer-contact-link {
  transition: color 0.2s ease;
}

.footer-contact-link:hover {
  color: var(--orange);
}

.footer-contact-link span {
  line-height: 1.375;
  font-weight: 500;
}

.footer-divider {
  height: 2px;
  margin: 2rem 0;
  border: 0;
  background: rgba(227, 232, 239, 0.8);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.5rem;
  row-gap: 0.5rem;
}

.footer-nav a {
  color: var(--navy);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--orange);
}

.footer-copyright {
  margin: 0;
  color: rgba(22, 49, 92, 0.7);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
}


/* ========================= */
/* RESPONSYWNOŚĆ 640 PX */
/* ========================= */

@media (min-width: 640px) {
  .header-inner,
  .footer-inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .footer-contact {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: row;
    align-items: center;
  }
}


/* ========================= */
/* RESPONSYWNOŚĆ 1024 PX */
/* ========================= */

@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
  }

  .header-offer-button {
    display: inline-flex;
  }

  .mobile-menu-wrapper {
    display: none;
  }

  .footer-top {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .footer-contact {
    align-items: flex-start;
    gap: 3rem;
  }
}


/*Etykieta AI*/

.ai-badge {
      position: absolute;
      bottom: 0.5rem;
      right: 0.5rem;
      z-index: 10;
      background: rgba(0, 0, 0, 0.55);
      color: rgba(255, 255, 255, 0.85);
      font-size: 0.5rem;
      line-height: 1;
      padding: 0.25rem 0.5rem;
      border-radius: 0.25rem;
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
      pointer-events: none;
      font-weight: 400;
      letter-spacing: 0.02em;
      border: 1px solid rgba(255, 255, 255, 0.15);
    }