/* ============================================================
   Petra Kežman — spletna stran
   Barve in tipografija iz Figma dizajna
   ============================================================ */

:root {
  --bg:        #fcf8f7;
  --bg-alt:    #f7f3f2;
  --card-cream: rgba(240, 234, 214, 0.30);
  --card-grey: #e5e2e1;
  --card-breath: #faf9f6;

  --green:     #086a5e;
  --terra:     #bf6a4f;
  --terra-dark:#a85a41;
  --brown:     #705a44;
  --mint:      #a1f2e2;

  --ink:       #1c1b1b;
  --body:      #444844;
  --muted:     #5e5f5d;

  --border:    rgba(197, 199, 195, 0.30);
  --border-warm: rgba(112, 90, 68, 0.12);

  --radius:    12px;
  --radius-sm: 8px;
  --shadow-md: 0 20px 25px -5px rgba(0,0,0,.10), 0 8px 10px -6px rgba(0,0,0,.10);
  --shadow-lg: 0 25px 50px -12px rgba(0,0,0,.25);

  --serif: "Playfair Display", Georgia, serif;
  --sans:  "Montserrat", system-ui, -apple-system, sans-serif;

  --container: 1120px;
  --header-h: 77px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--sans);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); font-weight: 700; line-height: 1.2; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 48px);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Shared bits ---------- */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.eyebrow--green { color: var(--green); }
.eyebrow--terra { color: var(--terra); letter-spacing: .6px; }

