/* MK Profit — Marcin Konieczny */
:root {
  --ink: #07131f;
  --ink-soft: #0e2236;
  --navy: #14324a;
  --slate: #3d5568;
  --mist: #e8eef2;
  --paper: #f7f4ef;
  --white: #ffffff;
  --gold: #b8956c;
  --gold-deep: #9a784f;
  --gold-soft: rgba(184, 149, 108, 0.18);
  --line: rgba(7, 19, 31, 0.1);
  --line-light: rgba(255, 255, 255, 0.14);
  --shadow: 0 24px 60px rgba(7, 19, 31, 0.18);
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
}

h2 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
}

p {
  margin: 0;
}

.lead {
  font-size: 1.08rem;
  color: var(--slate);
  max-width: 42rem;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s;
}

.site-header.is-scrolled {
  background: rgba(7, 19, 31, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.topbar {
  display: none;
  justify-content: flex-end;
  gap: 1.5rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line-light);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.82);
}

.topbar a:hover {
  color: var(--gold);
}

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

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  color: var(--white);
}

.brand-mark {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
}

.brand-mark span {
  color: var(--gold);
}

.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.72;
}

.nav {
  display: none;
  align-items: center;
  gap: 1.35rem;
}

.nav a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.45rem;
  border: 1px solid transparent;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}

.btn:hover {
  background: var(--gold-deep);
  color: var(--white);
  transform: translateY(-1px);
}

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

.btn-ghost:hover {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--white);
}

.btn-nav {
  padding: 0.65rem 1.1rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--white);
}

.btn-nav:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.25s, opacity 0.25s;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.5rem 0 1.25rem;
  border-top: 1px solid var(--line-light);
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  color: rgba(255, 255, 255, 0.9);
  padding: 0.7rem 0;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line-light);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: heroZoom 18s var(--ease) forwards;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 19, 31, 0.55) 0%, rgba(7, 19, 31, 0.35) 42%, rgba(7, 19, 31, 0.82) 100%),
    linear-gradient(90deg, rgba(7, 19, 31, 0.55) 0%, rgba(7, 19, 31, 0.15) 55%, rgba(7, 19, 31, 0.45) 100%);
}

@keyframes heroZoom {
  to {
    transform: scale(1);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-h) + 5rem) 0 5.5rem;
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  opacity: 0;
  animation: riseIn 0.9s var(--ease) 0.15s forwards;
}

.hero-brand span {
  color: var(--gold);
}

.hero h1 {
  max-width: 14ch;
  font-size: clamp(1.7rem, 3.4vw, 2.55rem);
  font-weight: 500;
  margin-bottom: 1rem;
  opacity: 0;
  animation: riseIn 0.9s var(--ease) 0.3s forwards;
}

.hero-text {
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1.8rem;
  opacity: 0;
  animation: riseIn 0.9s var(--ease) 0.45s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  opacity: 0;
  animation: riseIn 0.9s var(--ease) 0.6s forwards;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  z-index: 2;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  animation: bob 2.2s ease-in-out infinite;
}

.scroll-hint svg {
  width: 12px;
  height: 12px;
}

@keyframes bob {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 6px);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections */
.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section-head {
  margin-bottom: 2.5rem;
  max-width: 40rem;
}

.section-head p {
  margin-top: 0.9rem;
  color: var(--slate);
}

.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
  }

  .split.reverse {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .split.reverse .split-copy {
    order: 2;
  }

  .topbar {
    display: flex;
  }

  .nav {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }
}

.media-frame {
  position: relative;
  overflow: hidden;
  min-height: 420px;
}

.media-frame img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 35%;
  background: linear-gradient(transparent, rgba(7, 19, 31, 0.45));
  z-index: 1;
  pointer-events: none;
}

.media-caption {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 2;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.35rem;
}

/* Pillars */
.pillars {
  margin-top: -3.5rem;
  position: relative;
  z-index: 3;
}

.pillars-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  box-shadow: var(--shadow);
}

@media (min-width: 800px) {
  .pillars-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar {
  background: var(--white);
  padding: 2rem 1.6rem 2.2rem;
}

.pillar-icon {
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 1.1rem;
  color: var(--gold-deep);
}

.pillar h3 {
  margin-bottom: 0.7rem;
  letter-spacing: 0.02em;
}

.pillar p {
  color: var(--slate);
  font-size: 0.98rem;
}

/* Lists / services */
.check-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.check-list li {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.75rem;
  align-items: start;
  color: var(--ink-soft);
}

.check-list li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.55rem;
  border-radius: 50%;
  background: var(--gold);
}

