/* ==========================================================================
   Bill Miller - Vertical Health Services — clean static rebuild
   Faithful reconstruction of the GoDaddy export (light theme); no builder runtime.
   ========================================================================== */

/* ---------- Design tokens (measured from the source) ---------- */
:root {
  --ink: #151515;        /* logo, nav links */
  --heading: #1b1b1b;    /* subpage headings */
  --text: #5e5e5e;       /* body paragraphs, form labels */
  --muted: #595959;      /* footer, reCAPTCHA note */
  --field: #e2e2e2;      /* form borders */
  --panel: #f3f3f3;      /* hero panel */
  --white: #ffffff;
  --black: #000000;      /* submit button, active nav underline, Medium/X circles */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Open Sans', Arial, sans-serif;
  --content-max: 1112px;
  --col: 725px;
}

/* ---------- Fonts (latin subsets, localized from _assets) ---------- */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/fonts/playfair-display.woff2') format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/fonts/open-sans.woff2') format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/open-sans-italic.woff2') format('woff2');
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; margin: 0; }
ul { margin: 0; padding: 0; }

/* ---------- Utilities ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 10px 16px;
  text-decoration: none;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Header
   Desktop: logo centered in a bordered box, nav centered below (200px tall).
   Mobile:  hamburger left, logo centered; full-screen drawer slides in.
   ========================================================================== */
.site-header {
  background: var(--white);
  position: relative;
  z-index: 50;
}
.header-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 56px 24px 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.logo {
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: 0.68px;
  line-height: 1;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 8px 16px;
  text-decoration: none;
  display: inline-block;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 24px;
  list-style: none;
}
.site-nav a {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 6px;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover,
.site-nav a.active {
  border-bottom-color: var(--black);
  padding-bottom: 4px;
}

/* Mobile menu button (hidden on desktop) */
.menu-toggle {
  display: none;
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  padding: 8px 12px;
  cursor: pointer;
  color: var(--ink);
}
.menu-toggle svg { display: block; }

/* Mobile drawer */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 100;
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
}
.mobile-menu.is-open {
  transform: translateX(0);
  visibility: visible;
}
.mobile-menu .menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  background: none;
  border: 0;
  font-size: 32px;
  line-height: 1;
  color: var(--heading);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.mobile-menu nav { padding-top: 56px; }
.mobile-menu ul { list-style: none; }
.mobile-menu a {
  display: block;
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--heading);
  text-decoration: none;
  padding: 16px 24px;
  text-align: left;
}
.mobile-menu a.active { font-weight: 700; }

@media (max-width: 767px) {
  .site-header { position: sticky; top: 0; }
  .header-inner {
    flex-direction: column;
    justify-content: center;
    min-height: 132px;
    padding: 24px;
    gap: 0;
  }
  .header-inner .logo {
    /* Source scaler fits the logo box to ~70% of the nav content width */
    box-sizing: border-box;
    width: 70%;
    max-width: none;
    font-size: 22px;
    line-height: 22px;
    padding: 8px 16px;
    text-align: center;
  }
  .site-nav { display: none; }
  .menu-toggle { display: block; }
}

/* ==========================================================================
   Home hero
   ========================================================================== */
