/* ═══════════════════════════════════════════════
   HOME.CSS — Stilovi za početnu stranicu
   Psihoterapija Putnik
   ═══════════════════════════════════════════════ */

/* ── HERO ────────────────────────────────────── */
.hero {
  min-height: 100vh;
  padding-top: var(--nav-height);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Fini gradient pozadina */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 70% at 80% 50%, rgba(155,142,196,0.10) 0%, transparent 65%),
    radial-gradient(ellipse 50% 60% at 15% 70%, rgba(122,158,126,0.10) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 60% 10%, rgba(232,168,124,0.08) 0%, transparent 50%);
  pointer-events: none;
}

/* ── Hero leva strana — tekst ─────────────────── */
.hero-text {
  padding: 80px 60px 80px 80px;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .72rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp .8s .2s forwards;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 36px;
  height: 1px;
  background: var(--sage);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--earth-dark);
  letter-spacing: .03em;
  opacity: 0;
  animation: fadeUp .9s .35s forwards;
}

.hero-title em {
  font-style: italic;
  color: var(--sage-dark);
}

.hero-subtitle {
  margin-top: 28px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--soft-text);
  font-weight: 300;
  max-width: 440px;
  opacity: 0;
  animation: fadeUp .9s .5s forwards;
}

.hero-cta {
  margin-top: 44px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp .9s .65s forwards;
}

/* ── Hero desna strana — logo ilustracija ──────── */
.hero-visual {
  position: relative;
  height: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* Velika blaga elipsa iza loga */
.hero-visual-bg {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    rgba(155,142,196,0.12) 0%,
    rgba(122,158,126,0.08) 40%,
    transparent 70%);
  animation: pulseBg 8s ease-in-out infinite alternate;
}

@keyframes pulseBg {
  0%   { transform: scale(1) rotate(0deg); opacity: .8; }
  100% { transform: scale(1.08) rotate(4deg); opacity: 1; }
}

/* Organički blob u pozadini */
.hero-blob {
  position: absolute;
  width: 500px;
  height: 480px;
  background: rgba(232, 168, 124, 0.07);
  border-radius: 60% 40% 55% 45% / 50% 55% 45% 50%;
  animation: morphBlob 10s ease-in-out infinite alternate;
}

@keyframes morphBlob {
  0%   { border-radius: 60% 40% 55% 45% / 50% 55% 45% 50%; }
  50%  { border-radius: 40% 60% 45% 55% / 55% 45% 60% 40%; }
  100% { border-radius: 50% 50% 60% 40% / 40% 60% 50% 50%; }
}

.hero-logo-img {
  position: relative;
  z-index: 2;
  width: clamp(320px, 38vw, 520px);
  height: auto;
  object-fit: contain;
  opacity: 0;
  animation: fadeIn 1.2s .7s forwards;
  filter: drop-shadow(0 20px 60px rgba(122,158,126,0.15))
          drop-shadow(0 4px 20px rgba(0,0,0,0.06));
}

/* Dekorativni prstenovi oko loga */
.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  animation: spinSlow linear infinite;
}

.hero-ring-1 {
  width: 460px; height: 460px;
  border-color: rgba(122,158,126,0.12);
  animation-duration: 30s;
}

.hero-ring-2 {
  width: 560px; height: 560px;
  border-color: rgba(155,142,196,0.08);
  animation-duration: 45s;
  animation-direction: reverse;
}

.hero-ring-3 {
  width: 380px; height: 380px;
  border-color: rgba(232,168,124,0.10);
  animation-duration: 20s;
  border-style: dashed;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── SEKCIJA — Dugmad / Oblasti ───────────────── */
.areas {
  padding: 100px 80px;
  position: relative;
}

.areas-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  font-size: .7rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--sage-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 18px;
}

.section-label::before,
.section-label::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--sage-light);
}

.areas-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 400;
  color: var(--earth-dark);
  line-height: 1.2;
  letter-spacing: .03em;
}

.areas-title em {
  font-style: italic;
  color: var(--sage-dark);
}

