/* ======================================================
   NORDEN BUD — SZABLON FIRMY BUDOWLANEJ
   Edytuj kolory i odstępy w sekcji :root.
   ====================================================== */
:root {
  --ink: #1a282d;
  --ink-deep: #142127;
  --ink-soft: #526064;
  --cream: #f4f2ed;
  --white: #fff;
  --olive: #a5ad83;
  --olive-dark: #74825e;
  --line: #e2e3de;
  --container: 1190px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid #a9c775;
  outline-offset: 5px;
}
img {
  max-width: 100%;
  display: block;
}
.container {
  width: min(var(--container), calc(100% - 80px));
  margin-inline: auto;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}
section {
  scroll-margin-top: 80px;
}
em {
  font-style: italic;
  font-weight: 400;
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 12px;
  z-index: 1000;
  padding: 12px 18px;
  background: white;
  color: black;
}
.skip-link:focus {
  top: 12px;
}

/* NAWIGACJA */
.site-header {
  position: absolute;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  transition:
    background 0.25s ease,
    border-color 0.25s ease;
}
.site-header.scrolled,
.site-header.menu-open {
  position: fixed;
  background: rgba(20, 33, 39, 0.97);
  border-color: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(16px);
}
.header-inner {
  min-height: 95px;
  display: flex;
  align-items: center;
  gap: 30px;
}
.brand {
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}
.brand-icon {
  color: var(--olive);
  flex-shrink: 0;
}
.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.brand-copy strong {
  font-size: 20px;
  letter-spacing: 0.035em;
  line-height: 1;
}
.brand-copy small {
  font-size: 9px;
  letter-spacing: 0.22em;
  color: #c6d0d1;
}
.desktop-nav {
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 36px);
}
.nav-link {
  position: relative;
  font-size: 13px;
  color: #e3e9e8;
  white-space: nowrap;
  padding-block: 12px;
  transition: color 0.2s;
}
.nav-link:hover,
.nav-link.active {
  color: white;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 100%;
  height: 1px;
  background: var(--olive);
  transition: right 0.2s;
}
.nav-link:hover::after,
.nav-link.active::after {
  right: 0;
}
.header-cta {
  flex-shrink: 0;
  background: var(--olive);
  color: #18231b;
  padding: 14px 19px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 3px;
  transition:
    background 0.2s,
    transform 0.2s;
}
.header-cta span {
  margin-left: 12px;
}
.header-cta:hover {
  background: #c0c99c;
  transform: translateY(-2px);
}
.menu-button,
.mobile-nav {
  display: none;
}

/* HERO */
.hero {
  min-height: 770px;
  height: min(850px, 100svh);
  max-height: 950px;
  position: relative;
  display: flex;
  align-items: center;
  background: var(--ink-deep);
  isolation: isolate;
  overflow: hidden;
}
.hero-image {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 48%;
  background: url("assets/hero-budowa.webp") center center / cover no-repeat;
}
.hero-shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(
    90deg,
    #17252b 0%,
    #17252b 31%,
    rgba(23, 37, 43, 0.96) 43%,
    rgba(23, 37, 43, 0.35) 75%,
    rgba(23, 37, 43, 0.22) 100%
  );
}
.hero-inner {
  position: relative;
  padding-top: 120px;
  padding-bottom: 100px;
}
.hero-content {
  width: min(670px, 75%);
  color: white;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.26em;
}
.eyebrow-light {
  color: #e6eae3;
}
.eyebrow-line {
  display: inline-block;
  height: 1px;
  width: 42px;
  background: var(--olive);
}
.hero h1 {
  margin: 33px 0 25px;
  font-size: clamp(56px, 6.2vw, 96px);
  letter-spacing: -0.045em;
  line-height: 1.075;
}
.hero h1 em {
  color: #b7c198;
}
.hero-content > p {
  max-width: 510px;
  margin-bottom: 39px;
  color: #d3dcda;
  font-size: 16px;
  line-height: 1.85;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 54px;
  padding: 13px 21px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid transparent;
  border-radius: 3px;
  transition:
    background 0.22s,
    transform 0.22s,
    border-color 0.22s;
}
.button:hover {
  transform: translateY(-3px);
}
.button-light {
  background: var(--olive);
  color: #17252b;
}
.button-light:hover {
  background: #bec9a1;
}
.button-outline-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
}
.button-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
}
.scroll-cue {
  position: absolute;
  bottom: -67px;
  left: 0;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.19em;
  color: #e0e8e3;
}
.scroll-cue span:last-child {
  font-size: 22px;
  line-height: 1;
}
.hero-side-label {
  position: absolute;
  right: 24px;
  bottom: 45px;
  writing-mode: vertical-rl;
  font-size: 9px;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.65);
}

