:root {
  --primary-blue: #3274B5;
}

footer.site-footer > .container {
  max-width: 1200px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.top-bar {
  background-color: var(--primary-blue);
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  padding: 8px 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar a {
  color: rgba(255,255,255,0.9);
  transition: color 0.2s;
}

.top-bar a:hover { color: #ffffff; }

.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

#site-header {
  position: sticky;
  top: 0;
  z-index: 1900;
  background: #ffffff;
}

.site-top {
  position: sticky;
  top: 0;
  z-index: 1900;
}

header.site-header {
  background: var(--white, #ffffff);
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(50,116,181,0.06));
  position: relative;
  overflow: visible;
}

header .nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  position: relative;
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  position: static;
  overflow: visible;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.logo-img {
  width: clamp(40px, 5vw, 52px);
  height: clamp(40px, 5vw, 52px);
  object-fit: contain;
  flex-shrink: 0;
}

.logo-lockup {
  display: block;
  height: 88px;
  width: auto;
  max-width: 100%;
  flex-shrink: 1;
}

@media (max-width: 900px) {
  .logo-lockup { height: 68px; }
}

@media (max-width: 480px) {
  .logo-lockup { height: 56px; }
}

footer.site-footer .logo-lockup {
  height: 72px;
  background: #ffffff;
  border-radius: 12px;
  padding: 6px 8px;
  box-sizing: content-box;
}

.logo-text {
  font-size: clamp(1.05rem, 2.1vw, 1.55rem);
  font-weight: 700;
  color: var(--primary-blue);
  line-height: 1.1;
  letter-spacing: -0.4px;
  font-family: 'Georgia', 'Times New Roman', serif;
}

.logo-plus {
  color: var(--primary-blue);
}

.cleveland-care-logo-text {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -1.5px;
  color: #555555;
  line-height: 1;
  background: #ffffff;
}

.logo-text small {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #777777;
  letter-spacing: 0;
  text-transform: none;
  font-family: 'Roboto', Arial, sans-serif;
  margin-top: 6px;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .cleveland-care-logo-text {
    font-size: 32px;
    letter-spacing: -1px;
  }
}

header .logo-text {
  background: none;
  color: var(--primary-blue);
  padding: 0;
  border-radius: 0;
}

header .logo-text small {
  color: #777777;
  font-weight: 500;
}

.nav-links { display: none; }

.header-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 6px 18px;
  margin: 0;
  min-width: 0;
  width: max-content;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.header-links a {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--primary-blue);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.header-links a:hover {
  color: var(--primary-blue);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: min(280px, 42vw);
  max-width: 340px;
  padding: 6px 8px 6px 12px;
  background: #ffffff;
  border: 1px solid #c5d0dc;
  border-radius: 8px;
  box-shadow: inset 0 1px 2px rgba(50, 116, 181, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.header-search:focus-within {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(50, 116, 181, 0.12);
}

.header-search-icon {
  flex-shrink: 0;
  color: #5a6d7e;
}

.header-search:focus-within .header-search-icon {
  color: var(--primary-blue);
}

.header-search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  color: #1a2b3c;
}

.header-search input::placeholder {
  color: #7a8b9a;
  font-weight: 500;
}

.header-search-btn {
  flex-shrink: 0;
  border: none;
  border-radius: 6px;
  background-color: var(--primary-blue);
  color: #fff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 14px;
  cursor: pointer;
}

.header-search-btn:hover {
  background-color: var(--primary-blue);
}

.header-search-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  width: auto;
  z-index: 30;
  background: #ffffff;
  border: 1px solid #c5d0dc;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(50, 116, 181, 0.16);
  max-height: min(50vh, 280px);
  overflow: auto;
  padding: 0;
}

.header-search-results[hidden] {
  display: none !important;
}

.header-search-results a {
  display: block;
  padding: 7px 12px;
  border-radius: 0;
  text-decoration: none;
  color: var(--primary-blue);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-search-results a + a {
  border-top: 1px solid #e8eef4;
}

.header-search-results a.is-active,
.header-search-results a:hover {
  background: #eef5fb;
}

.header-search-empty {
  margin: 0;
  padding: 8px 12px;
  color: #5a6d7e;
  font-size: 0.84rem;
}

.nav-actions .btn-primary,
header.site-header .btn-primary {
  background-color: var(--primary-blue);
  color: #ffffff;
  border: none;
}

.nav-actions .btn-primary:hover,
header.site-header .btn-primary:hover {
  background-color: var(--primary-blue);
  color: #ffffff;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: var(--bg, #f5f8fc);
  border: 1px solid var(--border, #dce4ed);
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  position: relative;
}

.hamburger span {
  display: block;
  width: 18px;
  height: 2.5px;
  background: var(--text, #1a2b3c);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  margin: 0 auto;
}

.hamburger[aria-expanded="true"] {
  background: var(--primary-light, #ffffff);
  border-color: var(--primary, var(--primary-blue));
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.mega-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 18, 32, 0.55);
  z-index: 99990;
}

.mega-nav-overlay[hidden] { display: none !important; }

.mega-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  max-height: min(92vh, 860px);
  margin-top: 0;
  padding-top: 0;
  color: #fff;
}

.mega-nav[hidden] { display: none !important; }

.mega-nav-shell {
  display: grid;
  grid-template-columns: minmax(240px, 300px) 1fr;
  background-color: var(--primary-blue);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  max-height: min(92vh, 860px);
  overflow: hidden;
}

.mega-nav-rail {
  display: flex;
  flex-direction: column;
  background-color: var(--primary-blue);
  border-right: 1px solid rgba(255,255,255,0.08);
  padding: 72px 0 20px;
  overflow-y: auto;
}

.mega-rail-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 22px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.88);
  font: inherit;
  font-size: 0.98rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.mega-rail-item svg {
  flex-shrink: 0;
  opacity: 0.55;
}

.mega-rail-item:hover {
  background: #ffffff;
  color: var(--primary-blue);
}

.mega-rail-item.is-active {
  background: #ffffff;
  color: var(--primary-blue);
}

.mega-rail-item.is-active svg { opacity: 1; }

.mega-rail-link {
  text-decoration: none;
  color: rgba(255,255,255,0.88);
  border-top: none;
  box-sizing: border-box;
  pointer-events: auto;
  -webkit-tap-highlight-color: rgba(255,255,255,0.15);
}

a.mega-rail-item.mega-rail-link {
  cursor: pointer;
}

@media (min-width: 901px) {
  .mega-rail-link {
    display: none !important;
  }

  .mega-rail-link + .mega-rail-section {
    border-top: none;
    margin-top: 0;
    padding-top: 14px;
  }
}

.mega-rail-link + .mega-rail-section {
  border-top: 1px solid rgba(255,255,255,0.18);
  margin-top: 6px;
  padding-top: 16px;
}

.mega-rail-footer {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 18px 22px;
  color: #7eb6ff;
  font-size: 0.92rem;
  font-weight: 500;
}

.mega-rail-footer:hover { color: #fff; }

.mega-nav-main {
  position: relative;
  padding: 28px 36px 32px;
  overflow-y: auto;
  max-height: min(92vh, 860px);
}

.mega-rail-top {
  display: none;
}

.mega-rail-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.mega-nav-back {
  display: none;
}

.mega-nav-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
}

.mega-nav-close:hover { background: rgba(255,255,255,0.08); }

.mega-panel[hidden] { display: none !important; }

.mega-panel-title {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 48px 22px 0;
  color: #fff;
}

.mega-panel-grid {
  display: grid;
  grid-template-columns: 1fr minmax(160px, 200px);
  gap: 28px;
  align-items: start;
}

.mega-panel-kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.mega-group-label {
  margin: 18px 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7eb6ff;
}

.mega-group-label:first-of-type { margin-top: 0; }

.mega-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(140px, 1.2fr);
  gap: 16px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: #fff;
}

.mega-row strong {
  font-size: 0.95rem;
  font-weight: 600;
}

.mega-row span {
  font-size: 0.88rem;
  font-weight: 400;
  color: rgba(255,255,255,0.62);
  line-height: 1.4;
}

.mega-row:hover strong { color: #7eb6ff; }
.mega-row:hover span { color: rgba(255,255,255,0.85); }

.mega-panel-side a {
  display: block;
  color: #7eb6ff;
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.mega-panel-side a:hover { color: #fff; }

@media (max-width: 900px) {
  .mega-nav {
    top: 0 !important;
    bottom: 0;
    max-height: none;
    height: 100%;
  }

  .mega-nav-shell {
    grid-template-columns: 1fr;
    height: 100%;
    max-height: none;
    overflow: hidden;
  }

  .mega-nav-rail {
    display: flex;
    padding-top: 0;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    max-height: none;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-right: none;
    border-bottom: none;
  }

  .mega-rail-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 2;
    padding: calc(12px + env(safe-area-inset-top, 0px)) 12px 12px 22px;
    background-color: var(--primary-blue);
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .mega-rail-close {
    position: static;
    width: 44px;
    height: 44px;
  }

  .mega-nav-main {
    display: none;
    height: 100%;
    max-height: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 18px calc(28px + env(safe-area-inset-bottom, 0px));
  }

  .mega-nav.is-panel-open .mega-nav-rail {
    display: none;
  }

  .mega-nav.is-panel-open .mega-nav-main {
    display: block;
  }

  .mega-nav-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 2;
    margin: 0 -18px 12px;
    padding: 10px 12px;
    background-color: var(--primary-blue);
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .mega-nav-back {
    display: none;
  }

  .mega-nav-toolbar .mega-nav-close {
    position: static;
    width: auto;
    height: auto;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
    padding: 8px 16px;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1;
  }

  .mega-nav-toolbar .mega-nav-close::before {
    content: "Close";
    font-size: 1.05rem;
    font-weight: 600;
  }

  .mega-panel-title {
    margin: 8px 0 18px;
    font-size: 1.45rem;
  }

  .mega-panel-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .mega-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .mega-rail-item {
    min-height: 48px;
    font-size: 1.05rem;
    padding: 16px 22px;
  }

  .mega-rail-footer {
    margin-top: 12px;
  }
}

footer.site-footer {
  background-color: var(--primary-blue);
  color: #ffffff;
  padding: 60px 0 0;
}

footer.site-footer .footer-grid {
  display: grid;
  width: 100%;
  max-width: none;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.2fr) minmax(0, 1.15fr) minmax(0, 1.1fr);
  gap: 28px 24px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.35);
}

.footer-about .logo-link { margin-bottom: 16px; }
.footer-about .logo-text,
.footer-about .logo-text small {
  color: #ffffff;
}

.footer-about .logo-plus {
  color: #ffffff;
}

.footer-about > p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #ffffff;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.footer-social a:hover { background-color: var(--primary-blue); }

.footer-social a svg {
  width: 18px;
  height: 18px;
  fill: var(--primary-blue);
}

.footer-social a:hover svg { fill: #ffffff; }

footer.site-footer h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 20px;
  font-weight: 700;
}

footer.site-footer ul { list-style: none; padding: 0; margin: 0; }
footer.site-footer li { margin-bottom: 10px; }

footer.site-footer a {
  color: #ffffff;
  text-decoration: none;
}

footer.site-footer li a {
  font-size: 0.9rem;
  color: #ffffff;
  transition: opacity 0.2s;
}

footer.site-footer ul li a:hover,
footer.site-footer .footer-bottom-links a:hover {
  color: #ffffff;
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.9rem;
  color: #ffffff;
}

.footer-contact-item svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  stroke: #ffffff;
  fill: none;
  margin-top: 2px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 8px;
  color: #ffffff;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: #ffffff;
}

footer.site-footer .footer-disclaimer {
  padding: 4px 0 28px;
  color: #ffffff;
}

footer.site-footer .footer-disclaimer p {
  margin: 0 0 8px;
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}

footer.site-footer .footer-disclaimer strong {
  color: #ffffff;
  font-size: 0.9rem;
}

footer.site-footer .footer-disclaimer .footer-disclaimer-note {
  margin: 4px 0 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 1100px) {
  header .nav-wrapper {
    align-items: flex-start;
    padding-bottom: 42px;
  }

  .header-links {
    display: flex;
    left: 0;
    right: 0;
    top: auto;
    bottom: 10px;
    width: auto;
    max-width: 100%;
    transform: none;
  }

  .header-search {
    min-width: min(220px, 38vw);
  }
}

@media (max-width: 1100px) {
  footer.site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
}

.top-bar-phone {
  flex-wrap: wrap;
  gap: 6px 8px;
}

@media (max-width: 768px) {
  .top-bar-right { display: none; }
  .top-bar-phone { display: none; }
  .nav-phone { display: none; }
  .nav-actions .btn { padding: 10px 12px; font-size: 0.8rem; }
  .logo-link { flex: 1; min-width: 0; }
  footer.site-footer .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  header .nav-wrapper {
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 8px 0 10px;
  }

  .brand-cluster {
    flex: 1 1 100%;
    flex-wrap: wrap;
    align-items: center;
  }

  .header-links {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    max-width: none;
    justify-content: flex-start;
    gap: 8px 18px;
  }

  .nav-actions {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
  }

  header .logo-text {
    font-size: clamp(0.95rem, 3.6vw, 1.2rem);
    width: auto;
  }

  header .logo-text small {
    display: block;
    font-size: 0.68rem;
    white-space: normal;
    max-width: 100%;
  }

  .header-search {
    min-width: 0;
    width: 100%;
    max-width: none;
    padding: 5px 6px 5px 10px;
  }

  .header-search input {
    font-size: 0.78rem;
  }

  .header-search-results {
    max-height: 42vh;
  }

  .header-search-results a {
    padding: 8px 10px;
    font-size: 0.84rem;
  }

  .header-search-btn {
    padding: 7px 10px;
    font-size: 0.72rem;
  }
}

img, video, canvas {
  max-width: 100%;
  height: auto;
}

.logo-img {
  width: clamp(40px, 5vw, 52px);
  height: clamp(40px, 5vw, 52px);
  max-width: none;
}

iframe, embed, object {
  max-width: 100%;
}

@media (max-width: 520px) {
  .nav-actions { flex-basis: 100%; }
  .footer-bottom-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 16px;
  }
  .container { padding-left: 16px; padding-right: 16px; }
  .logo-img { width: 40px; height: 40px; }
}

@media (max-width: 900px) {
  #site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1900;
    background: #ffffff;
  }

  html body {
    padding-top: var(--site-header-offset, 220px);
  }

  header .nav-wrapper {
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 8px 0 10px;
  }

  .brand-cluster {
    flex: 1 1 100%;
    flex-wrap: wrap;
    align-items: center;
  }

  .header-links {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    max-width: none;
    justify-content: flex-start;
    gap: 8px 18px;
  }

  .nav-actions {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
  }

  .header-search {
    min-width: 0;
    width: 100%;
    max-width: none;
  }
}
