/* ============================================================
   H&A Renovations — style.css
   Palette: ink navy / plaster / brass.
   Type: Clash Display (display) + General Sans (body + labels/data).
   Fonts are self-hosted in /fonts — no Google CDN (GDPR-safe, faster).
   Mobile-first. Breakpoints: 640px, 1024px.
   ============================================================ */

/* ---------- Self-hosted fonts ---------- */
@font-face {
  font-family: "Clash Display";
  src: url("fonts/ClashDisplay-Variable.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("fonts/GeneralSans-Variable.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;
}

:root {
  /* Colors */
  --ink: #131a24;        /* near-black navy — dark sections, headings */
  --navy: #1b2634;       /* cards on dark */
  --navy-line: #2c3a4d;  /* borders on dark */
  --plaster: #f7f6f2;    /* light section background */
  --white: #ffffff;
  --brass: #fa670e;      /* accent / CTA — pomarańcz z logo H&A */
  --brass-deep: #b34704; /* hover + tekst akcentowy na jasnym tle */
  --steel: #4c5563;      /* muted text on light */
  --mist: #9aa5b1;       /* muted text on dark */
  --line: #e5e2d9;       /* borders on light */

  /* Type */
  --font-display: "Clash Display", "Arial Black", sans-serif;
  --font-body: "General Sans", "Segoe UI", sans-serif;
  /* Etykiety/ceny/dane — celowo TEN SAM font co body (mono-etykiety
     wyglądają na wygenerowane przez AI) */
  --font-mono: "General Sans", "Segoe UI", sans-serif;

  /* Layout */
  --container: 72rem;
  --radius: 0.375rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--plaster);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 2px;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 640px) { .container { padding-inline: 2rem; } }

.hidden { display: none !important; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600; /* Clash Display Semibold — the premium sweet spot */
  line-height: 1.08;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h3 { font-size: 1.15rem; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brass-deep);
  display: block;
  margin-bottom: 0.75rem;
}
.on-dark .eyebrow { color: var(--brass); }

.lead { font-size: 1.1rem; color: var(--steel); max-width: 38rem; }
.on-dark .lead { color: var(--mist); }

.mono {
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  min-height: 44px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-primary { background: var(--brass); color: var(--ink); }
.btn-primary:hover { background: var(--brass-deep); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.on-dark .btn-ghost { border-color: var(--navy-line); color: var(--white); }
.on-dark .btn-ghost:hover { border-color: var(--brass); color: var(--brass); }
.btn-whatsapp { background: #1fa855; color: #fff; }
.btn-whatsapp:hover { background: #179147; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: var(--white);
  border-bottom: 1px solid var(--navy-line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--font-display);
}
.logo-img { height: 3.1rem; width: auto; display: block; }
.site-footer .logo-img { height: 3.5rem; }
.logo-mark {
  background: var(--brass);
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.3rem 0.45rem;
  border-radius: 2px;
  letter-spacing: 0.02em;
}
.logo-text {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.main-nav ul {
  display: none;
  list-style: none;
  gap: 1.75rem;
  align-items: center;
}
.main-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--mist);
  transition: color 0.15s;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--white); }
.main-nav a[aria-current="page"] { border-bottom: 2px solid var(--brass); padding-bottom: 2px; }
.header-cta { display: none; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: none;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-open .main-nav ul {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--ink);
  border-bottom: 1px solid var(--navy-line);
  padding: 1.25rem;
  gap: 1.1rem;
}
.nav-open .main-nav a { font-size: 1.1rem; display: block; padding: 0.25rem 0; }

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .main-nav ul { display: flex; }
  .header-cta { display: inline-flex; padding: 0.6rem 1.2rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: 4rem; }
@media (min-width: 1024px) { .section { padding-block: 6rem; } }
.section-dark { background: var(--ink); color: var(--white); }
.section-white { background: var(--white); }
.section-head { margin-bottom: 2.5rem; max-width: 44rem; }
.section-head p { margin-top: 0.75rem; }

/* Tape-measure divider: recurring signature motif */
.tape {
  height: 14px;
  background-image:
    repeating-linear-gradient(90deg,
      var(--brass) 0, var(--brass) 2px,
      transparent 2px, transparent 24px),
    repeating-linear-gradient(90deg,
      color-mix(in srgb, var(--brass) 55%, transparent) 0,
      color-mix(in srgb, var(--brass) 55%, transparent) 1px,
      transparent 1px, transparent 6px);
  background-size: auto 100%, auto 55%;
  background-repeat: repeat-x;
  background-position: left top, left top;
  opacity: 0.8;
}

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: var(--white); padding-block: 3.5rem 4rem; }
.hero-grid { display: grid; gap: 2.5rem; }
.hero h1 { margin: 1rem 0 1.25rem; }
.hero h1 em { font-style: normal; color: var(--brass); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 2rem;
  padding: 0;
  list-style: none;
}
.hero-trust li {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--mist);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.hero-trust li::before { content: "✓"; color: var(--brass); font-weight: 600; }
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 4rem; }
  .hero { padding-block: 5rem; }
}

/* ---------- Before/After slider ---------- */
.ba-slider {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
  border: 1px solid var(--navy-line);
}
.ba-pane { position: absolute; inset: 0; }
.ba-pane img { width: 100%; height: 100%; object-fit: cover; }
.ba-after { clip-path: inset(0 0 0 var(--ba-pos, 50%)); }
.ba-label {
  position: absolute;
  top: 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  background: rgba(19, 26, 36, 0.8);
  color: var(--white);
}
.ba-before .ba-label { left: 0.75rem; }
.ba-after .ba-label { right: 0.75rem; background: var(--brass); color: var(--ink); }
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--ba-pos, 50%);
  width: 0;
  border-left: 2px solid var(--brass);
  z-index: 3;
}
.ba-handle::after {
  content: "◂ ▸";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--brass);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.5rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}
