/* ==========================================================================
   KRAWĘDŹ — DARK LUXURY AESTHETIC
   Exact Palette: background #1A1612 | ivory #F0E7D8 | brass #8C6A32
   Exact Fonts: Marcellus (display) | Jost (body)
   Visual Identity: sharp geometry, no rounded pills, zero raster images
   ========================================================================== */

:root {
  --bg-primary: #1A1612;
  --text-ivory: #F0E7D8;
  --brass-accent: #8C6A32;
  --brass-dim: rgba(140, 106, 50, 0.35);
  --brass-subtle: rgba(140, 106, 50, 0.15);
  --surface-dark: #14110e;
  --font-display: 'Marcellus', Georgia, serif;
  --font-body: 'Jost', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0 !important; /* Strict dark luxury: zero rounded cards or pill buttons */
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-ivory);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-ivory);
  line-height: 1.65;
  font-weight: 300;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography standards */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--text-ivory);
  letter-spacing: 0.02em;
}

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

/* KNOB: Wide letterspacing on labels only */
.nav-link,
.hero-label,
.section-tag,
.stat-caption,
.service-index,
.tile-code,
.author-name,
.author-role,
.detail-label,
.form-label,
.ghost-cta,
.submit-btn,
.footer-brand-title,
.social-link,
.footer-privacy-link {
  font-family: var(--font-body);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 500;
}

.section-container {
  width: 90%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 100px 0;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(26, 22, 18, 0.94);
  border-bottom: 1px solid var(--brass-dim);
  backdrop-filter: blur(8px);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 5%;
}

.nav-monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--brass-accent);
  color: var(--brass-accent);
  transition: all 0.3s ease;
}

.nav-monogram:hover {
  background: var(--brass-accent);
  color: var(--bg-primary);
}

.monogram-mark {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1;
}

.nav-menu {
  display: flex;
  gap: 32px;
}

.nav-link {
  color: var(--text-ivory);
  opacity: 0.8;
  transition: opacity 0.3s, color 0.3s;
}

.nav-link:hover {
  opacity: 1;
  color: var(--brass-accent);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 6% 80px;
  border-bottom: 1px solid var(--brass-dim);
  overflow: hidden;
}

.hero-motif-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 440px;
  height: 440px;
  pointer-events: none;
  z-index: 0;
}

.motif-svg {
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
}

.hero-label {
  color: var(--brass-accent);
  margin-bottom: 24px;
  display: inline-block;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.25;
  margin-bottom: 24px;
  font-weight: 400;
  color: var(--text-ivory);
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(240, 231, 216, 0.75);
  max-width: 620px;
  margin: 0 auto 40px;
  font-weight: 300;
}

.ghost-cta {
  display: inline-block;
  padding: 14px 34px;
  border: 1px solid var(--brass-accent);
  background: transparent;
  color: var(--text-ivory);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  cursor: pointer;
}

.ghost-cta:hover {
  background: var(--brass-accent);
  color: var(--bg-primary);
}

/* Philosophy Split */
.philosophy-section {
  border-bottom: 1px solid var(--brass-dim);
  background: #17130F;
}

.philosophy-split {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: center;
}

.stat-box {
  border: 1px solid var(--brass-dim);
  padding: 50px 40px;
  background: var(--bg-primary);
  text-align: center;
  position: relative;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 6vw, 5rem);
  color: var(--brass-accent);
  line-height: 1;
  margin-bottom: 12px;
}

.stat-unit {
  font-size: 1.8rem;
  margin-left: 4px;
  color: var(--text-ivory);
  font-family: var(--font-body);
  font-weight: 300;
}

.stat-divider {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--brass-accent);
  margin: 18px auto 20px;
}

.stat-caption {
  color: rgba(240, 231, 216, 0.8);
  line-height: 1.6;
}

.section-tag {
  color: var(--brass-accent);
  margin-bottom: 14px;
  display: block;
}

.philosophy-heading {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  line-height: 1.3;
  margin-bottom: 26px;
}

.philosophy-paragraph {
  font-size: 1.05rem;
  color: rgba(240, 231, 216, 0.85);
  line-height: 1.85;
}

.drop-cap {
  float: left;
  font-family: var(--font-display);
  font-size: 4.2rem;
  line-height: 0.85;
  margin-right: 14px;
  color: var(--brass-accent);
}

/* Services List Rows (6 short rows) */
.services-section {
  border-bottom: 1px solid var(--brass-dim);
}

.services-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.services-list {
  border-top: 1px solid var(--brass-dim);
}

.service-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 10px;
  border-bottom: 1px solid var(--brass-dim);
  transition: background-color 0.25s ease;
}

.service-row:hover {
  background-color: rgba(140, 106, 50, 0.05);
}

.service-info {
  display: flex;
  align-items: baseline;
  gap: 28px;
}

.service-index {
  color: var(--brass-accent);
}

.service-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-ivory);
}

.service-price {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--brass-accent);
  white-space: nowrap;
  letter-spacing: 0.04em;
}

/* Portfolio Strip (3 tiles, solid panels) */
.portfolio-section {
  border-bottom: 1px solid var(--brass-dim);
  background: #17130F;
}

.portfolio-header {
  text-align: center;
  margin-bottom: 50px;
}

.portfolio-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portfolio-tile {
  background: var(--bg-primary);
  border: 1px solid var(--brass-dim);
  padding: 40px 30px;
  position: relative;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.portfolio-tile:hover {
  border-color: var(--brass-accent);
  transform: translateY(-4px);
}

.tile-top-motif {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--brass-subtle);
}

.tile-code {
  color: var(--brass-accent);
}

