/* ORVIX — quiet-luxury editorial, typographic.
   Faces: Fraunces (display) + Archivo (body/UI). One accent, warm ground. */

:root {
  --paper: #F7F3EC;
  --paper-tint: #EFE9DD;
  --ink: #1C1712;
  --ink-soft: #5C544A;
  --dark: #171310;
  --light-on-dark: #F1EAE0;
  --muted-on-dark: #C9BFB1;
  --accent: #9A4B2F;
  --accent-light: #D08A63;
  --hairline: rgba(28, 23, 18, 0.16);
  --hairline-dark: rgba(241, 234, 224, 0.16);

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.8125rem;
  --step-0: 1.0625rem;
  --step-1: clamp(1.15rem, 1.1rem + 0.35vw, 1.35rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3: clamp(1.9rem, 1.5rem + 2vw, 3rem);
  --step-4: clamp(2.5rem, 1.9rem + 3vw, 4.2rem);
  --step-hero: clamp(3rem, 1.4rem + 8vw, 6.6rem);

  --space-section: clamp(5.5rem, 4rem + 8vw, 10rem);
  --gutter: clamp(1.375rem, 4vw, 3rem);
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, blockquote, figure, p, ol { margin: 0; }

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

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

::selection { background: var(--accent); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 1px;
}

.section-dark :focus-visible { outline-color: var(--accent-light); }

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--gutter);
  z-index: 100;
  padding: 0.7rem 1.2rem;
  background: var(--ink);
  color: var(--paper);
  font-size: var(--step--1);
}
.skip-link:focus-visible { top: 1rem; }

.container {
  max-width: 78rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Header ---------- */

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  padding-top: clamp(1.25rem, 3vw, 2.25rem);
}

.header-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.45rem;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  gap: clamp(1.1rem, 2.5vw, 2.25rem);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.site-nav a {
  padding-block: 0.6rem;
  background-position: 0 calc(100% - 0.45rem);
}

.site-nav a,
.link-quiet,
.legal a {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.3s ease, color 0.3s ease;
  padding-bottom: 2px;
}

.site-nav a:hover,
.link-quiet:hover,
.legal a:hover {
  background-size: 100% 1px;
  color: var(--accent);
}

.section-dark .site-nav a:hover { color: var(--accent-light); }

/* ---------- Hero ---------- */

.hero {
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  padding-top: clamp(7rem, 16vh, 10rem);
  padding-bottom: clamp(2rem, 5vh, 3.5rem);
}

.hero > .container { width: 100%; }

.eyebrow {
  font-size: var(--step--1);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.section-dark .eyebrow { color: var(--accent-light); }

.hero .eyebrow { margin-bottom: clamp(2rem, 6vh, 4rem); }

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-hero);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 12ch;
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
}

.hero-foot {
  margin-top: clamp(2.25rem, 5vh, 3.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.hero-sub {
  max-width: 42ch;
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-soft);
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.btn {
  display: inline-block;
  padding: 0.95rem 1.9rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-radius: 2px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.link-quiet {
  font-size: 0.95rem;
  background-size: 100% 1px;
  color: var(--ink-soft);
}
.link-quiet:hover { background-size: 0% 1px; }

.hero-meta {
  margin-top: clamp(2.5rem, 6vh, 4rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--hairline);
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

/* ---------- Sections ---------- */

.section { padding-block: var(--space-section); }

.section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
}

@media (min-width: 900px) {
  .section-grid {
    grid-template-columns: 15rem 1fr;
    gap: 4rem;
  }
}

.section-dark {
  background: var(--dark);
  color: var(--light-on-dark);
}

/* ---------- Steps (Kako radimo) ---------- */

.steps {
  list-style: none;
  padding: 0;
}

.nowrap { white-space: nowrap; }

.br-desktop { display: none; }
@media (min-width: 760px) {
  .br-desktop { display: inline; }
}

.step {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding-block: clamp(2rem, 4vw, 3.25rem);
  border-top: 1px solid var(--hairline-dark);
}

.step:last-child { border-bottom: 1px solid var(--hairline-dark); }

@media (min-width: 760px) {
  .step {
    grid-template-columns: 5.5rem 1fr 1.35fr;
    gap: 2.5rem;
    align-items: start;
  }
}

.step-num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.3rem + 1.5vw, 2.4rem);
  line-height: 1.1;
  color: var(--accent-light);
}

.step-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-2);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.step p {
  color: var(--muted-on-dark);
  max-width: 46ch;
  line-height: 1.65;
}

