/* ===== W&P Pracownia Krawiecka — Scandinavian / Maritime ===== */

:root {
  --navy: #16273A;
  --navy-deep: #0E1B29;
  --linen: #F7F3EB;
  --linen-soft: #EFE8DA;
  --sand: #D9CBB0;
  --sea: #7C97A8;
  --rope: #B08654;
  --ink: #1C2733;
  --ink-soft: #4C5A66;
  --white: #FFFFFF;
  --radius: 2px;
  --max-width: 1240px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Work Sans", "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--linen);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rope);
  font-weight: 600;
  margin-bottom: 14px;
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
  cursor: pointer;
  background: transparent;
  color: var(--navy);
}
.btn:hover { background: var(--navy); color: var(--linen); }
.btn.primary { background: var(--navy); color: var(--linen); }
.btn.primary:hover { background: var(--navy-deep); transform: scale(1.03); }
.btn.on-dark { border-color: var(--linen); color: var(--linen); }
.btn.on-dark:hover { background: var(--linen); color: var(--navy); transform: scale(1.03); }
.btn.on-dark.solid { background: var(--linen); color: var(--navy); }
.btn.on-dark.solid:hover { background: var(--sand); color: var(--navy); }
.btn.nav-cta {
  padding: 10px 22px;
  background: var(--navy);
  color: var(--linen);
  border-color: var(--navy);
}
.btn.nav-cta:hover { background: var(--navy-deep); transform: scale(1.03); }

/* ===== Fade-rise animations ===== */
@keyframes fadeRise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-rise { animation: fadeRise 0.8s ease-out both; }
.animate-fade-rise-delay { animation: fadeRise 0.8s ease-out 0.2s both; }
.animate-fade-rise-delay-2 { animation: fadeRise 0.8s ease-out 0.4s both; }
@media (prefers-reduced-motion: reduce) {
  .animate-fade-rise, .animate-fade-rise-delay, .animate-fade-rise-delay-2 { animation: none; }
}

/* ===== Header ===== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(247, 243, 235, 0.0);
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  padding: 26px 0;
}
header.scrolled {
  background: rgba(247, 243, 235, 0.94);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 0 rgba(22,39,58,0.08);
  padding: 14px 0;
}
header .wrap { display: flex; align-items: center; justify-content: space-between; }

.logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--linen);
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}
.logo span { color: var(--rope); }
header.scrolled .logo { color: var(--navy); }

.nav-group { display: flex; align-items: center; gap: 28px; }

nav.main-nav { display: flex; align-items: center; gap: 36px; }
nav.main-nav a {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--linen);
  transition: color 0.3s ease, opacity 0.2s ease;
  opacity: 0.9;
}
nav.main-nav a:hover { opacity: 1; color: var(--rope); }
header.scrolled nav.main-nav a { color: var(--navy); }

.lang-toggle {
  display: flex;
  border: 1px solid rgba(247,243,235,0.5);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s ease;
}
header.scrolled .lang-toggle { border-color: rgba(22,39,58,0.3); }
.lang-toggle button {
  background: none;
  border: none;
  padding: 6px 12px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--linen);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
header.scrolled .lang-toggle button { color: var(--navy); }
.lang-toggle button.active { background: var(--rope); color: var(--white); }
header.scrolled .lang-toggle button.active { background: var(--rope); color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--linen); transition: background 0.3s ease; }
header.scrolled .nav-toggle span { background: var(--navy); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  color: var(--linen);
  overflow: hidden;
  background: var(--navy-deep);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  animation: heroVideoFadeIn 1.4s ease-out 0.1s forwards;
}
@keyframes heroVideoFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { animation: none; opacity: 1; }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(14,27,41,0.55) 0%, rgba(14,27,41,0.3) 45%, rgba(14,27,41,0.88) 100%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; padding-bottom: 96px; padding-top: 160px; }
.hero h1 {
  color: var(--linen);
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  max-width: 820px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero h1 .muted {
  color: var(--sand);
  font-style: italic;
}
.hero p.lead {
  max-width: 560px;
  font-size: 1.1rem;
  color: var(--linen-soft);
  margin-bottom: 36px;
}
.hero .cta-row { display: flex; gap: 16px; flex-wrap: wrap; }
.scroll-cue {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--linen-soft);
  writing-mode: vertical-rl;
}

/* ===== Intro strip ===== */
.intro {
  padding: 110px 0 90px;
  text-align: center;
}
.intro .wrap { max-width: 780px; }
.intro h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 22px; }
.intro p { color: var(--ink-soft); font-size: 1.08rem; }

/* ===== Section shared ===== */
section { position: relative; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.section-head p { color: var(--ink-soft); margin-top: 14px; font-size: 1.02rem; }

/* ===== Services ===== */
.services { padding: 40px 0 110px; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--sand);
  border: 1px solid var(--sand);
}
.service-card {
  background: var(--white);
  padding: 40px 32px;
  transition: background 0.3s ease;
}
.service-card:hover { background: var(--linen-soft); }
.service-num {
  font-family: var(--serif);
  font-size: 0.85rem;
  color: var(--rope);
  margin-bottom: 18px;
  display: block;
}
.service-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.service-card p { color: var(--ink-soft); font-size: 0.95rem; }

