/* Atelier — tokeni templata, scopovani na .sec-atelier-hero. */

/* ============================================================
   DESIGN TOKENS — Template 2 "Atelier"
   Niche variant: C — Cosmetic / Orthodontic (boutique)
   Shape language: ARCHES + hairlines (T1 uses organic blobs).
   Change ONLY this file to re-skin the whole template.
   ============================================================ */

.sec-atelier-hero {
  /* ---------- Color ---------- */
  --c-bg:            #FAF8F5;   /* warm ivory */
  --c-bg-alt:        #F5F3F0;
  --c-surface:       #EFEBE4;
  --c-surface-warm:  #F2EDE4;
  --c-white:         #FFFFFF;

  --c-ink:           #1A1A1A;   /* near-black — premium contrast */
  --c-ink-soft:      #2B2B2B;
  --c-ink-70:        rgba(26, 26, 26, 0.70);
  --c-ink-12:        rgba(26, 26, 26, 0.12);
  --c-ink-06:        rgba(26, 26, 26, 0.06);

  --c-gold:          #C9A876;   /* rules, icons, fills — NEVER behind text */
  --c-gold-dk:       #8A6A2F;   /* AA-safe gold for text on ivory (5.2:1) */
  --c-gold-soft:     #EFE4CE;

  --c-text:          #2B2B2B;
  --c-text-muted:    #6B655C;   /* 5.3:1 on --c-bg */
  --c-text-invert:   #F7F5F1;

  --c-line:          rgba(26, 26, 26, 0.13);
  --c-line-strong:   rgba(26, 26, 26, 0.24);
  --c-line-invert:   rgba(247, 245, 241, 0.20);

  --c-whatsapp:      #128C7E;
  --c-whatsapp-dk:   #0E6F63;
  --c-star:          #C9A876;

  /* ---------- Elevation — boutique = shallow, wide, warm ---------- */
  --sh-xs: 0 1px 2px rgba(26, 22, 16, 0.05);
  --sh-sm: 0 4px 16px -6px rgba(26, 22, 16, 0.10);
  --sh-md: 0 12px 32px -12px rgba(26, 22, 16, 0.16);
  --sh-lg: 0 24px 60px -20px rgba(26, 22, 16, 0.22);
  --sh-xl: 0 40px 90px -28px rgba(26, 22, 16, 0.30);

  /* ---------- Radius — the ARCH is the motif ---------- */
  --r-xs:   6px;
  --r-sm:  10px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-pill: 999px;
  --r-circle: 50%;
  --r-arch: 50vw 50vw 0 0;       /* full top arch — decorative outlines only */

  /* Every photograph on the page uses this and nothing else. The
     brief asks for 10–15px on image corners, so the value is a
     token rather than a number typed into six stylesheets: change
     it here and every picture follows. The arch motif survives in
     the drawn outlines (hero, parallax, CTA) and the service icon
     tiles, which are graphics rather than photographs. */
  --r-img: 12px;

  /* ---------- Spacing — 8px base, boutique leans roomier ---------- */
  --sp-1:   4px;
  --sp-2:   8px;
  --sp-3:  16px;
  --sp-4:  24px;
  --sp-5:  32px;
  --sp-6:  48px;
  --sp-7:  64px;
  --sp-8:  96px;
  --sp-9: 128px;

  --section-y: clamp(72px, 10vw, 152px);
  --gutter:    clamp(20px, 5vw, 56px);
  --maxw:      1240px;
  --maxw-narrow: 860px;

  /* ---------- Typography — serif display + neutral body ---------- */
  --ff-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --ff-body:    "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --fs-xs:   0.8125rem;
  --fs-sm:   0.9375rem;
  --fs-base: 1rem;
  --fs-md:   1.0625rem;
  --fs-lg:   clamp(1.125rem, 0.45vw + 1.04rem, 1.3125rem);
  --fs-h4:   clamp(1.25rem, 0.7vw + 1.08rem, 1.5rem);
  --fs-h3:   clamp(1.5rem, 1.1vw + 1.22rem, 2rem);
  --fs-h2:   clamp(2.125rem, 2.8vw + 1.35rem, 3.5rem);
  --fs-h1:   clamp(2.75rem, 5.2vw + 1.1rem, 5.25rem);

  --lh-tight: 1.06;
  --lh-snug:  1.2;
  --lh-body:  1.68;

  --ls-tight: -0.025em;
  --ls-label:  0.2em;

  /* ---------- Motion ---------- */
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-fast: 180ms;
  --t-base: 300ms;
  --t-slow: 720ms;

  /* ---------- Layout ---------- */
  --header-h: 84px;
  --z-header: 100;
  --z-mobilebar: 90;
  --z-menu: 95;
}

