/* ==========================================================================
   Omnacare Multidisciplinary Practice — Stylesheet
   ========================================================================== */

:root {
  /* Color tokens */
  --color-primary: #179bd7;
  --color-primary-dark: #0f7aad;
  --color-primary-light: #e7f4fb;
  --color-secondary: #5b3f8a;
  --color-secondary-dark: #452f6b;
  --color-navy: #1c2b3a;
  --color-navy-soft: #293a4a;
  --color-ink: #1f2937;
  --color-muted: #5b6b7a;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f7fa;
  --color-border: #e2e8ef;
  --color-white: #ffffff;

  --gradient-brand: linear-gradient(120deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  --gradient-stripe: repeating-linear-gradient(
    -45deg,
    var(--color-primary-dark),
    var(--color-primary) 20px,
    var(--color-primary-dark) 20px,
    var(--color-primary-dark) 50px,
    var(--color-primary) 50px,
    var(--color-primary) 65px
  );

  /* Type */
  --font-heading: "Montserrat", "Helvetica Neue", sans-serif;
  --font-body: "Lato", "Helvetica Neue", sans-serif;

  /* Layout */
  --max-width: 1160px;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 10px rgba(28, 43, 58, 0.06);
  --shadow-md: 0 12px 32px rgba(28, 43, 58, 0.12);
  --transition: 0.25s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--color-primary-dark); text-decoration: none; }
a:hover { color: var(--color-secondary); }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: 1.2;
  margin: 0 0 16px;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 14px; color: var(--color-muted); }

:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 72px 0; }
.section--tight { padding: 40px 0; }
.section--alt { background: var(--color-bg-alt); }
.section--navy { background: var(--color-navy); color: rgba(255,255,255,0.88); }
.section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }
.section--navy p { color: rgba(255,255,255,0.72); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  margin-bottom: 12px;
}

.divider {
  width: 70px;
  height: 4px;
  border-radius: 4px;
  background: var(--gradient-brand);
  margin: 6px 0 22px;
}
.divider--center { margin-left: auto; margin-right: auto; }

.grid {
  display: grid;
  gap: 32px;
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--center { align-items: center; }

@media (max-width: 860px) {
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
}

.text-center { text-align: center; }
.max-prose { max-width: 640px; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--color-primary-dark); color: #fff; box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--color-secondary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-secondary:hover { background: var(--color-secondary-dark); color: #fff; box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-outline:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-group { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  transition: transform 0.3s ease;
}
.site-header.is-hidden {
  transform: translateY(-100%);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.nav__logo { margin-left: 10px; display: flex; align-items: center; }
.nav__logo img { height: 110px; width: auto; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav__links a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-navy);
  padding: 10px 18px;
  border-radius: 50px;
  transition: background var(--transition), color var(--transition);
}
.nav__links a:hover,
.nav__links a[aria-current="page"] {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}
.nav__toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--color-navy);
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 10px 20px 18px;
    gap: 4px;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 12px 14px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 90px 0 70px;
  background: var(--gradient-brand);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-stripe);
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}
.hero__rings {
  position: absolute;
  top: -90px;
  right: -110px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.16);
  pointer-events: none;
  z-index: 0;
}
.hero__rings::after {
  content: "";
  position: absolute;
  inset: 42px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.14);
}
@media (max-width: 700px) { .hero__rings { display: none; } }

.hero__inner { position: relative; z-index: 2; max-width: 720px; }
.hero h1 { color: #fff; }
.hero p { color: rgba(255,255,255,0.85); font-size: 1.08rem; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 18px;
}
.hero__eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: #fff;
  opacity: 0.7;
}

.discipline-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 32px;
}
.discipline-chips span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 17px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(4px);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.82rem;
  color: #fff;
}
.discipline-chips i { font-size: 0.85rem; opacity: 0.9; }

.hero--compact { padding: 56px 0; }

.text-brand-gradient {
  background: linear-gradient(90deg, #c9a3ef 0%, #8fd8ea 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.card__media {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
  aspect-ratio: 4 / 3;
  background: var(--color-bg-alt);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }

.card ul { margin: 0; }
.card ul li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 8px;
  color: var(--color-muted);
}
.card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
}

/* ---------- Check list ---------- */
.check-list li {
  position: relative;
  padding: 8px 0 8px 32px;
  border-bottom: 1px dashed var(--color-border);
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Numbered process steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  padding: 22px 18px 18px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
  background: var(--gradient-brand);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

/* ---------- Team ---------- */
.team-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 30px;
  border-left: 4px solid var(--color-primary);
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.team-card:nth-child(2) { border-left-color: var(--color-secondary); }
.team-card h3 { margin-bottom: 4px; }
.team-card .role {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-secondary);
  margin-bottom: 12px;
  display: block;
}

/* ---------- Stripe divider ---------- */
.stripe-divider {
  height: 6px;
  background: var(--gradient-stripe);
}

/* ---------- Contact ---------- */
.contact-block { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.contact-block .icon {
  width: 44px; height: 44px; flex: 0 0 44px;
  border-radius: 12px;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 7px 0; border-bottom: 1px solid var(--color-border); font-size: 0.95rem; }
.hours-table td:first-child { font-weight: 600; color: var(--color-navy); width: 45%; }
.hours-table tr:last-child td { border-bottom: none; }
.emergency-note {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: #fdecec;
  color: #b3261e;
  font-weight: 600;
  font-size: 0.92rem;
}

/* ---------- Form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-navy);
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus,
.field textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
  outline: none;
}
.form-note { font-size: 0.85rem; color: var(--color-muted); margin-top: 6px; }
.form-status {
  display: none;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 18px;
  font-size: 0.92rem;
  font-weight: 600;
}
.form-status.is-visible { display: block; }
.form-status--error { background: #fdecec; color: #b3261e; }
.form-status--success { background: #e6f6ec; color: #1e7b45; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-navy);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 28px;
  text-align: center;
}
.site-footer .footer-logo { height: 48px; margin: 0 auto 18px; }
.site-footer strong { color: #fff; font-family: var(--font-heading); }
.footer-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 22px 0;
}
.footer-social a {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: background var(--transition), transform var(--transition);
}
.footer-social a:hover { background: var(--color-primary); transform: translateY(-3px); color: #fff; }
.footer-nav { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin: 18px 0; }
.footer-nav a { color: rgba(255,255,255,0.75); font-family: var(--font-heading); font-size: 0.9rem; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { font-size: 0.82rem; margin-top: 18px; color: rgba(255,255,255,0.5); }
.footer-bottom a { color: rgba(255,255,255,0.65); }

/* ---------- Scroll to top ---------- */
.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition);
  z-index: 400;
}
.scroll-top.is-active { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ---------- Scroll reveal (progressive enhancement) ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
