/*
Theme Name: CMC Victoria Static Templates
Theme URI: https://www.cmcvictoria.com/
Author: CMC Victoria
Description: Self-contained Citizens Medical Center page templates with inline header, footer, CSS, and JavaScript.
Version: 1.0.0
Text Domain: cmc-victoria-static
*/

:root {
  --blue: #1b5575;
  --blue-dark: #143f57;
  --blue-light: #b7e0fa;
  --ink: #2b2b2b;
  --paper: #fff;
  --paper-alt: #f4f8fb;
  --line: #e2e8ee;
  --font: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --max-width: 1400px;
  --pad: 4vw;
  --radius: 8px;
  --shadow: 0 10px 30px rgba(16, 42, 60, .12);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 19px;
  line-height: 1.6;
  font-weight: 400;
  color: #000;
  background: var(--paper);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--blue);
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.btn {
  display: inline-block;
  padding: 1em 1.8em;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.btn:hover {
  background: var(--blue-dark);
  color: #fff;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(.75rem, 2vw, 2.5rem);
  max-width: none;
  padding-top: .9rem;
  padding-bottom: .9rem;
}

.site-logo {
  flex: 0 0 auto;
}

.site-logo img {
  height: clamp(56px, 6vw, 88px);
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  flex: 1;
  gap: clamp(.15rem, 1vw, 1.25rem);
  flex-wrap: nowrap;
  min-width: 0;
}

.site-nav a {
  text-decoration: none;
}

.nav-item {
  position: relative;
}

.nav-item > a,
.nav-item > button {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .55rem clamp(.25rem, .6vw, .8rem);
  background: none;
  border: 0;
  font: inherit;
  font-size: clamp(14px, 1.15vw, 19px);
  line-height: 1.4;
  font-weight: 400;
  color: var(--blue);
  cursor: pointer;
  white-space: nowrap;
}

.nav-item > a:hover,
.nav-item > button:hover {
  color: var(--blue);
  text-decoration: none;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  max-height: 70vh;
  overflow-y: auto;
  background: var(--paper);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: .5rem 0 .75rem;
  margin: 0;
  list-style: none;
  display: none;
}

.nav-item.is-open .dropdown,
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  display: block;
}

.dropdown a {
  display: block;
  padding: .3rem 1.25rem;
  font-family: var(--font);
  font-size: clamp(14px, 1.15vw, 19px);
  line-height: 1.3;
  font-weight: 400;
  color: var(--blue);
  text-decoration: none;
}

.dropdown a:hover,
.dropdown a:focus-visible {
  background: none;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.nav-cta {
  margin-left: auto;
  flex: 0 0 auto;
}

.nav-cta .btn {
  background: #fff;
  color: var(--blue);
  border: 1px solid var(--blue);
  padding: .9em clamp(.9em, 1.2vw, 1.8em);
  font-size: clamp(13px, 1vw, 16px);
  font-weight: 400;
  letter-spacing: .04em;
  white-space: nowrap;
}

.nav-cta .btn:hover {
  background: var(--blue);
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: .5rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--blue);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

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

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

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

.site-footer {
  background: var(--blue);
  color: #fff;
  padding: clamp(3.5rem, 7vw, 6rem) 0 2rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(180px, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.site-footer__logo img {
  width: min(260px, 70vw);
  height: auto;
  margin-bottom: 1.5rem;
}

.site-footer h4 {
  color: #fff;
  margin: 0 0 1rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin: 0 0 .65rem;
}

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

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

.site-footer address,
.site-footer p {
  margin: 0;
  color: #fff;
  font-style: normal;
}

.social-icons {
  display: flex;
  gap: .8rem;
  align-items: center;
}

.social-icons a {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
}

.social-icons svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .25);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.25rem;
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .site-logo img {
    height: 60px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    padding: .5rem 0 1rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-item > a,
  .nav-item > button {
    width: 100%;
    justify-content: space-between;
    padding: .8rem var(--pad);
    font-size: 1rem;
  }

  .dropdown {
    position: static;
    border: 0;
    box-shadow: none;
    max-height: none;
    background: var(--paper-alt);
    display: none;
  }

  .nav-item:hover .dropdown {
    display: none;
  }

  .nav-item.is-open .dropdown {
    display: block;
  }

  .dropdown a {
    padding-left: calc(var(--pad) + 1rem);
  }

  .nav-cta {
    margin: .75rem var(--pad) 0;
  }
}

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

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