/* Zabudowy od Żaby — przykładowa strona. Paletę i typografię łatwo podmienić w :root. */

:root {
  --ink: #1f1611;
  --ink-soft: #3f3229;
  --muted: #5e5148;
  --walnut: #3a2418;
  --walnut-deep: #24150e;
  --oak: #7a4a28;
  --honey: #c4a36a;
  --brass: #b08a4c;
  --cream: #f6f0e6;
  --cream-dark: #ebe2d3;
  --paper: #fbf8f3;
  --white: #fffcf7;
  --line: rgba(36, 21, 14, 0.12);
  --line-strong: rgba(36, 21, 14, 0.2);
  --shadow: 0 14px 40px rgba(36, 21, 14, 0.1);
  --radius: 14px;
  --header-h: 5.5rem;
  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.25rem);
  --font-serif: "Cormorant Garamond", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --font-sans: Outfit, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--oak);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--walnut);
}

h1, h2, h3, .brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--walnut-deep);
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.35rem, 6.2vw, 4.35rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.15rem);
  margin: 0 0 0.85rem;
}

h3 {
  font-size: 1.55rem;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 1000;
  background: var(--walnut-deep);
  color: var(--cream);
  padding: 0.55rem 0.9rem;
  border-radius: 6px;
}

.skip-link:focus {
  top: 0.6rem;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--oak);
}

.kicker-num {
  font-variant-numeric: tabular-nums;
  color: var(--brass);
}

.lead {
  font-size: 1.125rem;
  color: var(--ink-soft);
  max-width: 42rem;
}

.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.section-head {
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
  max-width: 42rem;
}

.section-alt {
  background: var(--cream);
}

.section-dark {
  background: var(--walnut-deep);
  color: var(--cream);
}

.section-dark h2,
.section-dark h3,
.section-dark .brand-name {
  color: var(--white);
}

.section-dark .kicker {
  color: var(--honey);
}

.section-dark .lead,
.section-dark p {
  color: rgba(246, 240, 230, 0.86);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--honey);
  color: var(--walnut-deep);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #d4b57a;
  color: var(--walnut-deep);
}

.btn-secondary {
  background: transparent;
  border-color: rgba(255, 252, 247, 0.45);
  color: var(--white);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(255, 252, 247, 0.1);
  color: var(--white);
}

.btn-on-light {
  border-color: var(--line-strong);
  color: var(--walnut);
  background: transparent;
}

.btn-on-light:hover,
.btn-on-light:focus-visible {
  background: var(--cream);
  color: var(--walnut-deep);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  background: var(--paper);
  border-bottom: 1px solid var(--line-strong);
  box-shadow: 0 1px 0 rgba(36, 21, 14, 0.06);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.logo:hover {
  color: inherit;
}

.logo-mark {
  width: 4rem;
  height: 4rem;
  flex-shrink: 0;
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.site-header .brand-name {
  font-size: clamp(1.28rem, 1.8vw, 1.65rem);
  line-height: 1.05;
  margin: 0;
  font-weight: 700;
  color: var(--walnut-deep);
  white-space: nowrap;
}

.brand-tag {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.site-nav ul {
  display: flex;
  gap: 0.2rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.3rem 0;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--walnut-deep);
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  overflow: hidden;
  background: var(--white);
}

.lang-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
  min-width: 2.5rem;
}

.lang-toggle button[aria-pressed="true"] {
  background: var(--walnut-deep);
  color: var(--cream);
}

.menu-btn {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block;
  width: 1.15rem;
  height: 1.5px;
  background: var(--walnut-deep);
  position: relative;
}

.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-btn span::before { top: -5px; }
.menu-btn span::after { top: 5px; }

.menu-btn[aria-expanded="true"] span {
  background: transparent;
}

.menu-btn[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-btn[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 52rem);
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background: var(--walnut-deep);
}

.hero-image {
  position: absolute;
  inset: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(20, 10, 6, 0.78) 0%, rgba(20, 10, 6, 0.52) 34%, rgba(20, 10, 6, 0.2) 62%, rgba(20, 10, 6, 0.28) 100%),
    linear-gradient(180deg, rgba(20, 10, 6, 0.22) 0%, rgba(20, 10, 6, 0.12) 40%, rgba(20, 10, 6, 0.62) 100%);
}

.hero h1,
.hero .lead,
.hero-eyebrow {
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.45);
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin: 0 0 1.6rem;
}

.hero-logo-mark {
  width: 6.5rem;
  height: 6.5rem;
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.35));
}

.hero-brand-name {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4.6vw, 2.85rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 0;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.45);
}

.hero-brand-tag {
  margin: 0.35rem 0 0;
  color: var(--honey);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 10vw, 6rem) 0 clamp(2.75rem, 7vw, 4.5rem);
  max-width: 44rem;
}

.hero h1,
.hero .brand-name {
  color: var(--white);
}

.hero-eyebrow {
  display: inline-block;
  margin: 0 0 0.9rem;
  color: var(--honey);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .lead {
  color: rgba(255, 252, 247, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  max-width: 38rem;
}

.placeholder-note {
  display: inline-block;
  margin-top: 1.1rem;
  font-size: 0.8rem;
  color: rgba(255, 252, 247, 0.65);
}

/* Services */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.card-body {
  padding: 1.35rem 1.35rem 1.5rem;
  flex: 1;
}

.card p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* Process */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.step {
  position: relative;
  padding: 1.35rem 1.25rem 1.35rem 1.35rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--brass);
  line-height: 1;
  margin-bottom: 0.55rem;
}

.step h3 {
  font-size: 1.4rem;
}

.step p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.process-grid {
  display: grid;
  gap: 1.5rem;
}

.process-photo {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 16rem;
}

.process-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* About us */
.about-mark {
  width: 4.5rem;
  height: 4.5rem;
  display: block;
  margin: 0 0 1.1rem;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.28));
}

