/* Sunnyside Clinical Research — site styles
   Brand: orange #FD6419, cream #F8E9E1 (from Company Branding.pdf) */

:root {
  --orange: #fd6419;
  --orange-deep: #b5400a;   /* text-safe orange (AA on white and cream) */
  --orange-tint: #ffe1d0;
  --cream: #f8e9e1;
  --paper: #fffbf8;
  --white: #ffffff;
  --ink: #2a1a12;
  --ink-soft: #5b4a40;
  --line: #ead5c8;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(42, 26, 18, .05), 0 12px 32px -12px rgba(42, 26, 18, .18);
  --wrap: 1180px;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ui: "Montserrat", "Gotham", "Source Sans 3", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; line-height: 1.2; }
h1 em, h2 em { font-style: italic; color: var(--orange-deep); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
.lede { font-size: clamp(1.15rem, 2vw, 1.35rem); color: var(--ink-soft); max-width: 40em; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 46rem; }
.center { text-align: center; margin-inline: auto; }
.center .lede { margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .75rem 1rem; z-index: 100; }
.skip:focus { left: .5rem; top: .5rem; }

.eyebrow {
  font-family: var(--ui); font-weight: 600; font-size: .78rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--orange-deep); margin: 0 0 1rem; display: block;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--ui); font-weight: 600; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; padding: 1rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
  line-height: 1.2; text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--orange); color: var(--ink); }
.btn--primary:hover { background: var(--ink); color: #fff; }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.75rem; }
.center .btn-row { justify-content: center; }
.text-link { font-family: var(--ui); font-weight: 600; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; border-bottom: 2px solid var(--orange); padding-bottom: 2px; color: var(--ink); }
.text-link:hover { color: var(--orange-deep); }

/* Top bar + header */
.topbar { background: var(--cream); font-size: .9rem; }
.topbar__in { display: flex; align-items: center; gap: 1.5rem; min-height: 2.5rem; }
.topbar a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; padding: .45rem 0; }
.topbar a:hover { color: var(--orange-deep); text-decoration: underline; }
.topbar .lang { margin-left: auto; font-weight: 600; }
.topbar svg { width: 1em; height: 1em; color: var(--orange-deep); flex: none; }
.topbar a { white-space: nowrap; }
@media (max-width: 480px) { .topbar__in { gap: 1rem; } .topbar .topbar__loc { display: none; } }

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header__in { display: flex; align-items: center; gap: 1.5rem; min-height: 5rem; }
/* Logo lockup: the sun mark is sized to the same height as the wordmark */
.brand { flex: none; display: flex; align-items: center; gap: .5rem; text-decoration: none; }
.brand img { height: 38px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 1.25rem; }
.nav > ul { list-style: none; display: flex; align-items: center; gap: .25rem; margin: 0; padding: 0; }
.nav > ul > li { position: relative; }
.nav a.nav__link, .nav button.nav__link {
  font: inherit; font-family: var(--ui); font-weight: 500; font-size: .92rem; color: var(--ink);
  background: none; border: 0; cursor: pointer; text-decoration: none; padding: .6rem .7rem; border-radius: 8px;
  display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap;
}
.nav .nav__link:hover, .nav .nav__link[aria-current="page"] { color: var(--orange-deep); }
.nav .nav__link svg { width: .7em; height: .7em; transition: transform .15s ease; }
.nav button[aria-expanded="true"] svg { transform: rotate(180deg); }
.sub {
  list-style: none; margin: 0; padding: .5rem; position: absolute; top: calc(100% + .35rem); left: 0; min-width: 15rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); display: none;
}
.has-sub.open > .sub { display: block; }
.sub a { display: block; padding: .6rem .8rem; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: 1rem; }
.sub a:hover, .sub a[aria-current="page"] { background: var(--cream); color: var(--orange-deep); }
.nav .btn { padding: .8rem 1.2rem; font-size: .74rem; white-space: nowrap; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 2px solid var(--ink); border-radius: 999px; padding: .55rem 1rem; font-family: var(--ui); font-weight: 600; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); cursor: pointer; }

