/* Crecimed — official pine, sage, mint and ivory identity. */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/plus-jakarta-sans-latin-variable.woff2') format('woff2');
}
:root {
  --pine: #1c382c;
  --sage: #3d755c;
  --mint: #5e9e80;
  --pastel: #a3cfb8;
  --ivory: #faf9f6;
  --soft: #eff5f0;
  --muted: #607568;
  --border: #dce5de;
}
html { scroll-padding-top: 6.5rem; }
body { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; color: var(--pine); background: var(--ivory); -webkit-font-smoothing: antialiased; }
body::selection, body ::selection { background: var(--pastel); color: var(--pine); }
h1, h2, h3 { letter-spacing: -.03em; }
a, button, input, select, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--mint); outline-offset: 4px; }
[hidden] { display: none !important; }

/* Reuse the existing layout utilities with the shared brand palette. */
.bg-brand-50, .bg-pastel-sky, .bg-pastel-mint { background-color: var(--soft); }
.bg-brand-50\/40 { background-color: rgb(239 245 240 / .4); }
.bg-brand-50\/60 { background-color: rgb(239 245 240 / .6); }
.bg-brand-100 { background-color: #e4f0e9; }
.bg-brand-100\/80 { background-color: rgb(228 240 233 / .8); }
.bg-brand-200\/70 { background-color: rgb(163 207 184 / .7); }
.bg-brand-500 { background-color: var(--mint); }
.bg-brand-600 { background-color: var(--pine); }
.bg-warm-50 { background-color: var(--ivory); }
.bg-warm-50\/50 { background-color: rgb(250 249 246 / .5); }
.bg-warm-50\/90 { background-color: rgb(250 249 246 / .95); }
.bg-warm-100 { background-color: var(--soft); }
.bg-warm-100\/50 { background-color: rgb(239 245 240 / .5); }
.bg-warm-100\/60 { background-color: rgb(239 245 240 / .6); }
.bg-warm-100\/70 { background-color: rgb(239 245 240 / .7); }
.bg-slate-900 { background-color: var(--pine); }
.bg-slate-900\/40 { background-color: rgb(28 56 44 / .4); }
.bg-slate-900\/80 { background-color: rgb(28 56 44 / .8); }
.text-brand-200, .text-brand-300 { color: var(--sage); }
.text-brand-400 { color: var(--mint); }
.text-brand-500, .text-brand-600 { color: var(--sage); }
.text-brand-700, .text-brand-800, .text-slate-800, .text-slate-900 { color: var(--pine); }
.text-slate-700 { color: #365646; }
.text-slate-600 { color: #4f6859; }
.text-slate-400, .text-slate-500 { color: var(--muted); }
.bg-pastel-sky.text-blue-700 { color: var(--sage); }
.border-brand-100, .border-warm-100, .border-warm-200, .border-warm-300 { border-color: var(--border); }
.border-brand-200 { border-color: #c3dccd; }
.border-warm-200\/80 { border-color: rgb(220 229 222 / .8); }
.border-slate-800 { border-color: #365647; }
.divide-warm-100 > :not([hidden]) ~ :not([hidden]) { border-color: var(--border); }
.hover\:bg-brand-700:hover, .group:hover .group-hover\:bg-brand-700 { background-color: var(--sage); }
.hover\:bg-brand-50:hover, .hover\:bg-warm-100:hover { background-color: var(--soft); }
.hover\:bg-brand-100:hover { background-color: #e4f0e9; }
.hover\:bg-warm-50\/70:hover { background-color: rgb(250 249 246 / .7); }
.hover\:text-brand-600:hover, .hover\:text-brand-700:hover { color: var(--sage); }
.hover\:text-brand-800:hover { color: var(--pine); }
.group:hover .group-hover\:bg-slate-900\/30 { background-color: rgb(28 56 44 / .3); }
.from-brand-100\/40 { --tw-gradient-from: rgb(163 207 184 / .3) var(--tw-gradient-from-position); --tw-gradient-to: rgb(163 207 184 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.via-warm-100\/20 { --tw-gradient-stops: var(--tw-gradient-from), rgb(250 249 246 / .2) var(--tw-gradient-via-position), var(--tw-gradient-to); }
.from-slate-900\/40 { --tw-gradient-from: rgb(28 56 44 / .45) var(--tw-gradient-from-position); --tw-gradient-to: rgb(28 56 44 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-brand-50\/30 { --tw-gradient-to: rgb(239 245 240 / .3) var(--tw-gradient-to-position); }
.shadow-soft { --tw-shadow: 0 4px 24px -8px rgb(28 56 44 / .1); }
.shadow-float { --tw-shadow: 0 18px 48px -16px rgb(28 56 44 / .16); }

.site-header-row { gap: 1rem; }
.site-logo { display: inline-flex; width: 188px; flex-shrink: 0; border-radius: .5rem; }
.site-logo img, .footer-logo img { display: block; width: 100%; height: auto; }
.site-header-actions { flex-shrink: 0; }
.mobile-cta-label { display: none; }
#mobile-toggle { width: 40px; height: 40px; flex-shrink: 0; align-items: center; justify-content: center; color: var(--pine); }
#mobile-nav { color: var(--pine); max-height: calc(100svh - 5rem); overflow-y: auto; }
#mobile-nav a { padding-block: .4rem; }
.hero-metrics p:first-child { font-size: clamp(1rem, 3.8vw, 1.5rem); }
.schedule-header, .schedule-footer, .family-photo-caption { flex-wrap: wrap; gap: 1rem; }
.family-photo-caption > div { min-width: 0; }
.family-photo-caption .w-9 { flex-shrink: 0; }

.site-footer { background: var(--pine); color: var(--ivory); }
.footer-logo { display: inline-flex; width: 256px; max-width: 100%; border-radius: .5rem; }
.site-footer .text-slate-400, .site-footer .text-slate-500 { color: #b8ccbf; }
.site-footer a:hover { color: var(--ivory); }
.site-footer a:focus-visible { outline-color: var(--pastel); }
#demo-form input:not([type="checkbox"]), #demo-form select { border-color: #7b9284; background: var(--ivory); color: var(--pine); }
#demo-form input::placeholder { color: var(--muted); opacity: 1; }
#demo-form input:focus, #demo-form select:focus { border-color: var(--sage); --tw-ring-color: var(--sage); }
#info-dialog { background: var(--ivory); color: var(--pine); max-height: calc(100svh - 3rem); overflow-y: auto; }
#info-dialog::backdrop { background: rgb(20 40 32 / .55); backdrop-filter: blur(3px); }

@media (min-width: 1200px) {
  #mobile-nav { display: none !important; }
}
@media (max-width: 1199px) {
  .site-desktop-nav { display: none; }
  #mobile-toggle { display: inline-flex; margin-left: auto; }
}
@media (max-width: 639px) {
  .site-header-row { gap: .5rem; }
  .site-logo { width: 152px; }
  .site-header-actions > a { padding-inline: 1rem; }
  #demo > div > div > .lg\:col-span-7 > div { padding: 1.5rem; }
}
@media (max-width: 419px) {
  .site-logo { width: 140px; }
  .desktop-cta-label { display: none; }
  .mobile-cta-label { display: inline; }
  .site-header-actions svg { display: none; }
  .site-header-actions > a { padding-inline: 1rem; }
  .hero-photo-caption { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .hero-photo-caption > :last-child { border: 0; padding-left: 3.375rem; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

#demo-submit:disabled { opacity: .55; cursor: not-allowed; }

/* Required legal acceptance in the demo request form. */
#demo-form .demo-consent { display: flex; align-items: flex-start; gap: .75rem; padding: .875rem 1rem; border: 1px solid var(--border); border-radius: .875rem; background: var(--soft); }
#demo-form .demo-consent input { width: 1.25rem; height: 1.25rem; margin-top: .125rem; flex-shrink: 0; border-radius: .25rem; border-color: #7b9284; background-color: var(--ivory); color: var(--sage); accent-color: var(--sage); cursor: pointer; }
#demo-form .demo-consent input:checked { background-color: var(--sage); border-color: var(--sage); }
#demo-form .demo-consent label { min-width: 0; color: var(--pine); font-size: .875rem; line-height: 1.6; cursor: pointer; }
#demo-form .demo-consent a { font-weight: 700; text-decoration: underline; text-underline-offset: .15em; }
#demo-form .demo-consent a:hover { color: var(--sage); }

#demo-form .demo-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#demo-form #demo-turnstile { min-width: 0; }
#demo-form [aria-invalid="true"] { border-color: #a23b35; }
#form-status[data-state="error"] { color: #8f322c; }

/* Compact clinic and team fields in the demo form. */
#demo-form .demo-details-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
#demo-form .demo-clinic-field, #demo-form .demo-team-field { min-width: 0; }
#demo-form .demo-team-field { margin: 0; padding: 0; border: 0; }
#demo-form .demo-team-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .375rem; }
#demo-form .demo-team-option { position: relative; display: block; min-width: 0; cursor: pointer; }
#demo-form .demo-team-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
#demo-form .demo-team-option > span { display: flex; align-items: center; justify-content: center; min-height: 46px; border: 1px solid #7b9284; border-radius: .75rem; background-color: var(--ivory); color: var(--pine); font-size: .875rem; font-weight: 700; line-height: 1.25; pointer-events: none; transition: background-color .15s, border-color .15s, color .15s; }
#demo-form .demo-team-option:hover > span { border-color: var(--sage); background-color: var(--soft); }
#demo-form .demo-team-option input:checked + span { border-color: var(--pine); background-color: var(--pine); color: #fff; }
#demo-form .demo-team-option input:focus-visible + span { outline: 3px solid var(--mint); outline-offset: 3px; }
#demo-form .demo-team-option input[aria-invalid="true"] + span { border-color: #a23b35; }
#demo-form .demo-field-hint { margin: .5rem 0 0; color: var(--muted); font-size: .6875rem; line-height: 1.4; }
@media (min-width: 640px) {
  #demo-form .demo-details-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}
