:root {
  --bordeaux: #4A1220;
  --bordeaux-dark: #340E17;
  --gold: #C9A44C;
  --gold-light: #E4CD8E;
  --forest: #1F3D2E;
  --parchment: #F3EBD8;
  --parchment-dark: #E8DDC2;
  --ink: #241F1A;
  --stitch: #8B6F3E;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  color: var(--ink);
  background: var(--parchment);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.eyebrow {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
}

a { color: inherit; }

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

/* --- stitch divider --- */
.stitch-divider {
  width: 100%;
  height: 18px;
  display: block;
}

/* --- nagłówek --- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(74, 18, 32, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(201, 164, 76, 0.3);
}
 /* nazwa firmy */
.brand {
  display: flex;
  align-items: center;
}

.brand-text {
  display: flex;
  flex-direction: column; /* Układa napisy jeden pod drugim */
}

.sub-title {
  color: #ffffff; /* Biały kolor */
  font-size: 0.85rem; /* Mniejsza czcionka niż główny tytuł */
  letter-spacing: 1px; /* lekki odstęp między literami */
}
.nav {
  padding: 14px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--parchment);
  letter-spacing: 0.03em;
}
.brand em { font-style: italic; color: var(--gold); }
.logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--gold);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.lang-toggle {
  background: none;
  border: 1px solid rgba(201, 164, 76, 0.4);
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.lang-toggle:hover { border-color: var(--gold); background: rgba(201, 164, 76, 0.08); }
.nav-links a {
  text-decoration: none;
  color: var(--parchment-dark);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--gold-light); }
.nav-cta {
  color: var(--gold-light) !important;
  border: 1px solid var(--gold);
  padding: 8px 18px;
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-cta:hover { background: var(--gold); color: var(--bordeaux-dark) !important; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--gold-light);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- hero --- */
.hero {
  background: radial-gradient(ellipse at top, var(--bordeaux) 0%, var(--bordeaux-dark) 70%);
  color: var(--parchment);
  padding: 120px 32px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(201,164,76,0.04) 0, rgba(201,164,76,0.04) 1px, transparent 1px, transparent 14px);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 720px; margin: 0 auto; }
.hero .eyebrow { margin-bottom: 20px; }
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.15;
  margin-bottom: 24px;
}
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero p {
  font-size: 1.15rem;
  color: var(--parchment-dark);
  max-width: 560px;
  margin: 0 auto 40px;
}
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--bordeaux-dark);
  font-weight: 600;
  padding: 14px 36px;
  border-radius: 2px;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-family: 'Source Sans 3', sans-serif;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.25); }

