/* =========================================================
   TRAZA – Pracownia Projektowa
   taste-skill compliant: asymmetric layouts, monochrome
   palette, Playfair Display + Montserrat, no generic patterns
   ========================================================= */

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

:root {
  --color-bg:       #FAFAF8;
  --color-surface:  #F2F1EE;
  --color-dark:     #141412;
  --color-dark-2:   #1E1D1A;
  --color-dark-3:   #2C2B27;
  --color-text:     #1A1917;
  --color-muted:    #6B6A65;
  --color-accent:   #8C7A5E;   /* warm stone – architecture feel */
  --color-border:   #E0DED8;

  --font-display:   'Playfair Display', Georgia, serif;
  --font-body:      'Montserrat', system-ui, sans-serif;

  --max-w:          1200px;
  --nav-h:          72px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }

/* ─── UTILITY ─────────────────────────────────────────── */

.section-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.section-label--light { color: #A89880; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-text);
}

.section-title em {
  font-style: italic;
  color: var(--color-accent);
}

.section-title--light { color: #FAF9F7; }

.section-subtitle {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
}

/* ─── BUTTONS ─────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 0.85rem 2.25rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.btn--light {
  background: #FAF9F7;
  color: var(--color-dark);
  border-color: #FAF9F7;
}
.btn--light:hover {
  background: transparent;
  color: #FAF9F7;
  border-color: #FAF9F7;
}

.btn--dark {
  background: var(--color-dark);
  color: #FAF9F7;
  border-color: var(--color-dark);
}
.btn--dark:hover {
  background: transparent;
  color: var(--color-dark);
  border-color: var(--color-dark);
}

.btn--outline-light {
  background: transparent;
  color: #FAF9F7;
  border-color: rgba(255,255,255,0.4);
}
.btn--outline-light:hover {
  background: #FAF9F7;
  color: var(--color-dark);
  border-color: #FAF9F7;
}

/* ─── NAV ─────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s, box-shadow 0.3s;
}

.nav--scrolled {
  background: rgba(20, 20, 18, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.nav__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: var(--nav-h);
}

.nav__contact {
  display: flex;
  gap: 1.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.03em;
}
.nav__contact a:hover { color: #fff; }

.nav__logo img {
  height: 36px;
  width: auto;
}

.nav__links {
  display: flex;
  gap: 2rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.nav__links a:hover { color: #fff; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: #fff;
  transition: transform 0.3s, opacity 0.3s;
}

/* ─── HERO ────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

/* Slider */
.hero__slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero__slide--active { opacity: 1; }

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(14,13,12,0.78) 0%,
    rgba(14,13,12,0.45) 55%,
    rgba(14,13,12,0.2) 100%
  );
}

/* Treść */
.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: calc(var(--nav-h) + 5rem) 6rem 6rem;
  max-width: 680px;
}

.hero__brand {
  margin-bottom: 2.5rem;
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
}

.hero__brand-logo {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 0.1em;
}

.hero__brand-sub {
  font-family: var(--font-display);
  font-size: 60px;
  font-weight: 400;
  line-height: 1.1;
  color: rgba(250,249,247,0.92);
  letter-spacing: 0.01em;
}

.hero__text {
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(250,249,247,0.65);
  max-width: 42ch;
  margin-bottom: 2.5rem;
  line-height: 1.85;
}

.hero__text strong {
  font-weight: 600;
  color: #FAF9F7;
}

/* Dots */
.hero__slider-nav {
  position: absolute;
  bottom: 2.5rem;
  left: 6rem;
  z-index: 2;
  display: flex;
  gap: 0.6rem;
}

.hero__slider-dot {
  width: 28px;
  height: 2px;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, width 0.3s;
}

.hero__slider-dot--active {
  background: #FAF9F7;
  width: 48px;
}

/* ─── ABOUT ───────────────────────────────────────────── */

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 6rem 2rem;
  gap: 5rem;
  align-items: center;
}

