/* Total Spectrum Health — base styles
   Palette pulled from the TSH logo marks in assets/images/:
   navy/blue range for text and structure, cyan for accents,
   the coral-to-peach "sunrise" gradient reserved for calls to action. */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f4f9fb;
  --color-text: #1a2733;
  --color-muted: #56646f;
  --color-border: #e2e9ee;

  --color-navy-900: #0d1d4f;
  --color-navy-800: #10426b;
  --color-navy-700: #19498c;
  --color-blue-600: #1b5c8b;
  --color-cyan-600: #2897c3;
  --color-cyan-400: #2eaed9;
  --color-cyan-300: #77cbe0;

  --color-coral-700: #99432f;
  --color-coral-600: #c7634c;
  --color-coral-400: #e68866;
  --color-peach-300: #fbd08a;
  --color-peach-200: #ffde91;
  --gradient-sunrise: linear-gradient(135deg, var(--color-coral-600) 0%, var(--color-coral-400) 45%, var(--color-peach-300) 80%, var(--color-peach-200) 100%);

  --color-accent: var(--color-navy-800);
  --color-accent-light: var(--color-cyan-600);

  --max-width: 960px;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

body.error-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--color-navy-900);
}

.brand img {
  height: 36px;
  width: auto;
  display: block;
}

.site-nav a {
  margin-left: 1rem;
  text-decoration: none;
  color: var(--color-accent);
}

.site-nav a:hover {
  text-decoration: underline;
}

.site-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 0.9rem;
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--gradient-sunrise);
  color: var(--color-navy-900);
  box-shadow: 0 6px 18px rgba(153, 67, 47, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(153, 67, 47, 0.4);
}

.btn-outline {
  border: 2px solid var(--color-navy-800);
  color: var(--color-navy-800);
  background: transparent;
  padding: calc(0.85rem - 2px) calc(1.75rem - 2px);
}

.btn-outline:hover {
  background: var(--color-navy-800);
  color: #fff;
}

/* Hero */

.hero {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  padding: 3.5rem 1.5rem 3rem;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.hero-content {
  flex: 1 1 320px;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-cyan-600);
  margin: 0 0 0.5rem;
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  color: var(--color-navy-900);
}

.hero .lede {
  font-size: 1.15rem;
  color: var(--color-muted);
  max-width: 36rem;
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-art {
  flex: 0 1 260px;
  display: flex;
  justify-content: center;
}

.hero-art img {
  width: 100%;
  max-width: 240px;
  height: auto;
}

/* Content sections */

.content-section {
  padding: 3rem 1.5rem;
}

.content-section.alt {
  background: var(--color-bg-alt);
}

.content-section .inner {
  max-width: 720px;
  margin: 0 auto;
}

.content-section h2 {
  color: var(--color-navy-900);
  font-size: 1.75rem;
  margin: 0 0 1.25rem;
  padding-bottom: 0.6rem;
  position: relative;
}

.content-section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--color-cyan-600), var(--color-navy-700));
}

.content-section p {
  margin: 0 0 1.1rem;
}

.content-section p:last-child {
  margin-bottom: 0;
}

/* Call-to-action banner */

.cta-banner {
  background: linear-gradient(135deg, var(--color-navy-900) 0%, var(--color-navy-800) 55%, var(--color-blue-600) 100%);
  color: #fff;
  text-align: center;
  padding: 3rem 1.5rem;
}

.cta-banner h2 {
  margin: 0 0 0.5rem;
  font-size: 1.6rem;
}

.cta-banner p {
  margin: 0 0 1.5rem;
  color: #cfe3ee;
}

.cta-banner .btn-outline {
  border-color: #fff;
  color: #fff;
}

.cta-banner .btn-outline:hover {
  background: #fff;
  color: var(--color-navy-900);
}

@media (max-width: 640px) {
  .hero-inner {
    text-align: center;
    justify-content: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero h1 {
    font-size: 2rem;
  }
}

/* Page hero (interior pages, e.g. Contact) */

.page-hero {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  padding: 3rem 1.5rem;
  text-align: center;
}

.page-hero .inner {
  max-width: 640px;
  margin: 0 auto;
}

.page-hero h1 {
  font-size: 2.25rem;
  color: var(--color-navy-900);
  margin: 0 0 0.75rem;
}

.page-hero p {
  font-size: 1.05rem;
  color: var(--color-muted);
  margin: 0;
}

.page-hero .hero-actions {
  justify-content: center;
  margin-top: 1.75rem;
}

/* 404 / error page */

.error-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
}

.error-page .inner {
  max-width: 32rem;
  text-align: center;
}

.error-code {
  font-size: 5.5rem;
  font-weight: 800;
  line-height: 1;
  margin: 0 0 0.5rem;
  color: var(--color-coral-600);
  background: var(--gradient-sunrise);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.error-page h1 {
  font-size: 1.75rem;
  color: var(--color-navy-900);
  margin: 0 0 0.75rem;
}

.error-page p {
  color: var(--color-muted);
  margin: 0 0 1.75rem;
}

.error-page .hero-actions {
  justify-content: center;
}

/* Contact page */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto 2.5rem;
}

.contact-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  text-align: center;
}

.contact-card .icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-bg-alt);
  color: var(--color-navy-800);
}

.contact-card .icon svg {
  width: 20px;
  height: 20px;
}

.contact-card h2 {
  margin: 0 0 0.5rem;
  padding-bottom: 0;
  font-size: 1.05rem;
  color: var(--color-navy-900);
}

.contact-card h2::after {
  content: none;
}

.contact-card p {
  margin: 0;
  color: var(--color-text);
}

.contact-card a {
  color: var(--color-navy-800);
  text-decoration: none;
  font-weight: 600;
}

.contact-card a:hover {
  text-decoration: underline;
}

.map-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}