/* --- about --- */
.about { padding: 90px 32px; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about h2 { font-size: 2.1rem; margin: 14px 0 20px; color: var(--bordeaux); }
.about p { color: #4a4038; }
.about-visual {
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--forest) 0%, #14261c 100%);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--stitch);
}
.about-visual1 {
  height: 500px;
  width: 350px;
  border: 5px solid #1F3D2E;
  overflow: hidden;
  box-sizing: border-box;
}

.about-visual1 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-visual svg { width: 55%; }

/* --- why us --- */
.why { padding: 20px 32px 90px; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.why-item {
  border-top: 2px solid var(--gold);
  padding-top: 18px;
}
.why-num {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--gold);
  font-size: 1.1rem;
}
.why-item h3 { font-size: 1.25rem; margin: 8px 0 8px; color: var(--bordeaux); }
.why-item p { color: #4a4038; font-size: 0.95rem; }

/* --- services --- */
.services {
  background: var(--forest);
  padding: 90px 32px;
  color: var(--parchment);
}
.services .eyebrow { color: var(--gold-light); }
.services h2 { font-size: 2.1rem; margin: 14px 0 50px; color: var(--parchment); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.service-card {
  background: rgba(243, 235, 216, 0.04);
  border: 1px solid rgba(201, 164, 76, 0.35);
  padding: 30px 24px;
  border-radius: 3px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.service-card:hover { border-color: var(--gold); background: rgba(243, 235, 216, 0.07); }
.service-card .num {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 14px;
  display: block;
}
.service-card h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--parchment); }
.service-card p { font-size: 0.93rem; color: rgba(243, 235, 216, 0.75); }

/* --- projects / gallery --- */
.projects { padding: 90px 32px; }
.projects h2 { font-size: 2.1rem; margin: 14px 0 8px; color: var(--bordeaux); }
.projects-intro { color: #4a4038; margin-bottom: 40px; }

.gallery-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.filter-btn {
  background: none;
  border: 1px solid var(--stitch);
  color: var(--stitch);
  padding: 9px 22px;
  border-radius: 2px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.filter-btn:hover { border-color: var(--bordeaux); color: var(--bordeaux); }
.filter-btn.active {
  background: var(--bordeaux);
  border-color: var(--bordeaux);
  color: var(--parchment);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery-item {
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 3px;
  border: 1px solid var(--parchment-dark);
  padding: 0;
  background: var(--parchment-dark);
  cursor: pointer;
  display: block;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

.video-thumb {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--forest);
}
.video-thumb iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none; /* clicks pass through to open the lightbox */
}
.video-thumb::after {
  content: "▶";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(74, 18, 32, 0.75);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  pointer-events: none;
}

.gallery-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}
.btn-secondary {
  background: none;
  border: 1px solid var(--bordeaux);
  color: var(--bordeaux);
  padding: 12px 32px;
  border-radius: 2px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-secondary:hover { background: var(--bordeaux); color: var(--parchment); }
.btn-secondary[hidden] { display: none; }

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 12, 10, 0.92);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }

.lightbox-single {
  display: none;
  max-width: 100%;
  max-height: 100%;
  border: 2px solid var(--gold);
  border-radius: 2px;
}
.lightbox-single.active { display: block; }

.lightbox-compare {
  display: none;
  gap: 20px;
  max-width: 100%;
  max-height: 100%;
  align-items: flex-start;
}
.lightbox-compare.active { display: flex; }
.compare-pane {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 46vw;
}
.compare-pane img {
  max-width: 100%;
  max-height: 78vh;
  border: 2px solid var(--gold);
  border-radius: 2px;
  object-fit: contain;
}
.compare-label {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--gold-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.lightbox-video {
  display: none;
  width: auto;
  height: 85vh;
  max-width: 90vw;
  aspect-ratio: 9/16;
}
.lightbox-video.active { display: block; }
.lightbox-video iframe {
  width: 100%;
  height: 100%;
  border: 2px solid var(--gold);
  border-radius: 2px;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: var(--parchment);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
}

/* --- form --- */
.contact { padding: 100px 32px; }
.contact-wrap { max-width: 680px; }
.contact-head { text-align: center; margin-bottom: 48px; }
.contact-head h2 { font-size: 2.1rem; color: var(--bordeaux); margin: 14px 0 12px; }
.contact-head p { color: #4a4038; }

form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--stitch);
  margin-bottom: 6px;
  font-weight: 600;
}
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbb98f;
  border-radius: 2px;
  background: #fff;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}
textarea { min-height: 120px; resize: vertical; }
.submit-row { display: flex; justify-content: center; margin-top: 8px; }
#formStatus { text-align: center; margin-top: 16px; font-weight: 600; display: none; }
#formStatus.success { color: var(--forest); display: block; }
#formStatus.sending { color: var(--stitch); display: block; }

/* --- footer --- */
footer {
  background: var(--bordeaux-dark);
  color: var(--parchment-dark);
  padding: 48px 32px 36px;
  text-align: center;
}
.footer-brand { justify-content: center; margin: 0 auto 14px; }
footer p { font-size: 0.9rem; color: rgba(243,235,216,0.6); }

.social-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 18px 0;
}
.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(201, 164, 76, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.social-links a:hover { border-color: var(--gold); background: rgba(201, 164, 76, 0.1); }
.social-links svg {
  width: 18px;
  height: 18px;
  color: var(--gold-light);
}

/* --- responsive --- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 24px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bordeaux-dark);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links.open { max-height: 320px; }
  .nav-links a {
    width: 100%;
    padding: 16px 32px;
    border-bottom: 1px solid rgba(201,164,76,0.15);
  }
  .nav-cta { border: none !important; }
  .menu-toggle { display: flex; }
}

@media (max-width: 520px) {
  .service-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 90px 24px 70px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .lightbox-compare { flex-direction: column; overflow-y: auto; max-height: 90vh; }
  .compare-pane { max-width: 90vw; }
  .compare-pane img { max-height: 40vh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
