/*
Theme Name: LogosLife Custom
Theme URI: https://logoslife.com.hr/
Description: Custom one-page WordPress tema za LogosLife obrt za psihoterapiju, savjetovanje, edukaciju i usluge.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: logoslife-custom
*/

:root {
  --bg: #fffaf2;
  --bg-soft: #fff3df;
  --bg-card: rgba(255, 255, 255, 0.76);
  --text: #2f241f;
  --muted: #77675f;
  --brand: #8d1933;
  --brand-dark: #641326;
  --gold: #c78d45;
  --line: rgba(76, 45, 34, 0.13);
  --shadow: 0 24px 80px rgba(74, 44, 28, 0.14);
  --radius-lg: 28px;
  --radius-md: 20px;
  --container: 1120px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(199, 141, 69, 0.20), transparent 32rem),
    radial-gradient(circle at 80% 20%, rgba(141, 25, 51, 0.13), transparent 28rem),
    var(--bg);
  line-height: 1.6;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea { font: inherit; }
::selection { background: rgba(141, 25, 51, .15); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--brand);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  z-index: 1000;
}
.skip-link:focus { left: 12px; }

.container { width: min(calc(100% - 40px), var(--container)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(255, 250, 242, 0.78);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(141, 25, 51, .16);
}
.brand-text { display: grid; line-height: 1.1; }
.brand-name {
  font-family: var(--font-serif);
  color: var(--brand);
  font-size: 1.35rem;
  letter-spacing: .03em;
}
.brand-subtitle {
  color: var(--muted);
  font-size: .74rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 270px;
}
.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  color: var(--muted);
  font-size: .95rem;
  transition: color .2s ease;
}
.nav a:hover { color: var(--brand); }
.nav .nav-cta {
  color: #fff;
  background: var(--brand);
  padding: 11px 17px;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(141, 25, 51, .18);
}
.nav .nav-cta:hover { color: #fff; background: var(--brand-dark); }
.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.65);
  border-radius: 999px;
  padding: 10px 13px;
  cursor: pointer;
}

.hero { padding: 78px 0 44px; position: relative; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 54px;
  align-items: start;
}

.hero-grid > .reveal:first-child {
  max-width: 820px;
}
.eyebrow {
  color: var(--brand);
  letter-spacing: .13em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: .78rem;
  margin: 0 0 14px;
}
h1, h2, h3 { line-height: 1.08; margin: 0; }
h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  letter-spacing: -.055em;
  color: #241a16;
}
.lead {
  margin: 24px 0 0;
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 32px 0 0; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 13px 19px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 18px 46px rgba(141, 25, 51, .22); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary { border-color: var(--line); background: rgba(255,255,255,.62); color: var(--text); }
.hero-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  color: var(--muted);
  font-size: .98rem;
}
.hero-note span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 8px rgba(199, 141, 69, .15);
}

.hero-card {
  position: relative;
  width: min(100%, 560px);
  max-width: 560px;
  justify-self: center;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,243,223,.62));
  padding: 20px;
  box-shadow: var(--shadow);
  transform: rotate(1deg);
}

.hero-card img {
  width: 100%;
  height: 340px;
  object-fit: contain;
  display: block;
  border-radius: calc(var(--radius-lg) - 18px);
}

.hero-card-floating {
  position: absolute;
  left: 24px;
  bottom: 28px;
  width: min(360px, calc(100% - 48px));
  padding: 22px 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(16px);
  border-radius: 26px;
  box-shadow: 0 22px 55px rgba(44, 31, 24, .14);
}

.hero-card-floating strong {
  color: var(--brand);
  display: block;
  font-size: 1.18rem;
}

.hero-card-floating p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1rem;
}
.section { padding: 74px 0; }
.section-head { max-width: 760px; margin-bottom: 34px; }
.kicker { color: var(--brand); text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; font-weight: 800; margin: 0 0 10px; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-family: var(--font-serif); letter-spacing: -.035em; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 15px 0 0; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  border: 1px solid var(--line);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 25px;
  min-height: 230px;
  box-shadow: 0 10px 35px rgba(61, 42, 32, .07);
}
.card-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 15px;
  color: var(--brand);
  background: rgba(141, 25, 51, .08);
  margin-bottom: 18px;
}
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { margin: 0; color: var(--muted); }

