/* ─────────────────────────────────────────────
   Odraz — Psihološko savetovalište
   style.css
───────────────────────────────────────────── */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: #FAF7F2;
  color: #2C2825;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #FAF7F2; }
::-webkit-scrollbar-thumb { background: #CDA375; border-radius: 3px; }

/* ── SELECTION ── */
::selection { background: #E8D3CE; color: #2C2825; }

/* ─────────────────────────────────────────────
   NAVBAR
───────────────────────────────────────────── */
#navbar {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(44, 40, 37, 0.08);
}

.nav-link {
  color: #2C2825;
  opacity: 0.65;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  transition: opacity 0.2s;
  text-decoration: none;
}
.nav-link:hover { opacity: 1; }

.nav-link-mobile {
  color: #2C2825;
  font-size: 1.125rem;
  font-family: 'PT Serif', Georgia, serif;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s;
  border-bottom: 1px solid rgba(44,40,37,0.08);
  padding-bottom: 1.25rem;
}
.nav-link-mobile:hover { opacity: 1; }

.footer-link {
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover { color: rgba(250,247,242,0.8); }

/* Mobile menu */
.mobile-menu {
  background: #FAF7F2;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1);
  border-top: 1px solid rgba(44,40,37,0.06);
}
.mobile-menu.open {
  max-height: 500px;
}

/* Hamburger */
.hamburger-line {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #2C2825;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
#menu-toggle.active .hamburger-line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
#menu-toggle.active .hamburger-line:nth-child(2) { opacity: 0; }
#menu-toggle.active .hamburger-line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ─────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #A05A4B;
  color: #FAF7F2;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.625rem 1.5rem;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary:hover {
  background: #8a4d40;
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #2C2825;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.625rem 1.5rem;
  border-radius: 2px;
  text-decoration: none;
  border: 1.5px solid rgba(44, 40, 37, 0.25);
  transition: border-color 0.2s, transform 0.15s;
  cursor: pointer;
}
.btn-ghost:hover {
  border-color: rgba(44, 40, 37, 0.6);
  transform: translateY(-1px);
}

.btn-cream {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FAF7F2;
  color: #A05A4B;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.875rem 2rem;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
}
.btn-cream:hover {
  background: #f0ebe3;
  transform: translateY(-1px);
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 0.875rem;
}

/* ─────────────────────────────────────────────
   LABELS
───────────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #A05A4B;
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(160, 90, 75, 0.3);
  border-radius: 100px;
}

.section-label-light {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.7);
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(250, 247, 242, 0.3);
  border-radius: 100px;
}

/* ─────────────────────────────────────────────
   HERO
───────────────────────────────────────────── */

.hero-general {
  position: relative;
}

/*
.hero-general::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.9), rgba(255,255,255,0)),
    url('images/hero.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}
*/

.hero-section {
  position: relative;
}

.hero-section > * {
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}
.shape-1 {
  width: 600px; height: 600px;
  background: rgba(232, 211, 206, 0.45);
  top: -100px; right: -100px;
  animation: floatA 14s ease-in-out infinite;
}
.shape-2 {
  width: 400px; height: 400px;
  background: rgba(205, 163, 117, 0.2);
  bottom: 50px; right: 200px;
  animation: floatB 18s ease-in-out infinite;
}
.shape-3 {
  width: 300px; height: 300px;
  background: rgba(106, 133, 111, 0.12);
  top: 200px; left: -50px;
  animation: floatC 16s ease-in-out infinite;
}

@keyframes floatA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 30px) scale(1.05); }
}
@keyframes floatB {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -20px); }
}
@keyframes floatC {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(15px, 25px); }
}

/* Hero card */
.hero-card {
  position: absolute;
  right: 6%;
  bottom: 15%;
  background: white;
  border-radius: 4px;
  padding: 1.25rem 1.75rem;
  max-width: 260px;
  box-shadow: 0 4px 24px rgba(44, 40, 37, 0.08);
  border-left: 3px solid #A05A4B;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUpIn 0.8s ease 0.8s forwards;
}
@media (max-width: 768px) {
  .hero-card { display: none; }
}