/* ATUTY */
.advantages {
  border-bottom: 1px solid var(--line);
  background: #fafaf8;
}
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-block: 36px;
}
.advantage {
  display: flex;
  gap: 13px;
  padding: 11px 21px;
  border-right: 1px solid var(--line);
}
.advantage:first-child {
  padding-left: 0;
}
.advantage:last-child {
  border-right: none;
  padding-right: 0;
}
.advantage-number {
  font-family: Georgia, serif;
  color: var(--olive-dark);
  font-size: 17px;
  white-space: nowrap;
}
.advantage h2 {
  margin: 0 0 9px;
  font-size: 15px;
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  line-height: 1.4;
}
.advantage p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
}

/* TYPOGRAFIA SEKCJI */
.section {
  padding: 115px 0;
}
.section-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--olive-dark);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.2em;
  margin-bottom: 25px;
}
.section-kicker span {
  letter-spacing: 0;
  padding-right: 13px;
  border-right: 1px solid var(--olive-dark);
}
.about h2,
.section-heading h2,
.contact h2 {
  max-width: 720px;
  font-size: clamp(38px, 4.1vw, 63px);
  line-height: 1.13;
  letter-spacing: -0.04em;
}
.about h2 em,
.section-heading h2 em {
  color: var(--olive-dark);
}

/* O FIRMIE */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 7vw, 115px);
  align-items: center;
}
.about-media {
  position: relative;
}
.about-media::before {
  content: "";
  position: absolute;
  inset: 18px -17px -18px 18px;
  background: #e8e9e0;
  z-index: -1;
}
.about-media img {
  width: 100%;
  aspect-ratio: 1.23;
  object-fit: cover;
  object-position: center;
}
.photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  background: rgba(23, 37, 43, 0.92);
  color: #e9e9e3;
  padding: 14px 20px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.about h2 {
  margin-bottom: 24px;
}
.about-text > p {
  margin-bottom: 17px;
  max-width: 500px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.95;
}
.text-link {
  display: inline-flex;
  gap: 45px;
  align-items: center;
  margin-top: 18px;
  padding-block: 12px;
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  border-bottom: 1px solid var(--olive-dark);
  transition: gap 0.2s;
}
.text-link:hover {
  gap: 58px;
}

/* USŁUGI */
.services {
  background: var(--cream);
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 45px;
  margin-bottom: 46px;
}
.section-heading h2 {
  margin: 0;
}
.section-heading > p {
  max-width: 275px;
  margin: 0 0 5px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.8;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.service-card {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  position: relative;
  padding: 39px 35px 25px;
  border: 1px solid #d9dcd5;
  background: #fdfdfa;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 35px rgba(20, 33, 39, 0.08);
}
.service-index {
  position: absolute;
  right: 35px;
  top: 39px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #a4aba6;
}
.service-card svg {
  color: var(--olive-dark);
  margin-bottom: 34px;
}
.service-card h3 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 27px;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
}
.service-card p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-soft);
  margin-bottom: 30px;
}
.service-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  color: #84917a;
}
.service-footer span {
  font-size: 18px;
}

