:root {
  --bg: #f6f3ee;
  --bg-soft: #efeae2;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --text: #263238;
  --muted: #5e6b6d;
  --line: rgba(38, 50, 56, 0.12);
  --accent: #6f8d7a;
  --accent-dark: #557060;
  --accent-soft: #dce7de;
  --shadow: 0 18px 50px rgba(38, 50, 56, 0.08);
  --radius: 24px;
  --radius-sm: 16px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(111, 141, 122, 0.15), transparent 30%),
    linear-gradient(180deg, #faf8f5 0%, var(--bg) 30%, #f3efe8 100%);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
.container { width: min(calc(100% - 2rem), var(--container)); margin: 0 auto; }
.section { padding: 5.5rem 0; }
.section-soft { background: rgba(255, 255, 255, 0.32); }
.muted-band { padding-top: 1rem; padding-bottom: 1rem; }
.muted-inline { color: var(--muted); }

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 999;
  background: #fff;
  padding: 0.75rem 1rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(250, 248, 245, 0.78);
  border-bottom: 1px solid rgba(38, 50, 56, 0.08);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  min-height: 84px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}
.brand-mark {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #7a95a8);
  box-shadow: 0 10px 26px rgba(111, 141, 122, 0.22);
  font-weight: 700;
}
.brand strong {
  display: block;
  font-size: 1rem;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}
.main-nav {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
}
.main-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
}
.main-nav a:hover,
.main-nav a:focus-visible { color: var(--text); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.button:hover,
.button:focus-visible { transform: translateY(-1px); }
.button-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 28px rgba(111, 141, 122, 0.25);
}
.button-primary:hover,
.button-primary:focus-visible { background: var(--accent-dark); }
.button-secondary {
  background: rgba(255,255,255,0.7);
  border-color: var(--line);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0.25rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
}

.hero {
  padding-top: 4rem;
  padding-bottom: 3rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 3rem;
}
.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent-dark);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}
.hero h1,
.section-heading h2,
.contact-copy h2,
.legal-page h1,
.legal-page h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5rem);
}
.lead {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  color: var(--text);
  max-width: 42rem;
}
.hero-text { max-width: 38rem; color: var(--muted); }
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.8rem 0 1rem;
}
.trust-chips,
.chips {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.trust-chips li,
.chips li {
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(38, 50, 56, 0.08);
  color: var(--muted);
  box-shadow: 0 8px 26px rgba(38, 50, 56, 0.05);
}
.chips-centered {
  justify-content: center;
}
.chips-large li {
  padding: 0.85rem 1rem;
}

.hero-visual {
  position: relative;
  min-height: 670px;
}
.portrait-card {
  position: absolute;
  top: 2.25rem;
  left: 0;
  z-index: 3;
  width: min(43vw, 300px);
  aspect-ratio: 1;
  margin: 0;
  padding: 0.8rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.82);
  box-shadow: 0 22px 50px rgba(38, 50, 56, 0.15);
  backdrop-filter: blur(10px);
}
.portrait-image {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 999px;
  object-position: center 36%;
}
.portrait-card figcaption {
  position: absolute;
  left: -9999px;
}
.slideshow-card {
  position: relative;
  z-index: 2;
  width: min(100%, 490px);
  margin-left: auto;
  margin-top: 4.75rem;
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(180deg, #f6faf7 0%, #e5efe7 100%);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.7);
  min-height: 620px;
}
.slideshow-image {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
  transition: opacity 320ms ease;
}
.slideshow-card.is-fading .slideshow-image {
  opacity: 0.35;
}
.slideshow-overlay {
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1.2rem;
  padding: 1rem 1.1rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(19, 28, 31, 0.28), rgba(19, 28, 31, 0.54));
  color: #fff;
  backdrop-filter: blur(10px);
}
.visual-eyebrow {
  color: rgba(255,255,255,0.84);
  margin-bottom: 0.35rem;
}
.slideshow-overlay strong {
  display: block;
  font-size: 1.08rem;
  margin-bottom: 0.3rem;
}
.slideshow-overlay span {
  display: block;
  font-size: 0.95rem;
  line-height: 1.45;
}
.slideshow-dots {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 60%;
}
.slide-dot {
  width: 0.78rem;
  height: 0.78rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: rgba(255,255,255,0.52);
  box-shadow: 0 4px 12px rgba(0,0,0,0.14);
  padding: 0;
}
.slide-dot.is-active {
  width: 1.65rem;
  background: #fff;
}
.nature-layer {
  position: absolute;
  border-radius: 30px;
}
.nature-layer-1 {
  inset: auto 2% 2% auto;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle at 30% 20%, rgba(122, 149, 168, 0.45), rgba(122, 149, 168, 0.08) 55%, transparent 60%);
}
.nature-layer-2 {
  inset: 6% auto auto 2%;
  width: 180px;
  height: 280px;
  background: url('assets/leaf-pattern.svg') center / contain no-repeat;
  opacity: 0.72;
}

.nature-banner {
  min-height: 190px;
  border-radius: 32px;
  background:
    linear-gradient(90deg, rgba(12, 25, 20, 0.24), rgba(255,255,255,0.04)),
    url('https://psy-leal.ch/wp-content/uploads/2021/11/IMG_6767-scaled.jpeg') center 58% / cover no-repeat;
  box-shadow: var(--shadow);
}

.section-heading {
  max-width: 52rem;
  margin: 0 auto 2.2rem;
  text-align: center;
}
.section-heading.left {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}
.section-heading h2,
.contact-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.25rem);
}