.service-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .service-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-item {
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}

.service-item h3,
.service-item h4 {
  margin-bottom: 0.45rem;
}

.service-item p {
  color: var(--slate);
  font-size: 0.96rem;
}

/* Dark band */
.band-dark {
  position: relative;
  color: var(--white);
  background: var(--ink);
  overflow: hidden;
}

.band-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(7, 19, 31, 0.92), rgba(20, 50, 74, 0.78)),
    url("../img/dark-bg.jpg") center / cover no-repeat;
  opacity: 1;
}

.band-dark .container {
  position: relative;
  z-index: 1;
}

.band-dark .eyebrow {
  color: var(--gold);
}

.band-dark .lead,
.band-dark p {
  color: rgba(255, 255, 255, 0.78);
}

.stats {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 700px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat {
  padding-top: 1rem;
  border-top: 1px solid var(--line-light);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 500;
  color: var(--gold);
  line-height: 1.15;
  margin-bottom: 0.45rem;
}

.stat span {
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

/* Soft section */
.band-soft {
  background: linear-gradient(180deg, #eef3f6 0%, var(--paper) 100%);
}

.feature-rows {
  display: grid;
  gap: 0;
}

.feature-row {
  display: grid;
  gap: 0.35rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.feature-row:first-child {
  border-top: 1px solid var(--line);
}

.feature-row h4 {
  font-size: 1.35rem;
}

.feature-row p {
  color: var(--slate);
}

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

@media (min-width: 860px) {
  .contact {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: stretch;
  }
}

.contact-panel {
  background: var(--ink);
  color: var(--white);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  background-image:
    linear-gradient(145deg, rgba(7, 19, 31, 0.88), rgba(20, 50, 74, 0.75)),
    url("../img/office.jpg");
  background-size: cover;
  background-position: center;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.contact-panel h2 {
  margin-bottom: 0.8rem;
}

.contact-panel p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  max-width: 28rem;
}

.contact-details {
  background: var(--white);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  border: 1px solid var(--line);
}

.contact-details h3 {
  margin-bottom: 1.2rem;
}

.contact-line {
  display: grid;
  gap: 0.2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-line:last-of-type {
  margin-bottom: 1.4rem;
}

.contact-line span {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
}

.contact-line a,
.contact-line strong {
  font-size: 1.15rem;
  font-weight: 600;
}

.contact-line a:hover {
  color: var(--gold-deep);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  }
}

.footer-brand .brand-mark {
  color: var(--white);
  margin-bottom: 0.7rem;
}

.footer-brand p {
  max-width: 22rem;
  font-size: 0.95rem;
}

.site-footer h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-links a:hover {
  color: var(--gold);
}

.newsletter {
  display: grid;
  gap: 0.65rem;
}

.newsletter input {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line-light);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  outline: none;
}

.newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.newsletter input:focus {
  border-color: var(--gold);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-light);
  font-size: 0.85rem;
}

.footer-bottom a:hover {
  color: var(--gold);
}

/* Cookie */
.cookie {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 520px;
  margin-inline: auto;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.2rem;
  display: none;
  gap: 0.9rem;
  align-items: flex-start;
}

.cookie.is-visible {
  display: grid;
}

.cookie p {
  font-size: 0.9rem;
  color: var(--slate);
}

.cookie-actions {
  display: flex;
  gap: 0.6rem;
}

.cookie .btn {
  padding: 0.65rem 1rem;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* Legal page helpers */
.page-hero {
  padding: calc(var(--header-h) + 4rem) 0 3rem;
  background:
    linear-gradient(180deg, rgba(7, 19, 31, 0.88), rgba(7, 19, 31, 0.72)),
    url("../img/dark-bg.jpg") center / cover no-repeat;
  color: var(--white);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.legal-content {
  max-width: 46rem;
}

.legal-content h2 {
  font-size: 1.7rem;
  margin: 2rem 0 0.7rem;
}

.legal-content p,
.legal-content li {
  color: var(--slate);
  margin-bottom: 0.8rem;
}

.legal-content ul {
  padding-left: 1.2rem;
}

/* Header on light pages when scrolled from top of legal */
.site-header.force-solid {
  background: rgba(7, 19, 31, 0.92);
  backdrop-filter: blur(12px);
}
