/* OPG Jagušt — zajednički stilovi */

:root {
  --paper: #f7f1e6;
  --paper-2: #efe4cf;
  --card: #fffcf6;
  --ink: #2a2118;
  --ink-soft: #5c5044;
  --line: #ddd0b8;
  --russet: #9a3d1c;
  --russet-dark: #7b2f14;
  --field: #33402a;
  --field-ink: #f3eedf;
  --field-soft: #c9cdb8;
  --yolk: #e8ae2e;
  --yolk-hover: #f2be48;
  --error: #a12a1a;

  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 1px 2px rgb(42 33 24 / 0.06), 0 10px 28px rgb(42 33 24 / 0.1);

  --font-head: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1160px;

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.1rem);
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--russet);
  outline-offset: 3px;
  border-radius: 4px;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
}

/* ---------- Zaglavlje ---------- */

.site-header {
  background: rgb(247 241 230 / 0.94);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 22px;
  height: 28px;
  flex: none;
}

.brand-mark .shell {
  fill: var(--russet);
}

.brand-mark .shine {
  fill: rgb(255 255 255 / 0.28);
}

.brand-small {
  margin-right: 2px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.main-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.main-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.main-nav a:hover {
  background: var(--paper-2);
  color: var(--ink);
}

.main-nav a[aria-current="page"] {
  background: var(--paper-2);
  color: var(--russet-dark);
}

@media (min-width: 720px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    -webkit-backdrop-filter: saturate(1.2) blur(8px);
    backdrop-filter: saturate(1.2) blur(8px);
  }
}

@media (max-width: 719px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 0 12px;
    min-height: 0;
    padding-top: 12px;
  }

  .brand {
    flex: 1;
  }

  .main-nav {
    order: 3;
    width: 100%;
    margin: 12px 0 0;
    padding-block: 4px;
    border-top: 1px solid var(--line);
  }

  .main-nav a {
    flex: 1;
    padding: 12px 6px;
    text-align: center;
  }
}

/* ---------- Gumbi ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.12s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn .icon {
  width: 18px;
  height: 18px;
}

.btn-small {
  min-height: 44px;
  padding: 8px 18px;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--russet);
  color: #fff;
}

.btn-primary:hover {
  background: var(--russet-dark);
}

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

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

.btn-yolk {
  background: var(--yolk);
  color: var(--ink);
}

.btn-yolk:hover {
  background: var(--yolk-hover);
}

.btn-light {
  border-color: rgb(243 238 223 / 0.4);
  color: var(--field-ink);
}

.btn-light:hover {
  border-color: var(--field-ink);
  background: rgb(255 255 255 / 0.06);
}

.btn-ghost .icon-arrow,
.text-link .icon-arrow {
  transition: transform 0.2s ease;
}

.btn-ghost:hover .icon-arrow,
.text-link:hover .icon-arrow {
  transform: translateX(3px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 600;
  color: var(--russet-dark);
  text-decoration: underline;
  text-decoration-color: rgb(154 61 28 / 0.35);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s ease;
}

.text-link:hover {
  text-decoration-color: currentColor;
}

/* ---------- Naslovni dio ---------- */

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-weight: 600;
  color: var(--russet-dark);
}

.kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  flex: none;
  background: var(--yolk);
}

.lead {
  max-width: 36em;
  font-size: clamp(1.125rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
}

.hero {
  padding-block: clamp(48px, 8vw, 104px) clamp(72px, 9vw, 120px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero-copy h1 {
  max-width: 12ch;
}

.hero-media {
  position: relative;
  padding-bottom: 56px;
}

.print {
  margin: 0;
  padding: 10px;
  border-radius: 6px;
  background: #fff;
  box-shadow: var(--shadow);
}

.print img {
  width: 100%;
  border-radius: 3px;
  outline: 1px solid rgb(0 0 0 / 0.06);
  outline-offset: -1px;
}

.print-a {
  width: 82%;
  transform: rotate(-2deg);
}

.print-b {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 36%;
  transform: rotate(3deg);
}

@media (max-width: 899px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    width: 100%;
    max-width: 540px;
  }
}

/* ---------- Brojke ---------- */

.facts {
  border-block: 1px solid var(--line);
  background: var(--paper-2);
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 30px 28px;
}

.fact:first-child {
  padding-left: 0;
}

.fact + .fact {
  border-left: 1px solid var(--line);
}

.fact-num {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--russet-dark);
  font-variant-numeric: lining-nums;
}

.fact-label {
  color: var(--ink-soft);
}

@media (max-width: 719px) {
  .facts-grid {
    grid-template-columns: 1fr;
  }

  .fact {
    padding: 20px 0;
  }

  .fact + .fact {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

/* ---------- Sekcije ---------- */

.section {
  padding-block: clamp(64px, 9vw, 120px);
}

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

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 64px;
  align-items: end;
  margin-bottom: 48px;
}

.section-head h2 {
  margin: 0;
}

.section-head p {
  max-width: 34em;
  margin: 0;
  color: var(--ink-soft);
}

@media (max-width: 799px) {
  .section-head {
    grid-template-columns: 1fr;
    margin-bottom: 32px;
  }
}

/* ---------- Kartice ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.card h3 {
  margin-bottom: 0.4em;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
}

.icon-badge {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--russet);
}

.icon-badge .icon {
  width: 24px;
  height: 24px;
}

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

/* ---------- Koraci ---------- */

.steps-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px clamp(40px, 6vw, 96px);
  align-items: start;
}

.steps-intro p {
  max-width: 26em;
  color: var(--ink-soft);
}

.steps {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 4px 16px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  counter-increment: step;
}

.steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.steps li::before {
  content: counter(step);
  grid-row: span 2;
  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1;
  color: var(--russet);
}

.steps h3 {
  margin: 0;
}

.steps p {
  margin: 0;
  color: var(--ink-soft);
}

@media (max-width: 799px) {
  .steps-wrap {
    grid-template-columns: 1fr;
  }
}

/* ---------- Priča ---------- */

.story {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 7vw, 104px);
  align-items: center;
}

