/* ==========================================================================
   EMARH — Studio za enterijer i arhitekturu
   Stylesheet (refined)
   --------------------------------------------------------------------------
   1.  Design tokens (CSS variables)
   2.  Reset & base
   3.  Typography & helpers
   4.  Layout (container, section, section-head)
   5.  Buttons
   6.  Header / navigation
   7.  Hero & page hero
   8.  Feature columns (Zašto EMARH)
   9.  Project cards & portfolio
   10. Process (homepage steps + proces-rada timeline)
   11. Services & pricing
   12. About page
   13. Contact page & form
   14. Final CTA
   15. Footer
   16. Scroll-reveal utilities
   17. Responsive
   ========================================================================== */

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
  /* Colors — from the EMARH logo: warm ivory, charcoal, muted gold */
  --color-bg:          #f6f3ee; /* warm ivory background */
  --color-bg-alt:      #efe9e1; /* deeper section background */
  --color-surface:     #fffdfa; /* cards / surfaces (warm white) */
  --color-dark:        #1c1a17; /* dark sections / footer */
  --color-text:        #1c1a17; /* charcoal text */
  --color-text-soft:   #5d564d; /* muted body text */
  --color-text-mute:   #8a8278; /* faint meta text */
  --color-accent:      #ab8b5d; /* muted beige / gold accent */
  --color-accent-dark: #8a6f48; /* darker gold (hover) */
  --color-accent-soft: rgba(171, 139, 93, 0.12);
  --color-line:        #ddd5c9; /* soft gray-beige border */
  --color-line-strong: #cabfac; /* slightly stronger border */
  --color-line-dark:   rgba(255, 255, 255, 0.12); /* borders on dark bg */

  /* Typography */
  --font-serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans:  "Jost", "Helvetica Neue", Arial, sans-serif;

  --fs-display: clamp(2.9rem, 6.4vw, 5.4rem);  /* hero */
  --fs-h1:      clamp(2.3rem, 4.6vw, 3.7rem);
  --fs-h2:      clamp(1.95rem, 3.6vw, 3rem);
  --fs-h3:      clamp(1.3rem, 2vw, 1.65rem);
  --fs-lead:    clamp(1.1rem, 1.55vw, 1.32rem);
  --fs-body:    clamp(1rem, 1.04vw, 1.075rem);
  --fs-small:   0.85rem;
  --fs-eyebrow: 0.76rem;

  --lh-tight:   1.12;
  --lh-snug:    1.32;
  --lh-base:    1.75;

  /* Spacing scale */
  --space-2xs: 0.5rem;
  --space-xs:  0.85rem;
  --space-sm:  1.15rem;
  --space-md:  2rem;
  --space-lg:  3.5rem;
  --space-xl:  5.5rem;
  --space-2xl: clamp(5.5rem, 11vw, 9.5rem); /* section rhythm */

  --gutter:    clamp(1.25rem, 5vw, 3.25rem); /* container side padding */

  /* Layout */
  --container:        1280px;
  --container-narrow: 860px;
  --header-h:         88px;
  --radius:           2px;
  --radius-lg:        5px;

  /* Motion & elevation */
  --ease:      cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --dur:       0.45s;
  --dur-slow:  0.8s;
  --shadow-soft: 0 18px 50px -34px rgba(28, 26, 23, 0.45);
  --shadow-card: 0 28px 70px -42px rgba(28, 26, 23, 0.55);
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  font-weight: 300;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

ul { list-style: none; }

button { font: inherit; }

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

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

/* ==========================================================================
   3. Typography & helpers
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: var(--lh-tight);
  letter-spacing: 0.004em;
  color: var(--color-text);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-snug); }

p { color: var(--color-text-soft); }

strong { font-weight: 500; color: var(--color-text); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.85em;
  margin-bottom: var(--space-sm);
}

/* editorial dash before the eyebrow */
.eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background-color: currentColor;
  opacity: 0.65;
}

/* centered headers get a dash on both sides */
.section-head--center .eyebrow::after,
.cta .eyebrow::after {
  content: "";
  width: 30px;
  height: 1px;
  background-color: currentColor;
  opacity: 0.65;
}