.hero-photo-wrap {
  width: 100%;
  background: #F1E6DA;
  position: relative;
  overflow: hidden;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}
.scroll-hint span {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, #A05A4B);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(0.7); }
}

/* ─────────────────────────────────────────────
   PROBLEM CARDS
───────────────────────────────────────────── */
.problem-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (max-width: 480px) {
  .problem-cards { grid-template-columns: 1fr; }
}

.problem-card {
  background: white;
  border-radius: 4px;
  padding: 1.25rem;
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  border: 1px solid rgba(44, 40, 37, 0.06);
  transition: box-shadow 0.2s, transform 0.2s;
}
.problem-card:hover {
  box-shadow: 0 4px 20px rgba(44, 40, 37, 0.08);
  transform: translateY(-2px);
}

.problem-card-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: #FAF7F2;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #A05A4B;
}

/* ─────────────────────────────────────────────
   STEPS
───────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

@media (max-width: 768px) {
  .steps-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .step-connector { display: none; }
}

.step-card {
  background: #FFFFFF;
  border: 1px solid rgba(44, 40, 37, 0.07);
  border-radius: 4px;
  padding: 2rem;
  position: relative;
  transition: box-shadow 0.2s;
}
.step-card:hover {
  box-shadow: 0 6px 30px rgba(44, 40, 37, 0.07);
}

.step-number {
  font-family: 'PT Serif', Georgia, serif;
  font-size: 3rem;
  font-weight: 700;
  color: rgba(160, 90, 75, 0.12);
  line-height: 1;
  margin-bottom: 1rem;
}

.step-connector {
  position: absolute;
  top: 2.5rem;
  right: -1rem;
  width: 2rem;
  height: 1px;
  background: rgba(44, 40, 37, 0.15);
  z-index: 1;
}
.step-card:last-child .step-connector { display: none; }

.step-badge {
  display: inline-block;
  background: rgba(106, 133, 111, 0.12);
  color: #6A856F;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.875rem;
  border-radius: 100px;
}

/* ─────────────────────────────────────────────
   TEAM
───────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .team-grid { grid-template-columns: 1fr; }
}

.team-card {
  background: #FFFFFF;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(44, 40, 37, 0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(44, 40, 37, 0.1);
}

.team-photo-wrap {
  width: 100%;
  aspect-ratio: 4/5;
  background: #F1E6DA;
  position: relative;
  overflow: hidden;
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-info {
  padding: 1.25rem 1.25rem 1.5rem;
}

/* ─────────────────────────────────────────────
   FAQ
───────────────────────────────────────────── */
.faq-list {
  border-top: 1px solid rgba(44, 40, 37, 0.1);
}

.faq-item {
  border-bottom: 1px solid rgba(44, 40, 37, 0.1);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'PT Serif', Georgia, serif;
  font-size: 1.0625rem;
  color: #2C2825;
  transition: color 0.2s;
}
.faq-question:hover { color: #A05A4B; }
.faq-question[aria-expanded="true"] { color: #A05A4B; }

.faq-icon {
  flex-shrink: 0;
  color: #A05A4B;
  opacity: 0.6;
  transition: transform 0.3s;
}
.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
  opacity: 1;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1);
}
.faq-answer.open {
  max-height: 300px;
}
.faq-answer p {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.9375rem;
  color: rgba(44, 40, 37, 0.7);
  line-height: 1.75;
  padding-bottom: 1.25rem;
}

/* ─────────────────────────────────────────────
   CTA / KONTAKT
───────────────────────────────────────────── */
.cta-bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.cta-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}
.cta-shape-1 {
  width: 400px; height: 400px;
  background: rgba(255,255,255,0.08);
  top: -80px; left: -80px;
}
.cta-shape-2 {
  width: 300px; height: 300px;
  background: rgba(255,255,255,0.06);
  bottom: -40px; right: -40px;
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2C2825;
}