.about__image-placeholder {
  aspect-ratio: 4/5;
  background:
    linear-gradient(160deg, #E8E5DF 0%, #D5D0C8 100%);
  /* Zastąp: <img src="assets/about.jpg" alt="Biuro TRAZA"> */
}

.about__content {
  padding-right: 2rem;
}

.about__content p {
  font-size: 0.95rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
  line-height: 1.85;
}

.about__content strong { color: var(--color-text); font-weight: 600; }

.section-title + .section-subtitle { margin-top: 0.75rem; }
.section-title + p,
.section-subtitle + p { margin-top: 1.25rem; }

/* ─── SERVICES ────────────────────────────────────────── */

.services {
  background: var(--color-dark-2);
  padding: 6rem 2rem;
}

.services__header {
  max-width: var(--max-w);
  margin: 0 auto 3.5rem;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: var(--max-w);
  margin: 0 auto;
  background: rgba(255,255,255,0.06);
}

.service-card {
  padding: 2.5rem 2rem;
  background: var(--color-dark-2);
  transition: background 0.25s;
  position: relative;
}

.service-card:hover {
  background: var(--color-dark-3);
}

.service-card__number {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  color: #FAF9F7;
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

.service-card p {
  font-size: 0.85rem;
  color: rgba(250,249,247,0.5);
  line-height: 1.8;
}

.services__cta {
  max-width: var(--max-w);
  margin: 3rem auto 0;
}

/* ─── GUARANTEES ──────────────────────────────────────── */

.guarantees {
  padding: 6rem 2rem;
  background: var(--color-bg);
}

.guarantees__header {
  max-width: var(--max-w);
  margin: 0 auto 3.5rem;
}

.guarantees__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 4rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.guarantee-item__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  margin-bottom: 1rem;
  border: 1px solid var(--color-border);
}

.guarantee-item h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.guarantee-item p {
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.8;
}

.guarantees__cta {
  max-width: var(--max-w);
  margin: 3.5rem auto 0;
}

/* ─── PROCESS ─────────────────────────────────────────── */

.process {
  background: var(--color-dark);
  padding: 6rem 2rem;
}

.process__header {
  max-width: var(--max-w);
  margin: 0 auto 4rem;
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}

.process__step {
  padding: 0 1.5rem;
  position: relative;
}

.process__step-number {
  display: block;
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 400;
  color: rgba(250,249,247,0.08);
  line-height: 1;
  margin-bottom: 1rem;
}

.process__step-line {
  position: absolute;
  top: 2rem;
  right: 0;
  width: 1px;
  height: 2rem;
  background: rgba(255,255,255,0.12);
}

.process__step h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: rgba(250,249,247,0.85);
  line-height: 1.4;
}

/* ─── CONTACT / FOOTER ────────────────────────────────── */

.contact {
  background: var(--color-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  max-width: 100%;
}

.contact__info {
  padding: 5rem 4rem 4rem 6rem;
}

.contact__logo img {
  height: 32px;
  width: auto;
  margin-bottom: 2.5rem;
  opacity: 0.85;
}

.contact__title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: #FAF9F7;
  margin-bottom: 1.75rem;
}

.contact__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.contact__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: rgba(250,249,247,0.65);
}

.contact__list svg { flex-shrink: 0; margin-top: 2px; opacity: 0.5; }

.contact__list a:hover { color: #FAF9F7; }

.contact__social {
  display: flex;
  gap: 1rem;
}

.contact__social a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.55);
  transition: color 0.2s, border-color 0.2s;
}

.contact__social a:hover {
  color: #FAF9F7;
  border-color: rgba(255,255,255,0.4);
}

.contact__map {
  height: 360px;
}

.contact__map iframe { width: 100%; height: 100%; }

.contact__bottom {
  grid-column: 1 / -1;
  padding: 1.5rem 6rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  font-size: 0.75rem;
  color: rgba(250,249,247,0.3);
  letter-spacing: 0.04em;
}

/* ─── RESPONSIVE ──────────────────────────────────────── */

@media (max-width: 1024px) {
  .hero__content { padding: calc(var(--nav-h) + 3rem) 3rem 5rem; }
  .hero__slider-nav { left: 3rem; }

  .about { grid-template-columns: 1fr; gap: 2.5rem; padding: 4rem 2rem; }
  .about__image { display: none; }
  .about__content { padding-right: 0; }

  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .guarantees__grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .process__steps { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .process__step-line { display: none; }

  .contact { grid-template-columns: 1fr; }
  .contact__info { padding: 4rem 2rem; }
  .contact__map { height: 280px; }
  .contact__bottom { padding: 1.5rem 2rem; }
}

@media (max-width: 640px) {
  .hero__content { padding: calc(var(--nav-h) + 2rem) 1.5rem 5rem; }
  .hero__slider-nav { left: 1.5rem; }
  .hero__brand-logo { height: auto; width: 260px; max-width: 260px; }

  .nav__contact { display: none; }
  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: transparent;
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    transition: background 0.3s;
  }
  .nav--scrolled .nav__links {
    background: rgba(20, 20, 18, 0.96);
  }
  .nav__links--open { display: flex; }
  .nav__hamburger { display: flex; }

  .hero__content { padding: 4rem 1.5rem 3rem; }

  .services__grid { grid-template-columns: 1fr; }
  .guarantees__grid { grid-template-columns: 1fr; }
  .process__steps { grid-template-columns: 1fr; }
}
