/* Shorter main page and its sub pages (about, method, groups, publications). Layout only: the texts are unchanged. */

/* Menu: fewer links plus one booking button */
.hamburger { background: none; border: 0; padding: 6px; }
.nav-menu { gap: 1.4rem; align-items: center; }
.nav-cta { display: inline-block; padding: 9px 18px; border-radius: 24px; background: #2c3e2c; color: #fff !important; font-weight: 700; text-decoration: none; white-space: nowrap; }
.nav-cta:hover, .nav-cta:focus-visible { background: #1f2d1f; }
@media (max-width: 1100px) and (min-width: 769px) { .nav-menu { gap: 1rem; font-size: .95rem; } .logo h1, .logo-link { font-size: 1.25rem; } }
@media (max-width: 768px) {
  .nav-menu { gap: 1.1rem; max-height: calc(100vh - 70px); overflow-y: auto; }
  .nav-cta-item { width: 100%; }
  .nav-cta { display: block; text-align: center; }
}
.logo-link { font: 700 1.5rem/1.2 'Rubik', 'Assistant', sans-serif; color: var(--primary-color); text-decoration: none; }

/* Hero: the booking button sits right under the opening line, so it is visible before scrolling */
body[data-campaign-page="professional_home"] #home .rev-actions { margin-top: 18px; }
body[data-campaign-page="professional_home"] #home .rev-note { margin: 10px 0 22px; }
@media (max-width: 800px) {
  body[data-campaign-page="professional_home"] #home.hero { padding-top: 88px; }
  body[data-campaign-page="professional_home"] #home .hero-content { padding-top: 12px; }
  /* The illustration comes first on phones, above the title, kept short so the booking button still shows */
  body[data-campaign-page="professional_home"] #home .rev-family-hero-art { order: -1; max-width: none; margin: 0 -20px; width: calc(100% + 40px); }
  body[data-campaign-page="professional_home"] #home .hero-content { gap: 14px; }
}

/* Therapy types: same four cards, smaller */
.therapy-section--compact { padding-block: 60px; }
.therapy-section--compact .therapy-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.therapy-section--compact .therapy-image { height: 150px; object-fit: cover; }
.therapy-section--compact .therapy-content { padding: 16px; }
.therapy-section--compact .therapy-content h3 { font-size: 1.15rem; margin-bottom: 6px; }
.therapy-section--compact .therapy-content p { font-size: .98rem; line-height: 1.6; margin-bottom: 10px; }
.therapy-section--compact .therapy-card-btn { padding: 6px 12px; font-size: .9rem; }
@media (max-width: 1024px) { .therapy-section--compact .therapy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 768px) {
  .therapy-section--compact { padding-block: 44px; }
  .therapy-section--compact .therapy-grid { grid-template-columns: 1fr; gap: 12px; }
  .therapy-section--compact .therapy-card { display: grid; grid-template-columns: 96px 1fr; align-items: stretch; }
  .therapy-section--compact .therapy-image { height: 100%; min-height: 110px; }
  .therapy-section--compact .therapy-content { padding: 12px 14px; }
}
.section-more { text-align: center; margin-top: 22px; font-size: 1.05rem; }

/* About summary */
.about-section--summary { padding-block: 60px; }
.about-section--summary .about-content { align-items: center; }
@media (max-width: 768px) { .about-section--summary { padding-block: 44px; } }

/* Research summary */
.rev-section--summary .rev-inner { max-width: 860px; }
.rev-section--summary .rev-study { margin-top: 18px; }

/* Podcast and media strip */
.listen-section { padding-block: 60px; background: #f7f5f0; }
.listen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 10px; }
.listen-card { background: #fff; border: 1px solid #d9ded1; border-radius: 12px; padding: 20px; min-width: 0; }
.listen-card:first-child { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: start; }
.listen-card img { width: 110px; height: 110px; object-fit: cover; border-radius: 10px; }
.listen-card h3 { font-size: 1.15rem; margin: 0 0 8px; }
.listen-card p { margin: 0 0 12px; line-height: 1.6; }
.listen-card .btn { padding: 8px 16px; font-size: .95rem; }
.listen-card .media-source, .listen-card .media-meta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; font-size: .92rem; color: #4d5a45; margin-bottom: 8px; }
@media (max-width: 768px) {
  .listen-section { padding-block: 44px; }
  .listen-grid { grid-template-columns: 1fr; }
  .listen-card:first-child { grid-template-columns: 80px 1fr; }
  .listen-card img { width: 80px; height: 80px; }
}

/* Contact: details in one line, a shorter form */
.contact-section--compact { padding-block: 56px; }
.contact-section--compact .contact-line { text-align: center; margin: -10px 0 22px; font-size: 1.05rem; }
.contact-section--compact .contact-content { display: block; max-width: 640px; margin: 0 auto; }
.contact-section--compact .contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.contact-section--compact .contact-form > * { grid-column: 1 / -1; }
.contact-section--compact .contact-form > .form-group:nth-of-type(1),
.contact-section--compact .contact-form > .form-group:nth-of-type(2) { grid-column: auto; }
.contact-section--compact .form-group { margin-bottom: 12px; }
@media (max-width: 600px) {
  .contact-section--compact { padding-block: 40px; }
  .contact-section--compact .contact-form { grid-template-columns: 1fr; }
  .contact-section--compact .contact-form > .form-group:nth-of-type(1),
  .contact-section--compact .contact-form > .form-group:nth-of-type(2) { grid-column: 1 / -1; }
}

/* Footer: one row of links, newsletter inside */
.footer--compact { padding: 40px 0 20px; }
.footer-compact-top { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.footer--compact .footer-brand h3 { margin: 0 0 6px; }
.footer--compact .footer-brand p { margin: 0 0 6px; }
.footer--compact a { color: inherit; }
.footer-nl-title { font-size: 1.05rem; margin: 0 0 8px; }
.footer--compact .newsletter-form { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.footer--compact .newsletter-form input[type=email] { flex: 1 1 200px; min-width: 0; padding: 9px 12px; border-radius: 6px; border: 1px solid #c9cfbd; }
.footer--compact .newsletter-form .btn { padding: 9px 18px; }
.footer--compact .newsletter-consent { flex-basis: 100%; font-size: .9rem; line-height: 1.5; }
.footer--compact .newsletter-privacy { font-size: .85rem; margin: 6px 0 0; }
.footer-inline-links { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer--compact .footer-bottom { margin-top: 20px; }
@media (max-width: 768px) {
  .footer--compact { padding: 28px 0 90px; }
  .footer-compact-top { grid-template-columns: 1fr; gap: 20px; }
  .footer-inline-links { gap: 6px 16px; font-size: .95rem; }
}

/* Sub pages: room under the fixed header */
.subpage-main { padding-top: 84px; }
.subpage-main h1.section-title { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.subpage-main .rev-section h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 18px; }
@media (max-width: 768px) { .subpage-main { padding-top: 70px; } }

/* Keep phone numbers and addresses on one line */
.contact-line a, .footer-contact-line a { white-space: nowrap; }
@media (max-width: 600px) {
  .contact-section--compact .contact-form-wrapper { padding: 18px 16px; }
  .contact-section--compact .section-subtitle { margin-bottom: 18px; }
}

/* Newsletter inside the dark footer */
.footer--compact .newsletter-form { flex-direction: row !important; align-items: stretch; }
.footer--compact .newsletter-form input[type=email] { flex: 1 1 160px !important; height: 44px !important; min-height: 0 !important; background: #fff; color: #1a1a1a; }
.footer--compact .newsletter-form .btn { flex: 0 0 auto; height: 44px; background: #e8eddf !important; color: #1f2d1f !important; border: 0; }
.footer--compact .newsletter-consent { display: flex; gap: 8px; align-items: flex-start; }
.footer--compact .newsletter-consent input { margin-top: 5px; flex: 0 0 auto; }
.footer-nl-text { margin: 0 0 10px; font-size: .95rem; }
.footer--compact h3, .footer-nl-title { color: #fff !important; }
.footer--compact .footer-legal { display: flex !important; flex-wrap: wrap; gap: 6px 18px; justify-content: center; }
.footer--compact .footer-legal a { white-space: nowrap; }

/* Workplaces and collaborations under the biography link on the main page */
.rev-institutions--about { margin-top: 22px; padding-top: 20px; border-top: 1px solid #d9ded1; }
.rev-institutions--about ul { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
@media (max-width: 520px) { .rev-institutions--about ul { grid-template-columns: 1fr !important; gap: 8px !important; } }
.rev-institutions--about .inst-more { margin: 14px 0 0; }
.rev-institutions--about .inst-more a { display: inline !important; background: none !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; transform: none !important; font-size: 1.05rem !important; color: #1f4e8c !important; text-decoration: underline !important; text-underline-offset: 3px; }

/* Main page hero illustration: size and crop. The animation itself is in hero-anim.css. */
body[data-campaign-page="professional_home"] #home .hero-art-stage { position: relative; width: 155%; --hero-x: 36.4%; --hero-y: 32.4%; }
body[data-campaign-page="professional_home"] #home .hero-art-stage img { display: block; width: 100% !important; max-width: none; height: auto; margin: 0 !important; border-radius: 0; }
@media (max-width: 800px) {
  body[data-campaign-page="professional_home"] #home .hero-art-stage { width: 160%; margin-inline-start: -2%; }
}