/* ---------- Pull-quote ---------- */

.quote-section { padding-block: clamp(6rem, 5rem + 6vw, 9.5rem); }

.pull-quote {
  margin-left: clamp(0rem, 12vw - 4rem, 15rem);
}

.pull-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.1rem, 1.6rem + 2.8vw, 3.8rem);
  line-height: 1.16;
  letter-spacing: -0.015em;
  max-width: 19ch;
}

.pull-quote::before {
  content: "";
  display: block;
  width: 3.5rem;
  height: 1px;
  background: var(--accent);
  margin-bottom: 2rem;
}

/* ---------- Cene ---------- */

.prices {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--hairline);
}

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

.price { padding-block: clamp(2.25rem, 4vw, 3.5rem); }

@media (min-width: 760px) {
  .price:first-child { padding-right: clamp(2rem, 5vw, 4.5rem); }
  .price:last-child {
    padding-left: clamp(2rem, 5vw, 4.5rem);
    border-left: 1px solid var(--hairline);
  }
}

@media (max-width: 759.98px) {
  .price + .price { border-top: 1px solid var(--hairline); }
}

.price-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-2);
  letter-spacing: -0.01em;
}

.price-amount {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-4);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-top: 1.5rem;
}

.price-term {
  margin-top: 0.6rem;
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
}

.price-desc {
  margin-top: 1.75rem;
  color: var(--ink-soft);
  max-width: 44ch;
  line-height: 1.65;
}

/* ---------- Za koga radimo (band) ---------- */

.band { background: var(--paper-tint); }

.band-line {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-2);
  line-height: 1.35;
  letter-spacing: -0.01em;
  max-width: 34ch;
}

/* ---------- Radovi ---------- */

.works-intro {
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

.works {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
}

.works .work {
  flex: 0 0 72%;
  scroll-snap-align: start;
}

@media (min-width: 640px) {
  .works {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    overflow: visible;
    padding-bottom: 0;
  }
  .works .work { flex: none; }
}

.work {
  border: 1px solid var(--hairline);
  border-radius: 2px;
  overflow: hidden;
}

.work img { aspect-ratio: 16 / 10; object-fit: cover; }

/* ---------- Kontakt + footer ---------- */

.section-contact { padding-bottom: 0; }

.contact-rows { border-top: 1px solid var(--hairline-dark); }

.contact-row { padding-block: clamp(2rem, 4vw, 3rem); }

.contact-row + .contact-row { border-top: 1px solid var(--hairline-dark); }

.contact-label {
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted-on-dark);
  margin-bottom: 1rem;
}

.contact-link {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-4);
  line-height: 1.1;
  letter-spacing: -0.02em;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 2px;
  background-position: 0 96%;
  background-repeat: no-repeat;
  transition: background-size 0.4s ease, color 0.3s ease;
  overflow-wrap: anywhere;
}

.contact-link:hover {
  background-size: 100% 2px;
  color: var(--accent-light);
}

.site-footer {
  margin-top: clamp(4rem, 8vw, 6rem);
  border-top: 1px solid var(--hairline-dark);
  padding-block: 2rem 2.25rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2.5rem;
}

.legal, .copyright {
  font-size: var(--step--1);
  line-height: 1.7;
  color: var(--muted-on-dark);
}

.legal { max-width: 80ch; }

.legal a { background-size: 100% 1px; }
.legal a:hover { color: var(--accent-light); }

/* ---------- Reveals ---------- */

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Reduced motion: everything collapses ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  html.js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .btn:hover { transform: none; }
}
