/*
Theme Name:  Well: You
Theme URI:   https://wellyou.hr
Author:      GrL'Ca
Author URI:  https://grlca.com
Description: Well: You — online savjetodavna terapija i psihoterapija. Design follows the client's "srednja" version (2026-11). Works with GrL'Ca Booking (Pro) and the GrL'Ca Live Editor.
Version:     2.0.0
Requires at least: 6.0
Requires PHP: 8.0
License:     GPL v2 or later
Text Domain: wellyou
*/

/* ============================================================
   Colours. The short names are the ones the GrL'Ca Live Editor
   colour panel overrides (see functions.php).
   --p  primary (buttons, links)   --s  dark (headings)
   --a  accent (eyebrows)          --d  darkest text
   --bg page background            --t  body text
   --l  light tint (panels, cards)
   ============================================================ */
:root {
  --p:  #1e8e85;
  --s:  #155e57;
  --a:  #2aa79b;
  --d:  #12302d;
  --bg: #ffffff;
  --t:  #1f3b38;
  --l:  #e4f3f0;

  --card:   #f1f8f7;
  --line:   #d4e8e4;
  --muted:  #5f7672;
  --radius: 16px;
  --wrap:   1220px;

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:  'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* GrL'Ca Booking picks these up */
  --grlca-primary: var(--p);
  --grlca-primary-dark: var(--s);
  --grlca-radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--t);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--p); text-decoration: none; }
a:hover { color: var(--s); }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--s);
  line-height: 1.15;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); }