/* REALIZACJE */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.project-card {
  min-width: 0;
}
.project-image {
  position: relative;
  height: 290px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #dae0db;
}
.project-image::before,
.project-image::after {
  content: "";
  position: absolute;
  width: 150%;
  height: 1px;
  background: rgba(34, 58, 54, 0.08);
  transform: rotate(-25deg);
}
.project-image::after {
  transform: rotate(25deg);
}
.project-image-one {
  background: #d9dfdb;
}
.project-image-two {
  background: #e9e5dd;
}
.project-image-three {
  background: #d4dcd8;
}
.project-image > span {
  position: absolute;
  z-index: 1;
  top: 19px;
  left: 22px;
  color: #51615b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
}
.project-placeholder {
  position: relative;
  z-index: 2;
  max-width: 160px;
  text-align: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.75);
  color: #5b6965;
  font-size: 12px;
  line-height: 1.7;
}
.project-info {
  display: flex;
  align-items: start;
  justify-content: space-between;
  padding-top: 20px;
}
.project-info > span {
  font-size: 22px;
  color: var(--olive-dark);
}
.project-info div > span {
  font-size: 10px;
  letter-spacing: 0.17em;
  font-weight: 700;
  color: var(--olive-dark);
}
.project-info h3 {
  font-size: 20px;
  font-family: Georgia, serif;
  font-weight: 400;
  margin: 10px 0 0;
}

/* KONTAKT */
.contact {
  padding: 100px 0;
  background: #192a30;
  color: white;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 100px;
  align-items: start;
}
.section-kicker-light {
  color: var(--olive);
}
.contact h2 {
  margin-bottom: 23px;
}
.contact h2 em {
  color: #bbc69e;
}
.contact p {
  max-width: 475px;
  color: #c5d0cd;
  line-height: 1.9;
  font-size: 14px;
}
.contact-details {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}
.contact-detail {
  padding-block: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-detail > span {
  font-size: 10px;
  color: #aebbad;
  font-weight: 700;
  letter-spacing: 0.15em;
}
.contact-detail > strong {
  font-weight: 500;
  font-size: 17px;
  overflow-wrap: anywhere;
}
.contact .contact-note {
  font-size: 11px;
  line-height: 1.6;
  color: #9eaaa6;
  margin: 20px 0 0;
}

/* STOPKA */
.footer {
  background: #121e23;
  color: #a9b7b4;
}
.footer-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}
.footer-brand {
  font-weight: 700;
  font-size: 19px;
  color: white;
}
.footer-brand span {
  color: var(--olive);
}
.footer p {
  margin: 0;
  font-size: 11px;
}
.back-to-top {
  font-size: 12px;
  color: #dce5df;
}
.back-to-top:hover {
  color: var(--olive);
}

