/* 365 Healthcare — site styles
   Palette: cream ground, ink text, mint + butter accents. Menkind-style system. */

:root {
  --cream: #FFFCF5;
  --ink: #181818;
  --grey: #4A5650;
  --mint: #BFE8DF;
  --mint-pale: #E3F2EA;
  --butter: #FDF3D9;
  --stone: #D9D4CA;
  --rule: rgba(24, 24, 24, 0.12);
  --rule-strong: rgba(24, 24, 24, 0.25);
  --cream-rule: rgba(255, 252, 245, 0.2);
  --font-display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --gutter: 24px;
}

@media (min-width: 900px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
a:hover { color: var(--grey); }
h1, h2, h3, p, ul, ol { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.label--grey { color: var(--grey); }
.label--small { font-size: 10px; }
.display {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(36px, 4.2vw, 56px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
}
.display--giant { font-size: clamp(48px, 8vw, 120px); line-height: 0.92; }
.display--page { font-size: clamp(44px, 7vw, 100px); line-height: 0.95; }
.display .indent { padding-left: min(1.4em, 10vw); }
.display .indent-2 { padding-left: min(2.4em, 14vw); }
.title { font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1.1; }
.title--lg { font-size: 28px; }
.title--xl { font-size: 24px; }
.lede { font-size: 17px; line-height: 1.55; }
.muted { color: var(--grey); }
.pre { white-space: pre-line; }

/* ---------- layout ---------- */
.section { padding: 80px var(--gutter); }
.section--tall { padding-top: 96px; }
.section--rule { border-bottom: 1px solid var(--rule); }
.section--mint { background: var(--mint); }
.section--mint-pale { background: var(--mint-pale); }
.section--butter { background: var(--butter); }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; align-items: start; }
.two-col--wrap { flex-wrap: wrap; }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.stack { display: flex; flex-direction: column; gap: 28px; }
.stack--sm { gap: 16px; }
.stack--lg { gap: 40px; }
.max-420 { max-width: 420px; }
.max-560 { max-width: 560px; }
.max-640 { max-width: 640px; }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 18px;
  border: 1px solid var(--ink); border-radius: 999px;
  background: transparent; color: var(--ink);
  text-decoration: none; cursor: pointer;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  transition: background .3s ease, color .3s ease;
}
.btn:hover { background: var(--ink); color: var(--cream); }
.btn--solid { background: var(--ink); color: var(--cream); }
.btn--solid:hover { background: var(--grey); border-color: var(--grey); }
.btn--sm { height: 40px; padding: 0 16px; }
.btn--light { border-color: var(--cream); color: var(--cream); }
.btn--light:hover { background: var(--cream); color: var(--ink); }
.arr { display: inline-block; transition: transform .35s ease; }
.btn:hover .arr, .tile:hover .arr, .card:hover .arr, .mono-link:hover .arr { transform: translateX(5px); }
.mono-link { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.lnk {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .35s ease;
}
.lnk:hover { background-size: 100% 1px; }

/* ---------- header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  height: 64px; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  color: var(--cream);
  border-bottom: 1px solid rgba(255, 252, 245, 0.35);
  transition: background .4s ease, color .4s ease, border-color .4s ease;
}
.header--solid, .header.is-scrolled {
  background: var(--cream); color: var(--ink); border-color: var(--rule);
}
.header--solid { position: sticky; }
.header nav { display: flex; align-items: center; gap: 20px; }
.header nav a { color: inherit; padding: 12px 0; }
.header nav:last-child { justify-self: end; }
.header .logo { display: flex; align-items: center; color: inherit; }
.header .logo svg { width: 34px; height: 34px; }
.logo-ring { stroke: currentColor; }
.logo-plus { fill: currentColor; }
@media (max-width: 700px) {
  .header nav a:nth-child(n+3) { display: none; }
  .header nav { gap: 14px; }
}

/* logo pulse */
@keyframes heartbeat { 0% { transform: scale(1); } 14% { transform: scale(1.28); } 28% { transform: scale(1); } 42% { transform: scale(1.2); } 70%, 100% { transform: scale(1); } }
.plus { transform-box: fill-box; transform-origin: center; animation: heartbeat 1.8s ease-in-out infinite; will-change: transform; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  background: #6F685C; color: var(--cream);
  display: flex; flex-direction: column;
  padding: 104px var(--gutter) 0;
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__tint { position: absolute; inset: 0; background: rgba(24, 24, 24, 0.14); }
.hero__inner { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.hero__copy { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; padding-top: 10px; }
.hero__label { letter-spacing: 0.16em; }
.hero__title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(40px, 5.4vw, 80px); line-height: 0.95; letter-spacing: -0.02em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center;
}
.hero__title em { font-style: normal; color: var(--butter); }
.tiles {
  list-style: none; margin: 0 calc(-1 * var(--gutter)); padding: 0;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr);
  background: var(--cream); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.tiles::-webkit-scrollbar { display: none; }
.tiles li { scroll-snap-align: start; border-right: 1px solid var(--rule); }
.tiles li:last-child { border-right: 0; }
.tile {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 68px; padding: 0 20px; color: var(--ink); text-decoration: none;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  transition: background .35s ease;
}
.tile:hover { background: #F3EFE4; }
.tile svg { width: 22px; height: 22px; flex: none; }

/* ---------- how it works ---------- */
.steps { list-style: none; padding: 0; display: flex; flex-direction: column; }
.steps li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 24px 0; border-top: 1px solid var(--rule); }
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps .label { padding-top: 6px; }
.steps p { max-width: 460px; }

/* ---------- treatment cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 14px; }
.card__ph { aspect-ratio: 4 / 5; overflow: hidden; background: var(--stone); }
.card__ph img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .7s ease, transform 1.1s var(--ease); }
.card:hover .card__ph img, .card:focus-within .card__ph img { filter: grayscale(0); transform: scale(1.05); }
.card__links { display: flex; gap: 24px; padding-top: 12px; border-top: 1px solid var(--rule); }

/* ---------- pharmacy ---------- */
.ph-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; align-items: start; }
.ph-grid > *:nth-child(even) { margin-top: 48px; }
@media (max-width: 560px) { .ph-grid > *:nth-child(even) { margin-top: 0; } }
.ph-photo { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.panel { aspect-ratio: 3 / 4; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; }
.panel--butter { background: var(--butter); }
.panel--mint { background: var(--mint); }
.panel--cream { background: var(--cream); }
@media (max-width: 560px) { .panel { aspect-ratio: auto; gap: 24px; } }
.contact-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 32px; border-bottom: 1px solid var(--rule); }
.contact-row > div { padding: 24px 0; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 6px; }

/* ---------- hours ---------- */
.hours { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.hours th, .hours td { padding: 16px 0; border-top: 1px solid var(--rule-strong); }
.hours th { text-align: left; font-weight: 400; }
.hours td { text-align: right; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 1px solid var(--rule-strong); }

/* ---------- rows (feedback, about) ---------- */
.rows > div { padding: 20px 0; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 6px; }
.rows > div:last-child { border-bottom: 1px solid var(--rule); }
.rows ol { padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }

/* ---------- forms ---------- */
.form { display: flex; flex-direction: column; gap: 20px; }
.form label { display: flex; flex-direction: column; gap: 8px; }
.form input, .form textarea {
  height: 48px; padding: 0 2px; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0;
  background: transparent; font: inherit; font-size: 16px; color: var(--ink);
}
.form textarea { height: auto; padding: 12px 2px; resize: vertical; }
.form .check { flex-direction: row; align-items: center; gap: 10px; font-size: 14px; }
.form .check input { height: auto; width: 18px; height: 18px; accent-color: var(--ink); }

/* ---------- FAQ ---------- */
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 20px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-family: var(--font-display); font-size: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .arr { font-family: var(--font-mono); font-size: 14px; }
.faq details[open] summary .arr { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; max-width: 560px; }

/* ---------- legal ---------- */
.legal-item { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; padding-top: 24px; border-top: 1px solid var(--ink); }
.legal-item:last-child { border-bottom: 1px solid var(--ink); padding-bottom: 32px; }
.legal-item .body { display: flex; flex-direction: column; gap: 14px; max-width: 640px; color: var(--grey); }
.legal-item strong { color: var(--ink); }

/* ---------- CTA ---------- */
.cta { padding: 120px var(--gutter); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.cta .display { display: block; }
.cta__sub { display: flex; flex-direction: column; align-items: center; gap: 24px; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--cream); padding: 72px var(--gutter) 24px; display: flex; flex-direction: column; align-items: center; gap: 36px; }
.footer__brand { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.footer__brand .wordmark { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 24px; letter-spacing: -0.02em; }
.footer__brand .wordmark svg { width: 34px; height: 34px; }
.footer__tag { font-family: var(--font-display); font-weight: 300; font-size: 20px; color: #BFBAB0; }
.footer__nav { width: 100%; max-width: 640px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; border-top: 1px solid var(--cream-rule); padding-top: 20px; }
.footer__nav a { color: var(--cream); padding: 8px 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.footer__legal { width: 100%; padding-top: 20px; border-top: 1px solid var(--cream-rule); text-align: center; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: #BFBAB0; line-height: 1.8; }

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.rise { animation: rise 1s var(--ease) both; }
.d1 { animation-delay: .15s; } .d2 { animation-delay: .3s; } .d3 { animation-delay: .45s; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .08s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .16s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .24s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: .32s; }
.no-js .reveal, .no-js .reveal-stagger > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
  .card__ph img { filter: none; }
}

/* ---------- contact form extras ---------- */
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { min-height: 1.5em; font-size: 14px; color: var(--grey); }
.form__status[data-ok="false"] { color: #9B2C2C; }

/* ---------- hero picture ---------- */
.hero picture { position: absolute; inset: 0; }
@media (max-aspect-ratio: 1/1) { .hero__img { object-position: center 40%; } }

/* ---------- hero text fit on laptop and tablet shapes ---------- */
@media (min-aspect-ratio: 1/1) and (max-aspect-ratio: 19/10) {
  .hero { padding-top: 84px; }
  .hero__copy { gap: 14px; padding-top: 0; }
  .hero__title { font-size: clamp(28px, 3.6vw, 52px); }
}
@media (max-aspect-ratio: 1/1) {
  .hero__title { font-size: clamp(30px, 8.6vw, 60px); }
}