.about-tagline {
  font-size: clamp(2.15rem, 5vw, 3.5rem);
  max-width: 11.5em;
  margin: 0 0 2rem;
  color: var(--white);
}

.about-grid {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}

.about-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 16rem;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.about-copy p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: rgba(246, 240, 230, 0.9);
  max-width: 40rem;
}

.about-copy p + p {
  margin-top: 1.05rem;
}

/* Portfolio */
.gallery-note {
  margin: 0 0 1.5rem;
  padding: 0.85rem 1rem;
  background: rgba(176, 138, 76, 0.12);
  border-left: 3px solid var(--brass);
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 48rem;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.gallery figure {
  margin: 0;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: var(--cream-dark);
}

.gallery button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  color: inherit;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery button:hover img,
.gallery button:focus-visible img {
  transform: scale(1.04);
}

.gallery figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.2rem 0.85rem 0.7rem;
  background: linear-gradient(transparent, rgba(20, 10, 6, 0.78));
  color: var(--cream);
  font-size: 0.8rem;
}

/* Area */
.cities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.cities li {
  padding: 0.55rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 500;
  color: var(--walnut);
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2rem;
}

.contact-details a {
  color: var(--walnut);
  font-weight: 500;
}

.contact-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}

.contact-list li {
  margin: 0 0 1rem;
}

.contact-list span {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem 1.5rem;
  box-shadow: var(--shadow);
}

.form-row {
  margin-bottom: 0.95rem;
}

.form-row label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.req {
  color: var(--oak);
}

input,
select,
textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  min-height: 2.85rem;
}

textarea {
  min-height: 8.5rem;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--brass);
  outline-offset: 1px;
  border-color: var(--brass);
}

.form-hint {
  margin: 0.7rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.form-success {
  display: none;
  padding: 1.5rem 0.25rem;
}

.form-success.is-visible {
  display: block;
}

.form-card.is-sent form {
  display: none;
}

.form-card.is-sent {
  display: flex;
  align-items: center;
  min-height: 16rem;
}

.form-success h3 {
  margin-bottom: 0.4rem;
}

/* Footer */
.site-footer {
  background: var(--walnut-deep);
  color: rgba(246, 240, 230, 0.8);
  padding: 2.5rem 0 1.75rem;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(246, 240, 230, 0.12);
}

.site-footer .brand-name {
  color: var(--white);
  font-size: 1.45rem;
}

.site-footer a {
  color: var(--honey);
}

.site-footer a:hover {
  color: var(--cream);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
}

.footer-nav a {
  text-decoration: none;
  color: rgba(246, 240, 230, 0.85);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1.25rem;
}

.mockup-note {
  font-size: 0.8rem;
  color: rgba(246, 240, 230, 0.55);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(16, 9, 5, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(100%, 1100px);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 6px;
}

.lightbox-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: var(--cream);
  color: var(--walnut-deep);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-caption {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--cream);
  font-size: 0.85rem;
}

/* Responsive */
@media (min-width: 640px) {
  .cards,
  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .cards {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .gallery {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-photo img {
    aspect-ratio: 16 / 7;
    min-height: 0;
  }

  .about-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 2.5rem;
    align-items: stretch;
  }

  .about-photo {
    position: relative;
    min-height: 100%;
  }

  .about-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: auto;
  }

  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr 1.15fr;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
  }
}

@media (max-width: 899px) {
  :root {
    --header-h: 4.5rem;
  }

  .logo-mark {
    width: 2.875rem;
    height: 2.875rem;
  }

  .site-header .brand-name {
    font-size: 1.22rem;
    white-space: normal;
    line-height: 1.08;
  }

  .logo {
    gap: 0.65rem;
  }

  .menu-btn {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem var(--gutter) 1.1rem;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav a {
    display: block;
    padding: 0.7rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
  }

  body.nav-open {
    overflow: hidden;
  }
}


@media (max-width: 899px) {
  .about-photo img {
    aspect-ratio: 5 / 4;
  }
}

@media (max-width: 560px) {
  .about-mark {
    width: 3.75rem;
    height: 3.75rem;
  }

  .about-tagline {
    max-width: none;
    margin-bottom: 1.5rem;
  }
}
@media (max-width: 560px) {
  .site-header .brand-tag {
    display: none;
  }

  .hero {
    min-height: min(86vh, 44rem);
  }

  .hero-image::after {
    background: linear-gradient(180deg, rgba(20, 10, 6, 0.32) 0%, rgba(20, 10, 6, 0.4) 35%, rgba(20, 10, 6, 0.82) 100%);
  }

  .hero-content {
    padding-bottom: 2.25rem;
  }

  .hero-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    margin-bottom: 1.25rem;
  }

  .hero-logo-mark {
    width: 4.25rem;
    height: 4.25rem;
  }

  .hero-brand-name {
    font-size: clamp(1.7rem, 8vw, 2.15rem);
  }
}

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