/* Housecall — tokeni templata, scopovani na .sec-housecall-footer. */

/* ============================================================
   DESIGN TOKENS — Template 15 "Housecall"
   Niche variant: N — mobile dentistry / home visits
   >>> NEW variant, not in the original style guide. Rules and
       reasoning live in the BUILDER-LOG, §4k. <<<

   Register: short and literal. The person reading this is
   usually a son or a daughter, and they want three answers
   above the fold: do you come to us, what can be done at home,
   what does the visit cost.

   This template is deliberately the SIMPLEST in the series: no
   signature shape, no lightbox, no sliders, five scripts in
   total. Adding an effect here means removing another one.
   ============================================================ */

.sec-housecall-footer {
  /* ---------- Color ---------- */
  --c-bg:          #FBFAF7;   /* warm off-white */
  --c-bg-alt:      #F2EFE9;
  --c-white:       #FFFFFF;
  --c-surface:     #E4EEEF;   /* teal tint for fills */

  --c-primary:     #0F6E7A;   /* cyan-teal — 5.8:1 on bg, white on it 6.0:1 */
  --c-primary-dk:  #0A5058;
  --c-primary-lt:  #7FB3B9;

  /* Sand is for small markers only and NEVER carries white text (1.9:1).
     Dark ink on sand is 7.6:1. */
  --c-accent:      #E8B44C;
  --c-accent-dk:   #7A5300;   /* AA-safe sand for TEXT on light */
  --c-accent-soft: #FBF0D8;

  --c-ink:         #1F2B2E;
  --c-text:        #263335;
  --c-text-muted:  #4E5C5E;   /* 6.7:1 on --c-bg */
  --c-on-dark:     #EDF3F3;
  --c-on-dark-mu:  rgba(237, 243, 243, 0.76);

  --c-line:        rgba(31, 43, 46, 0.14);
  --c-line-strong: rgba(31, 43, 46, 0.26);
  --c-line-dark:   rgba(237, 243, 243, 0.24);

  --c-whatsapp:    #0E7C6F;   /* deeper than the brand green: white on it 5.1:1 */
  --c-whatsapp-dk: #0B6357;
  --c-star:        #C08A1E;

  /* ---------- Elevation — almost none, on purpose ---------- */
  --sh-xs: 0 1px 2px rgba(31, 43, 46, 0.06);
  --sh-sm: 0 4px 14px -8px rgba(31, 43, 46, 0.18);
  --sh-md: 0 14px 30px -16px rgba(31, 43, 46, 0.26);
  --sh-lg: 0 24px 48px -22px rgba(31, 43, 46, 0.32);

  /* ---------- Radius ---------- */
  --r-xs:  6px;
  --r-sm:  10px;
  --r-md:  14px;
  --r-lg:  18px;
  --r-xl:  24px;
  --r-pill: 999px;
  --r-circle: 50%;

  /* Gallery: 12px, inside the 10–15px band the brief asks for. */
  --r-gallery: 12px;

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

  --section-y: clamp(64px, 8vw, 104px);
  --gutter:    clamp(20px, 5vw, 44px);
  --maxw:      1120px;

  /* ---------- Typography ---------- */
  --ff-display: "Raleway", "Segoe UI", system-ui, sans-serif;
  --ff-body:    "Assistant", "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.4vw + 1.05rem, 1.25rem);
  --fs-h4:   clamp(1.1875rem, 0.6vw + 1.05rem, 1.375rem);
  --fs-h3:   clamp(1.375rem, 0.9vw + 1.15rem, 1.75rem);
  --fs-h2:   clamp(1.875rem, 2.2vw + 1.35rem, 2.75rem);
  --fs-h1:   clamp(2.25rem, 3.2vw + 1.35rem, 3.5rem);

  --lh-tight: 1.1;
  --lh-snug:  1.22;
  --lh-body:  1.62;

  --ls-tight: -0.02em;
  --ls-label:  0.14em;

  /* ---------- Motion ---------- */
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 150ms;
  --t-base: 260ms;

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

@media (max-width: 900px) { .sec-housecall-footer { --header-h: 60px; } }

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

/* ============================================================
   BASE — Template 15 "Housecall"
   No signature shape. Section headings get a 1px rule under
   them and that is the entire visual system — everything else
   is a plain rectangle. That is the axis this template differs
   on, so resist adding a device here.
   ============================================================ */

.sec-housecall-footer *, .sec-housecall-footer *::before, .sec-housecall-footer *::after { box-sizing: border-box; }

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

.sec-housecall-footer {
  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;
  overflow-x: clip;
}

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

.sec-housecall-footer h1, .sec-housecall-footer h2, .sec-housecall-footer h3, .sec-housecall-footer h4 {
  font-family: var(--ff-display);
  font-weight: 600;
  color: var(--c-ink);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-snug);
  margin: 0;
  text-wrap: balance;
}
.sec-housecall-footer h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); font-weight: 700; }
.sec-housecall-footer h2 { font-size: var(--fs-h2); }
.sec-housecall-footer h3 { font-size: var(--fs-h3); }
.sec-housecall-footer h4 { font-size: var(--fs-h4); }

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

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

