/* ============================================================
   G&T Remonty i Wykończenia - wspólny arkusz stylów
   ============================================================ */
:root {
  --navy: #1c2b4a;
  --navy-2: #2d4a7a;
  --gold: #c9a84c;
  --gold-soft: #d8bd6e;
  --ink: #1a1a1a;
  --text: #3a3f47;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg-soft: #f8f7f4;
  --line: #e6e4df;
  --maxw: 1240px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: 'Open Sans', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 { font-family: 'Montserrat', sans-serif; color: var(--navy); line-height: 1.15; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { width: min(var(--maxw), 92%); margin: 0 auto; }

/* Sekcyjny nagłówek z eyebrow */
.eyebrow {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.heading-xl { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 700; letter-spacing: -.5px; }
.gold-line { display: block; width: 56px; height: 3px; background: var(--gold); margin-top: 18px; }
.gold-line.center { margin-left: auto; margin-right: auto; }

/* ===================== NAVBAR ===================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  width: min(var(--maxw), 94%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  min-height: 78px;
}
.brand { display: flex; align-items: center; gap: 13px; flex-shrink: 0; }
.brand img {
  height: 50px; width: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  background: #fff;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--ink);
  letter-spacing: .5px;
}
.brand-text span {
  font-size: .64rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links {
  margin-left: auto;
  display: flex;
  gap: 40px;
}
.nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--navy);
  padding: 8px 0;
  position: relative;
  transition: color .25s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 0;
  background: var(--gold);
  transition: width .28s ease;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--gold); }
.nav-drawer-foot { display: none; }
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28,43,74,.5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease, visibility .3s ease;
  z-index: 997;
}
.nav-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }
/* Na desktopie nie ma menu mobilnego — nakładka nigdy nie może zabarwiać strony
   (zabezpiecza przed niebieskim welonem np. przy ?menu=open) */
@media (min-width: 769px) {
  .nav-overlay { display: none !important; }
}

.nav-toggle {
  margin-left: auto;
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle:focus, .nav-toggle:focus-visible { outline: none; }
.nav-toggle span { width: 26px; height: 2px; background: var(--ink); transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== LANGUAGE SWITCH ===================== */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 20px;
  flex-shrink: 0;
  background: #f0ede8;
  border-radius: 20px;
  padding: 3px;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #888;
  transition: background 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
  font-family: 'Montserrat', sans-serif;
}
.lang-btn.active {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.lang-btn:hover:not(.active) { color: var(--navy); }
.lang-btn:focus { outline: none; }
.lang-flag { font-size: 16px; line-height: 1; }
.lang-code { font-size: 11px; }
@media (max-width: 768px) {
  .lang-switch { margin-left: 10px; padding: 2px; }
  .lang-btn { padding: 4px 7px; gap: 3px; }
  .lang-code { display: none; }
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .6px;
  padding: 15px 34px;
  cursor: pointer;
  transition: all .25s ease;
}
.btn-outline {
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
}
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border: 2px solid var(--gold);
}
.btn-gold:hover { background: transparent; color: var(--navy); }
.btn-navy {
  background: var(--navy);
  color: #fff;
  border: 2px solid var(--navy);
}
.btn-navy:hover { background: transparent; color: var(--navy); }

/* ===================== HERO (strona główna) ===================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(rgba(28,43,74,0.72), rgba(28,43,74,0.72)),
    url('assets/gallery/160240285-crop-9ba9e2df-d391-4597-a942-30791c277f9a.jpeg.jpg') center/cover no-repeat;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(201,168,76,.18), transparent 45%),
    radial-gradient(circle at 12% 88%, rgba(201,168,76,.10), transparent 40%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; width: min(var(--maxw), 92%); margin: 0 auto; max-width: 820px; }
.hero .eyebrow { color: var(--gold-soft); }
.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero p.lead {
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  color: #e8ebf2;
  letter-spacing: .5px;
  margin-bottom: 38px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===================== PAGE HERO (podstrony) ===================== */
.page-hero {
  background: linear-gradient(120deg, var(--navy), var(--navy-2));
  color: #fff;
  padding: 96px 0 78px;
  text-align: center;
}
.page-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.page-hero .gold-line { margin: 20px auto 0; }
.breadcrumb {
  margin-top: 24px;
  font-size: .85rem;
  letter-spacing: 1px;
  color: #b9c4da;
}
.breadcrumb a:hover { color: var(--gold-soft); }
.breadcrumb .sep { margin: 0 10px; color: var(--gold); }

/* ===================== O NAS ===================== */
.about { padding: 110px 0; background: var(--bg); }
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 70px;
  align-items: center;
}
.about-copy .eyebrow { margin-bottom: 16px; }
.about-copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 700; margin-bottom: 26px; }
.about-quote {
  border-left: 4px solid var(--gold);
  padding-left: 26px;
  margin: 0 0 24px;
}
.about-quote p {
  font-size: 1.18rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.6;
}
.about-copy > p { color: var(--text); margin-bottom: 18px; }

.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.feature {
  background: var(--bg-soft);
  border-top: 3px solid var(--gold);
  padding: 30px 26px;
  transition: transform .28s ease, background .28s ease;
}
.feature:hover { transform: translateY(-6px); background: #fff; box-shadow: 0 18px 40px rgba(28,43,74,.10); }
.feature .ico { width: 40px; height: 40px; color: var(--navy); margin-bottom: 16px; }
.feature .ico svg { width: 100%; height: 100%; }
.feature h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 8px; }
.feature p { font-size: .9rem; color: var(--muted); line-height: 1.55; }

/* ===================== USŁUGI ===================== */
.services { padding: 90px 0 100px; background: var(--bg); }
.svc-cat-title {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--navy);
  margin: 54px 0 8px;
}
.svc-cat-title:first-of-type { margin-top: 0; }
.svc-cat-line { width: 64px; height: 3px; background: var(--gold); margin-bottom: 34px; }

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.svc-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 34px 30px;
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.svc-card:hover {
  border-color: var(--gold);
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(28,43,74,.12);
}
.svc-ico {
  width: 50px; height: 50px;
  color: var(--navy);
  margin-bottom: 20px;
}
.svc-ico svg { width: 100%; height: 100%; }
.svc-card:hover .svc-ico { color: var(--gold); }
.svc-card h3 { font-size: 1.14rem; font-weight: 700; margin-bottom: 10px; }
.svc-card p { font-size: .92rem; color: var(--muted); line-height: 1.6; }

/* ===================== GALERIA ===================== */
.gallery-section { padding: 80px 0 100px; background: var(--bg); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
  grid-auto-flow: dense;
  gap: 6px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #1a1a1a;
  min-width: 0;
  min-height: 0;
  /* animacja wejścia (falowa) */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
.gallery-item.visible { opacity: 1; transform: translateY(0); }
.gallery-item.featured { grid-column: span 2; grid-row: span 2; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* overlay "spływającej gładzi" */
.trowel-overlay {
  position: absolute;
  inset: 0;
  background: rgba(28, 43, 74, .82);
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .45s cubic-bezier(.4, 0, .2, 1);
}
.gallery-item:hover .trowel-overlay { clip-path: inset(0 0 0% 0); }
.trowel-overlay svg {
  width: 44px; height: 44px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  opacity: 0;
  transform: scale(.7);
  transition: opacity .2s ease .3s, transform .2s ease .3s;
}
.gallery-item:hover .trowel-overlay svg { opacity: 1; transform: scale(1); }

/* ===================== LIGHTBOX ===================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }

/* Zdjęcie - wypełnia dostępną przestrzeń (z zapasem na strzałki przy krawędziach) */
.lb-img {
  width: calc(100vw - 100px);
  height: 90vh;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
}

/* Strzałki - zakładki przyklejone do krawędzi ekranu */
.lb-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10000;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  outline: none;
  width: 46px;
  height: 104px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.lb-nav:hover,
.lb-nav:focus { background: rgba(255, 255, 255, 0.25); outline: none; }
.lb-prev { left: 0; border-radius: 0 8px 8px 0; }
.lb-next { right: 0; border-radius: 8px 0 0 8px; }
.lb-nav svg {
  width: 28px;
  height: 28px;
  stroke: #ffffff;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Przycisk X */
.lb-close {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 10001;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lb-close:hover { background: rgba(255, 255, 255, 0.25); }
.lb-close svg {
  width: 18px; height: 18px;
  stroke: #fff; fill: none;
  stroke-width: 2.5; stroke-linecap: round;
}

/* Licznik */
.lb-counter {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  letter-spacing: 0.05em;
  z-index: 10000;
}

/* ===================== FOOTER ===================== */
.footer {
  background: var(--navy);
  color: #cdd5e3;
  border-top: 3px solid var(--gold);
  padding: 40px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 56px;
  align-items: start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 14px; }
.footer-nav a {
  color: #aab4c7;
  font-size: .95rem;
  transition: color .2s;
}
.footer-nav a:hover { color: var(--gold); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.footer-brand img {
  height: 44px; width: 44px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: #fff;
  object-fit: cover;
}
.footer-brand strong { font-family: 'Montserrat', sans-serif; color: #fff; font-size: .95rem; white-space: nowrap; }
.footer-col p { font-size: .92rem; line-height: 1.7; color: #aab4c7; }
.footer-col h4 {
  color: #fff;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  min-height: 44px;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { font-size: .92rem; margin-bottom: 16px; color: #aab4c7; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.06); }
.footer-col li strong { color: var(--gold-soft); font-family: 'Montserrat', sans-serif; font-size: .72rem; letter-spacing: 1px; text-transform: uppercase; display: block; margin-bottom: 2px; }
.footer-col li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.footer-col a:hover { color: #fff; }
.contact-name { display: block; font-size: .82em; opacity: .7; margin-top: 2px; }
.footer-bottom {
  padding-top: 24px;
  text-align: center;
  font-size: .82rem;
  color: #8a93a8;
}

/* ===================== REVEAL ===================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  .hero { min-height: 86vh; }
  .nav-inner { min-height: 64px; }
  .nav-toggle { display: flex; }

  /* Menu mobilne — rozwijane z góry (dropdown spod navbara) */
  .nav-links {
    margin-left: 0;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    z-index: 998;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.4s cubic-bezier(.4,0,.2,1), opacity 0.25s ease;
    box-shadow: 0 14px 30px rgba(28,43,74,.18);
    border-top: 2px solid var(--gold);
  }
  .nav-links.open {
    max-height: 460px;
    opacity: 1;
    pointer-events: all;
  }
  .nav-links a {
    width: 100%;
    padding: 16px 28px;
    border-bottom: 1px solid var(--line);
    color: var(--navy);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: color .2s ease, background .2s ease, padding-left .2s ease;
  }
  .nav-links a:hover,
  .nav-links a.active {
    color: var(--gold);
    background: var(--bg-soft);
    padding-left: 36px;
  }
  .nav-links a::after { display: none; }

  /* Stopka rozwijanego menu - CTA + adres */
  .nav-drawer-foot {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 28px 24px;
  }
  .nav-drawer-cta {
    background: var(--gold);
    color: var(--navy);
    text-align: center;
    padding: 14px;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: .9rem;
    letter-spacing: .03em;
    transition: background .2s ease;
  }
  .nav-drawer-cta:hover { background: var(--gold-soft); }
  .nav-drawer-info {
    text-align: center;
    color: var(--muted);
    font-size: .82rem;
    letter-spacing: .05em;
  }

  /* Hamburer X ponad overlayem */
  .nav-toggle {
    position: relative;
    z-index: 999;
  }

  /* backdrop-filter na .nav powoduje że position:fixed dzieci
     jest zawarte w .nav (64px) zamiast viewport - wyłączamy na mobile */
  .nav { backdrop-filter: none; }

  .about { padding: 70px 0; }
  .services { padding: 60px 0 70px; }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-text span { display: none; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }
}
/* Galeria - responsywna siatka z wyróżnionymi zdjęciami */
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; }
  /* featured 2x2 nie mieści się dobrze przy 3 kolumnach - wyrównujemy do 1x1 (brak dziur) */
  .gallery-item.featured { grid-column: span 1; grid-row: span 1; }
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery-item.featured { grid-column: span 1; grid-row: span 1; }
}
