/* Ivana Ljubinković - psihoterapeut. Visual values (colors/spacing) mirror the
   approved demo and stay inline in the templates; this file only adds what inline
   style cannot express: hover/focus states, the header's responsive nav switch,
   the FAQ marker reset, the mobile action bar and the contrast-safe link/button
   colors approved in the 2026-10-14 audit (see portal.schema.json siblings). */

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: #FBF8F2; color: #2E2A24; -webkit-font-smoothing: antialiased; font-family: 'Montserrat', system-ui, sans-serif; }
* { box-sizing: border-box; }
a { color: #7D6630; text-decoration: none; }
a:hover { color: #6E5A28; }
::selection { background: #E8DCC0; }

@keyframes drawerIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes riseIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* Skip link: off-screen until focused, no JS required */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #2E2A24;
  color: #FBF8F2;
  padding: 12px 18px;
  z-index: 200;
  border-radius: 0 0 8px 0;
  font-size: 13px;
}
.skip-link:focus { left: 0; }

/* Visible focus styles everywhere */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #7D6630;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Header logo: the redrawn sign (white) on a gold circle. 52px desktop / 44px
   mobile per the identity brief. */
.logo-circle { width: 52px; height: 52px; }
@media (max-width: 900px) {
  .logo-circle { width: 44px; height: 44px; }
}

/* Header: desktop nav vs. mobile hamburger, switched at the demo's 900px breakpoint */
.nav-desktop { display: flex; }
.nav-toggle { display: none; }
@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: grid; }
}

.nav-desktop a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Mobile drawer: hidden by default (native [hidden], works with no JS too).
   !important is required because the drawer's inline style sets display:flex,
   which would otherwise beat the [hidden] rule and show it on every page load. */
#mobile-drawer[hidden] { display: none !important; }
@media (min-width: 901px) {
  #mobile-drawer { display: none !important; }
}
#mobile-drawer { animation: drawerIn 0.22s ease both; }
#mobile-drawer nav a { min-height: 44px; display: flex; align-items: center; }

/* Buttons on the gold (#B89E64) background: dark text at every state, per the
   2026-10-14 contrast audit (white-on-gold measured 2.59:1). One class covers
   both the light-context and dark-context usages - both now use the same
   text color, only the hover background differs by starting lightness. */
.btn-gold, .hero-call, #mobile-bar a:first-child {
  position: relative;
  isolation: isolate;
}
/* Keep the fill on a separate layer: a link whose own background becomes
   transparent must still have a visible button surface. The isolated stacking
   context keeps this layer behind the label and inside the rounded button. */
.btn-gold::before, .hero-call::before, #mobile-bar a:first-child::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: #B89E64;
  pointer-events: none;
}
.btn-gold:hover::before, .btn-gold:focus-visible::before,
.hero-call:hover::before, .hero-call:focus-visible::before {
  background: #C9B27A;
}
.btn-gold:hover, .btn-gold:focus-visible { background: #C9B27A; color: #2E2A24; }

.btn-outline { transition: border-color 0.2s ease, color 0.2s ease; }
.btn-outline:hover, .btn-outline:focus-visible { border-color: #B89E64; color: #7D6630; }

.btn-outline-dark { transition: border-color 0.2s ease, color 0.2s ease; }
.btn-outline-dark:hover, .btn-outline-dark:focus-visible { border-color: #B89E64; color: #FBF8F2; }

/* Small gold text/links: #7D6630 on light backgrounds (cream/white), #C9B07A
   on dark backgrounds - both re-measured to clear 4.5:1 after the audit's
   #8E7539/#A08A55 found 3.16-4.42:1 depending on the exact background. */
.link-gold { color: #7D6630; }
.link-gold:hover, .link-gold:focus-visible { color: #6E5A28; }
.link-cream { color: #C9B07A; }
.link-cream:hover, .link-cream:focus-visible { color: #D2BC8B; }

.icon-btn { transition: border-color 0.2s ease; }
.icon-btn:hover, .icon-btn:focus-visible { border-color: #B89E64; }

/* Footer / nav text links that should still meet a 44px tap target without
   changing their visible box */
.tap44 { min-height: 44px; display: inline-flex; align-items: center; }

/* FAQ: native <details>, custom "+" indicator instead of the default marker */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details[open] summary .faq-plus { transform: rotate(45deg); }
.faq-plus { display: inline-block; transition: transform 0.15s ease; }

/* Usluge bullet lists ("Kada može da pomogne") and the anchor-chip row */
ul.bullet-list { margin: 14px 0 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 8px; }
ul.bullet-list > li { font-size: 15px; font-weight: 400; line-height: 1.7; color: #57503F; }
ul.bullet-list > li::marker { color: #B89E64; }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #E2D6BC;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #57503F;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.chip:hover, .chip:focus-visible { border-color: #B89E64; color: #7D6630; }

/* Contact form */
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 13px; font-weight: 500; color: #2E2A24; }
.form-field .hint { font-size: 12px; font-weight: 400; color: #6E655A; }
.form-field input[type="text"],
.form-field input[type="tel"],
.form-field input[type="email"],
.form-field textarea {
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
  min-height: 44px;
  border: 1px solid #D9C99F;
  border-radius: 8px;
  background: #FFFFFF;
  color: #2E2A24;
}
.form-field textarea { min-height: 110px; resize: vertical; }
.radio-row { display: flex; flex-wrap: wrap; gap: 14px 22px; }
.radio-row label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; font-weight: 400; color: #57503F; }
.radio-row input { width: 18px; height: 18px; accent-color: #B89E64; }
.honeypot-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Mobile action bar: fixed, only on narrow screens, hidden while the drawer
   is open or on hvala/ (that page omits the include entirely). */
#mobile-bar {
  display: none;
}
@media (max-width: 900px) {
  #mobile-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    height: 48px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: #FBF8F2;
    border-top: 1px solid #EDE4D3;
  }
  #mobile-bar[hidden] { display: none; }
  body { padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px)); }
}
#mobile-bar a {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
#mobile-bar a:first-child { background: #B89E64; color: #2E2A24; }
#mobile-bar a:last-child { background: #2E2A24; color: #FBF8F2; border-left: 1px solid #453F35; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #mobile-drawer, .faq-plus { animation: none !important; transition: none !important; }
}

/* Contact CTA band: text left, button right on wide screens; stacked and left-aligned on phones. */
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.cta-band__text { flex: 1 1 420px; max-width: 640px; }
.cta-band__btn { flex: none; }
@media (max-width: 640px) { .cta-band__btn { width: 100%; } }

/* Kontakt: form left, contact details right (stacked on phones). */
.kontakt-grid { display: grid; grid-template-columns: minmax(0, 640px) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.kontakt-aside { background: #2E2A24; padding: clamp(20px, 3vw, 28px); border-radius: 2px; position: sticky; top: 110px; }
.kontakt-aside > div { grid-template-columns: 1fr !important; }
@media (max-width: 900px) {
  .kontakt-grid { grid-template-columns: 1fr; }
  .kontakt-aside { position: static; }
}

/* Usluge: session length and price right under the intro. */
.price-line { margin: 22px 0 0; display: inline-block; padding: 10px 18px; border: 1px solid #E2D6BC; border-radius: 999px; background: #F5F0E5; font-size: 14px; color: #2E2A24; }
