/* ==========================================================================
   zielone.biuro – arkusz stylów
   ========================================================================== */

/* --- Fonty (hostowane lokalnie: assets/fonts) ---------------------------- */
@font-face {
  font-family: "Marcellus";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/marcellus-latin-ext-400.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Marcellus";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/marcellus-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jost-latin-ext-400.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jost-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/jost-latin-ext-500.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/jost-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/jost-latin-ext-600.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/jost-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Zmienne -------------------------------------------------------------- */
:root {
  --green: #1F5A3C;
  --green-dark: #173F2B;
  --mint: #7FC395;
  --mint-pale: #DCEBDC;
  --terracotta: #C8693F;
  --terracotta-dark: #9C4A26;
  --peach: #F0B79A;
  --sand: #F4F1EA;
  --line: #E3DDD1;
  --ink: #1D2A22;
  --muted: #5F6B63;
  --white: #FFFFFF;
  --font-body: Jost, Arial, sans-serif;
  --font-display: Marcellus, Georgia, serif;
}

/* --- Podstawa ------------------------------------------------------------- */
body {
  margin: 0;
}

a {
  color: var(--green);
}

/* :where() utrzymuje niską specyficzność, więc kolory klas linków mają pierwszeństwo */
a:where(:hover) {
  color: var(--terracotta-dark);
}

.page {
  width: 100%;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

/* --- Elementy wspólne ----------------------------------------------------- */
.eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta-dark);
}

.eyebrow--light {
  color: var(--peach);
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 1.6rem;
  border-radius: 12px;
  text-decoration: none;
}

.btn--accent {
  min-height: 48px;
  padding: 0 1.4rem;
  background: var(--terracotta);
  color: var(--white);
  font-weight: 500;
}

.btn--light {
  background: var(--white);
  color: var(--green);
  font-weight: 600;
}

.btn--outline {
  border: 1px solid var(--mint-pale);
  color: var(--white);
}

.text-mint {
  color: var(--mint);
}

.text-peach {
  color: var(--peach);
}

/* --- Hero + nawigacja ----------------------------------------------------- */
.hero {
  background: var(--green);
  color: var(--white);
  min-height: 46rem;
  display: flex;
  flex-direction: column;
}

.nav {
  width: 100%;
  min-height: 88px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.nav__logo img {
  height: 50px;
  display: block;
}

.nav__menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.75rem;
}

.nav__link {
  text-decoration: none;
  color: var(--mint-pale);
}

.hero__inner {
  width: 100%;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
  gap: 3rem;
  align-items: center;
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.04;
  letter-spacing: 0.02em;
  color: var(--white);
}

.hero__lead {
  margin: 0;
  font-size: 1.2rem;
  max-width: 32rem;
  color: var(--mint-pale);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__image {
  width: 100%;
  height: 30rem;
  object-fit: cover;
  border-radius: 24px;
  display: block;
}

/* --- Liczby --------------------------------------------------------------- */
.stats {
  border-bottom: 1px solid var(--line);
}

.stats__grid {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.stats__value {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--green);
}

.stats__label {
  color: var(--muted);
}

/* --- Sekcje --------------------------------------------------------------- */
.section--white {
  background: var(--white);
}

.section--sand {
  background: var(--sand);
}

.section--green {
  background: var(--green);
}

.section--contact {
  color: var(--white);
}

.section__inner {
  padding-top: 5rem;
  padding-bottom: 5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.section__inner--tight {
  gap: 2rem;
}

.section__head {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.section__head--narrow {
  max-width: 44rem;
}

.section__head--medium {
  max-width: 46rem;
}

.section__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--green);
}

.section__title--light {
  color: var(--white);
}

.section__text {
  margin: 0;
  color: var(--muted);
}

.section__text--light {
  color: var(--mint-pale);
}

/* --- Galerie -------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 1.5rem;
}

.gallery--compact {
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.photo {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.photo__img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.photo__img--portrait {
  aspect-ratio: 4 / 5;
}

.photo__caption {
  font-size: 0.95rem;
  color: var(--muted);
}

.photo__caption strong {
  color: var(--green);
  font-weight: 600;
}

.photo__caption--light {
  color: var(--mint-pale);
}

.photo__caption--light strong {
  color: var(--white);
}

/* --- Oferta --------------------------------------------------------------- */
.offer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 1.5rem;
}

.offer__card {
  background: var(--white);
  border-radius: 20px;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.offer__card--dark {
  background: var(--green);
  color: var(--white);
}

.offer__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2rem;
  color: var(--green);
}

.offer__card--dark .offer__title {
  color: var(--mint);
}

.offer__card p {
  margin: 0;
}

.offer__card .offer__note {
  color: var(--muted);
}

.offer__card--dark .offer__note {
  color: var(--mint-pale);
}

/* --- Gwarancja ------------------------------------------------------------ */
.guarantee {
  padding-top: 5rem;
  padding-bottom: 5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
  gap: 3rem;
  align-items: center;
}

.guarantee__quote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.3;
  color: var(--green);
}

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

.guarantee__body p {
  margin: 0;
}

/* --- FAQ ------------------------------------------------------------------ */
.faq {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
  gap: 1.5rem;
}

.faq__item {
  background: var(--white);
  border-radius: 16px;
  padding: 1.5rem;
}

.faq__question {
  font-weight: 600;
  color: var(--green);
  margin-bottom: 0.4rem;
}

.faq__answer {
  margin: 0;
}

/* --- Formularz kontaktowy ------------------------------------------------- */
.contact-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  align-items: end;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--white);
}

.contact-form__input {
  min-height: 48px;
  padding: 0 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  font: inherit;
  color: var(--ink);
  background: var(--white);
}

.contact-form__submit {
  min-height: 48px;
  border: none;
  border-radius: 12px;
  background: var(--terracotta);
  color: var(--white);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.contact-form__submit[disabled] {
  opacity: 0.7;
  cursor: progress;
}

/* Pole-pułapka na boty – niewidoczne dla ludzi, poza układem siatki */
.contact-form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Komunikat po wysyłce – pojawia się dopiero po kliknięciu „Umów bezpłatny audyt” */
.contact-form__status {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
}

.contact-form__status[hidden] {
  display: none;
}

.contact-form__status--ok {
  background: var(--mint-pale);
  color: var(--green);
}

.contact-form__status--error {
  background: #FBE4DA;
  color: #7A2E12;
}

/* --- Stopka --------------------------------------------------------------- */
.footer {
  background: var(--green-dark);
  color: var(--mint-pale);
}

.footer__inner {
  padding-top: 3rem;
  padding-bottom: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2rem;
}

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

.footer__logo {
  height: 52px;
  width: auto;
  align-self: flex-start;
}

.footer__brand p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.footer__heading {
  font-weight: 600;
  color: var(--white);
}

.footer__link {
  color: var(--mint-pale);
}