.form-input {
  background: #fff;
  border: 1.5px solid #6A856F;
  border-radius: 2px;
  padding: 0.875rem 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.9375rem;
  color: #2C2825;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
}
.form-input::placeholder { color: rgba(250, 247, 242, 0.35); }
.form-input:focus {
  border-color: rgba(250, 247, 242, 0.5);
  background: rgba(250, 247, 242, 0.16);
}
.form-input.error { border-color: #C8958A; }

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

/* Fieldset reset (used for radio question groups) */
.contact-form fieldset.form-group {
  border: none;
  margin: 0;
  padding: 0;
}

/* Radio question groups (Q5, Q6) */
.form-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.form-radio-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(250, 247, 242, 0.12);
  border: 1.5px solid #6A856F;
  border-radius: 2px;
  padding: 0.625rem 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.875rem;
  color: #2C2825;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.form-radio-option:hover {
  border-color: #A05A4B;
}
.form-radio-option:has(input:checked) {
  border-color: #A05A4B;
  background: rgba(160, 90, 75, 0.1);
}
.form-radio-option input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: #A05A4B;
  cursor: pointer;
  flex-shrink: 0;
}
.form-radio-group.error .form-radio-option {
  border-color: #C8958A;
}

/* Consent checkbox (Q10) */
.form-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  cursor: pointer;
}
.form-checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #A05A4B;
  cursor: pointer;
  flex-shrink: 0;
}
.form-checkbox-group.error .form-checkbox-label {
  color: #C8958A;
}
.form-checkbox-label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #2C2825;
}

/* Conditional field (Q7 - shown only if prior therapy = Da) */
.form-conditional {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  gap: 0 !important;
  transition: max-height 0.35s ease, opacity 0.3s ease, margin 0.35s ease;
  margin: 0;
}
.form-conditional.open {
  max-height: 240px;
  opacity: 1;
  gap: 0.375rem !important;
}

.form-success {
  padding: 2rem 0;
}

/* ─────────────────────────────────────────────
   SCROLL ANIMATIONS
───────────────────────────────────────────── */
.reveal,
.reveal-right,
.reveal-delay {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right {
  transform: translateX(28px);
}
.reveal-delay {
  transition-delay: 0.4s;
}

.reveal.visible,
.reveal-right.visible,
.reveal-delay.visible {
  opacity: 1;
  transform: translate(0, 0);
}

@keyframes fadeUpIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─────────────────────────────────────────────
   LOGO
───────────────────────────────────────────── */
.logo-fallback {
  display: flex;
  flex-direction: column;
}

/* ─────────────────────────────────────────────
   RESPONSIVE TWEAKS
───────────────────────────────────────────── */
@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
}

@media (max-width: 480px) {
  .problem-card { flex-direction: column; gap: 0.5rem; }
}

/* ─────────────────────────────────────────────
   FOCUS STATES (accessibility)
───────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid #A05A4B;
  outline-offset: 3px;
  border-radius: 2px;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid #A05A4B;
  outline-offset: 3px;
}

/* ─────────────────────────────────────────────
   Language Toggle (Srpski / English)
───────────────────────────────────────────── */
.script-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1.5px solid rgba(160, 90, 75, 0.35);
  background: transparent;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  color: #A05A4B;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  white-space: nowrap;
  margin-left: 8px;
}

.script-toggle:hover {
  background: rgba(160, 90, 75, 0.08);
  border-color: rgba(160, 90, 75, 0.6);
}

.script-sep {
  opacity: 0.4;
  margin: 0 1px;
}

/* Active language is bolder, inactive is muted */
body.script-lat .script-lat {
  opacity: 1;
}
body.script-lat .script-en {
  opacity: 0.38;
}
body.script-en .script-en {
  opacity: 1;
}
body.script-en .script-lat {
  opacity: 0.38;
}

/* Scrolled navbar keeps the button visible */
#navbar.scrolled .script-toggle {
  border-color: rgba(160, 90, 75, 0.4);
}