/* Grid 3+2 raspored */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Poslednja 2 dugmeta u centru */
.areas-grid .card:nth-child(4) {
  grid-column: 1 / 2;
  margin-left: auto;
  width: 100%;
}

.areas-grid .card:nth-child(5) {
  grid-column: 2 / 3;
  width: 100%;
}

.areas-grid .card:nth-child(6) {
  grid-column: 3 / 4;
  width: 100%;
}

/* ── CARD ─────────────────────────────────────── */
.card {
  display: block;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 38px 32px 32px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.22,1,.36,1),
              box-shadow .35s,
              background .25s;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sage), var(--lavender), var(--peach));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}

.card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.09);
  background: #fff;
}

.card:hover::before {
  transform: scaleX(1);
}

.card-num {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 300;
  color: rgba(122,158,126,0.22);
  line-height: 1;
  margin-bottom: 18px;
  transition: color .3s;
}

.card:hover .card-num {
  color: rgba(122,158,126,0.45);
}

.card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--earth-dark);
  line-height: 1.2;
  margin-bottom: 12px;
}

.card p {
  font-size: .86rem;
  line-height: 1.7;
  color: var(--soft-text);
  font-weight: 300;
}

.card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sage-dark);
  transition: gap .25s;
}

.card:hover .card-arrow {
  gap: 14px;
}

/* ── QUOTE POJAS ──────────────────────────────── */
.quote-section {
  background: linear-gradient(135deg, var(--sage-dark) 0%, var(--earth-dark) 100%);
  padding: 90px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.quote-section::before {
  content: '"';
  position: absolute;
  top: -30px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-serif);
  font-size: 260px;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  pointer-events: none;
}

.quote-section blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.90);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.55;
  position: relative;
  z-index: 1;
}

.quote-section cite {
  display: block;
  margin-top: 24px;
  font-family: var(--font-sans);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.40);
  font-style: normal;
  position: relative;
  z-index: 1;
}

/* ── INTRO BLOK (ispod hero) ─────────────────── */
.intro-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.intro-strip-item {
  padding: 36px 40px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.intro-strip-item:last-child {
  border-right: none;
}

.intro-strip-item .num {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--sage-dark);
  line-height: 1;
  margin-bottom: 6px;
}

.intro-strip-item p {
  font-size: .78rem;
  letter-spacing: .08em;
  color: var(--soft-text);
  font-weight: 300;
}

/* ── ANIMACIJE ────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── RESPONSIVE ──────────────────────────────────*/
@media (max-width: 1024px) {
  .hero-text {
    padding: 60px 40px;
  }

  .areas {
    padding: 80px 40px;
  }

  .areas-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .areas-grid .card:nth-child(4),
  .areas-grid .card:nth-child(5),
  .areas-grid .card:nth-child(6) {
    grid-column: auto;
    margin-left: 0;
  }

  .quote-section {
    padding: 70px 40px;
  }
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-text {
    padding: 60px 24px 40px;
    text-align: center;
    order: 2;
  }

  .hero-eyebrow {
    justify-content: center;
  }

  .hero-subtitle {
    margin: 20px auto 0;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-visual {
    order: 1;
    min-height: 55vw;
    padding-top: 20px;
  }

  .hero-logo-img {
    width: clamp(220px, 60vw, 320px);
  }

  .hero-ring-1 { width: 300px; height: 300px; }
  .hero-ring-2 { width: 360px; height: 360px; }
  .hero-ring-3 { width: 240px; height: 240px; }
  .hero-visual-bg { width: 360px; height: 360px; }
  .hero-blob { width: 280px; height: 260px; }

  .areas {
    padding: 70px 20px;
  }

  .areas-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .areas-grid .card:nth-child(n) {
    grid-column: auto;
    margin-left: 0;
  }

  .intro-strip {
    grid-template-columns: 1fr;
  }

  .intro-strip-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .intro-strip-item:last-child {
    border-bottom: none;
  }

  .quote-section {
    padding: 60px 24px;
  }
}