/* ===== Process ===== */
.process { padding: 40px 0 110px; }
.process-steps {
  display: flex;
  gap: 28px;
  position: relative;
}
.process-steps::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--sand);
  z-index: 1;
}
.process-step {
  flex: 1;
  text-align: center;
  padding: 0 8px;
  position: relative;
}
.process-step .step-num {
  position: relative;
  z-index: 2;
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 1px solid var(--navy);
  background: var(--linen);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--navy);
}
.process-step h4 { font-size: 1rem; margin-bottom: 10px; }
.process-step p { font-size: 0.88rem; color: var(--ink-soft); }

/* ===== Why us ===== */
.why {
  background: var(--navy);
  color: var(--linen);
  padding: 90px 0;
}
.why .section-head h2 { color: var(--linen); }
.why .section-head p { color: rgba(247,243,235,0.7); }
.why-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 44px 40px;
  text-align: center;
}
.why-item { flex: 1 1 190px; max-width: 230px; }
.why-item .mark {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--rope);
  margin-bottom: 16px;
}
.why-item h4 { color: var(--linen); font-size: 1.02rem; margin-bottom: 8px; }
.why-item p { color: rgba(247,243,235,0.65); font-size: 0.9rem; }

/* ===== Gallery ===== */
.gallery { padding: 110px 0; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 130px;
  gap: 12px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(180deg, transparent, rgba(14,27,41,0.85));
  color: var(--linen);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .cap { opacity: 1; }
.g1 { grid-column: span 3; grid-row: span 3; }
.g2 { grid-column: span 3; grid-row: span 2; }
.g3 { grid-column: span 3; grid-row: span 2; }
.g4 { grid-column: span 2; grid-row: span 2; }
.g5 { grid-column: span 2; grid-row: span 2; }
.g6 { grid-column: span 2; grid-row: span 2; }

/* ===== Pricing ===== */
.pricing {
  padding: 100px 0;
  background: var(--linen-soft);
}
.pricing-box {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--sand);
  padding: 64px 48px;
}
.pricing-box .eyebrow { text-align: center; }
.pricing-box h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 20px; }
.pricing-box p { color: var(--ink-soft); margin-bottom: 30px; }
.pricing-factors {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}
.pricing-factors span {
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid var(--sand);
  padding: 8px 16px;
  color: var(--navy);
  font-weight: 600;
}

/* ===== Contact ===== */
.contact { padding: 110px 0 120px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-info h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 20px; }
.contact-info p { color: var(--ink-soft); margin-bottom: 34px; }
.contact-line {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 34px;
}
.contact-line a {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--navy);
  border-bottom: 1px solid var(--sand);
  padding-bottom: 6px;
  display: inline-block;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.contact-line a:hover { color: var(--rope); border-color: var(--rope); }
.contact-line small {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.contact-line .hours {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--navy);
}
.contact-note {
  font-size: 0.88rem;
  color: var(--ink-soft);
  border-left: 2px solid var(--rope);
  padding-left: 16px;
}

form.contact-form { display: flex; flex-direction: column; gap: 18px; }
form.contact-form label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
  display: block;
}
form.contact-form input,
form.contact-form textarea {
  width: 100%;
  border: 1px solid var(--sand);
  background: var(--white);
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  border-radius: var(--radius);
}
form.contact-form input:focus,
form.contact-form textarea:focus {
  outline: none;
  border-color: var(--rope);
}
form.contact-form textarea { resize: vertical; min-height: 120px; }
.form-status { font-size: 0.85rem; color: var(--rope); min-height: 20px; }

/* ===== Footer ===== */
footer {
  background: var(--navy-deep);
  color: rgba(247,243,235,0.75);
  padding: 56px 0 30px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(247,243,235,0.12);
  margin-bottom: 26px;
}
.footer-logo { font-family: var(--serif); font-size: 1.3rem; color: var(--linen); }
.footer-logo span { color: var(--rope); }
.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-nav a { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
.footer-nav a:hover { color: var(--linen); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  flex-wrap: wrap;
  gap: 10px;
}

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .g1, .g2, .g3 { grid-column: span 4; grid-row: span 2; }
  .g4, .g5, .g6 { grid-column: span 2; }
  .process-steps { flex-wrap: wrap; row-gap: 40px; }
  .process-steps::before { display: none; }
  .process-step { flex: 1 1 45%; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 22px; }
  nav.main-nav { position: fixed; top: 0; right: 0; height: 100vh; width: 78%; max-width: 320px;
    background: var(--navy); flex-direction: column; justify-content: center; align-items: flex-start;
    padding: 40px; gap: 26px; transform: translateX(100%); transition: transform 0.35s ease; }
  nav.main-nav.open { transform: translateX(0); }
  nav.main-nav a { color: var(--linen); opacity: 1; font-size: 1rem; }
  .nav-toggle { display: flex; }
  .lang-toggle { order: -1; }
  .nav-group { gap: 14px; }
  .btn.nav-cta { padding: 9px 16px; font-size: 0.72rem; }
  .service-grid { grid-template-columns: 1fr; }
  .process-step { flex: 1 1 100%; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .g1, .g2, .g3, .g4, .g5, .g6 { grid-column: span 2; grid-row: span 2; }
  .pricing-box { padding: 42px 24px; }
  .footer-top { flex-direction: column; }
}
