/* Badkar — style strony (badkar.pl) */

/* ---------- Fonty (lokalne, przycięte do polskich znaków; licencje OFL w fonts/) ---------- */
@font-face { font-family: 'Cinzel'; src: url("fonts/cinzel-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Unbounded'; src: url("fonts/unbounded-700-800.woff2") format("woff2"); font-weight: 700 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url("fonts/manrope-400-700.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url("fonts/jetbrains-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

/* ---------- Zmienne ---------- */
:root {
  /* kolory marki (ze złotej grafiki / wizytówek) */
  --c-gold: #D4A64C;
  --c-gold-light: #E9C677;   /* złoto na ciemnym tle: linki, etykiety sekcji */
  --c-gold-pale: #F5DFA6;    /* hover linków */
  --c-gold-dark: #A9792F;
  /* metaliczny gradient jak na grafice — pod ciemny tekst (kontrast min. 4.5:1 w każdym miejscu) */
  --g-gold: linear-gradient(135deg, #B8893A 0%, #E2BC68 40%, #F6DFA0 52%, #D9AE57 70%, #B8893A 100%);

  /* tła (ciepła czerń) */
  --c-bg: #0B0A08;
  --c-bg-alt: #100E0B;
  --c-surface: #16130F;
  --c-surface-glass: rgba(22, 19, 15, 0.85);
  --c-bg-glass: rgba(11, 10, 8, 0.7);

  /* tekst (ciepła biel) */
  --c-text: #F3EEE6;
  --c-text-2: #CBC4B8;
  --c-text-3: #A69F93;

  /* linie i obramowania (od najciemniejszej) */
  --c-line: #26221C;
  --c-line-2: #302B23;
  --c-line-3: #4A4135;
  --c-line-4: #5C5244;
  --c-line-5: #8C7F6B;
  --c-grid-line: rgba(212, 166, 76, 0.05);

  /* fonty */
  --font-logo: 'Cinzel', 'Times New Roman', serif;
  --font-display: 'Unbounded', sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --container: 1240px;
}

/* ---------- Baza ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
}
h1, h2, h3, p, figure, dd { margin: 0; }
/* :where() = zerowa specyficzność, więc klasy linków zawsze wygrywają */
:where(a) { color: var(--c-gold-light); }
:where(a:hover) { color: var(--c-gold-pale); }
input, textarea, select, button { font: inherit; }

/* ---------- Narzędzia ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.bk-grid {
  background-image:
    linear-gradient(var(--c-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
}
.accent {
  background: var(--g-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ścięte narożniki (lewy górny i prawy dolny) */
.notch {
  --notch: 12px;
  clip-path: polygon(var(--notch) 0, 100% 0, 100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, 0 100%, 0 var(--notch));
}

/* żółte narożniki ramek */
.corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 0 solid var(--c-gold);
}
.corner--tr { right: -1px; top: -1px; border-right-width: 2px; border-top-width: 2px; }

/* ---------- Góra strony: logo, telefony, zdjęcie dachu ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--c-line);
  background: var(--c-bg);
}
/* zdjęcie po prawej, wtopione w tło gradientami (jak na grafice) */
.hero-photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(60%, 960px);
  background: url("img/dach.jpg") center / cover no-repeat;
  background-image: image-set(url("img/dach.webp") type("image/webp"), url("img/dach.jpg") type("image/jpeg"));
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--c-bg) 0%, rgba(11, 10, 8, 0.7) 25%, rgba(11, 10, 8, 0.1) 65%, rgba(11, 10, 8, 0) 100%),
    linear-gradient(180deg, rgba(11, 10, 8, 0.65) 0%, rgba(11, 10, 8, 0) 140px),
    linear-gradient(0deg, var(--c-bg) 0%, rgba(11, 10, 8, 0) 30%);
}
.hero-inner {
  position: relative;
  padding-top: 24px;
  padding-bottom: 88px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.hero-nav {
  align-self: flex-end;
  display: flex;
  flex-wrap: wrap;
  gap: 0 32px;
  font-size: 15px;
  font-weight: 600;
  text-shadow: 0 1px 8px rgba(11, 10, 8, 0.8);
}
.nav-link {
  color: var(--c-text);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid transparent;
}
.nav-link:hover {
  color: var(--c-gold-pale);
  border-bottom-color: var(--c-gold);
}
.hero-copy {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* logo wg grafiki: dach z kominem i okienkiem + nazwa szeryfowa */
.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  text-decoration: none;
}
.logo-mark {
  width: 180px;
  height: auto;
  display: block;
}
.logo-name {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 58px;
  line-height: 1;
  letter-spacing: 0.04em;
  background: var(--g-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--c-gold);
}
.logo-tagline {
  padding-top: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--c-gold-light);
  text-transform: uppercase;
}

