/* ========================================================
   Praxis Hypnosophie — shared design system
   ======================================================== */

:root {
  --bg: #f4f8fb;
  --bg-soft: #eaf1f7;
  --primary: #26445e;
  --primary-dark: #172d3f;
  --secondary: #6f9fbe;
  --text: #26333d;
  --text-soft: #5a6b78;
  --light: #ffffff;
  --accent: #c9a06a;
  --accent-soft: #f1e3cd;
  --line: rgba(38, 68, 94, 0.12);
  --shadow-sm: 0 4px 16px rgba(23, 45, 63, 0.06);
  --shadow: 0 14px 40px rgba(23, 45, 63, 0.10);
  --shadow-lg: 0 24px 60px rgba(23, 45, 63, 0.16);
  --radius: 22px;
  --radius-sm: 14px;
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  padding-top: 76px;
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Fraunces', 'Plus Jakarta Sans', serif; color: var(--primary-dark); line-height: 1.18; font-weight: 600; }
p { color: var(--text); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

/* ---------- Nav ---------- */
.navbar {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  background: rgba(244,248,251,0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease;
}
.nav-container {
  max-width: var(--maxw); margin: auto;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.95rem 1.5rem;
}
.logo { font-family: 'Fraunces', serif; font-weight: 600; color: var(--primary-dark); font-size: 1.15rem; display: flex; align-items: center; gap: 0.5rem; }
.logo-mark { width: 20px; height: 20px; flex-shrink: 0; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; }
.menu-toggle span { width: 24px; height: 2.5px; background: var(--primary); border-radius: 999px; }
.nav-links { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.nav-links a { color: var(--text); font-size: 0.93rem; font-weight: 500; transition: 0.25s ease; position: relative; }
.nav-links a:not(.nav-btn):not(.lang-link)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 1.5px;
  background: var(--accent); transition: width 0.25s ease;
}
.nav-links a:not(.nav-btn):not(.lang-link):hover::after { width: 100%; }
.nav-links a:hover { color: var(--primary-dark); }
.nav-btn { background: var(--primary-dark); color: white !important; padding: 10px 20px; border-radius: 999px; font-weight: 600; box-shadow: var(--shadow-sm); }
.nav-btn:hover { background: var(--primary); transform: translateY(-1px); }
.lang-selector { display: inline-flex; align-items: center; gap: 0.35rem; margin-left: 0.4rem; font-size: 0.8rem; font-weight: 700; border-left: 1px solid var(--line); padding-left: 0.9rem; }
.lang-link { padding: 4px 8px; border-radius: 6px; color: var(--text-soft); transition: 0.2s ease; }
.lang-link:hover { background: var(--bg-soft); color: var(--primary); }
.lang-link.active { background: var(--primary-dark); color: white; }

/* ---------- Nav dropdown (Hypnosis topics) ---------- */
.nav-item.has-dropdown { position: relative; display: inline-flex; align-items: center; }
.dropdown-toggle { display: inline-flex; align-items: center; gap: 5px; }
.dropdown-toggle .caret { font-size: 0.7rem; color: var(--text-soft); transition: transform 0.25s ease; line-height: 1; }
.dropdown-menu {
  position: absolute; top: calc(100% + 14px); left: 0; min-width: 230px;
  background: var(--light); border-radius: var(--radius-sm); box-shadow: var(--shadow);
  padding: 0.5rem; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease; z-index: 1200;
}
/* Hover/focus-opening is for real pointer devices only. On touch screens, tapping a
   link both focuses it and triggers a "sticky hover" that doesn't release until the
   user taps elsewhere — without this guard that forces the dropdown open on mobile
   and makes it look like it can't be closed, overriding the JS-driven .open toggle. */
@media (hover: hover) and (pointer: fine) {
  .nav-item.has-dropdown:hover .caret, .nav-item.has-dropdown:focus-within .caret { transform: rotate(180deg); }
  .nav-item.has-dropdown:hover .dropdown-menu,
  .nav-item.has-dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
}
.dropdown-menu a { display: block; padding: 9px 12px; border-radius: 9px; font-size: 0.9rem; font-weight: 500; color: var(--text); }
.dropdown-menu a:hover { background: var(--bg-soft); color: var(--primary-dark); }
.dropdown-menu a::after { content: none; }

@media (max-width: 940px) {
  .nav-item.has-dropdown { display: flex; flex-direction: column; align-items: flex-start; width: 100%; }
  .dropdown-toggle { width: 100%; }
.dropdown-menu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    background: none; padding: 0 0 0 1rem; margin-top: 0;
    border-left: 2px solid var(--line); width: 100%;
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.nav-item.has-dropdown.open .dropdown-menu {
    max-height: 300px; padding: 0.3rem 0 0.3rem 1rem; margin-top: 0.2rem;
}
.dropdown-toggle .caret { transition: transform 0.25s ease; }
.nav-item.has-dropdown.open .dropdown-toggle .caret { transform: rotate(180deg); }
  .dropdown-menu a { padding: 7px 10px; font-size: 0.87rem; color: var(--text-soft); }
}

@media (max-width: 940px) {
  .menu-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 68px; left: 0; width: 100%;
    background: rgba(244,248,251,0.98); backdrop-filter: blur(10px);
    flex-direction: column; align-items: flex-start; padding: 1.5rem;
    display: none; box-shadow: var(--shadow);
  }
  .nav-links.active { display: flex; }
  .lang-selector { margin-left: 0; margin-top: 0.5rem; border-top: 1px solid var(--line); border-left: none; padding-top: 1rem; padding-left: 0; width: 100%; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: white; padding: 2rem;
  background:
    linear-gradient(rgba(18,32,44,0.5), rgba(18,32,44,0.42)),
    url('../images/bck.webp') center/cover no-repeat;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  width: 620px; height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,160,106,0.35), transparent 68%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: breathe 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes breathe {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.9); }
  50% { opacity: 0.9; transform: translate(-50%, -50%) scale(1.08); }
}
.hero-content { position: relative; max-width: 820px; }
.hero .eyebrow { color: var(--accent-soft); }
.hero .eyebrow::before { background: var(--accent-soft); }
.hero h1 { color: white; font-size: clamp(2.6rem, 6vw, 4.4rem); margin-bottom: 1.1rem; font-weight: 500; letter-spacing: -0.01em; }
.hero p { font-size: 1.15rem; margin-bottom: 2.2rem; color: rgba(255,255,255,0.88); max-width: 620px; margin-left: auto; margin-right: auto; }

/* ---------- Sub-page hero (smaller, for target-condition pages) ---------- */
.page-hero {
  position: relative;
  padding: 7.5rem 1.5rem 5rem;
  text-align: center;
  color: white;
  background:
    linear-gradient(rgba(18,32,44,0.62), rgba(18,32,44,0.55)),
    url('../images/bck.webp') center/cover no-repeat;
}
.page-hero h1 { color: white; font-size: clamp(2.1rem, 4.6vw, 3.2rem); font-weight: 500; margin-bottom: 1rem; }
.page-hero p { color: rgba(255,255,255,0.88); max-width: 640px; margin: 0 auto; font-size: 1.08rem; }
.breadcrumb { position: relative; font-size: 0.85rem; color: rgba(255,255,255,0.75); margin-bottom: 1.4rem; }
.breadcrumb a { color: rgba(255,255,255,0.95); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--accent); color: #2a2114;
  padding: 15px 30px; border-radius: 999px; font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.95rem;
  transition: 0.3s ease; box-shadow: var(--shadow);
}
.btn:hover { transform: translateY(-2px); background: #d8b485; box-shadow: var(--shadow-lg); }
.btn-outline {
  display: inline-block; border: 1.5px solid var(--line); color: var(--primary-dark);
  padding: 13px 28px; border-radius: 999px; font-weight: 700; font-size: 0.92rem;
  font-family: 'Plus Jakarta Sans', sans-serif; transition: 0.25s ease;
}
.btn-outline:hover { border-color: var(--primary); background: var(--light); }

/* ---------- Layout ---------- */
section { padding: 6rem 1.5rem; }
.container { max-width: var(--maxw); margin: auto; }
.section-title { font-size: clamp(1.9rem, 3.4vw, 2.5rem); margin-bottom: 1rem; text-align: center; font-weight: 500; }
.section-lede { max-width: 640px; margin: 0 auto 3rem; text-align: center; color: var(--text-soft); font-size: 1.05rem; }
.center { text-align: center; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3.5rem; align-items: center; }
.about img { border-radius: var(--radius); box-shadow: var(--shadow); height: 100%; object-fit: cover; }
.about p { margin-bottom: 1.1rem; color: var(--text-soft); }
.languages { display: inline-flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1.2rem; }
.tag { background: var(--bg-soft); color: var(--primary); padding: 8px 16px; border-radius: 999px; font-size: 0.87rem; font-weight: 600; }

.sbvh-badge {
  margin-top: 2rem; display: flex; align-items: center; text-align: left; gap: 1rem;
  background: var(--light); padding: 1rem 1.2rem; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm); width: max-content; max-width: 100%;
}
.sbvh-badge img { width: 90px; height: auto; flex-shrink: 0; border-radius: 8px; }
.sbvh-badge-text { font-size: 0.9rem; line-height: 1.5; color: var(--text-soft); }
.sbvh-badge-text strong { color: var(--primary-dark); display: block; }
@media (max-width: 700px) { .sbvh-badge { flex-direction: column; text-align: center; } }