.hero {
  display: flex;
  align-items: stretch;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0;
}
.hero-media {
  flex: 0 0 60%;
}
.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
}
.hero-content {
  flex: 1;
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.hero-content h1 {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 1.012px;
  color: var(--ink);
  text-align: center;
  max-width: 366px;
}

/* Tablet (744-767px, incl. iPad Mini): stack the hero, center image and panel */
@media (max-width: 767px) {
  .hero { flex-direction: column; padding: 0; }
  .hero-media { flex: none; padding: 0 24px; margin-top: 24px; }
  .hero-content { padding: 56px 24px; }
  .hero-content h1 { font-size: 32px; max-width: 320px; }
}

/* ==========================================================================
   Content sections (home bio, about, news)
   ========================================================================== */
.content-section {
  background: var(--white);
  padding: 40px 0;
}
/* Home bio section sits further below the hero, matching the source */
.home-bio {
  padding-top: 80px;
}
.text-col {
  max-width: var(--col);
  margin: 0 auto;
}
.text-col p {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  margin: 0 0 24px;
}
.text-col p:last-child { margin-bottom: 0; }

@media (max-width: 767px) {
  .content-section { padding: 32px 0; }
  .text-col { padding: 0 24px; }
  .contact-form { padding: 0 24px; }
}

/* In the news */
.page-heading {
  text-align: center;
  margin-bottom: 25px;
}
.page-heading h1 {
  font-family: var(--font-sans);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 1.44px;
  line-height: 40px;
  color: var(--heading);
}
.news-list {
  list-style: disc;
  padding-left: 37px;
}
.news-list li {
  margin-bottom: 12px;
}
.news-list li:last-child { margin-bottom: 0; }
.news-list a {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  color: var(--black);
  text-decoration: underline;
}

/* ==========================================================================
   Contact form
   ========================================================================== */
.contact-form {
  max-width: var(--col);
  margin: 0 auto;
}
.contact-form h1 {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.99px;
  line-height: 27.5px;
  color: var(--heading);
  margin-bottom: 24px;
  text-align: left;
}
.form-field {
  position: relative;
  margin-bottom: 24px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--field);
  border-radius: 0;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  padding: 24px 16px 8px;
}
.form-field input { height: 54px; }
.form-field textarea {
  resize: vertical;
  min-height: 146px;
  border: 1px solid var(--field);
}
.form-field label {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--text);
  pointer-events: none;
  transition: top 0.2s ease, font-size 0.2s ease, transform 0.2s ease;
}
.form-field textarea + label {
  top: 32px;
  transform: none;
}
.form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label,
.form-field textarea:focus + label,
.form-field textarea:not(:placeholder-shown) + label {
  top: 10px;
  transform: none;
  font-size: 12px;
}
.form-field input:focus {
  border-bottom-color: var(--ink);
}
.form-field textarea:focus {
  border-color: var(--ink);
}
.form-field .error-msg {
  display: none;
  margin: 6px 0 0;
  font-size: 13px;
  color: #c0392b;
}
.form-field.invalid input { border-bottom-color: #c0392b; }
.form-field.invalid textarea { border-color: #c0392b; }
.form-field.invalid .error-msg { display: block; }

.form-submit {
  margin: 0 0 32px;
}
.form-submit button {
  width: 100%;
  height: 56px;
  background: var(--black);
  border: 0;
  color: #c6c6c6;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
}
.form-submit button:hover { background: #1b1b1b; }
.form-submit button:disabled { opacity: 0.5; cursor: default; }

.form-status {
  display: none;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 12px;
  border-radius: 6px;
}
.form-status.success { color: #16a34a; background: rgba(22, 163, 74, 0.12); }
.form-status.error { color: #dc2626; background: rgba(220, 38, 38, 0.12); }

.recaptcha-note {
  margin: 0;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 18px;
  color: var(--muted);
}
.recaptcha-note a {
  color: var(--muted);
  text-decoration: underline;
}

@media (max-width: 767px) {
  .contact-form h1 { text-align: center; }
}

/* ==========================================================================
   Social links (generated: Social-Links-Generator-Microsite, data-social-bar,
   simple-icons 24x24, inline styles carry sizing/colors)
   ========================================================================== */
.social-links {
  padding: 40px 20px;
  background: var(--white);
}
.social-links [data-social-bar] {
  max-width: var(--content-max);
  margin: 0 auto;
}
.social-links [data-social] {
  transition: transform 0.2s, box-shadow 0.2s;
}
.social-links [data-social]:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--white);
  padding: 56px 24px;
}
.site-footer p {
  margin: 0;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--muted);
}

/* ==========================================================================
   404
   ========================================================================== */
.notfound {
  padding: 80px 24px;
  text-align: center;
}
.notfound h1 {
  font-family: var(--font-sans);
  font-size: 32px;
  font-weight: 400;
  color: var(--heading);
  margin-bottom: 16px;
}
.notfound p {
  color: var(--text);
  margin: 0 0 16px;
}
.notfound a {
  color: var(--ink);
  text-decoration: underline;
}