.eyebrow--light { color: #e7d8bf; }

.lead {
  font-size: var(--fs-lead);
  color: var(--color-text-soft);
  line-height: 1.6;
  font-weight: 300;
}

/* ==========================================================================
   4. Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--space-2xl); }
.section--tight { padding-block: var(--space-xl); }
.section--alt { background-color: var(--color-bg-alt); }

.section-head {
  max-width: 700px;
  margin-bottom: var(--space-lg);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 { margin-top: var(--space-2xs); }
.section-head p { margin-top: var(--space-sm); max-width: 60ch; }
.section-head--center p { margin-inline: auto; }

/* thin decorative rule */
.rule {
  width: 54px;
  height: 1px;
  background-color: var(--color-accent);
  border: 0;
  margin-top: var(--space-md);
}
.section-head--center .rule { margin-inline: auto; }

.center-actions {
  display: flex;
  justify-content: center;
  margin-top: var(--space-xl);
}

/* visually hidden, but available to screen readers (for section landmarks) */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   5. Buttons
   ========================================================================== */
.btn {
  --btn-fg: var(--color-text);
  --btn-bg: transparent;
  --btn-border: var(--color-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1.05rem 2.4rem;
  border: 1px solid var(--btn-border);
  border-radius: var(--radius);
  background-color: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.btn:hover,
.btn:focus-visible {
  background-color: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
  transform: translateY(-2px);
}

.btn--accent {
  --btn-bg: var(--color-accent);
  --btn-border: var(--color-accent);
  --btn-fg: #fff;
}
.btn--accent:hover,
.btn--accent:focus-visible {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: #fff;
  box-shadow: 0 18px 40px -22px rgba(138, 111, 72, 0.7);
}

.btn--light {
  --btn-border: rgba(255, 255, 255, 0.75);
  --btn-fg: #fff;
}
.btn--light:hover,
.btn--light:focus-visible {
  background-color: #fff;
  color: var(--color-text);
  border-color: #fff;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* ==========================================================================
   6. Header / navigation
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background-color: rgba(246, 243, 238, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              height var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.site-header.is-scrolled {
  height: calc(var(--header-h) - 14px);
  background-color: rgba(246, 243, 238, 0.95);
  border-bottom-color: var(--color-line);
  box-shadow: 0 8px 34px -26px rgba(28, 26, 23, 0.55);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: var(--space-md);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

/* Square emblem logo — kept modest and aligned with the nav */
.nav__logo {
  height: 44px;
  width: auto;
  border-radius: 4px;
  display: block;
  transition: height var(--dur) var(--ease);
}
.site-header.is-scrolled .nav__logo { height: 37px; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 2.5vw, 2.7rem);
}

.nav__link {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--color-text);
  position: relative;
  padding-block: 0.4rem;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-accent);
  transition: width var(--dur) var(--ease);
}

.nav__link:hover,
.nav__link.is-active { color: var(--color-accent); }
.nav__link:hover::after,
.nav__link.is-active::after { width: 100%; }

/* hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 120;
}
.nav__toggle span {
  display: block;
  width: 26px;
  height: 1.5px;
  background-color: var(--color-text);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* mobile menu backdrop (created by JS) */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90; /* below the header (100) so the open drawer stays above it */
  background: rgba(20, 18, 15, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}
.nav-backdrop.is-open { opacity: 1; visibility: visible; }

/* ==========================================================================
   7. Hero & page hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh; /* better fit on mobile; falls back to 100vh */
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background-color: var(--color-bg-alt);
}
.hero > .container { position: relative; z-index: 1; }

/* Homepage hero slideshow — subtle, slow crossfade */
.hero__slideshow { position: absolute; inset: 0; z-index: 0; }
.hero__slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.8s var(--ease);
  will-change: opacity;
}
.hero__slide.is-active { opacity: 1; }
/* readability overlay — above the slides, below the content */
.hero__slideshow::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(20, 18, 15, 0.62) 0%, rgba(20, 18, 15, 0.32) 55%, rgba(20, 18, 15, 0.18) 100%),
    linear-gradient(to top, rgba(20, 18, 15, 0.55), rgba(20, 18, 15, 0) 45%);
}