/* ---------- Cards / grid ---------- */
.bg-section {
  position: relative;
  background: linear-gradient(rgba(244,248,251,0.94), rgba(244,248,251,0.94)), url('../images/hse.jpg') center/cover fixed;
}
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.card {
  background: var(--light); padding: 2.2rem 2rem; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: 0.3s ease; border: 1px solid transparent;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--line); }
.card-icon {
  width: 48px; height: 48px; border-radius: 14px; background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.2rem;
}
.card-icon svg { width: 24px; height: 24px; stroke: var(--primary); }
.card h3 { margin-bottom: 0.6rem; font-size: 1.2rem; }
.card p { color: var(--text-soft); font-size: 0.97rem; }

/* ---------- Target-condition mini cards (home page cross-links) ---------- */
.topic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.4rem; margin-top: 2.5rem; }
.topic-card {
  display: block; background: var(--light); border-radius: var(--radius-sm);
  padding: 1.8rem; box-shadow: var(--shadow-sm); transition: 0.25s ease; border: 1px solid var(--line);
}
.topic-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); }
.topic-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; display: flex; align-items: center; justify-content: space-between; }
.topic-card p { font-size: 0.92rem; color: var(--text-soft); }
.topic-card .arrow { color: var(--accent); font-size: 1.1rem; transition: 0.25s ease; }
.topic-card:hover .arrow { transform: translateX(4px); }