h3 { font-size: 1.3rem; }
p  { margin: 0 0 1em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 56px 0; }
.section-sm { padding: 32px 0; }

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--a);
  margin-bottom: 10px;
}
.lead { font-size: 16px; color: var(--t); max-width: 760px; }
.small { font-size: 13px; color: var(--muted); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 34px;
  border-radius: 999px; border: 1.5px solid var(--p);
  font-family: var(--sans); font-size: 15px; font-weight: 500;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s;
  text-align: center;
}
.btn-primary { background: var(--p); color: #fff; }
.btn-primary:hover { background: var(--s); border-color: var(--s); color: #fff; }
.btn-ghost { background: transparent; color: var(--s); border-color: var(--s); }
.btn-ghost:hover { background: var(--s); color: #fff; }
.btn-white { background: #fff; color: var(--s); border-color: #fff; }
.btn-white:hover { background: var(--l); color: var(--s); }
.btn-sm { min-height: 34px; padding: 0 22px; font-size: 13px; letter-spacing: .03em; text-transform: uppercase; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ── Header ──────────────────────────────────────────────── */
.site-header { background: #fff; position: sticky; top: 0; z-index: 50; }
.site-header.on-tint { background: var(--l); transition: background .2s; }
.site-header.on-tint.scrolled { background: #fff; }
.site-header .bar {
  display: flex; align-items: center; gap: 24px;
  min-height: 74px; border-bottom: 1px solid var(--line);
}
.logo { font-family: var(--serif); font-size: 22px; color: var(--s); white-space: nowrap; }
.logo:hover { color: var(--s); }
.site-header nav { flex: 1; }
.nav-menu { display: flex; justify-content: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-menu a { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.nav-menu a:hover, .nav-menu a.active { color: var(--s); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: inline-flex; align-items: center; min-height: 32px; padding: 0 16px; border-radius: 999px; background: var(--l); font-size: 13px; color: var(--s); }
.site-header.on-tint .lang-switch { background: #fff; }
.lang-switch a { color: var(--muted); }
.lang-switch a.active { color: var(--s); font-weight: 500; }
.lang-switch span { margin: 0 4px; color: var(--muted); }
.nav-burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--s); margin: 5px 0; }

/* ── Hero (home) ─────────────────────────────────────────── */
.hero { background: var(--l); border-radius: 0 0 28px 28px; padding: 18px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: stretch; }
.hero-text { padding: 16px 0 22px; }
.hero-text p { max-width: 620px; margin-top: 56px; }
.hero-media { position: relative; display: flex; justify-content: flex-end; align-items: flex-end; }
.hero-media img { width: 250px; max-width: 100%; height: 314px; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.hero-card {
  position: absolute; right: 202px; bottom: 40px; max-width: 262px;
  background: #fff; border-radius: 14px; padding: 18px 22px;
  box-shadow: 0 10px 30px rgba(21,94,87,.10); font-size: 14px;
}
.hero-card strong { display: block; color: var(--d); }
.hero-card .small { margin: 14px 0 0; }

/* ── Cards ───────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; display: flex; flex-direction: column;
}
.card-white { background: #fff; }
.card-tint { background: var(--l); border-color: transparent; }
.card h3 { margin-bottom: 14px; }
.card p { font-size: 14px; color: var(--muted); margin-bottom: 0; }
.card .num { font-size: 12px; color: var(--a); margin-bottom: 12px; }
.card .more { margin-top: auto; padding-top: 22px; font-size: 14px; }
.card .rule { width: 46px; height: 2px; background: var(--a); margin-bottom: 18px; border-radius: 2px; }
.home-paths { margin-top: -6px; padding-top: 6px; }
.home-paths .card { padding: 26px; }

.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--p); color: #fff; border-radius: var(--radius);
  padding: 26px 34px; margin-top: 18px;
}
.cta-band p { font-family: var(--serif); font-size: 19px; margin: 0; }
.cta-band .btn { min-width: 170px; }

/* ── About ───────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 360px 1fr; gap: 46px; align-items: start; }
.about-photo { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.about-sub { color: var(--a); font-size: 15px; margin-bottom: 22px; }
.creds { margin-top: 34px; }
.creds .card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.creds .card p { font-size: 12.5px; }

/* ── Organizations ───────────────────────────────────────── */
.org-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.org-grid img { border-radius: var(--radius); width: 100%; aspect-ratio: 5 / 3; object-fit: cover; }

/* ── Prices + booking ────────────────────────────────────── */
.prices-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.price-list { display: grid; gap: 10px; margin-top: 28px; }
.price-row {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  min-height: 68px; padding: 0 26px;
}
.price-row .amount { color: var(--p); }
.booking-box { border: 1px solid var(--line); border-radius: 22px; padding: 30px; background: #fff; }
.booking-box h3 { margin-bottom: 8px; }
.booking-box > p { font-size: 13px; color: var(--muted); }

/* GrL'Ca Booking list view inside the box: pills and rows like the design */
.booking-box .grlca-slot-list { font-family: var(--sans); }
.booking-box .grlca-slot-list-title { display: none; }
.booking-box .grlca-slot-list-services { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.booking-box .grlca-slot-list-service { border-radius: 999px; background: var(--l); border: 0; color: var(--s); padding: 10px 30px; font: inherit; font-size: 14px; }
.booking-box .grlca-slot-list-service[aria-selected="true"] { background: var(--p); color: #fff; }
.booking-box .grlca-slot-list-label { color: var(--t); font-size: 14px; }
.booking-box .grlca-slot-list-item { background: var(--l); border: 0; border-radius: 10px; min-height: 50px; }
.booking-box .grlca-slot-list-dot { border-color: var(--p); }
.booking-box .grlca-slot-list-item[aria-checked="true"] .grlca-slot-list-dot { background: var(--p); }
.booking-box .grlca-slot-list-continue { border-radius: 999px; min-height: 52px; background: var(--p); font-size: 16px; justify-content: center; text-align: center; width: 100%; }
.booking-fallback { background: var(--card); border-radius: 12px; padding: 18px; font-size: 14px; }

/* ── Blog ────────────────────────────────────────────────── */
.post-card h3 { font-size: 1.25rem; line-height: 1.3; }
.post-card h3 a { color: var(--s); }
.post-card .cat { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--a); margin-bottom: 12px; }
.post-card .meta { margin-top: auto; padding-top: 40px; font-size: 13px; color: var(--muted); }
.post-card { min-height: 330px; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 36px; }
.pagination .page-numbers { padding: 6px 14px; border-radius: 999px; background: var(--l); color: var(--s); }
.pagination .current { background: var(--p); color: #fff; }

.article-grid { display: grid; grid-template-columns: 1fr 428px; gap: 46px; align-items: start; }
.article .crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.article h1 { margin-bottom: 56px; }
.article .byline { font-size: 13px; color: var(--muted); margin-bottom: 26px; }
.article .entry { font-size: 15.5px; line-height: 1.75; }
.article .entry p { margin-bottom: .9em; }
.article .entry h2 { font-size: 1.6rem; margin-top: 1.4em; }
.article-side { display: grid; gap: 22px; position: sticky; top: 100px; }
.article-side .card h3 { font-size: 1.25rem; }
.article-side .btn { align-self: flex-start; margin-top: 40px; min-width: 240px; }
.read-more-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 18px; font-size: 14px; }

/* ── Contact ─────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: stretch; margin-top: 18px; }
.contact-form { border: 1px solid var(--line); border-radius: 18px; padding: 28px; background: #fff; }
.contact-form label { display: block; font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form textarea {
  width: 100%; border: 1px solid var(--line); background: var(--card); border-radius: 12px;
  padding: 14px 22px; font: inherit; font-size: 14px; color: var(--t); margin-bottom: 22px;
}
.contact-form textarea { min-height: 60px; resize: vertical; }
.contact-form .row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.contact-form .btn { min-width: 228px; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--muted); margin: -6px 0 20px; }
.contact-form .consent input { margin-top: 3px; }
.contact-side { display: grid; gap: 18px; }
.notice { border-radius: 12px; padding: 14px 18px; margin-bottom: 18px; font-size: 14px; }
.notice-ok { background: var(--l); color: var(--s); }
.notice-err { background: #fdecec; color: #8a1f1f; }

/* ── Trust ───────────────────────────────────────────────── */
.trust-note { background: var(--l); border-radius: var(--radius); padding: 24px 28px; margin-top: 18px; font-size: 14.5px; }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq { display: grid; gap: 10px; margin-top: 26px; max-width: 900px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 24px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-family: var(--serif); font-size: 1.1rem; color: var(--s); display: flex; justify-content: space-between; gap: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--sans); color: var(--p); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq .answer { padding: 0 0 20px; font-size: 14.5px; color: var(--muted); }

/* ── Services details ────────────────────────────────────── */
.svc-detail { scroll-margin-top: 100px; border-top: 1px solid var(--line); padding: 40px 0; display: grid; grid-template-columns: 300px 1fr; gap: 40px; }
.svc-detail p { max-width: 720px; }

/* ── Generic page content ────────────────────────────────── */
.page-content { max-width: 820px; }
.page-content h2 { margin-top: 1.4em; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer .bar {
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding: 22px 0 36px; margin-top: 40px;
  font-size: 13px; color: var(--muted);
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--s); }
.site-footer .links span { margin: 0 6px; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: 1fr; }
  .article-side { position: static; }
}
@media (max-width: 900px) {
  .nav-menu { display: none; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 16px; }
  .nav-menu.open { display: flex; }
  .nav-menu a { display: block; padding: 12px 0; }
  .nav-burger { display: block; }
  .nav-right .btn { display: none; }
  .bar { position: relative; }
  .hero-grid, .about-grid, .org-grid, .prices-grid, .contact-grid, .svc-detail { grid-template-columns: 1fr; }
  .hero-text { padding-bottom: 0; }
  .hero-media { flex-direction: column; align-items: center; }
  .hero-media img { width: 100%; max-width: 340px; height: auto; aspect-ratio: 4 / 5; }
  .hero-card { position: relative; right: auto; bottom: auto; margin: -70px auto 20px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .section { padding: 40px 0; }
}