.hero__inner {
  max-width: 720px;
  padding-top: var(--header-h);
  padding-bottom: var(--space-lg);
}

.hero h1 {
  color: #fff;
  font-size: var(--fs-display);
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.hero__sub {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.1vw, 1.7rem);
  font-style: italic;
  font-weight: 400;
  color: #f1ece3;
  margin-bottom: var(--space-md);
}

.hero p:not(.hero__sub) {
  color: #ece7df;
  max-width: 520px;
  margin-bottom: var(--space-lg);
  font-size: 1.08rem;
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 1.8rem;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}
.scroll-cue::after {
  content: "";
  width: 1px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.55);
  animation: scrollLine 2.2s var(--ease) infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Inner page hero — image banner with overlay + light text.
   The per-page image is set with a DIRECT inline background-image on the
   section (so it resolves relative to the HTML document, not the stylesheet);
   the dark overlay is a ::before layer so image + gradient don't collide. */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + var(--space-xl));
  padding-bottom: var(--space-xl);
  color: #fff;
  background-color: var(--color-bg-alt);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--color-line);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(20, 18, 15, 0.7) 0%, rgba(20, 18, 15, 0.5) 55%, rgba(20, 18, 15, 0.36) 100%);
  pointer-events: none;
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero .eyebrow { margin-bottom: var(--space-sm); color: #e7d8bf; }
.page-hero h1 { margin-bottom: var(--space-md); max-width: 18ch; color: #fff; }
.page-hero p,
.page-hero .lead { max-width: 60ch; color: #ece7df; }

/* ==========================================================================
   8. Feature columns (Zašto EMARH)
   ========================================================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}

.feature {
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-line-strong);
  transition: border-color var(--dur) var(--ease);
}
.feature:hover { border-color: var(--color-accent); }

.feature__num {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  display: block;
  margin-bottom: var(--space-md);
}
.feature h3 { margin-bottom: var(--space-xs); }
.feature p { font-size: 0.98rem; }

/* ==========================================================================
   9. Instagram project gallery
   ========================================================================== */
.instagram-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 2.6vw, 2.6rem);
}

.instagram-project-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.instagram-project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
  border-color: var(--color-line-strong);
}

/* Fixed-height frame: keeps every card identical regardless of post height.
   overflow:hidden crops Instagram's caption / comments / footer area. */
.instagram-embed-frame {
  position: relative;
  width: 100%;
  background-color: var(--color-surface);
}
.instagram-embed-crop {
  --ig-h: 610px;
  height: var(--ig-h);
  overflow: hidden;
  display: flex;
  justify-content: center;   /* center the embed horizontally */
  align-items: flex-start;   /* keep image + header, crop the bottom */
  background-color: var(--color-surface);
}

/* Normalize the iframe Instagram injects in place of the blockquote */
.instagram-embed-crop iframe {
  margin: 0 auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  min-width: 0 !important;
}

/* Clean, on-brand fallback (shown if embed.js is blocked or fails to load).
   Scoped to the blockquote so it never affects the rendered iframe, which
   Instagram also tags with the .instagram-media class. */
.instagram-embed-crop blockquote.instagram-media {
  width: 100% !important;
  min-width: 0 !important;
  height: 100%;
  margin: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: var(--color-bg-alt) !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ig-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-align: center;
  padding: var(--space-md);
}
.ig-fallback__mark {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  letter-spacing: 0.22em;
  color: var(--color-accent);
}
.ig-fallback__text {
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

/* Small elegant link under each embed */
.instagram-project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: auto; /* align links across cards */
  padding: var(--space-sm) var(--space-md);
  border-top: 1px solid var(--color-line);
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.instagram-project-link::after {
  content: "\2197"; /* arrow ↗ */
  color: var(--color-accent);
  transition: transform var(--dur) var(--ease);
}
.instagram-project-link:hover { color: var(--color-accent); background-color: var(--color-bg); }
.instagram-project-link:hover::after { transform: translate(2px, -2px); }

/* ==========================================================================
   10. Process (homepage steps + proces-rada timeline)
   ========================================================================== */
/* Homepage: numbered nodes sitting on a continuous top line */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}
.step {
  position: relative;
  border-top: 1px solid var(--color-line-strong);
  padding-top: 3rem;
}
.step__num {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid var(--color-accent);
  border-radius: 50%;
  background-color: var(--color-bg-alt); /* matches the section--alt background */
  color: var(--color-accent);
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1;
}
.step h3 { margin-bottom: var(--space-xs); }
.step p { font-size: 0.98rem; }