/* ---------- FAQ ---------- */
.faq-item { background: var(--light); padding: 1.6rem 1.8rem; margin-bottom: 1rem; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.faq-question {
  width: 100%; background: none; border: none; outline: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; text-align: left;
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.05rem; font-weight: 600;
  color: var(--primary-dark); cursor: pointer; padding: 0;
}
.faq-question span { font-size: 1.4rem; transition: transform 0.3s ease; color: var(--accent); flex-shrink: 0; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-answer p, .faq-answer ul { padding-top: 1rem; color: var(--text-soft); }
.faq-answer ul { padding-left: 1.2rem; list-style: disc; }
.faq-item.active .faq-answer { max-height: 500px; }
.faq-item.active .faq-question span { transform: rotate(45deg); }
.faq-note { text-align: center; margin-top: 2rem; color: var(--text-soft); font-size: 0.95rem; }
.faq-note a { color: var(--primary); font-weight: 700; text-decoration: underline; }

/* ---------- Process steps (sub-pages) ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.6rem; margin-top: 2.5rem; }
.step { position: relative; background: var(--light); border-radius: var(--radius-sm); padding: 2rem 1.7rem; box-shadow: var(--shadow-sm); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: 'Fraunces', serif; font-size: 1.6rem; color: var(--accent); display: block; margin-bottom: 0.8rem;
}
.step h4 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.step p { color: var(--text-soft); font-size: 0.93rem; }

/* ---------- Symptom / audience list ---------- */
.check-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.9rem; margin-top: 1.6rem; }
.check-list li { display: flex; gap: 0.7rem; align-items: flex-start; background: var(--light); padding: 1rem 1.2rem; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); font-size: 0.95rem; color: var(--text-soft); }
.check-list svg { flex-shrink: 0; width: 20px; height: 20px; stroke: var(--accent); margin-top: 2px; }

/* ---------- Pricing ---------- */
.pricing { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: white; border-radius: var(--radius); padding: 3.2rem; box-shadow: var(--shadow); }
.pricing h2, .pricing h3 { color: white; }
.pricing h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.pricing p, .pricing li { color: rgba(255,255,255,0.85); }
.pricing ul { padding-left: 1.2rem; margin-top: 0.6rem; list-style: disc; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 2rem; margin-top: 2rem; }
.pricing hr { border: none; border-top: 1px solid rgba(255,255,255,0.15); margin: 2rem 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; align-items: start; }
.contact-card { background: var(--light); padding: 2.2rem; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.contact-card p { margin-bottom: 0.7rem; color: var(--text-soft); }
.contact-card h3 { margin-bottom: 1rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--bg-soft); border-radius: var(--radius); padding: 3.5rem 2.5rem; text-align: center;
}
.cta-band h2 { margin-bottom: 0.8rem; }
.cta-band p { color: var(--text-soft); max-width: 520px; margin: 0 auto 1.8rem; }

/* ---------- Related topics footer block (sub-pages) ---------- */
.related-topics { margin-top: 1rem; }

/* ---------- Footer ---------- */
footer { text-align: center; padding: 2.4rem 1.5rem; color: var(--text-soft); font-size: 0.88rem; }
footer a { color: var(--primary); font-weight: 600; }

@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .hero { min-height: 82vh; }
  .pricing { padding: 2rem; }
  section { padding: 4.2rem 1.2rem; }
}