@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 1rem 1.25rem 1.5rem; gap: 1rem; max-height: calc(100vh - 5rem); overflow: auto;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a.nav__link, .nav button.nav__link { width: 100%; justify-content: space-between; padding: .85rem .25rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .sub { position: static; box-shadow: none; border: 0; padding: .25rem 0 .5rem .75rem; background: transparent; }
  .site-header .brand img { height: 32px; }
}

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--cream { background: var(--cream); }
.section--ink { background: var(--ink); color: #fbeee6; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--ink h2 em { color: var(--orange); }
.section--ink .eyebrow { color: var(--orange); }
.section--ink .lede, .section--ink p { color: #e9d6ca; }
.section--ink a:not(.btn) { color: #fff; }
.section__head { margin-bottom: clamp(2rem, 4vw, 3.25rem); max-width: 44rem; }
.section__head.center { margin-inline: auto; }

/* Hero */
.hero { background: var(--cream); overflow: hidden; position: relative; }
.hero__in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; padding: clamp(3rem, 7vw, 6rem) 0; }
.hero h1 { margin-bottom: .4em; }
.hero__art { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; }
/* The sun mark, drawn from the logo artwork in whatever the current text color is */
.sunmark { display: block; aspect-ratio: 1000 / 807; background-color: currentColor;
  -webkit-mask: url("../img/sun.png") center / contain no-repeat; mask: url("../img/sun.png") center / contain no-repeat; }
.hero__art .sunmark { position: relative; width: 92%; color: var(--orange); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn:hover { transform: none; } }
@media (max-width: 860px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__art { max-width: 16rem; width: 100%; margin-inline: auto; }
}

.page-hero { background: var(--cream); padding: clamp(3rem, 6vw, 5rem) 0; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); max-width: 18em; }
.page-hero .lede { margin-bottom: 0; }
.page-hero__sun { position: absolute; right: -4rem; bottom: -5.5rem; width: 22rem; color: var(--orange); opacity: .22; pointer-events: none; }
@media (max-width: 860px) { .page-hero__sun { width: 14rem; right: -3rem; bottom: -3.5rem; } }

/* Grids + cards */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.split--center { align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.section--cream .card { border-color: transparent; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .5rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card--tint { background: var(--cream); border-color: transparent; }
.card__icon { width: 3.25rem; height: 3.25rem; border-radius: 50%; background: var(--orange-tint); color: var(--orange-deep); display: grid; place-items: center; margin-bottom: 1.25rem; }
.card__icon svg { width: 1.5rem; height: 1.5rem; }
.card__tag { font-family: var(--ui); font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-deep); background: var(--orange-tint); border-radius: 999px; padding: .3rem .7rem; display: inline-block; margin-bottom: 1rem; }

.feature { border-top: 3px solid var(--orange); padding-top: 1.25rem; }
.feature h3 { font-size: 1.35rem; }
.feature p { color: var(--ink-soft); margin: 0; }
.section--ink .feature p { color: #e9d6ca; }

.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { position: relative; padding-left: 2rem; margin-bottom: .7rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a1a12' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 1.25rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3.5rem 1fr; gap: 1.25rem; align-items: start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.75rem; }
.steps li::before { content: counter(step); font-family: var(--display); font-size: 1.6rem; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--orange); color: var(--ink); display: grid; place-items: center; }
.steps h3 { margin-bottom: .25rem; font-size: 1.35rem; }
.steps p { margin: 0; color: var(--ink-soft); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.25rem 2.5rem 1.25rem 0; font-family: var(--display); font-size: 1.3rem; line-height: 1.25; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); font-family: var(--body); font-size: 1.75rem; color: var(--orange-deep); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 2.5rem 1.25rem 0; color: var(--ink-soft); }

/* Location */
.location { display: grid; grid-template-columns: 1fr 1fr; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.location__body { padding: clamp(1.75rem, 4vw, 3rem); }
.location__art { background: var(--orange); display: grid; place-items: center; padding: 2rem; min-height: 16rem; }
.location__art .sunmark { width: min(75%, 18rem); color: var(--white); }
.location address { font-style: normal; margin-bottom: 1rem; }
.location .tel { font-family: var(--display); font-size: 1.6rem; text-decoration: none; color: var(--ink); }
.location .tel:hover { color: var(--orange-deep); }
.meta { color: var(--ink-soft); font-size: 1rem; }
@media (max-width: 760px) { .location { grid-template-columns: 1fr; } .location__art { min-height: 10rem; order: -1; } .location__art .sunmark { width: 9rem; } }

/* CTA band */
.cta { background: var(--orange); color: var(--ink); padding: clamp(3rem, 6vw, 4.5rem) 0; }
.cta__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.cta h2 { margin: 0 0 .35rem; font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
.cta p { margin: 0; max-width: 34em; }
.cta .btn--primary { background: var(--ink); color: #fff; }
.cta .btn--primary:hover { background: #fff; color: var(--ink); }

/* Team */
.person { text-align: left; }
.person__photo { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); background: var(--cream); display: grid; place-items: center; margin-bottom: 1.25rem; }
.person__photo .sunmark { width: 38%; color: var(--orange); }
.person h3 { margin-bottom: .15rem; }
.person .role { font-family: var(--ui); font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-deep); margin-bottom: .75rem; }

/* Tables */
.facts { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.facts th, .facts td { text-align: left; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts ul { list-style: none; margin: 0; padding: 0; }
.facts li + li { margin-top: .3rem; }
.facts td p { margin: .8rem 0 0; }
.facts th { width: 38%; font-family: var(--ui); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; color: var(--ink-soft); }
@media (max-width: 600px) { .facts th, .facts td { display: block; width: 100%; } .facts th { border-bottom: 0; padding-bottom: 0; } }

/* Forms */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; font-weight: 600; font-size: 1rem; margin-bottom: .35rem; padding: 0; }
.field .hint { display: block; font-weight: 400; color: var(--ink-soft); font-size: .92rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white); border: 1.5px solid #cdb3a3; border-radius: var(--radius-sm); padding: .8rem .95rem;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--orange); outline-offset: 1px; border-color: var(--ink); }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice { display: flex; gap: .65rem; align-items: flex-start; font-weight: 400; margin-bottom: .4rem; }
.choice input { width: 1.2rem; height: 1.2rem; margin-top: .25rem; accent-color: var(--orange-deep); flex: none; }
.choices-inline { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: .95rem; color: var(--ink-soft); margin: 0; }
.form__status { border-radius: var(--radius-sm); padding: 1rem 1.25rem; font-weight: 600; display: none; }
.form__status.ok { display: block; background: #e3f3e6; color: #17442a; }
.form__status.err { display: block; background: #fde6e0; color: #7a1f0b; }
.form__status a { color: inherit; }
.form-card { background: var(--white); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.75rem); box-shadow: var(--shadow); border: 1px solid var(--line); }
.notice { background: var(--orange-tint); border-left: 4px solid var(--orange); border-radius: var(--radius-sm); padding: 1rem 1.25rem; }
.notice p:last-child { margin: 0; }

/* Prose (legal) */
.prose h2 { font-size: 1.75rem; margin-top: 2.25rem; }
.prose h2:first-child { margin-top: 0; }

/* Footer */
.site-footer { background: var(--ink); color: #e9d6ca; padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; font-size: 1rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--orange); text-decoration: underline; }
.footer__top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.4fr; gap: 2.5rem; }
@media (max-width: 960px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__top { grid-template-columns: 1fr; } }
.site-footer .brand { margin-bottom: 1.25rem; }
.site-footer .brand img { height: 40px; }
.site-footer h2 { font-family: var(--ui); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer address { font-style: normal; }
.newsletter { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .75rem; }
.newsletter input[type="email"] { flex: 1 1 12rem; min-width: 0; font: inherit; padding: .75rem 1rem; border-radius: 999px; border: 1.5px solid #6d5a4f; background: #3a281f; color: #fff; }
.newsletter input::placeholder { color: #cdb8ab; }
.newsletter input:focus { outline: 3px solid var(--orange); outline-offset: 1px; }
.newsletter .btn { padding: .75rem 1.25rem; }
.site-footer .form__status { margin-top: .75rem; }
.footer__bottom { border-top: 1px solid #4a372d; margin-top: 3rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; font-size: .92rem; color: #cdb8ab; }
.footer__bottom p { margin: 0; }