@media (max-width: 760px) {
  .sec-atelier-hero { --header-h: 68px; }
}

/* Atelier — reset i zajedničke primitive (base.css). */

/* ============================================================
   BASE — Template 2 "Atelier"
   reset · editorial typography · hairline rules · arch device
   ============================================================ */

.sec-atelier-hero *, .sec-atelier-hero *::before, .sec-atelier-hero *::after { box-sizing: border-box; }

.sec-atelier-hero {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

.sec-atelier-hero {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--ff-body);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.sec-atelier-hero img, .sec-atelier-hero svg, .sec-atelier-hero video { display: block; max-width: 100%; }
.sec-atelier-hero img, .sec-atelier-hero video { height: auto; }

.sec-atelier-hero h1, .sec-atelier-hero h2, .sec-atelier-hero h3, .sec-atelier-hero h4 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-optical-sizing: auto;
  color: var(--c-ink);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-snug);
  margin: 0;
  text-wrap: balance;
}
.sec-atelier-hero h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
.sec-atelier-hero h2 { font-size: var(--fs-h2); line-height: 1.1; }
.sec-atelier-hero h3 { font-size: var(--fs-h3); }
.sec-atelier-hero h4 { font-size: var(--fs-h4); }

.sec-atelier-hero p { margin: 0; text-wrap: pretty; }
.sec-atelier-hero ul, .sec-atelier-hero ol { margin: 0; padding: 0; list-style: none; }

.sec-atelier-hero a { color: inherit; text-decoration: none; transition: color var(--t-fast) var(--ease); }
.sec-atelier-hero button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }

.sec-atelier-hero :focus-visible { outline: 2px solid var(--c-ink); outline-offset: 4px; border-radius: 2px; }
.sec-atelier-hero :focus:not(:focus-visible) { outline: none; }
.sec-atelier-hero ::selection { background: var(--c-gold); color: var(--c-ink); }

/* ---------- Layout primitives ---------- */

.sec-atelier-hero .u-container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.sec-atelier-hero .u-narrow { max-width: var(--maxw-narrow); margin-inline: auto; }

.sec-atelier-hero .u-section { position: relative; padding-block: var(--section-y); }

.sec-atelier-hero .u-sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

.sec-atelier-hero .u-skip-link {
  position: absolute; top: 8px; left: 8px; z-index: 999;
  transform: translateY(-180%);
  background: var(--c-ink); color: var(--c-text-invert);
  padding: 12px 22px; border-radius: var(--r-sm);
  font-size: var(--fs-sm); font-weight: 600;
}
.sec-atelier-hero .u-skip-link:focus { transform: translateY(0); }

/* ---------- Editorial labels + hairlines ---------- */

.sec-atelier-hero .u-label {
  display: block;
  font-family: var(--ff-body);
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: var(--ls-label); text-transform: uppercase;
  color: var(--c-gold-dk);
}

/* numbered section marker: "01 / Leistungen" */
.sec-atelier-hero .u-marker {
  display: flex; align-items: center; gap: 14px;
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: var(--ls-label); text-transform: uppercase;
  color: var(--c-gold-dk);
}
.sec-atelier-hero .u-marker::after {
  content: ""; flex: 1; height: 1px;
  background: var(--c-line);
  max-width: 120px;
}