.tile-ornament {
  width: 8px;
  height: 8px;
  border: 1px solid var(--brass-accent);
  transform: rotate(45deg);
}

.tile-title {
  font-size: 1.4rem;
  margin-bottom: 14px;
  line-height: 1.3;
}

.tile-caption {
  font-size: 0.92rem;
  color: rgba(240, 231, 216, 0.75);
  line-height: 1.7;
}

/* Framed Testimonial */
.testimonial-section {
  border-bottom: 1px solid var(--brass-dim);
  padding: 20px 0;
}

.framed-testimonial {
  position: relative;
  max-width: 840px;
  margin: 0 auto;
  padding: 60px 50px;
  background: #15120e;
  border: 1px solid var(--brass-dim);
  text-align: center;
}

.frame-corner-mark {
  position: absolute;
  width: 10px;
  height: 10px;
}

.frame-tl {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--brass-accent);
  border-left: 2px solid var(--brass-accent);
}

.frame-tr {
  top: -1px;
  right: -1px;
  border-top: 2px solid var(--brass-accent);
  border-right: 2px solid var(--brass-accent);
}

.frame-bl {
  bottom: -1px;
  left: -1px;
  border-bottom: 2px solid var(--brass-accent);
  border-left: 2px solid var(--brass-accent);
}

.frame-br {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid var(--brass-accent);
  border-right: 2px solid var(--brass-accent);
}

.testimonial-motif {
  margin-bottom: 20px;
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  line-height: 1.6;
  color: var(--text-ivory);
  margin-bottom: 28px;
  font-style: normal;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.author-name {
  color: var(--brass-accent);
}

.author-role {
  color: rgba(240, 231, 216, 0.55);
}

/* Contact Section & Form */
.contact-section {
  border-bottom: 1px solid var(--brass-dim);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-title {
  font-size: clamp(1.8rem, 2.8vw, 2.3rem);
  line-height: 1.3;
  margin-bottom: 16px;
}

.contact-desc {
  color: rgba(240, 231, 216, 0.8);
  margin-bottom: 36px;
  line-height: 1.7;
}

.details-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 2px solid var(--brass-accent);
  padding-left: 16px;
}

.detail-label {
  color: var(--brass-accent);
  font-size: 0.68rem;
}

.detail-val,
.detail-link {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text-ivory);
}

.detail-link:hover {
  color: var(--brass-accent);
}

.contact-form-wrap {
  background: #14110E;
  border: 1px solid var(--brass-dim);
  padding: 40px;
}

.form-title {
  font-size: 1.4rem;
  margin-bottom: 26px;
  color: var(--text-ivory);
  border-bottom: 1px solid var(--brass-subtle);
  padding-bottom: 12px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  color: var(--brass-accent);
  margin-bottom: 8px;
}

.form-input,
.form-select {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-primary);
  border: 1px solid var(--brass-dim);
  color: var(--text-ivory);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.form-input:focus,
.form-select:focus {
  border-color: var(--brass-accent);
}

.form-input::placeholder {
  color: rgba(240, 231, 216, 0.35);
}

.submit-btn {
  width: 100%;
  padding: 14px 20px;
  background: var(--brass-accent);
  color: var(--bg-primary);
  border: 1px solid var(--brass-accent);
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  font-weight: 600;
  margin-top: 10px;
}

.submit-btn:hover {
  background: transparent;
  color: var(--text-ivory);
}

.form-feedback {
  margin-top: 16px;
  font-size: 0.9rem;
  text-align: center;
  color: var(--brass-accent);
  display: none;
}

/* Footer */
.site-footer {
  background: #120F0C;
  padding: 60px 0 40px;
}

.footer-container {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-monogram {
  font-family: var(--font-display);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--brass-accent);
  color: var(--brass-accent);
  font-size: 1.1rem;
}

.footer-brand-title {
  color: var(--text-ivory);
}

.footer-socials {
  display: flex;
  gap: 28px;
}

.social-link {
  color: rgba(240, 231, 216, 0.7);
  transition: color 0.3s;
}

.social-link:hover {
  color: var(--brass-accent);
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.8rem;
  color: rgba(240, 231, 216, 0.5);
  border-top: 1px solid var(--brass-subtle);
  padding-top: 24px;
  width: 100%;
}

.footer-privacy-link {
  color: var(--brass-accent);
  transition: opacity 0.3s;
}

.footer-privacy-link:hover {
  opacity: 0.8;
}

/* Legal Page Specific */
.legal-page-main {
  padding-top: 100px;
  min-height: 80vh;
}

.legal-container {
  max-width: 820px;
}

.legal-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 14px;
}

.legal-subtitle {
  color: rgba(240, 231, 216, 0.7);
  margin-bottom: 40px;
}

.legal-content {
  border-top: 1px solid var(--brass-dim);
  padding-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.legal-heading {
  font-size: 1.3rem;
  color: var(--brass-accent);
  margin-bottom: 12px;
}

.legal-text {
  line-height: 1.8;
  color: rgba(240, 231, 216, 0.85);
}

.legal-list {
  margin-top: 12px;
  padding-left: 20px;
  color: rgba(240, 231, 216, 0.85);
  line-height: 1.8;
}

.legal-footer-action {
  margin-top: 50px;
  border-top: 1px solid var(--brass-dim);
  padding-top: 30px;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .philosophy-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .portfolio-strip {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-menu {
    gap: 14px;
  }
  .nav-link {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
  }
  .section-container {
    padding: 70px 0;
  }
  .framed-testimonial {
    padding: 40px 24px;
  }
  .contact-form-wrap {
    padding: 24px;
  }
  .service-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .service-price {
    align-self: flex-end;
  }
}