/* samniezbuduje.pl — style strony (statyczny CSS, bez buildu) */

/* ---------- Fonty: Montserrat Variable, hostowany lokalnie (bez Google Fonts — RODO) ---------- */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/montserrat-latin-ext-wght-normal.woff2") format("woff2-variations");
  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: "Montserrat";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2-variations");
  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: "Montserrat";
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/montserrat-latin-ext-wght-italic.woff2") format("woff2-variations");
  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: "Montserrat";
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/montserrat-latin-wght-italic.woff2") format("woff2-variations");
  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;
}

/* ---------- Tokeny ---------- */
:root {
  --bg: #1f2124;            /* głęboki matowy grafit */
  --bg-raised: #26292c;
  --glow: rgba(255, 255, 255, 0.075);
  --text: #f2f1ee;
  --text-muted: #b5b8bc;
  --text-faint: #8b8f94;    /* link do polityki prywatności (kontrast ~5:1) */
  --line: rgba(255, 255, 255, 0.13);
  --accent: #ff8a1f;        /* jaskrawy pomarańcz sygnałowy — CTA */
  --accent-hover: #ffa24d;
  --on-accent: #161616;
  --radius: 6px;
  --gutter: clamp(1rem, 5vw, 2.5rem);
  --container: 68rem;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: dark;
}

/* ---------- Baza ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Matowa faktura: drobny szum nałożony na grafit (SVG feTurbulence, bez plików graficznych) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; }

/* Ukryty arkusz symboli SVG (<symbol> + <use>) */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

a { color: inherit; }

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.icon {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Hero (pierwszy ekran) ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: min(100svh, 62rem);
  background: radial-gradient(ellipse 75% 60% at 50% 42%, var(--glow), transparent 70%);
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  padding: 1.5rem var(--gutter) 0;
}

.site-nav ul {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  position: relative;
  display: inline-block;
  padding-block: 0.35rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--text);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.site-nav a:hover::after { transform: scaleX(1); }

.hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vh, 3.5rem) var(--gutter);
  text-align: center;
}

.brand { display: flex; flex-direction: column; align-items: center; }

.brand__logo {
  width: clamp(13rem, 30vw, 20rem);
  height: auto;
  color: var(--text);
}