/* oba numery od razu widoczne */
.hero-phones {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.phone-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 24px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  white-space: nowrap;
}
.phone-btn--primary {
  background: var(--g-gold);
  color: var(--c-bg);
}
.phone-btn--secondary {
  background: rgba(11, 10, 8, 0.7);
  color: var(--c-gold-pale);
  border: 1px solid var(--c-gold);
}

.hero-location {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-text-3);
}
.hero-location::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--c-gold);
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.01em;
}
.hero-lead {
  max-width: 520px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--c-text-2);
}

/* telefon: zdjęcie w prawym górnym rogu za logo, mocniej przyciemnione */
@media (max-width: 760px) {
  .hero-photo {
    width: 78%;
    bottom: auto;
    height: 460px;
  }
  .hero-photo::after {
    background:
      linear-gradient(90deg, var(--c-bg) 0%, rgba(11, 10, 8, 0.75) 35%, rgba(11, 10, 8, 0.15) 80%),
      linear-gradient(0deg, var(--c-bg) 0%, rgba(11, 10, 8, 0) 45%);
  }
  .hero-nav { display: none; }
  .hero-inner { padding-top: 32px; padding-bottom: 64px; gap: 32px; }
  .logo-mark { width: 140px; }
  .logo-name { font-size: 44px; }
  .logo-tagline { font-size: 10px; }
  .phone-btn { flex: 1 1 100%; justify-content: center; }
}

/* ---------- Sekcje ---------- */
.section {
  padding-top: 120px;
  padding-bottom: 120px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.section--alt {
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  background-color: var(--c-bg-alt);
}
.section-head-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 680px;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-gold-light);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.05;
}
.section-intro {
  max-width: 420px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--c-text-2);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 20px;
}

/* ---------- Usługi ---------- */
.service-card {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 360px;
}
.service-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 64px;
  height: 3px;
  background: var(--c-gold);
}
.service-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.service-counter {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-text-3);
  letter-spacing: 0.1em;
}
.service-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
}
.service-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text-2);
}
.feature-list {
  margin: auto 0 0;
  padding: 20px 0 0;
  list-style: none;
  border-top: 1px solid var(--c-line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--c-text);
}
.feature-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--c-gold);
  flex: none;
}

/* ---------- Jak pracujemy ---------- */
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 20px;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 26px;
  background: var(--c-surface-glass);
  border: 1px solid var(--c-line);
}
.step-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.step-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--c-line-3);
}
.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 40px;
  line-height: 1;
  color: var(--c-gold-light);
}
.step-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
}
.step-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-text-2);
}

/* ---------- Realizacje ---------- */
/* sekcja chwilowo zdjęta ze strony — HTML w odlozone/sekcja-realizacje.html */
.project {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--c-line);
  background: var(--c-surface);
}
.project-photo {
  aspect-ratio: 4 / 3;
  background-color: var(--c-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-text-3);
}
.project-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--c-line);
}
.project-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
}
.project-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-text-3);
}

/* ---------- Kontakt ---------- */
.contact {
  border-top: 1px solid var(--c-line);
  background: var(--c-bg-alt);
}
.contact-inner {
  padding-top: 120px;
  padding-bottom: 120px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 56px;
}
.contact-copy {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.contact-lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--c-text-2);
}
.contact-details {
  margin: 4px 0 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 24px;
  font-size: 16px;
}
.contact-details dt {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--c-gold-light);
  padding-top: 2px;
}

.contact-towns {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-text-2);
}

.call-panel {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-self: start;
}
.call-panel-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
}
.call-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  background: var(--c-bg);
  border: 1px solid var(--c-line-2);
  text-decoration: none;
  color: var(--c-text);
}
.call-card-icon {
  width: 56px;
  height: 56px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--g-gold);
  color: var(--c-bg);
}
.call-card-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.call-card-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--c-text-3);
}
.call-card-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 30px);
}
.call-panel-note {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--c-text-3);
}

/* ---------- Stopka ---------- */
.site-footer { border-top: 1px solid var(--c-line); }
.footer-logo {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--c-gold);
}
.footer-inner {
  padding-top: 32px;
  padding-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--c-text-3);
}
