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

/* ============================================================
   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-cta {
  /* ---------- 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-cta { --header-h: 68px; }
}

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

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

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

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

.sec-atelier-cta {
  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-cta img, .sec-atelier-cta svg, .sec-atelier-cta video { display: block; max-width: 100%; }
.sec-atelier-cta img { height: auto; }

.sec-atelier-cta h1, .sec-atelier-cta h2, .sec-atelier-cta h3, .sec-atelier-cta 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-cta h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
.sec-atelier-cta h2 { font-size: var(--fs-h2); line-height: 1.1; }
.sec-atelier-cta h3 { font-size: var(--fs-h3); }
.sec-atelier-cta h4 { font-size: var(--fs-h4); }

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

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

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

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

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

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

.sec-atelier-cta .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-cta .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-cta .u-skip-link:focus { transform: translateY(0); }

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

.sec-atelier-cta .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-cta .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-cta .u-marker::after {
  content: ""; flex: 1; height: 1px;
  background: var(--c-line);
  max-width: 120px;
}

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

/* Signature device: thin gold arch drawn above a heading */
.sec-atelier-cta .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-cta .u-em { font-style: italic; font-weight: 300; color: var(--c-gold-dk); }

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

.sec-atelier-cta .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-cta .u-btn svg { flex: none; }
.sec-atelier-cta .u-btn:hover { transform: translateY(-2px); }
.sec-atelier-cta .u-btn:active { transform: translateY(0); transition-duration: 60ms; }

.sec-atelier-cta .u-btn--solid:hover { --btn-bg: #000; }
.sec-atelier-cta .u-btn--line { --btn-bg: transparent; --btn-fg: var(--c-ink); --btn-bd: var(--c-line-strong); }
.sec-atelier-cta .u-btn--line:hover { --btn-bg: var(--c-ink); --btn-fg: var(--c-text-invert); --btn-bd: var(--c-ink); }
.sec-atelier-cta .u-btn--ivory { --btn-bg: var(--c-bg); --btn-fg: var(--c-ink); }
.sec-atelier-cta .u-btn--ivory:hover { --btn-bg: var(--c-white); }
.sec-atelier-cta .u-btn--gold { --btn-bg: var(--c-gold); --btn-fg: var(--c-ink); }
.sec-atelier-cta .u-btn--gold:hover { --btn-bg: #BC9860; }
.sec-atelier-cta .u-btn--wa { --btn-bg: var(--c-whatsapp); --btn-fg: #fff; }
.sec-atelier-cta .u-btn--wa:hover { --btn-bg: var(--c-whatsapp-dk); }
.sec-atelier-cta .u-btn--lg { min-height: 62px; padding: 19px 38px; font-size: var(--fs-base); }
.sec-atelier-cta .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-cta.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-cta.has-js [data-reveal].is-in { opacity: 1; transform: none; }

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

@media print {
  .sec-atelier-cta .site-head, .sec-atelier-cta .mobile-bar, .sec-atelier-cta .cta, .sec-atelier-cta .plx { display: none !important; }
  .sec-atelier-cta { 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-cta 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-cta .has-inline-video { position: relative; }

.sec-atelier-cta .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-cta .u-mediactl:hover { background: #fff; }
.sec-atelier-cta .u-mediactl__ic { position: relative; width: 12px; height: 12px; flex: none; }
.sec-atelier-cta .u-mediactl__ic::before, 
.sec-atelier-cta .u-mediactl__ic::after {
  content: "";
  position: absolute; top: 0;
  width: 4px; height: 12px;
  border-radius: 1px;
  background: currentColor;
}
.sec-atelier-cta .u-mediactl__ic::before { left: 0; }
.sec-atelier-cta .u-mediactl__ic::after { right: 0; }

/* paused -> the icon becomes a play triangle */
.sec-atelier-cta .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-cta .u-mediactl[aria-pressed="true"] .u-mediactl__ic::after { opacity: 0; }

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

/* Sekcija cta. */

/* ============================================================
   SECTION: CTA — full-bleed near-black band
   ============================================================ */

.sec-atelier-cta .cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(80px, 11vw, 152px);
  background: var(--c-ink);
  color: var(--c-text-invert);
  text-align: center;
}

/* Two gold arches framing the band — signature shape, no fills */
.sec-atelier-cta .cta__arch {
  position: absolute;
  bottom: -40%;
  width: clamp(280px, 42vw, 620px);
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(201, 168, 118, 0.28);
  border-bottom: 0;
  border-radius: var(--r-arch);
  z-index: -1;
}
.sec-atelier-cta .cta__arch--l { left: -12%; }
.sec-atelier-cta .cta__arch--r { right: -12%; bottom: -55%; border-color: rgba(201, 168, 118, 0.18); }

.sec-atelier-cta .cta__inner { position: relative; }

.sec-atelier-cta .cta__marker { justify-content: center; color: var(--c-gold); }
.sec-atelier-cta .cta__marker::before, 
.sec-atelier-cta .cta__marker::after {
  content: ""; flex: 1; height: 1px; max-width: 110px;
  background: rgba(201, 168, 118, 0.4);
}

.sec-atelier-cta .cta h2 {
  margin-top: var(--sp-4);
  color: var(--c-text-invert);
  font-weight: 300;
  max-width: 20ch;
  margin-inline: auto;
}
.sec-atelier-cta .cta h2 .u-em { color: var(--c-gold); }

.sec-atelier-cta .cta__lead {
  margin: var(--sp-4) auto 0;
  max-width: 48ch;
  font-size: var(--fs-lg);
  color: rgba(247, 245, 241, 0.76);
}

/* ---------- Actions ---------- */

.sec-atelier-cta .cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3) var(--sp-4);
  margin-top: clamp(32px, 4vw, 56px);
}
.sec-atelier-cta .cta__or {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: var(--fs-md);
  color: rgba(247, 245, 241, 0.5);
}
.sec-atelier-cta .cta__tel { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

/* ---------- Facts row ---------- */

.sec-atelier-cta .cta__facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(247, 245, 241, 0.16);
}
.sec-atelier-cta .cta__facts li {
  display: flex; flex-direction: column; gap: 6px;
  padding-inline: clamp(20px, 4vw, 56px);
  border-right: 1px solid rgba(247, 245, 241, 0.16);
}
.sec-atelier-cta .cta__facts li:last-child { border-right: 0; }
.sec-atelier-cta .cta__facts span {
  font-size: 0.6875rem; font-weight: 600;
  letter-spacing: var(--ls-label); text-transform: uppercase;
  color: var(--c-gold);
}
.sec-atelier-cta .cta__facts strong {
  font-family: var(--ff-display);
  font-size: var(--fs-md); font-weight: 400;
  color: var(--c-text-invert);
}

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

@media (max-width: 760px) {
  .sec-atelier-cta .cta__facts { flex-direction: column; gap: var(--sp-4); }
  .sec-atelier-cta .cta__facts li { border-right: 0; padding-inline: 0; }
}

@media (max-width: 560px) {
  .sec-atelier-cta .cta__actions { flex-direction: column; gap: var(--sp-3); }
  .sec-atelier-cta .cta__actions .u-btn { width: 100%; }
  .sec-atelier-cta .cta__or { order: 0; }
  .sec-atelier-cta .cta__arch--r { display: none; }
}