.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 4;
  margin: 0;
}

/* Placeholder "photo" surfaces until real photos arrive */
.ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.75);
}
.ph-before {
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0, rgba(255,255,255,0.05) 2px, transparent 2px, transparent 12px),
    linear-gradient(160deg, #4a4f57 0%, #33383f 60%, #24282e 100%);
}
.ph-after {
  background:
    linear-gradient(160deg, #efe9dd 0%, #d8cdb8 55%, #b7a482 100%);
  color: rgba(19, 26, 36, 0.65);
}
.ph-photo {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(45deg, rgba(19,26,36,0.06) 0, rgba(19,26,36,0.06) 2px, transparent 2px, transparent 12px),
    linear-gradient(160deg, #d9d6cd 0%, #c2beb2 100%);
  color: var(--steel);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--navy); border-block: 1px solid var(--navy-line); }
.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding-block: 1.75rem;
}
.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--brass);
}
.trust-item span { font-size: 0.85rem; color: var(--mist); }
@media (min-width: 640px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-4 { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.card h3 { margin-top: 0.25rem; }
.card p { color: var(--steel); font-size: 0.95rem; flex-grow: 1; }
.card .price {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brass-deep);
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
}
.card-icon { font-size: 1.5rem; line-height: 1; }
.card-link {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
}
.card-link:hover { color: var(--brass-deep); }

/* Service detail blocks (services.html) */
.service-block {
  display: grid;
  gap: 1.5rem;
  padding-block: 2.5rem;
  border-top: 1px solid var(--line);
}
.service-block:first-of-type { border-top: none; }
.service-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--steel);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.service-meta .price { color: var(--brass-deep); font-size: 1rem; }
@media (min-width: 1024px) {
  .service-block { grid-template-columns: 2fr 1.2fr 1fr; gap: 3rem; align-items: start; }
}

/* ---------- Calculator ---------- */
.calc {
  background: var(--navy);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: grid;
  gap: 1.5rem;
}
.calc label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 0.5rem;
}
.calc select, .calc input[type="number"] {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--ink);
  color: var(--white);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
}
.calc-result {
  border-top: 1px dashed var(--navy-line);
  padding-top: 1.25rem;
}
.calc-result .amount {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 600;
  color: var(--brass);
  display: block;
}
.calc-result small { color: var(--mist); font-size: 0.8rem; }
@media (min-width: 1024px) {
  .calc { grid-template-columns: 1fr 1fr; align-items: end; padding: 2.5rem; }
  .calc-result { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
}

/* ---------- Process steps ---------- */
.steps { list-style: none; counter-reset: step; display: grid; gap: 1.5rem; }
.steps li { counter-increment: step; padding-left: 3.25rem; position: relative; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--brass-deep);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.3rem 0.45rem;
  background: var(--white);
}
.steps h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.steps p { color: var(--steel); font-size: 0.95rem; }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Reviews ---------- */
.review { border-left: 3px solid var(--brass); }
.review blockquote { font-size: 1rem; color: var(--ink); }
.review footer { margin-top: 0.75rem; font-family: var(--font-mono); font-size: 0.78rem; color: var(--steel); }
.stars { color: var(--brass-deep); letter-spacing: 0.1em; font-size: 0.85rem; }

/* ---------- Areas / chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; }
.chips li {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--steel);
}
.on-dark .chips li { background: var(--navy); border-color: var(--navy-line); color: var(--mist); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0.75rem; max-width: 44rem; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.faq summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--brass-deep); font-size: 1.1rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 1.25rem 1.25rem; color: var(--steel); font-size: 0.95rem; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
}
.field label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}
.field label .req { color: var(--brass-deep); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--brass);
  outline-offset: 0;
  border-color: var(--brass);
}
.field-hint { font-size: 0.8rem; color: var(--steel); margin-top: 0.3rem; }
.checkbox-field { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.85rem; color: var(--steel); }
.checkbox-field input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1.4fr 1fr; gap: 4rem; } }
.contact-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-card .mono a { color: var(--ink); }
.map-ph {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  border: 1px dashed var(--line);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-align: center;
  padding: 1rem;
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--brass); color: var(--ink); }
.cta-band-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-block: 3rem;
  align-items: flex-start;
}
.cta-band h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
.cta-band .btn { background: var(--ink); color: var(--white); }
.cta-band .btn:hover { background: #000; }
@media (min-width: 1024px) {
  .cta-band-inner { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--mist); font-size: 0.9rem; }
.footer-grid {
  display: grid;
  gap: 2rem;
  padding-block: 3.5rem 2rem;
}
.footer-grid h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.footer-grid ul { list-style: none; display: grid; gap: 0.5rem; }
.footer-grid a { color: var(--mist); text-decoration: none; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--navy-line);
  padding-block: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1fa855;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(19, 26, 36, 0.35);
  transition: transform 0.15s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Page hero (subpages) ---------- */
.page-hero { background: var(--ink); color: var(--white); padding-block: 3.5rem; }
.page-hero p { margin-top: 0.75rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Utilities ---------- */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.center { text-align: center; }