.sec-housecall-footer :focus-visible { outline: 3px solid var(--c-primary); outline-offset: 3px; border-radius: var(--r-xs); }
.sec-housecall-footer :focus:not(:focus-visible) { outline: none; }
.sec-housecall-footer ::selection { background: var(--c-surface); color: var(--c-ink); }

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

.sec-housecall-footer .u-container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.sec-housecall-footer .u-section { position: relative; padding-block: var(--section-y); }
.sec-housecall-footer .u-section--alt { background: var(--c-bg-alt); }

.sec-housecall-footer .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-housecall-footer .u-skip-link {
  position: absolute; top: 8px; left: 8px; z-index: 999;
  transform: translateY(-200%);
  background: var(--c-primary-dk); color: var(--c-white);
  padding: 12px 22px; border-radius: var(--r-pill);
  font-size: var(--fs-sm); font-weight: 700;
}
.sec-housecall-footer .u-skip-link:focus { transform: translateY(0); }

/* ============================================================
   DARK SCOPE — for the two blocks that sit on the teal or over
   the fixed photograph. One place, so a dark section can never
   inherit the light heading colour. (BUILDER-LOG §4.)
   ============================================================ */
.sec-housecall-footer .u-dark { color: var(--c-on-dark); }
.sec-housecall-footer .u-dark h1, .sec-housecall-footer .u-dark h2, .sec-housecall-footer .u-dark h3, .sec-housecall-footer .u-dark h4 { color: var(--c-on-dark); }
.sec-housecall-footer .u-dark p { color: var(--c-on-dark-mu); }
.sec-housecall-footer .u-dark .u-label { color: var(--c-accent); }
.sec-housecall-footer .u-dark .u-head h2::after { background: var(--c-line-dark); }

/* ---------- Section head: the whole visual system ---------- */

.sec-housecall-footer .u-label {
  display: inline-block;
  font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: var(--ls-label); text-transform: uppercase;
  color: var(--c-primary);
}

.sec-housecall-footer .u-head > * + * { margin-top: var(--sp-3); }
.sec-housecall-footer .u-head h2 { max-width: 20ch; }
/* the 1px rule — the only ornament in this template */
.sec-housecall-footer .u-head h2::after {
  content: "";
  display: block;
  width: 56px; height: 1px;
  margin-top: var(--sp-4);
  background: var(--c-line-strong);
}
.sec-housecall-footer .u-head--center { text-align: center; margin-inline: auto; }
.sec-housecall-footer .u-head--center h2 { margin-inline: auto; }
.sec-housecall-footer .u-head--center h2::after { margin-inline: auto; }
.sec-housecall-footer .u-head p { color: var(--c-text-muted); font-size: var(--fs-lg); max-width: 60ch; }
.sec-housecall-footer .u-head--center p { margin-inline: auto; }

/* ---------- Pills ---------- */

.sec-housecall-footer .u-pill {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 38px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: var(--pill-bg, var(--c-white));
  color: var(--pill-fg, var(--c-ink));
  border: 1px solid var(--pill-bd, var(--c-line));
  font-size: var(--fs-sm); font-weight: 600;
}
.sec-housecall-footer .u-pill--teal { --pill-bg: var(--c-surface); --pill-bd: transparent; --pill-fg: var(--c-primary-dk); }
.sec-housecall-footer .u-pill--sand { --pill-bg: var(--c-accent-soft); --pill-bd: transparent; --pill-fg: var(--c-accent-dk); }
.sec-housecall-footer .u-pill--ghost { --pill-bg: rgba(237, 243, 243, 0.14); --pill-bd: var(--c-line-dark); --pill-fg: var(--c-on-dark); }
.sec-housecall-footer .u-pill svg { width: 17px; height: 17px; flex: none; }