/* proces-rada page: large editorial steps */
.process-list { display: grid; }
.process-item {
  display: grid;
  grid-template-columns: minmax(90px, 0.16fr) 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-block: var(--space-xl);
  border-top: 1px solid var(--color-line);
  align-items: start;
}
.process-item:last-child { border-bottom: 1px solid var(--color-line); }
.process-item__num {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 500;
  color: var(--color-accent);
  line-height: 0.85;
}
.process-item .eyebrow { margin-bottom: var(--space-xs); }
.process-item h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: var(--space-sm); }
.process-item p { max-width: 60ch; }

/* ==========================================================================
   11. Services & pricing
   ========================================================================== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.25rem, 2.2vw, 2rem);
}
.service-card {
  position: relative;
  background-color: var(--color-surface);
  border: 1px solid var(--color-line);
  padding: var(--space-md) var(--space-md) calc(var(--space-md) + 0.5rem);
  height: 100%;
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background-color: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
  border-color: var(--color-line-strong);
}
.service-card:hover::before { transform: scaleX(1); }

.service-card__icon {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: var(--color-accent);
  display: block;
  margin-bottom: var(--space-md);
}
.service-card h3 { margin-bottom: var(--space-xs); }
.service-card p { font-size: 0.95rem; }

/* Detailed service rows (usluge page) */
.service-detail {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: var(--space-lg);
  border-top: 1px solid var(--color-line);
  align-items: start;
}
.service-detail:last-of-type { border-bottom: 1px solid var(--color-line); }
.service-detail__num {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  color: var(--color-accent);
  line-height: 1;
}
.service-detail h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-bottom: var(--space-sm); }
.service-detail p { max-width: 62ch; }
.service-detail p + p { margin-top: var(--space-sm); }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 2.6vw, 2.4rem);
}
.price-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 3vw, 2.75rem);
}
.price-card--full { grid-column: 1 / -1; }
.price-card h3 {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-line);
}
.price-list { display: grid; }
.price-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-md);
  padding-block: var(--space-sm);
  border-bottom: 1px dashed var(--color-line);
}
.price-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.price-name { color: var(--color-text); }
.price-value {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--color-accent-dark);
  white-space: nowrap;
}
.price-note {
  margin-top: var(--space-lg);
  font-size: 0.96rem;
  font-style: italic;
  color: var(--color-text-soft);
  border-left: 2px solid var(--color-accent);
  padding-left: var(--space-sm);
  max-width: 70ch;
}

/* ==========================================================================
   12. About page
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: start;
}
.about-grid__media {
  position: sticky;
  top: calc(var(--header-h) + var(--space-md));
}
.about-grid__media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
}
.about-grid__body > p { margin-bottom: var(--space-md); }
.about-grid__body > p:last-of-type { margin-bottom: 0; }

.tool-label {
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: block;
  margin: var(--space-lg) 0 var(--space-sm);
}
.tool-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.tool-list li {
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  letter-spacing: 0.05em;
  padding: 0.45rem 1rem;
  border: 1px solid var(--color-line-strong);
  border-radius: 100px;
  color: var(--color-text);
  background-color: var(--color-surface);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.tool-list li:hover { border-color: var(--color-accent); color: var(--color-accent-dark); }

.edu-block {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  background-color: var(--color-bg-alt);
  border-left: 2px solid var(--color-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.edu-block h3 { font-size: var(--fs-h3); margin-bottom: 0.3rem; }
.edu-block p { margin: 0; }

/* ==========================================================================
   13. Contact page & form
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.contact-info h2 { margin-bottom: var(--space-sm); }
.contact-info > p { margin-bottom: var(--space-lg); color: var(--color-text-soft); }

.contact-detail { margin-bottom: var(--space-md); }
.contact-detail__label {
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: block;
  margin-bottom: 0.35rem;
}
.contact-detail a { color: var(--color-text); }
.contact-detail a:hover { color: var(--color-accent); }

/* Form card */
.form-wrap {
  background-color: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  box-shadow: var(--shadow-soft);
}
.form { display: grid; gap: var(--space-md); }
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}
.form__field { display: flex; flex-direction: column; }
.form__field label {
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 0.55rem;
}
.form__field input,
.form__field textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--color-text);
  background-color: var(--color-bg);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius);
  padding: 0.95rem 1.05rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.form__field input::placeholder,