.divider-line { display: block; width: 96px; height: 1px; background: #c5c7c3; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
  padding: 16px 32px;
  border-radius: 9999px;
  border: 1px solid transparent;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn--primary { background: var(--terra); color: #fff; }
.btn--primary:hover { background: var(--terra-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--brown { background: var(--brown); color: #fff; padding: 12px 32px; }
.btn--brown:hover { background: #5d4a37; transform: translateY(-2px); }
.btn--outline { background: #fff; color: var(--brown); box-shadow: var(--shadow-md); }
.btn--outline:hover { background: var(--brown); color: #fff; }
.btn--lg { padding: 20px 48px; font-weight: 700; }
.btn--block { width: 100%; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background: rgba(252, 248, 247, .80);
  border-bottom: 1px solid rgba(197,199,195,.15);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  padding-block: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { width: 40px; height: 40px; object-fit: contain; opacity: .85; }
.brand__name { font-family: var(--serif); font-weight: 700; font-style: italic; font-size: 24px; color: var(--muted); }

.nav { display: flex; gap: 32px; }
.nav__link {
  font-size: 14px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--body);
  position: relative;
  padding-block: 4px;
  transition: color .18s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--green);
  transition: width .25s ease;
}
.nav__link:hover { color: var(--green); }
.nav__link:hover::after { width: 100%; }
.nav__link.is-active { color: var(--green); }
.nav__link.is-active::after { width: 100%; }

.header__cta { padding: 10px 24px; }

/* mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 24px 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 16px 24px -12px rgba(0,0,0,.15);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav__link {
  padding: 14px 4px;
  font-size: 15px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
.mobile-nav__link.is-active { color: var(--green); }
.mobile-nav .btn { margin-top: 16px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  margin-top: var(--header-h);
  min-height: 640px;
  height: 80vh;
  max-height: 820px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background: url("../images/hero.jpg") center/cover no-repeat;
  transform: scale(1.05);
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(252,248,247,.92) 0%, rgba(252,248,247,.45) 50%, rgba(252,248,247,0) 100%);
}
.hero__inner { position: relative; }
.hero__content { max-width: 620px; }
.hero__title {
  font-size: clamp(38px, 6vw, 48px);
  letter-spacing: -0.96px;
  margin: 14px 0 18px;
}
.hero__text { font-size: 18px; color: var(--body); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }

/* ============================================================
   PHILOSOPHY
   ============================================================ */
.philosophy {
  position: relative;
  background: var(--bg-alt);
  padding-block: 120px;
  overflow: hidden;
}
.philosophy__watermark {
  position: absolute;
  top: -60px; right: -40px;
  width: 384px;
  opacity: .05;
  transform: rotate(8deg);
  pointer-events: none;
}
.philosophy__inner {
  position: relative;
  max-width: 816px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 31px;
}
.philosophy__mark { width: 66px; height: 48px; object-fit: contain; opacity: .55; }
.philosophy__quote {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.3;
  color: var(--ink);
}
.philosophy__body { font-size: 18px; line-height: 1.6; }

/* ============================================================
   SERVICES — Bento grid
   ============================================================ */
.services { padding-block: 120px; }
.section-head { text-align: center; margin-bottom: 64px; }
.section-head__title { font-weight: 600; font-size: clamp(26px, 4vw, 32px); }
.section-head .eyebrow { margin-bottom: 12px; }

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
}

.card {
  background: var(--card-breath);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 41px;
  position: relative;
  overflow: hidden;
  min-width: 0;
}

/* Hatha (wide) */
.card--hatha {
  grid-column: span 8;
  background: var(--card-cream);
  border-color: var(--border-warm);
  display: flex;
  flex-direction: column;
}
.card--hatha__deco {
  position: absolute;
  right: -80px; bottom: -60px;
  width: 320px; height: 320px;
  border-radius: 9999px;
  object-fit: cover;
  opacity: .6;
  pointer-events: none;
}
.card__body { position: relative; z-index: 1; }
.card__title { font-weight: 600; font-size: 24px; margin-bottom: 14px; }
.card__title--lg { font-size: clamp(24px, 3vw, 32px); }
.card__text { font-size: 16px; color: var(--body); max-width: 440px; }
.card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  background: none; border: 0; padding: 0;
  color: var(--brown);
  font-size: 14px;
  letter-spacing: .6px;
  text-transform: uppercase;
}
.card__link svg { width: 15px; height: 15px; transition: transform .2s ease; }
.card__link:hover svg { transform: translateX(4px); }

/* Dihanje (narrow) */
.card--breath {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
}
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 9999px;
  background: rgba(8,106,94,.10);
  color: var(--green);
  margin-bottom: 20px;
}
.card__icon svg { width: 22px; height: 22px; }
.card--breath .card__text { margin-bottom: auto; }
.card__meter {
  display: block;
  height: 4px;
  border-radius: 9999px;
  background: rgba(197,199,195,.25);
  margin-top: 24px;
  overflow: hidden;
}
.card__meter i { display: block; width: 33%; height: 100%; background: rgba(8,106,94,.35); border-radius: 9999px; }

/* Ritual (full width) */
.card--ritual {
  grid-column: span 12;
  background: var(--card-grey);
  border-color: rgba(112,90,68,.05);
  display: flex;
  align-items: center;
  gap: 48px;
}
.card--ritual__content { flex: 1 1 0; min-width: 0; }
.card--ritual__content .card__text { max-width: none; margin: 14px 0 24px; }
.card--ritual__media { flex: 1 1 0; min-width: 0; }
.card--ritual__media img {
  width: 100%;
  height: 256px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

/* ============================================================
   WHY PETRA
   ============================================================ */
.why { background: var(--bg); padding-block: 120px; }
.why__inner {
  display: flex;
  align-items: center;
  gap: 64px;
}
.why__media { flex: 1 1 0; position: relative; max-width: 504px; }
.why__glow {
  position: absolute;
  top: -40px; left: -40px;
  width: 128px; height: 128px;
  border-radius: 9999px;
  background: rgba(8,106,94,.12);
  filter: blur(32px);
}
.why__photo {
  position: relative;
  border: 8px solid #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.why__photo img { width: 100%; height: 100%; object-fit: cover; }
.why__badge {
  position: absolute;
  right: -24px; bottom: -24px;
  background: var(--terra);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  box-shadow: var(--shadow-md);
}
.why__badge-num { display: block; font-family: var(--serif); font-weight: 600; font-size: 32px; line-height: 1.1; }
.why__badge-label { display: block; font-size: 14px; text-transform: uppercase; letter-spacing: .5px; }

.why__text { flex: 1 1 0; }
.why__title {
  font-size: clamp(34px, 5vw, 48px);
  letter-spacing: -0.96px;
  margin: 12px 0 24px;
}
.feature-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.feature { display: flex; gap: 16px; }
.feature__icon { flex-shrink: 0; color: var(--green); margin-top: 2px; }
.feature__icon svg { width: 22px; height: 22px; }
.feature__title { font-family: var(--sans); font-weight: 700; font-size: 16px; color: var(--ink); margin-bottom: 4px; }
.feature__text { font-size: 16px; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials { padding-block: 120px; }
.testimonials__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
}
.section-head__title--left { text-align: left; }
.testimonials__nav { display: none; gap: 8px; }
.tnav-btn {
  width: 48px; height: 48px;
  border-radius: 9999px;
  border: 1px solid #757874;
  background: transparent;
  color: var(--body);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.tnav-btn svg { width: 18px; height: 18px; }
.tnav-btn:hover { background: var(--green); color: #fff; border-color: var(--green); }

.testimonials__track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.quote {
  background: rgba(240,234,214,.35);
  border: 1px solid var(--border-warm);
  border-bottom: 2px solid rgba(112,90,68,.15);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.quote--featured { box-shadow: var(--shadow-md); transform: scale(1.03); background: rgba(240,234,214,.55); }
.quote__stars { color: var(--terra); letter-spacing: 2px; font-size: 18px; }
.quote blockquote { font-style: italic; color: var(--ink); font-size: 16px; line-height: 1.5; margin: 0; }
.quote__author { display: flex; align-items: center; gap: 16px; font-weight: 700; color: var(--ink); margin-top: auto; }
.avatar {
  width: 40px; height: 40px;
  border-radius: 9999px;
  background: var(--mint);
  color: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta { padding-block: 120px; }
.cta__inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.cta__title { font-size: clamp(34px, 5vw, 48px); letter-spacing: -0.96px; }
.cta__text { font-size: 18px; max-width: 560px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 8px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg-alt); border-radius: 12px 12px 0 0; }
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding-block: 64px;
  text-align: center;
}
.footer__brand { display: flex; flex-direction: column; align-items: center; gap: 15px; }
.footer__logo { width: 64px; opacity: .5; }
.footer__name { font-family: var(--serif); font-weight: 700; font-style: italic; font-size: 24px; color: var(--ink); }
.footer__links { display: flex; flex-wrap: wrap; gap: 32px; justify-content: center; }
.footer__links a { font-size: 16px; transition: color .18s ease; }
.footer__links a:hover { color: var(--green); }
.footer__copy { font-size: 16px; opacity: .6; }

/* ============================================================
   FAB
   ============================================================ */
.fab {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 40;
  width: 56px; height: 56px;
  border-radius: 9999px;
  border: 0;
  background: var(--green);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform .2s ease, background-color .2s ease;
}
.fab:hover { transform: translateY(-3px) scale(1.05); background: #075a50; }
.fab svg { width: 22px; height: 22px; }

/* form */
.form { text-align: left; display: flex; flex-direction: column; gap: 16px; }
.form__row { display: flex; gap: 16px; }
.form__row .form__field { flex: 1; }
.form__field { display: flex; flex-direction: column; gap: 6px; }
.form__field > span { font-size: 13px; font-weight: 600; color: var(--ink); }
.form__field em { color: var(--muted); font-weight: 400; font-style: normal; }
.form__field input,
.form__field select,
.form__field textarea {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(8,106,94,.12);
}
.form__field textarea { resize: vertical; }
.form .btn { margin-top: 8px; }
.hp { position: absolute; left: -9999px; }
.form__status { font-size: 14px; text-align: center; min-height: 20px; }
.form__status.is-success { color: var(--green); font-weight: 600; }
.form__status.is-error { color: #c0392b; font-weight: 600; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .nav, .header__cta { display: none; }
  .nav-toggle { display: flex; }

  .card--hatha, .card--breath { grid-column: span 12; }
  .card--hatha__deco { opacity: .35; }

  .why__inner { flex-direction: column; gap: 72px; }
  .why__media { max-width: 420px; width: 100%; }

  /* Testimonials become a swipeable carousel */
  .testimonials__nav { display: flex; }
  .testimonials__track {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin-inline: -24px;
    padding: 8px 24px 16px;
    scrollbar-width: none;
  }
  .testimonials__track::-webkit-scrollbar { display: none; }
  .quote {
    flex: 0 0 88%;
    max-width: 360px;
    scroll-snap-align: center;
  }
  .quote--featured { transform: none; }
}

@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .philosophy, .services, .why, .testimonials, .cta { padding-block: 72px; }
  .section-head { margin-bottom: 40px; }

  .hero { min-height: 560px; }
  .hero__overlay { background: linear-gradient(180deg, rgba(252,248,247,.55) 0%, rgba(252,248,247,.85) 100%); }

  .card--ritual { flex-direction: column; align-items: stretch; gap: 28px; padding: 28px; }
  .card--ritual__media img { height: 220px; }
  .card { padding: 28px; }

  .testimonials__head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .why__badge { right: 12px; }

  .form__row { flex-direction: column; }
  .footer__links { gap: 16px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