.about-grid {
  display: grid;
  grid-template-columns: .78fr 1fr;
  gap: 42px;
  align-items: start;
}
.profile {
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  padding: 18px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 102px;
}
.profile img { border-radius: 22px; width: 100%; aspect-ratio: 1 / 1.15; object-fit: cover; object-position: center top; }
.profile-caption { padding: 18px 6px 4px; }
.profile-caption strong { display: block; color: var(--brand); }
.profile-caption span { color: var(--muted); font-size: .95rem; }
.about-copy {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .56);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 5vw, 44px);
}
.about-copy p { color: var(--muted); font-size: 1.08rem; margin: 0 0 18px; }
.about-copy p:last-child { margin-bottom: 0; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.badge { border: 1px solid var(--line); color: var(--brand-dark); background: rgba(255, 243, 223, .78); padding: 9px 12px; border-radius: 999px; font-weight: 700; font-size: .9rem; }

.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  background: rgba(255,255,255,.58);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  color: rgba(141, 25, 51, .26);
  font-family: var(--font-serif);
  font-size: 3.4rem;
  line-height: 1;
}
.step h3 { margin: 12px 0 9px; }
.step p { margin: 0; color: var(--muted); }

.quote-band {
  margin: 20px 0 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  padding: clamp(30px, 6vw, 54px);
  position: relative;
  overflow: hidden;
}
.quote-band::after {
  content: "";
  position: absolute;
  inset: auto -100px -140px auto;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: rgba(255,255,255,.10);
}
.quote-band p { max-width: 780px; font-family: var(--font-serif); font-size: clamp(1.5rem, 3vw, 2.35rem); line-height: 1.22; margin: 0; }
.quote-band span { display: block; margin-top: 18px; opacity: .8; }

.contact-grid { display: grid; grid-template-columns: .78fr 1fr; gap: 24px; align-items: start; }
.contact-card, .form-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.66);
  box-shadow: 0 14px 50px rgba(61, 42, 32, .08);
}
.contact-card { padding: 30px; }
.contact-list { display: grid; gap: 14px; margin-top: 24px; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 243, 223, .62);
  border: 1px solid var(--line);
}
.contact-link small { display: block; color: var(--muted); }
.contact-link strong { color: var(--brand); }
.form-card { padding: clamp(24px, 4vw, 34px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 15px; }
.field label { display: block; font-weight: 800; font-size: .92rem; margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px;
  color: var(--text);
  background: rgba(255,255,255,.78);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 142px; resize: vertical; }
.field input:focus, .field textarea:focus {
  border-color: rgba(141, 25, 51, .45);
  box-shadow: 0 0 0 4px rgba(141, 25, 51, .08);
}
.privacy { color: var(--muted); font-size: .88rem; margin: 10px 0 18px; }
.notice {
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 18px;
  font-weight: 700;
}
.notice-success { background: rgba(54, 132, 84, .12); color: #22633d; }
.notice-error { background: rgba(141, 25, 51, .10); color: var(--brand-dark); }
.hidden-field { display: none !important; }

.site-footer { padding: 34px 0; border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-inner strong { color: var(--brand); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.float-soft { animation: floatSoft 7s ease-in-out infinite; }
@keyframes floatSoft { 0%,100% { transform: translateY(0) rotate(1deg); } 50% { transform: translateY(-10px) rotate(-.5deg); } }

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

@media (max-width: 880px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    left: 20px;
    right: 20px;
    top: 88px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255,250,242,.96);
    box-shadow: var(--shadow);
  }
  body.menu-open .nav { display: flex; }
  .nav a { padding: 13px 14px; border-radius: 14px; }
  .nav .nav-cta { text-align: center; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .hero-card { max-width: 520px; margin: 0 auto; }
  .profile { position: relative; top: auto; max-width: 460px; }
  .cards, .process { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .header-inner { height: 68px; }
  .brand-subtitle { display: none; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .hero-card img { height: 280px; }
  .hero-card-floating { position: relative; left: auto; bottom: auto; width: auto; margin-top: 14px; }
  .section { padding: 54px 0; }
}