.sec-atelier-hero .u-rule { height: 1px; background: var(--c-line); border: 0; margin: 0; }
.sec-atelier-hero .u-rule--gold { background: linear-gradient(90deg, var(--c-gold), transparent); }

/* Signature device: thin gold arch drawn above a heading */
.sec-atelier-hero .u-archline {
  display: block;
  width: 72px; height: 36px;
  border: 1.5px solid var(--c-gold);
  border-bottom: 0;
  border-radius: 72px 72px 0 0;
}

/* Italic serif emphasis inside a heading */
.sec-atelier-hero .u-em { font-style: italic; font-weight: 300; color: var(--c-gold-dk); }

/* ---------- Buttons ---------- */

.sec-atelier-hero .u-btn {
  --btn-bg: var(--c-ink);
  --btn-fg: var(--c-text-invert);
  --btn-bd: transparent;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px;
  padding: 15px 30px;
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--ff-body);
  font-size: var(--fs-sm); font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  line-height: 1.1;
  cursor: pointer;
  overflow: hidden;
  transition: background-color var(--t-base) var(--ease),
              color var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease),
              transform var(--t-base) var(--ease-out);
}
.sec-atelier-hero .u-btn svg { flex: none; }
.sec-atelier-hero .u-btn:hover { transform: translateY(-2px); }
.sec-atelier-hero .u-btn:active { transform: translateY(0); transition-duration: 60ms; }