.form__field textarea::placeholder { color: var(--color-text-mute); }
.form__field input:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background-color: var(--color-surface);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}
.form__field textarea { resize: vertical; min-height: 150px; }

/* invalid field */
.form__field.has-error input,
.form__field.has-error textarea { border-color: #b4503b; }

/* honeypot — hidden from real users */
.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.field-error {
  color: #9d4230;
  font-size: var(--fs-small);
  margin-top: 0.45rem;
  min-height: 1em;
}
.field-error:empty { display: none; }

/* status message area */
.form__status { display: grid; }
.form__status:empty { display: none; }
.form__alert {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius);
  font-size: 0.96rem;
  margin-bottom: var(--space-sm);
}
.form__alert--ok  { background-color: #e9efe6; border: 1px solid #b7cbb0; color: #34502b; }
.form__alert--err { background-color: #f4e6e2; border: 1px solid #d8b2aa; color: #8a3a2c; }
.form__alert--info{ background-color: #f1ece2; border: 1px solid var(--color-line-strong); color: #6a5e49; }

.form__note {
  font-size: var(--fs-small);
  color: var(--color-text-mute);
  margin-top: 0.25rem;
}

/* ==========================================================================
   14. Final CTA
   ========================================================================== */
.cta {
  position: relative;
  color: #fff;
  text-align: center;
  padding-block: var(--space-2xl);
  /* per-page image set via DIRECT inline background-image; overlay is ::before */
  background-color: var(--color-bg-alt);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(20, 18, 15, 0.58), rgba(20, 18, 15, 0.58));
  pointer-events: none;
}
.cta > .container { position: relative; z-index: 1; }
.cta .eyebrow { justify-content: center; }
.cta h2 { color: #fff; max-width: 18ch; margin-inline: auto; margin-bottom: var(--space-md); }
.cta p { color: #ece7df; max-width: 56ch; margin-inline: auto; margin-bottom: var(--space-lg); }
.cta .btn-group { justify-content: center; }

/* ==========================================================================
   15. Footer
   ========================================================================== */
.site-footer {
  background-color: var(--color-dark);
  color: #cfc8bd;
  padding-block: var(--space-xl) var(--space-md);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-line-dark);
}
.footer-brand__logo {
  width: 84px;
  height: auto;
  margin-bottom: var(--space-md);
  /* white-lined logo (emarh_logo_2.png) reads cleanly on the dark footer */
}
.footer-brand p { color: #9b938a; max-width: 320px; font-size: 0.95rem; }

.footer-col h3 {
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
  font-weight: 400;
}
.footer-col ul { display: grid; gap: 0.7rem; }
.footer-col a,
.footer-col li { color: #cfc8bd; font-size: 0.95rem; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-top: var(--space-md);
  font-size: var(--fs-small);
  color: #8c847b;
}
.footer-bottom a:hover { color: #fff; }

/* footer social icons */
.footer-social {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: var(--space-md);
}
.footer-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-line-dark);
  border-radius: 50%;
  color: #cfc8bd;
  transition: color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              background-color var(--dur) var(--ease);
}
.footer-social__link svg { width: 19px; height: 19px; display: block; }
a.footer-social__link:hover,
a.footer-social__link:focus-visible {
  color: #fff;
  border-color: var(--color-accent);
  background-color: rgba(171, 139, 93, 0.16);
}
.footer-social__link--soon { opacity: 0.4; cursor: not-allowed; }
.footer-social__soon {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-mute);
}

/* footer credit */
.footer-credit { color: #8c847b; }
.footer-credit a {
  color: #cfc8bd;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.footer-credit a:hover { color: #fff; border-bottom-color: var(--color-accent); }

/* ==========================================================================
   Header social icon (Instagram)
   ========================================================================== */
.nav__social { display: inline-flex; align-items: center; }
.nav__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--color-text);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.nav__social a:hover,
.nav__social a:focus-visible {
  color: var(--color-accent);
  background-color: var(--color-accent-soft);
}
.nav__social svg { width: 20px; height: 20px; display: block; }

/* ==========================================================================
   Preloader
   ========================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg);
  perspective: 800px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s var(--ease), visibility 0s linear 0.6s;
}
.preloader.preloader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader__logo {
  width: clamp(74px, 12vw, 108px);
  height: auto;
  border-radius: 10px;
  animation: preloaderPulse 2.6s ease-in-out infinite;
}
@keyframes preloaderPulse {
  0%   { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(180deg) scale(1.12); }
  100% { transform: rotate(360deg) scale(1); }
}

/* ==========================================================================
   16. Scroll-reveal utilities
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal][style*="--d"] { transition-delay: var(--d); }

/* ==========================================================================
   17. Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .feature-grid,
  .service-grid,
  .steps { grid-template-columns: repeat(2, 1fr); }
  .instagram-gallery { grid-template-columns: repeat(2, 1fr); }
  .instagram-embed-crop { --ig-h: 540px; }

  /* keep the step nodes from overlapping when wrapping to 2 cols */
  .steps { row-gap: 3.5rem; }
}

@media (max-width: 880px) {
  :root { --header-h: 70px; }

  .nav__menu {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    bottom: auto;
    width: min(82vw, 360px);
    height: 100vh;
    height: 100dvh;            /* full viewport height — not the header's height */
    z-index: 110;              /* above the backdrop (90), below the toggle/X (120) */
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start; /* start from the top so "Početna" is never cut off */
    gap: var(--space-md);
    /* clear the fixed header/X at the top; breathing room at the bottom */
    padding: calc(var(--header-h) + var(--space-md)) var(--gutter) var(--space-lg);
    overflow-y: auto;          /* scroll the menu on short screens */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background-color: var(--color-bg);
    border-left: 1px solid var(--color-line);
    transform: translateX(100%);
    transition: transform var(--dur) var(--ease);
    box-shadow: -24px 0 70px -36px rgba(0, 0, 0, 0.45);
  }
  .nav__menu.is-open { transform: translateX(0); }
  .nav__link { font-size: 1.05rem; letter-spacing: 0.12em; }
  /* Instagram item: clearly separated at the bottom of the menu list */
  .nav__menu .nav__social { margin-top: var(--space-2xs); }
  .nav__toggle { display: flex; }
  body.menu-open { overflow: hidden; }

  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .about-grid__media { position: static; max-width: 460px; }
  .contact-info { order: -1; }
}

@media (max-width: 680px) {
  .feature-grid,
  .service-grid,
  .steps,
  .instagram-gallery,
  .pricing-grid,
  .form__row { grid-template-columns: 1fr; }

  .steps { row-gap: 3rem; }
  .instagram-embed-crop { --ig-h: 610px; }

  .process-item,
  .service-detail { grid-template-columns: 1fr; gap: var(--space-sm); }
  .process-item { padding-block: var(--space-lg); }
  .process-item__num { font-size: 2.6rem; }

  .footer-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .footer-brand__logo { width: 92px; }

  /* full-width buttons only where it reads well: hero & CTA */
  .hero .btn-group,
  .cta .btn-group { width: 100%; flex-direction: column; }
  .hero .btn,
  .cta .btn { width: 100%; }
}

/* ==========================================================================
   Reduced motion — show everything, drop transforms/animations
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .scroll-cue::after { animation: none; }
  /* preloader: simple fade only — no spin/zoom */
  .preloader__logo { animation: none !important; transform: none !important; }
  .hero__slide { transition: none !important; }
}