/* ---------- Stars ---------- */

.sec-housecall-footer .u-stars { display: inline-flex; gap: 2px; }
.sec-housecall-footer .u-stars svg { width: 17px; height: 17px; color: var(--c-star); }
.sec-housecall-footer .u-stars .is-off { color: var(--c-line-strong); }

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

.sec-housecall-footer .u-btn {
  --btn-bg: var(--c-primary);
  --btn-fg: var(--c-white);
  --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px;
  padding: 14px 28px;
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--ff-display);
  font-size: var(--fs-md); font-weight: 600;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              transform var(--t-base) var(--ease-out);
}
.sec-housecall-footer .u-btn svg { flex: none; width: 19px; height: 19px; }
.sec-housecall-footer .u-btn:hover { transform: translateY(-2px); }
.sec-housecall-footer .u-btn:active { transform: none; transition-duration: 70ms; }

.sec-housecall-footer .u-btn--solid:hover { --btn-bg: var(--c-primary-dk); }
.sec-housecall-footer .u-btn--line { --btn-bg: transparent; --btn-fg: var(--c-ink); --btn-bd: var(--c-line-strong); }
.sec-housecall-footer .u-btn--line:hover { --btn-bd: var(--c-primary); --btn-bg: var(--c-white); }
.sec-housecall-footer .u-btn--white { --btn-bg: var(--c-white); --btn-fg: var(--c-primary-dk); }
.sec-housecall-footer .u-btn--white:hover { --btn-bg: var(--c-bg-alt); }
.sec-housecall-footer .u-btn--ghost { --btn-bg: rgba(237, 243, 243, 0.12); --btn-fg: var(--c-on-dark); --btn-bd: var(--c-line-dark); }
.sec-housecall-footer .u-btn--ghost:hover { --btn-bg: rgba(237, 243, 243, 0.22); --btn-bd: rgba(237, 243, 243, 0.5); }
.sec-housecall-footer .u-btn--wa { --btn-bg: var(--c-whatsapp); --btn-fg: #fff; }
.sec-housecall-footer .u-btn--wa:hover { --btn-bg: var(--c-whatsapp-dk); }

.sec-housecall-footer .u-btn--lg { min-height: 58px; padding: 17px 32px; font-size: var(--fs-lg); }
.sec-housecall-footer .u-btn--block { width: 100%; }

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

/* Hidden start state gated on .has-js (set by app.js) so a script
   failure can never leave a blank hole where content should be. */
.sec-housecall-footer.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.sec-housecall-footer.has-js [data-reveal].is-in { opacity: 1; transform: none; }

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

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

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

   Slot rules are written as `:is(img,video)`, so swapping the
   tag is the whole job — sizing and crop stay identical:

     image tag:  src="_shared/img/hero-bg.svg" width="2400" height="1400" alt="..."
     video tag:  src="_shared/video/hero.mp4" poster="_shared/img/hero-bg.svg"
                 width="2400" height="1400" data-inline muted loop playsinline
                 aria-label="..."

   `data-inline` hands the element to app.js: it plays only while
   on screen, pauses when the tab is hidden, gets a pause control
   (WCAG 2.2.2), and never autoplays under prefers-reduced-motion.

   NOTE the exception: the parallax section uses a CSS
   background-image, not a slot, because background-attachment:
   fixed only works on backgrounds. A video cannot go there —
   see parallax/parallax.css.
   ============================================================ */

.sec-housecall-footer video { width: 100%; height: auto; }
.sec-housecall-footer .has-inline-video { position: relative; }

.sec-housecall-footer .u-mediactl {
  position: absolute;
  right: 12px; bottom: 12px;
  z-index: 3;
  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-ink);
  font-size: var(--fs-xs); font-weight: 600;
  cursor: pointer;
}
.sec-housecall-footer .u-mediactl:hover { background: #fff; }
.sec-housecall-footer .u-mediactl__ic { position: relative; width: 12px; height: 12px; flex: none; }
.sec-housecall-footer .u-mediactl__ic::before, 
.sec-housecall-footer .u-mediactl__ic::after {
  content: "";
  position: absolute; top: 0;
  width: 4px; height: 12px;
  border-radius: 1px;
  background: currentColor;
}
.sec-housecall-footer .u-mediactl__ic::before { left: 0; }
.sec-housecall-footer .u-mediactl__ic::after { right: 0; }
.sec-housecall-footer .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-housecall-footer .u-mediactl[aria-pressed="true"] .u-mediactl__ic::after { opacity: 0; }
.sec-housecall-footer .u-mediactl--compact { padding: 0; width: 44px; justify-content: center; }
.sec-housecall-footer .u-mediactl--compact .u-mediactl__tx { display: none; }

/* Sekcija footer. */

/* ============================================================
   SECTION: FOOTER — light, three columns
   The page ends the way it started: no dark band, no wordmark,
   nothing that needs a second look.
   ============================================================ */

.sec-housecall-footer .ftr {
  padding-block: clamp(48px, 6vw, 80px) var(--sp-5);
  background: var(--c-bg);
  border-top: 1px solid var(--c-line);
  /* room for the sticky mobile action bar */
  padding-bottom: calc(var(--sp-5) + 80px);
}

.sec-housecall-footer .ftr__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
}