.brand__logo path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.brand__name {
  margin: 0.9rem 0 0;
  font-size: clamp(1.5rem, 8.2vw, 3.1rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.brand__domain {
  margin: 0.55rem 0 0;
  font-size: clamp(0.9rem, 1.7vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.brand__verse {
  margin: 0.2rem 0 0;
  font-size: clamp(0.95rem, 1.7vw, 1.1rem);
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.hero__slogan {
  max-width: 23em;
  margin: clamp(1.5rem, 4vh, 2.5rem) auto;
  font-size: clamp(1.4rem, 3.5vw, 2.45rem);
  font-weight: 400;
  line-height: 1.32;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

/* Na szerszych ekranach łamanie wierszy jak na rysunku poglądowym */
@media (min-width: 720px) {
  .hero__slogan { max-width: none; }
  .hero__slogan span { display: block; }
}

/* Główny przycisk CTA — jaskrawy, duży, w całości klikalny (tel:) */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75em;
  min-height: 3.75rem;
  padding: 1rem 2.25rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  font-size: clamp(1rem, 2.3vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18) inset, 0 14px 44px -10px rgba(255, 138, 31, 0.6);
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.cta .icon { width: 1.3em; height: 1.3em; stroke-width: 2; }

.cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25) inset, 0 18px 52px -10px rgba(255, 138, 31, 0.75);
}

.cta:active { transform: translateY(0); }

.cta:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 4px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.2em;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.text-link .icon { width: 1.1em; height: 1.1em; transition: transform 0.15s ease; }
.text-link:hover { color: var(--accent); border-color: currentColor; }
.text-link:hover .icon { transform: translateX(3px); }

.hero__gallery { margin-top: 1.5rem; }

/* Pasek ikon na dole pierwszego ekranu (jak na rysunku poglądowym) */
.icon-bar {
  display: flex;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 2.5rem);
  margin: 0;
  padding: 1rem var(--gutter);
  list-style: none;
  border-top: 1px solid var(--line);
}

.icon-bar a {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  color: var(--text);
  transition: color 0.15s ease;
}

.icon-bar .icon { width: 1.75rem; height: 1.75rem; }
.icon-bar a:hover { color: var(--accent); }

/* ---------- Sekcje ---------- */
.section {
  padding-block: clamp(4rem, 10vw, 7rem);
  border-top: 1px solid var(--line);
}

/* Pasek ikon w hero ma już linię u góry — pierwsza sekcja nie dubluje jej od dołu */
main > .section:first-child { border-top: 0; }

.section__title {
  margin: 0 0 2rem;
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section__title::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  margin-top: 1rem;
  background: var(--accent);
}

.lead {
  max-width: 40em;
  font-size: clamp(1.1rem, 1.9vw, 1.3rem);
  line-height: 1.65;
  color: var(--text);
}

/* Domy / Remonty */
.offer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.offer__card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  scroll-margin-top: 1.5rem;
}

.offer__icon {
  width: 2.5rem;
  height: 2.5rem;
  stroke-width: 1.3;
  margin-bottom: 1.5rem;
}

.offer__card .section__title { margin-bottom: 1.5rem; }

.offer__card p { color: var(--text-muted); }

.offer__card .text-link { align-self: flex-start; margin-top: auto; }

.offer__body { margin-bottom: 2rem; }

/* O nas + cytat */
.about__text { max-width: 44em; }

.about__text p { font-size: clamp(1.05rem, 1.7vw, 1.2rem); color: var(--text-muted); }
.about__text p:first-child { color: var(--text); }

.quote {
  margin: clamp(3.5rem, 8vw, 5.5rem) auto 0;
  max-width: 46rem;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.25rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.quote blockquote { margin: 0; }

.quote p {
  margin: 0;
  font-size: clamp(1.3rem, 3vw, 1.95rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.45;
  text-wrap: balance;
}

.quote p::before { content: "„"; color: var(--accent); font-weight: 500; }
.quote p::after { content: "”"; color: var(--accent); font-weight: 500; }

.quote figcaption {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.quote figcaption::before { content: "— "; }

/* Kontakt */
.contact { text-align: center; }

.contact .section__title::after { margin-inline: auto; }

.contact__intro {
  margin: 0 auto 2.25rem;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-muted);
}

.contact__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.contact__mail {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.15em;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.contact__mail:hover { color: var(--accent); border-color: currentColor; }

/* ---------- Stopka ---------- */
.site-footer {
  padding: clamp(3rem, 7vw, 4.5rem) var(--gutter) 1.5rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.social {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(2rem, 8vw, 4rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.social a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.social__circle {
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.social__circle .icon { width: 1.9rem; height: 1.9rem; stroke-width: 1.4; }

.social a:hover,
.social a:hover .social__circle { color: var(--accent); border-color: var(--accent); }

/* Mały, szary odnośnik do Polityki Prywatności (brief: 9–10 px) */
.legal-line {
  margin: clamp(2.5rem, 6vw, 3.5rem) 0 0;
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}

.legal-line a { color: inherit; text-decoration: none; }
.legal-line a:hover { text-decoration: underline; }

/* ---------- Podstrona: Polityka Prywatności ---------- */
.legal {
  max-width: 46rem;
  margin-inline: auto;
  padding: clamp(2rem, 6vw, 4rem) var(--gutter) clamp(3rem, 8vw, 5rem);
}

.legal__back { margin-bottom: 2.5rem; }

.legal h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.legal__updated { color: var(--text-faint); font-size: 0.9rem; margin-bottom: 2.5rem; }

.legal h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.legal p, .legal li { color: var(--text-muted); font-size: 1rem; }

.legal ul { padding-left: 1.25rem; margin: 0 0 1.1em; }

.legal li { margin-bottom: 0.4em; }

.legal a { color: var(--text); }

.placeholder {
  padding: 0.05em 0.35em;
  border: 1px dashed var(--accent);
  border-radius: 3px;
  color: var(--accent);
  font-style: normal;
}

/* ---------- Responsywność ---------- */
@media (max-width: 560px) {
  .site-nav { justify-content: center; padding-top: 1.1rem; }
  .cta { width: 100%; max-width: 24rem; padding-inline: 1.25rem; }
}

@media (max-width: 360px) {
  .cta { letter-spacing: 0.03em; font-size: 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