.sec-atelier-hero .u-btn--solid:hover { --btn-bg: #000; }
.sec-atelier-hero .u-btn--line { --btn-bg: transparent; --btn-fg: var(--c-ink); --btn-bd: var(--c-line-strong); }
.sec-atelier-hero .u-btn--line:hover { --btn-bg: var(--c-ink); --btn-fg: var(--c-text-invert); --btn-bd: var(--c-ink); }
.sec-atelier-hero .u-btn--ivory { --btn-bg: var(--c-bg); --btn-fg: var(--c-ink); }
.sec-atelier-hero .u-btn--ivory:hover { --btn-bg: var(--c-white); }
.sec-atelier-hero .u-btn--gold { --btn-bg: var(--c-gold); --btn-fg: var(--c-ink); }
.sec-atelier-hero .u-btn--gold:hover { --btn-bg: #BC9860; }
.sec-atelier-hero .u-btn--wa { --btn-bg: var(--c-whatsapp); --btn-fg: #fff; }
.sec-atelier-hero .u-btn--wa:hover { --btn-bg: var(--c-whatsapp-dk); }
.sec-atelier-hero .u-btn--lg { min-height: 62px; padding: 19px 38px; font-size: var(--fs-base); }
.sec-atelier-hero .u-btn--block { width: 100%; }

/* ---------- Scroll reveal ---------- */

/* The hidden start state is scoped to .has-js (set by app.js). If the
   script never runs, content renders normally instead of leaving a hole. */
.sec-atelier-hero.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 820ms var(--ease-out), transform 820ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.sec-atelier-hero.has-js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .sec-atelier-hero { scroll-behavior: auto; }
  .sec-atelier-hero *, .sec-atelier-hero *::before, .sec-atelier-hero *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .sec-atelier-hero.has-js [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .sec-atelier-hero .site-head, .sec-atelier-hero .mobile-bar, .sec-atelier-hero .cta, .sec-atelier-hero .plx { display: none !important; }
  .sec-atelier-hero { background: #fff; }
}

/* ============================================================
   MEDIA SLOTS — every image slot also takes a <video>

   Each slot rule is written as `:is(img,video)`, so swapping the
   tag is the whole job — sizing, crop and radius stay identical:

     <img   src="_shared/img/hero.svg" width="900" height="1120" alt="…">
     <video src="_shared/video/hero.mp4" poster="_shared/img/hero.svg"
            width="900" height="1120" data-inline muted loop playsinline
            aria-label="…"></video>

   `data-inline` hands the element to app.js, which plays it only
   while it is on screen, pauses it when the tab is hidden, adds a
   pause control (WCAG 2.2.2) and skips autoplay entirely under
   prefers-reduced-motion — the poster stays in that case.

   Keep width/height (or let the slot's aspect-ratio do it) so the
   layout does not shift while the file loads.
   ============================================================ */

/* Baseline for slots that never sized their <img> explicitly. */
.sec-atelier-hero video { width: 100%; height: auto; }

/* Parent of an inline video: only promoted when it is static, so a
   slot that already positions itself is left alone. */
.sec-atelier-hero .has-inline-video { position: relative; }

.sec-atelier-hero .u-mediactl {
  position: absolute;
  right: 10px; bottom: 10px;
  z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--sh-sm);
  color: var(--c-text);
  font-family: var(--ff-display);
  font-size: var(--fs-xs); font-weight: 600;
  cursor: pointer;
  transition: background-color var(--t-base) var(--ease);
}
.sec-atelier-hero .u-mediactl:hover { background: #fff; }
.sec-atelier-hero .u-mediactl__ic { position: relative; width: 12px; height: 12px; flex: none; }
.sec-atelier-hero .u-mediactl__ic::before, 
.sec-atelier-hero .u-mediactl__ic::after {
  content: "";
  position: absolute; top: 0;
  width: 4px; height: 12px;
  border-radius: 1px;
  background: currentColor;
}
.sec-atelier-hero .u-mediactl__ic::before { left: 0; }
.sec-atelier-hero .u-mediactl__ic::after { right: 0; }

/* paused -> the icon becomes a play triangle */
.sec-atelier-hero .u-mediactl[aria-pressed="true"] .u-mediactl__ic::before {
  left: 1px;
  width: 0; height: 0;
  border-radius: 0;
  background: none;
  border-left: 11px solid currentColor;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.sec-atelier-hero .u-mediactl[aria-pressed="true"] .u-mediactl__ic::after { opacity: 0; }

/* Small slots (avatars, thumbnails) do not get room for a label. */
.sec-atelier-hero .u-mediactl--compact { padding: 0; width: 44px; justify-content: center; }
.sec-atelier-hero .u-mediactl--compact .u-mediactl__tx { display: none; }

/* Sekcija hero. */

/* ============================================================
   SECTION: HERO — full-bleed image with overlaid copy
   ============================================================ */

.sec-atelier-hero .hero {
  position: relative;
  isolation: isolate;
  /* Capped, not 100vh. On a tall desktop window a full-viewport
     hero puts ~300px of empty photograph between the buttons and
     the meta strip, because the copy centres in a row that keeps
     growing. The cap ends the section a little above the fold,
     which also shows the reader there is more page below. */
  min-height: 760px;             /* fallback where min()/svh are missing */
  min-height: min(100svh, 760px);
  display: flex;
  align-items: stretch;          /* .hero__inner owns the vertical rhythm */
  padding-block: calc(var(--header-h) + clamp(20px, 2.4vw, 32px)) clamp(24px, 2.6vw, 36px);
  overflow: hidden;
  background: var(--c-ink);
  color: var(--c-text-invert);
}

/* Oversized so the parallax can never expose an edge. */
.sec-atelier-hero .hero__media {
  position: absolute;
  inset: -8% 0;
  z-index: -2;
  will-change: transform;
}
.sec-atelier-hero .hero__media :is(img,video) { width: 100%; height: 100%; object-fit: cover; object-position: 66% 50%; }

.sec-atelier-hero .hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(18, 16, 14, 0.55) 0%, rgba(18, 16, 14, 0.10) 30%, rgba(18, 16, 14, 0.70) 74%, rgba(18, 16, 14, 0.92) 100%),
    linear-gradient(96deg, rgba(18, 16, 14, 0.74) 0%, rgba(18, 16, 14, 0.30) 46%, transparent 72%);
}

/* ---------- Layout ----------
   row 1: the copy block — takes all free height and centres its
          content, so the headline sits in the middle of the section
          rather than glued to the bottom edge
   row 2: meta strip (three facts on one hairline), pinned to the end
   The right-hand stack (inset image + rating card) and the scroll
   cue were removed on purpose: the hero reads cleaner with the
   photograph carrying it alone. */
.sec-atelier-hero .hero__inner {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  grid-template-areas:
    "copy"
    "meta";
  align-items: center;
  row-gap: clamp(24px, 3vw, 40px);
}
.sec-atelier-hero .hero__meta { align-self: end; }

/* ---------- Copy ---------- */

.sec-atelier-hero .hero__copy { grid-area: copy; max-width: 42rem; }
.sec-atelier-hero .hero__copy > * + * { margin-top: var(--sp-3); }
.sec-atelier-hero .hero__copy h1 { margin-top: var(--sp-2); }

.sec-atelier-hero .hero__label {
  display: block;
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: var(--ls-label); text-transform: uppercase;
  color: var(--c-gold);
}

.sec-atelier-hero .hero h1 {
  max-width: 16ch;
  color: var(--c-text-invert);
  font-weight: 300;
  text-wrap: initial;          /* explicit <br> owns the line breaks here */
}
.sec-atelier-hero .hero h1 .u-em { color: var(--c-gold); }

.sec-atelier-hero .hero__lead {
  max-width: 44ch;
  font-size: var(--fs-lg);
  color: rgba(247, 245, 241, 0.84);
}

.sec-atelier-hero .hero__cta {
  display: flex; flex-wrap: wrap; gap: 12px;
  padding-top: var(--sp-1);
}
.sec-atelier-hero .hero__ghost {
  --btn-bg: transparent;
  --btn-fg: var(--c-text-invert);
  --btn-bd: rgba(247, 245, 241, 0.42);
}
.sec-atelier-hero .hero__ghost:hover { --btn-bg: rgba(247, 245, 241, 0.12); --btn-bd: rgba(247, 245, 241, 0.72); }

/* ---------- Meta strip ---------- */

.sec-atelier-hero .hero__meta {
  grid-area: meta;
  display: flex; flex-wrap: wrap;
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(247, 245, 241, 0.22);
}
.sec-atelier-hero .hero__meta li {
  display: flex; flex-direction: column; gap: 3px;
  padding-right: clamp(20px, 3.5vw, 48px);
  margin-right: clamp(20px, 3.5vw, 48px);
  border-right: 1px solid rgba(247, 245, 241, 0.18);
}
.sec-atelier-hero .hero__meta li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.sec-atelier-hero .hero__meta span {
  font-size: 0.625rem; font-weight: 600;
  letter-spacing: var(--ls-label); text-transform: uppercase;
  color: var(--c-gold);
}
.sec-atelier-hero .hero__meta strong {
  font-family: var(--ff-display);
  font-size: var(--fs-md); font-weight: 400;
  color: var(--c-text-invert);
  white-space: nowrap;
}

/* ---------- Breakpoints ---------- */

@media (max-width: 1100px) {
  .sec-atelier-hero .hero h1 { max-width: 14ch; }
}

@media (max-width: 900px) {
  .sec-atelier-hero .hero__inner {
    grid-template-rows: auto auto;
    align-items: start;
    align-content: center;       /* centre the whole stack in the section */
  }
}

@media (max-width: 620px) {
  .sec-atelier-hero .hero { min-height: min(92svh, 680px); padding-bottom: var(--sp-4); }
  .sec-atelier-hero .hero__media :is(img,video) { object-position: 70% 50%; }
  .sec-atelier-hero .hero h1 { max-width: none; }
  .sec-atelier-hero .hero__cta { flex-direction: column; align-items: stretch; }
  .sec-atelier-hero .hero__meta li {
    padding-right: var(--sp-3);
    margin-right: var(--sp-3);
  }
  .sec-atelier-hero .hero__meta strong { font-size: var(--fs-sm); }
}