.story-photo {
  justify-self: center;
  width: min(100%, 300px);
  transform: rotate(-1.5deg);
}

.story-copy p {
  max-width: 34em;
  color: var(--ink-soft);
}

.story-copy .big {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink);
}

@media (max-width: 799px) {
  .story {
    grid-template-columns: 1fr;
  }

  .story-photo {
    order: 2;
    width: min(70%, 260px);
  }
}

/* ---------- Poziv na akciju ---------- */

.cta-band {
  padding-block: clamp(56px, 8vw, 96px);
  background: var(--field);
  color: var(--field-ink);
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 48px;
}

.cta-band h2 {
  margin-bottom: 0.3em;
  color: var(--field-ink);
}

.cta-band p {
  max-width: 30em;
  margin: 0;
  color: var(--field-soft);
}

.cta-band .actions {
  margin-top: 24px;
}

.phone-number {
  font-variant-numeric: tabular-nums;
}

/* ---------- Podnožje ---------- */

.site-footer {
  padding-block: 64px 28px;
  background: var(--ink);
  color: #d8cdbb;
  font-size: 0.98rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}

.site-footer .brand {
  color: var(--paper);
  margin-bottom: 16px;
}

.site-footer .brand-small {
  color: #b8ab97;
}

.footer-about {
  max-width: 24em;
}

.footer-h {
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--paper);
}

.footer-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-list a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  text-decoration: none;
}

.footer-list a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgb(255 255 255 / 0.12);
  font-size: 0.9rem;
  color: #a89c8a;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 799px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

/* ---------- Podstranice ---------- */

.page-hero {
  padding-block: clamp(48px, 7vw, 96px) clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 16ch;
}

.page-hero .lead {
  margin: 0;
}

/* O nama */

.about-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(40px, 7vw, 104px);
  align-items: start;
}

.prose p {
  max-width: 36em;
  font-size: 1.125rem;
  color: var(--ink-soft);
}

.prose .big {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2.2vw, 1.55rem);
  line-height: 1.45;
  color: var(--ink);
}

.about-grid {
  align-items: center;
}

.about-photos {
  position: relative;
  padding-bottom: 150px;
}

.about-photos .print:first-child {
  width: 86%;
  transform: rotate(1.5deg);
}

.about-photos .print:last-child {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 38%;
  transform: rotate(-2.5deg);
}

.print figcaption {
  padding: 10px 4px 2px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

@media (max-width: 899px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-photos {
    max-width: 480px;
  }
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line);
}

.timeline li {
  position: relative;
  padding-top: 48px;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 22px;
  height: 28px;
  border: 4px solid var(--paper-2);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: var(--russet);
}

.timeline-year {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--russet-dark);
}

.timeline h3 {
  margin-bottom: 0.3em;
}

.timeline p {
  margin: 0;
  max-width: 24em;
  color: var(--ink-soft);
}

@media (max-width: 799px) {
  .timeline {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-left: 40px;
  }

  .timeline::before {
    top: 0;
    bottom: 0;
    left: 10px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .timeline li {
    padding-top: 0;
  }

  .timeline li::before {
    left: -40px;
  }
}

/* Kontakt */

.contact-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

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

.contact-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.contact-item:last-child {
  border-bottom: 1px solid var(--line);
}

.contact-item .icon-badge {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
}

.contact-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.contact-value {
  display: block;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
}

.contact-value a {
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.contact-value a:hover {
  color: var(--russet-dark);
  text-decoration-color: currentColor;
}

.contact-note {
  display: block;
  margin-top: 2px;
  color: var(--ink-soft);
}

.contact-note a {
  font-weight: 600;
  color: var(--russet-dark);
  text-underline-offset: 3px;
}

.form-card {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.form-card h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.form-card > p {
  color: var(--ink-soft);
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 20px;
}

.field label {
  font-weight: 600;
}

.field .optional {
  font-weight: 400;
  color: var(--ink-soft);
}

.field input,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:hover,
.field textarea:hover {
  border-color: #c9b99c;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--russet);
  box-shadow: 0 0 0 3px rgb(154 61 28 / 0.18);
}

.field-error {
  display: none;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--error);
}

.field.has-error input,
.field.has-error textarea {
  border-color: var(--error);
}

.field.has-error .field-error {
  display: block;
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.form-note {
  flex: 1 1 220px;
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.form-status {
  margin: 16px 0 0;
  font-weight: 600;
  color: var(--field);
}

.form-status:empty {
  display: none;
}

@media (max-width: 899px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.map-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 24px;
}

.map-head h2 {
  margin: 0;
}

.map {
  overflow: hidden;
  aspect-ratio: 16 / 7;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-2);
}

.map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 719px) {
  .map {
    aspect-ratio: 4 / 3;
  }
}

/* ---------- Animacija pri pomicanju ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

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