.card-grid {
  display: grid;
  gap: 1rem;
}
.card-grid-five {
  grid-template-columns: repeat(5, 1fr);
}
.card,
.info-card,
.feature-card,
.contact-card,
.contact-form,
.faq-item,
.context-note,
.legal-page article {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.65);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.card,
.info-card,
.context-note {
  border-radius: var(--radius);
  padding: 1.4rem;
}
.card h3,
.info-card h3,
.feature-card h3 {
  margin-top: 0.8rem;
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
}
.icon {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-size: 1rem;
  font-weight: 700;
}
.card p,
.info-card p,
.feature-card p,
.contact-copy p,
.faq-panel p,
footer p,
.context-note p {
  margin: 0;
  color: var(--muted);
}

.approach-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.2rem;
  align-items: start;
}
.feature-card,
.contact-form,
.contact-card {
  border-radius: 28px;
  padding: 1.5rem;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.check-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.8rem;
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-dark);
  font-weight: 700;
}
.small-note {
  font-size: 0.92rem;
  color: var(--muted);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.info-card a {
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
}
.context-note {
  max-width: 860px;
  margin: 1.3rem auto 0;
}

.faq-wrap { max-width: 920px; }
.accordion { display: grid; gap: 0.9rem; }
.faq-item {
  border-radius: 22px;
  overflow: hidden;
}
.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.35rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--text);
  font-weight: 600;
}
.faq-panel {
  padding: 0 1.35rem 1.2rem;
  display: none;
}
.faq-item.open .faq-panel { display: block; }
.faq-symbol { font-size: 1.5rem; color: var(--accent-dark); }

.contact-section {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.15), rgba(255,255,255,0.35)),
    radial-gradient(circle at bottom right, rgba(111, 141, 122, 0.16), transparent 32%);
}
.contact-form {
  display: grid;
  gap: 1rem;
}
.contact-form label {
  display: grid;
  gap: 0.45rem;
  font-weight: 600;
}
.optional {
  font-weight: 400;
  color: var(--muted);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(38, 50, 56, 0.14);
  background: rgba(255,255,255,0.86);
  font: inherit;
  color: var(--text);
}
.contact-form textarea { resize: vertical; min-height: 160px; }
.contact-card { margin: 1.4rem 0; }
.contact-card p + p { margin-top: 1rem; }
.emergency { margin-top: 1rem; }
.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.site-footer {
  padding: 1.6rem 0 2.4rem;
  border-top: 1px solid rgba(38, 50, 56, 0.08);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-nav a {
  color: var(--muted);
  text-decoration-thickness: 1px;
}

.legal-page {
  padding-top: 6rem;
  padding-bottom: 4rem;
}
.legal-page article {
  max-width: 760px;
  margin: 0 auto;
  border-radius: 28px;
  padding: 2rem;
}

@media (max-width: 1080px) {
  .hero-grid,
  .approach-grid,
  .contact-grid,
  .card-grid-five,
  .info-grid {
    grid-template-columns: 1fr 1fr;
  }
  .card-grid-five .card:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 820px) {
  .header-inner {
    grid-template-columns: auto auto;
  }
  .nav-toggle { display: block; justify-self: end; }
  .header-cta { display: none; }
  .main-nav {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 1rem;
  }
  .main-nav.open { display: flex; }
  .hero-grid,
  .approach-grid,
  .contact-grid,
  .card-grid-five,
  .info-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    min-height: auto;
    order: -1;
    display: grid;
    gap: 1rem;
  }
  .portrait-card {
    position: relative;
    top: auto;
    left: auto;
    width: min(100%, 240px);
    justify-self: center;
    margin-bottom: -2rem;
  }
  .slideshow-card {
    margin: 0 auto;
    margin-top: 0;
    width: min(100%, 420px);
    min-height: 500px;
  }
  .slideshow-image {
    min-height: 500px;
  }
  .nature-layer-2 {
    display: none;
  }
  .card-grid-five .card:last-child {
    grid-column: auto;
  }
  .section { padding: 4rem 0; }
}

.resource-page .lead {
  max-width: 48rem;
}
.resource-hero {
  padding-top: 4rem;
  padding-bottom: 2.5rem;
}
.resource-hero-grid,
.resources-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.2rem;
  align-items: start;
}
.resource-hero h1 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
}
.resource-summary h2,
.urgent-card h3,
.resource-card h3 {
  margin-top: 0;
}
.resource-summary a,
.resource-linkline a,
.resource-list a,
.emergency-note-extended a,
.emergency a {
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
}
.resource-text-card,
.resource-card,
.urgent-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.65);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  border-radius: 28px;
  padding: 1.5rem;
}
.resource-category-grid,
.urgency-grid {
  display: grid;
  gap: 1rem;
}
.resource-category-grid {
  grid-template-columns: repeat(2, 1fr);
}
.resource-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}
.resource-list li {
  display: grid;
  gap: 0.2rem;
}
.resource-list span,
.resource-linkline,
.resource-text-card p,
.urgent-card p {
  color: var(--muted);
}
.urgent-card-primary {
  background: linear-gradient(180deg, rgba(111, 141, 122, 0.18), rgba(255,255,255,0.78));
}
.urgency-grid {
  grid-template-columns: repeat(4, 1fr);
}
.emergency-note-extended {
  margin-top: 1rem;
}

@media (max-width: 1080px) {
  .resource-hero-grid,
  .resources-layout,
  .resource-category-grid,
  .urgency-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .resource-hero-grid,
  .resources-layout,
  .resource-category-grid,
  .urgency-grid {
    grid-template-columns: 1fr;
  }
}