.sec-housecall-footer .ftr__logo { display: inline-flex; align-items: center; gap: 11px; min-height: 44px; }
.sec-housecall-footer .ftr__mark { width: 32px; height: 32px; color: var(--c-primary); flex: none; }
.sec-housecall-footer .ftr__logo-tx { display: flex; flex-direction: column; line-height: 1.14; }
.sec-housecall-footer .ftr__logo-tx strong {
  font-family: var(--ff-display);
  font-size: 1.25rem; font-weight: 700;
  color: var(--c-ink);
}
.sec-housecall-footer .ftr__logo-tx small {
  font-size: 0.68rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--c-text-muted);
}
.sec-housecall-footer .ftr__blurb {
  margin-top: var(--sp-4);
  max-width: 42ch;
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}

.sec-housecall-footer .ftr__col h3 {
  font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: var(--ls-label); text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: var(--sp-3);
}

.sec-housecall-footer .ftr__tel {
  display: inline-flex; align-items: center;
  min-height: 46px;
  font-family: var(--ff-display);
  font-size: 1.375rem; font-weight: 700;
  color: var(--c-ink);
}
.sec-housecall-footer .ftr__tel:hover { color: var(--c-primary); }

.sec-housecall-footer .ftr__mail {
  display: inline-flex; align-items: center;
  min-height: 44px;
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  word-break: break-word;
}
.sec-housecall-footer .ftr__mail:hover { color: var(--c-primary); }

.sec-housecall-footer .ftr__contact address {
  margin-top: var(--sp-2);
  font-style: normal;
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  line-height: 1.7;
}

.sec-housecall-footer .ftr__hours {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}
.sec-housecall-footer .ftr__hours th { text-align: left; font-weight: 600; padding: 5px 16px 5px 0; color: var(--c-ink); }
.sec-housecall-footer .ftr__hours td { text-align: right; padding: 5px 0; font-variant-numeric: tabular-nums; }

.sec-housecall-footer .ftr__hint {
  margin-top: var(--sp-3);
  max-width: 34ch;
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
}

.sec-housecall-footer .ftr__links { display: grid; gap: 2px; margin-top: var(--sp-3); }
.sec-housecall-footer .ftr__links a {
  display: inline-flex; align-items: center;
  min-height: 44px;
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}
.sec-housecall-footer .ftr__links a:hover { color: var(--c-ink); }

.sec-housecall-footer .ftr__bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-5);
  margin-top: clamp(32px, 4vw, 52px);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-line);
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}
.sec-housecall-footer .ftr__legal { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.sec-housecall-footer .ftr__legal a { display: inline-flex; align-items: center; min-height: 44px; }
.sec-housecall-footer .ftr__legal a:hover { color: var(--c-ink); }

.sec-housecall-footer .ftr__top-btn {
  display: inline-flex; align-items: center;
  min-height: 44px;
  margin-left: auto;
  font-family: var(--ff-display);
  font-size: var(--fs-sm); font-weight: 600;
  color: var(--c-primary);
  border-bottom: 1px solid currentColor;
}
.sec-housecall-footer .ftr__top-btn:hover { color: var(--c-primary-dk); }

@media (max-width: 900px) {
  .sec-housecall-footer .ftr__grid { grid-template-columns: 1fr 1fr; }
  .sec-housecall-footer .ftr { padding-bottom: calc(var(--sp-5) + 90px); }
}
@media (max-width: 600px) {
  .sec-housecall-footer .ftr__grid { grid-template-columns: 1fr; }
  .sec-housecall-footer .ftr__bar { flex-direction: column; align-items: flex-start; }
  .sec-housecall-footer .ftr__top-btn { margin-left: 0; }
}