/* ==========================================================================
   TAKT – savjetovanje i osobni razvoj
   ========================================================================== */

:root {
  /* Boje */
  --bg: #FAF6F0;            /* topla bijela */
  --bg-tint: #F2EBE1;       /* svijetla bež */
  --surface: #FFFDF9;
  --primary: #3E6861;       /* zagasita petrolej-zelena */
  --primary-dark: #2E5049;
  --primary-soft: #E3EBE7;
  --accent: #C4886F;        /* svijetla terakota */
  --accent-soft: #F1DDD3;   /* puderasti ton */
  --text: #2F3432;          /* tamnosiva */
  --text-muted: #58605D;
  --line: #E1D8CC;

  /* Tipografija */
  --font-serif: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  --font-sans: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Oblik */
  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(47, 52, 50, .04), 0 8px 28px rgba(47, 52, 50, .06);
  --header-h: 76px;
  --container: 1160px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Osnove ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.125rem;        /* 18px */
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
  margin: 0 0 .6em;
  letter-spacing: .005em;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--primary); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--primary-dark); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  background: var(--primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  z-index: 200;
  transition: top .2s;
}
.skip-link:focus { top: 12px; color: #fff; }

.eyebrow {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--accent);
}

/* ---------- Gumbi ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(46, 80, 73, .18); }
.btn-ghost { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-ghost:hover { background: var(--primary-soft); color: var(--primary-dark); }
.btn-sm { padding: .7rem 1.2rem; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}
.link-arrow span { transition: transform .25s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- Logotip ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--primary);
  text-decoration: none;
}
.logo:hover { color: var(--primary-dark); }
.logo-mark { width: 37px; height: 34px; flex-shrink: 0; }
.logo-arc-l { stroke: #4A5A3C; }
.logo-arc-r { stroke: #A88563; }
.logo-text {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: .32em;
  margin-right: -.32em;   /* kompenzacija razmaka zadnjeg slova */
  line-height: 1;
  color: var(--text);
}
.logo-light, .logo-light:hover { color: var(--accent-soft); }
.logo-light .logo-text { color: #fff; }
.logo-light .logo-arc-l { stroke: #B5C4A3; }
.logo-light .logo-arc-r { stroke: #D2B48F; }

/* ---------- Zaglavlje ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 240, .92);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(47, 52, 50, .04);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.main-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: 2rem;
}
.main-nav a:not(.btn) {
  position: relative;
  font-size: .98rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: .4rem 0;
}
.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.main-nav a:not(.btn):hover::after,
.main-nav a.is-active::after { transform: scaleX(1); }
.main-nav a.is-active { color: var(--primary); }
.nav-cta-mobile { display: none; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  position: relative;
  padding: 0;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute;
  left: 50%;
  width: 18px; height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle-bar { top: 50%; transform: translate(-50%, -50%); }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; transform: translateX(-50%); }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.hero-title {
  font-size: clamp(4rem, 10vw, 7rem);
  letter-spacing: .28em;
  margin-right: -.28em;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: .15em;
  line-height: 1;
}
.hero-motto {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 1.6rem;
}
.hero-lead { color: var(--text-muted); max-width: 34rem; }
.hero-lead-strong { color: var(--text); font-weight: 600; }
.hero-sign {
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: .92rem;
  color: var(--text-muted);
  max-width: 30rem;
}

.hero-photo { margin: 0; position: relative; }
.hero-photo img,
.photo-arch {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  position: relative;
  z-index: 1;
}
/* Mjesto za fotografiju */
.photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  font-size: .95rem;
  color: var(--text-muted);
  background:
    radial-gradient(120% 80% at 30% 20%, rgba(255,255,255,.55), transparent 60%),
    linear-gradient(160deg, var(--primary-soft) 0%, var(--accent-soft) 100%);
  border: 1px dashed rgba(62, 104, 97, .35);
}
.photo-soft, .about-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* ---------- Sekcije ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-tint { background: var(--bg-tint); }
.section-head { max-width: 46rem; margin-bottom: 3rem; }
.section-title { font-size: clamp(2.1rem, 4.2vw, 3rem); }
.section-lead { color: var(--text-muted); font-size: 1.15rem; }

/* Uvod */
.intro { padding-top: clamp(1rem, 3vw, 2rem); }
.intro-text {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  line-height: 1.45;
  font-weight: 500;
  text-align: center;
  max-width: 50rem;
  margin: 0 auto 4rem;
  color: var(--text);
}

.cards {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(47,52,50,.04), 0 14px 36px rgba(47,52,50,.08); }
.card-icon {
  display: inline-flex;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--primary-soft);
  align-items: center;
  justify-content: center;
  margin-bottom: 1.3rem;
}
.card-icon svg {
  width: 26px; height: 26px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card-title { font-size: 1.55rem; margin-bottom: .5rem; }
.card p { color: var(--text-muted); font-size: 1.02rem; }

/* Područja */
.list-title {
  font-family: var(--font-sans);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.3rem;
}
.topics {
  list-style: none;
  padding: 0; margin: 0 0 3.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 3rem;
}
.topics li {
  position: relative;
  padding: 1rem 0 1rem 2rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.12rem;
}
.topics li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  transform: translateY(-50%);
}
.closing {
  max-width: 44rem;
  padding: 2rem 2.2rem;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.closing p {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  line-height: 1.45;
  margin-bottom: 1.2rem;
}

/* Kako izgleda susret */
.split {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.split-text p { color: var(--text-muted); }
.split-text p:first-of-type { color: var(--text); font-weight: 600; }

.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.info-title { font-size: 1.65rem; margin-bottom: 1.2rem; }
.info-list { margin: 0 0 1.8rem; }
.info-list div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: .9rem 0;
  border-bottom: 1px solid var(--line);
}
.info-list div:first-child { border-top: 1px solid var(--line); }
.info-list dt { color: var(--text-muted); font-size: .98rem; }
.info-list dd { margin: 0; font-weight: 700; text-align: right; }

/* O meni */
.about {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.about-photo { margin: 0; }
.about-lead {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1.4;
  font-weight: 500;
}
.about-text p:not(.about-lead):not(.eyebrow) { color: var(--text-muted); }
.about-note {
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 1rem;
  font-style: italic;
}

/* Zašto TAKT */
.why {
  background: var(--primary);
  color: #F4F1EB;
  padding: clamp(4.5rem, 10vw, 8rem) 0;
  position: relative;
  overflow: hidden;
}
.why::before {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  border: 1px solid rgba(241, 221, 211, .18);
  right: -160px; top: -200px;
}
.why::after {
  content: "";
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(241, 221, 211, .12);
  left: -120px; bottom: -140px;
}
.why-inner { max-width: 820px; text-align: center; position: relative; z-index: 1; }
.why-rhythm {
  width: 200px; height: 20px;
  margin: 0 auto 2rem;
  display: block;
}
.why-rhythm line { stroke: rgba(241, 221, 211, .45); stroke-width: 1; }
.why-rhythm circle { fill: rgba(241, 221, 211, .55); }
.why-rhythm circle.accent { fill: var(--accent); }
.why-title { color: #fff; font-size: clamp(2.4rem, 5vw, 3.4rem); }
.why-lead {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.8vw, 1.95rem);
  line-height: 1.4;
  color: #fff;
}
.why-text p { color: #E6E9E4; }
.why-questions {
  list-style: none;
  padding: 0;
  margin: 2.4rem auto;
  display: grid;
  gap: .8rem;
  max-width: 560px;
}
.why-questions li {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  line-height: 1.3;
  color: #fff;
  padding: .9rem 1.2rem;
  border: 1px solid rgba(241, 221, 211, .28);
  border-radius: 999px;
}
.why-end { color: #E6E9E4; max-width: 640px; margin: 0 auto; }

/* Kontakt */
.contact { max-width: 720px; }
.contact-intro > p { color: var(--text-muted); }
.contact-details {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}
.contact-details li {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-details li:first-child { border-top: 1px solid var(--line); }
.cd-label { color: var(--text-muted); font-size: .98rem; }
.cd-value { font-weight: 600; overflow-wrap: anywhere; }

.notice {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  font-size: .98rem;
  line-height: 1.6;
  color: #4A3F3A;
}


/* ---------- Podnožje ---------- */
.site-footer {
  background: #26302D;
  color: #C9CEC9;
  padding: 4rem 0 0;
  font-size: .98rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding-bottom: 3rem;
}
.footer-brand { max-width: 32rem; }
.footer-brand .logo { margin-bottom: 1.2rem; }
.footer-name { color: #fff; font-weight: 600; margin-bottom: .3rem; }
.footer-nav ul {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  gap: .55rem;
}
.footer-nav a { color: #E3E6E2; text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.4rem;
  padding-bottom: 1.6rem;
  font-size: .88rem;
  color: #A7AEA9;
}

/* ---------- Pravne podstranice ---------- */
.legal { padding: clamp(3rem, 7vw, 5rem) 0 clamp(4rem, 8vw, 6rem); }
.legal .container { max-width: 780px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.legal h2 { font-size: 1.6rem; margin-top: 2.4rem; }
.legal p, .legal li { color: var(--text-muted); }
.legal ul { padding-left: 1.2rem; }
.legal .placeholder-note {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  font-size: .95rem;
  color: #4A3F3A;
  margin-bottom: 2rem;
}
.back-link { display: inline-block; margin-bottom: 2rem; font-weight: 600; }

/* ---------- Animacije pojavljivanja ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Responzivnost ---------- */
@media (max-width: 1080px) {
  .main-nav ul { gap: 1.4rem; }
  .header-cta { display: none; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }

  .nav-toggle { display: block; }

  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(47, 52, 50, .08);
    padding: 1rem 24px 1.8rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .main-nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s;
  }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav a:not(.btn) { display: block; padding: 1rem 0; font-size: 1.1rem; }
  .main-nav a:not(.btn)::after { display: none; }
  .nav-cta-mobile { display: flex; width: 100%; margin-top: 1.4rem; }

  .hero-grid,
  .split,
  .about { grid-template-columns: 1fr; }

  .hero-photo { max-width: 420px; margin: 0 auto; width: 100%; }

  .about-photo { max-width: 420px; }
  .info-card { position: static; }

  .cards { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}

@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .container { padding: 0 20px; }
  .topics { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1 1 100%; }
  .closing { padding: 1.6rem 1.4rem; }
  .closing p { font-size: 1.3rem; }
  .contact-details li { grid-template-columns: 1fr; gap: .1rem; }
  .intro-text { text-align: left; }
  .logo-text { font-size: 1.5rem; }
  .why-questions li { border-radius: var(--radius); }
}

/* ---------- Izmjene: ilustracija i O meni bez fotografije ---------- */
.hero-grid { grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 4vw, 3.5rem); }
.hero-photo .hero-illustration {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1428 / 1026;
  object-fit: contain;
  border-radius: 0;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: 560px; }
}
.about-single { grid-template-columns: 1fr; max-width: 820px; }
