/* RAU Consulting & Clinical Group — rebuilt from the Squarespace design */

:root {
  --black: #000;
  --ink: #1c1c1c;
  --gray: #dcdcdc;     /* "bright" sections */
  --paper: #fafafa;    /* services sections */
  --white: #fff;
  --muted: #555;
  --line: rgba(0, 0, 0, 0.85);

  --font-head: "Manrope", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;

  --gutter: clamp(20px, 3.3vw, 48px);
  --max: 1440px;
  --pill: 300px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--black);
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.4rem, 4.3vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 2.6vw, 2.3rem); }
h3 { font-size: clamp(1.3rem, 1.7vw, 1.55rem); line-height: 1.3; }
p { margin: 0 0 1em; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--black); color: var(--white); padding: 8px 14px; z-index: 100;
}
.skip:focus { left: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  padding: 26px 0;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand {
  font-family: var(--font-body);
  font-size: 1.05rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav { display: flex; gap: 26px; }
.nav a {
  font-size: 0.85rem;
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: currentColor; }

.menu-toggle {
  display: none; background: none; border: 0; padding: 6px; cursor: pointer; color: inherit;
}
.menu-toggle span { display: block; width: 24px; height: 1.5px; background: currentColor; margin: 6px 0; transition: transform .2s, opacity .2s; }

.header-dark { color: var(--white); }

@media (max-width: 760px) {
  .menu-toggle { display: block; position: relative; z-index: 31; }
  .nav {
    position: fixed; inset: 0; z-index: 30;
    flex-direction: column; align-items: flex-start; justify-content: center;
    padding: 0 var(--gutter); gap: 18px;
    background: var(--white); color: var(--black);
    transform: translateX(100%); transition: transform .25s ease;
  }
  .nav a { font-family: var(--font-head); font-size: 2rem; }
  .menu-open .nav { transform: none; }
  .menu-open .menu-toggle { color: var(--black); }
  .menu-open .menu-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 0;
  border-radius: var(--pill);
  padding: 1.15em 2.4em;
  background: var(--black);
  color: var(--gray);
  cursor: pointer;
  transition: opacity .2s;
}
.btn:hover { opacity: 0.82; }
.btn-light { background: var(--gray); color: var(--black); }
.btn[disabled] { opacity: .5; cursor: wait; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 130px) 0; }
.bg-gray { background: var(--gray); }
.bg-paper { background: var(--paper); }
.bg-black { background: var(--black); color: var(--white); }
.bg-black h1, .bg-black h2 { color: var(--white); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.lead { font-size: clamp(1.05rem, 1.5vw, 1.38rem); line-height: 1.5; max-width: 30ch; }

/* Home hero */
.hero { padding-top: 140px; padding-bottom: 80px; min-height: 100vh; display: flex; align-items: center; }
.hero .split { width: 100%; }
.hero-img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }
.hero .btn { margin-top: 1.6em; }

/* Image + text */
.media-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Testimonials */
.quotes { position: relative; padding: clamp(56px, 7vw, 96px) 0; }
.quotes-track { max-width: 920px; margin: 0 auto; padding: 0 72px; }
.quote { display: none; }
.quote.is-active { display: block; animation: fade .4s ease; }
.quote blockquote {
  margin: 0 0 1.2em;
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 2.3vw, 2.15rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.quote cite { font-style: normal; font-size: 0.9rem; }
.q-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: var(--ink); color: var(--white);
  display: grid; place-items: center; cursor: pointer;
}
.q-btn:hover { opacity: .85; }
.q-prev { left: var(--gutter); }
.q-next { right: var(--gutter); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Contact block (centered) */
.contact-center { max-width: 600px; margin: 0 auto; text-align: center; }
.contact-center > p { margin-bottom: 2.2em; }
.contact-center .form { text-align: left; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-copy { max-width: 560px; }
.about-copy h2 { margin-top: 1.6em; }
.about-img { position: sticky; top: 40px; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.page-top { padding-top: 140px; }

/* Services */
.svc-hero { min-height: 82vh; padding-top: 150px; }
.svc-hero .split { align-items: start; }
.svc-hero p { max-width: 46ch; font-size: 0.95rem; }
.accordion { max-width: 760px; margin-top: 3em; border-bottom: 1px solid var(--line); }
.accordion details { border-top: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.05em 0; font-size: 0.95rem;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 1.4rem; font-weight: 300; line-height: 1; transition: transform .2s; }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion details p { padding: 0 2.5em 1.2em 0; color: var(--ink); font-size: 0.95rem; }

.svc-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(40px, 5vw, 72px) clamp(24px, 3vw, 48px);
  margin-top: 3em;
}
.svc-grid p { font-size: 0.9rem; color: var(--ink); }

/* Contact page */
.contact-page .split { align-items: start; }
.contact-page .lead { max-width: 44ch; font-size: 1rem; }
.contact-img { position: sticky; top: 40px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* ---------- Form ---------- */
.form { display: grid; gap: 22px; }
.form fieldset { border: 0; margin: 0; padding: 0; }
.form legend, .form .lbl { font-size: 0.9rem; margin-bottom: 6px; display: block; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label span.req { color: var(--muted); font-size: 0.75em; margin-left: 4px; }
.form label { display: block; font-size: 0.78rem; }
.form input, .form textarea {
  display: block; width: 100%; margin-top: 4px;
  font: inherit; font-size: 1rem; color: var(--black);
  background: transparent;
  border: 1px solid var(--black);
  border-radius: var(--pill);
  padding: 0.7em 1.1em;
}
.form textarea { border-radius: 14px; min-height: 120px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--black); outline-offset: 1px; }
.form .actions { text-align: center; }
.form-left .actions { text-align: left; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.4em; font-size: 0.95rem; margin: 0; text-align: center; }
.form-left .form-status { text-align: left; }
.form-status.ok { color: #1b5e20; }
.form-status.err { color: #b00020; }
.form.sent .fields { display: none; }
.cf-turnstile { min-height: 0; }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(56px, 7vw, 96px) 0; background: var(--white); }
.site-footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: start; }
.site-footer h2 { font-size: clamp(1.5rem, 2.6vw, 2.3rem); color: var(--ink); }
.site-footer .email { font-family: var(--font-head); font-size: clamp(1.4rem, 2.6vw, 2.3rem); text-decoration: none; letter-spacing: -0.02em; color: var(--ink); }
.site-footer .email:hover { text-decoration: underline; }
.site-footer p { font-size: 0.85rem; max-width: 30ch; margin-top: 1.5em; }

/* 404 */
.notfound { min-height: 80vh; display: grid; place-items: center; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .split, .about-grid { grid-template-columns: 1fr; }
  .hero { min-height: 0; padding-top: 120px; }
  .hero-img { aspect-ratio: 4 / 3; }
  .about-img, .contact-img { position: static; aspect-ratio: 4 / 3; }
  .about-grid .about-img { order: -1; }
  .svc-hero { min-height: 0; padding-bottom: 72px; }
  .svc-grid { grid-template-columns: 1fr; }
  .quotes-track { padding: 0 var(--gutter) 70px; }
  .q-btn { top: auto; bottom: 0; transform: none; }
  .q-prev { left: var(--gutter); }
  .q-next { left: calc(var(--gutter) + 58px); right: auto; }
  .form .row { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