/* ŁAGODNE ANIMACJE */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.js .reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1100px) {
  .header-inner {
    gap: 18px;
  }
  .brand {
    min-width: 205px;
  }
  .brand-copy strong {
    font-size: 18px;
  }
  .desktop-nav {
    gap: 16px;
  }
  .header-cta {
    padding-inline: 12px;
  }
  .advantage {
    padding-inline: 11px;
  }
}
@media (max-width: 900px) {
  .container {
    width: min(var(--container), calc(100% - 44px));
  }
  .site-header {
    position: absolute;
  }
  .header-inner {
    min-height: 78px;
  }
  .desktop-nav,
  .header-cta {
    display: none;
  }
  .brand {
    min-width: 0;
    margin-right: auto;
  }
  .brand-icon {
    width: 36px;
    height: 36px;
  }
  .menu-button {
    display: flex;
    width: 44px;
    height: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.33);
    color: white;
    background: transparent;
    border-radius: 2px;
    cursor: pointer;
  }
  .menu-button span {
    width: 20px;
    height: 1.5px;
    background: white;
    transition:
      transform 0.2s,
      opacity 0.2s;
  }
  .menu-open .menu-button span:first-child {
    transform: translateY(7.5px) rotate(45deg);
  }
  .menu-open .menu-button span:nth-child(2) {
    opacity: 0;
  }
  .menu-open .menu-button span:last-child {
    transform: translateY(-7.5px) rotate(-45deg);
  }
  .mobile-nav:not([hidden]) {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 5px 22px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: #142127;
  }
  .mobile-nav a {
    padding: 15px 5px;
    color: white;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
  .hero {
    min-height: 690px;
    height: auto;
  }
  .hero-image {
    left: 38%;
  }
  .hero-shade {
    background: linear-gradient(
      90deg,
      #17252b 0%,
      rgba(23, 37, 43, 0.98) 34%,
      rgba(23, 37, 43, 0.64) 75%,
      rgba(23, 37, 43, 0.44)
    );
  }
  .hero-content {
    width: min(620px, 90%);
  }
  .hero-inner {
    padding-block: 180px 150px;
  }
  .scroll-cue {
    bottom: -72px;
  }
  .advantages-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .advantage {
    padding: 20px 18px;
  }
  .advantage:nth-child(2) {
    border-right: 0;
  }
  .advantage:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .advantage:first-child {
    padding-left: 18px;
  }
  .about-grid {
    gap: 42px;
  }
  .section {
    padding-block: 85px;
  }
  .service-card {
    padding: 28px 23px 22px;
  }
  .service-card h3 {
    font-size: 23px;
  }
  .project-image {
    height: 240px;
  }
  .contact-grid {
    gap: 55px;
  }
}
@media (max-width: 650px) {
  .container {
    width: calc(100% - 36px);
  }
  .hero {
    min-height: 700px;
  }
  .hero-image {
    inset: 0;
    background-position: center 35%;
    opacity: 0.65;
  }
  .hero-shade {
    background:
      linear-gradient(90deg, rgba(20, 33, 39, 0.93), rgba(20, 33, 39, 0.76)),
      linear-gradient(0deg, rgba(20, 33, 39, 0.55), transparent 45%);
  }
  .hero-inner {
    padding-top: 170px;
    padding-bottom: 135px;
  }
  .hero-content {
    width: 100%;
  }
  .hero h1 {
    font-size: clamp(46px, 11.5vw, 68px);
    line-height: 1.1;
    margin-top: 25px;
  }
  .hero-content > p {
    font-size: 14px;
    max-width: 100%;
    line-height: 1.8;
  }
  .hero-actions {
    align-items: stretch;
  }
  .button {
    min-height: 50px;
    font-size: 12px;
  }
  .hero-side-label {
    display: none;
  }
  .scroll-cue {
    bottom: -90px;
  }
  .advantages-grid {
    grid-template-columns: 1fr 1fr;
    padding-block: 16px;
  }
  .advantage {
    display: block;
    padding: 18px 12px;
  }
  .advantage-number {
    display: block;
    margin-bottom: 10px;
  }
  .advantage:first-child {
    padding-left: 12px;
  }
  .advantage h2 {
    font-size: 13px;
  }
  .advantage p {
    font-size: 11px;
  }
  .section {
    padding-block: 75px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .about-media::before {
    inset: 13px -10px -13px 10px;
  }
  .about-media img {
    aspect-ratio: 1.25;
  }
  .photo-caption {
    font-size: 8px;
    padding: 11px;
  }
  .about h2,
  .section-heading h2,
  .contact h2 {
    font-size: clamp(36px, 8.8vw, 46px);
  }
  .section-heading {
    display: block;
    margin-bottom: 32px;
  }
  .section-heading > p {
    margin-top: 20px;
  }
  .service-grid,
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .service-card {
    min-height: 310px;
  }
  .service-card svg {
    margin-bottom: 25px;
  }
  .project-image {
    height: 285px;
  }
  .contact {
    padding-block: 80px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }
  .footer-inner {
    flex-wrap: wrap;
    padding-block: 25px;
  }
  .footer p {
    order: 3;
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
