/* =========================================================================
   COMPONENT.CSS — Shared components: header, footer, buttons, section bits
   Navy + Gold design system (new-wireframe.html).
   ========================================================================= */

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.2px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  text-align: center;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-lg {
  padding: 17px 36px;
  font-size: 1rem;
}

/* Teal — primary CTA (California Teal, white text) */
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

/* Outline on light backgrounds */
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}

.btn-ghost:hover,
.btn-ghost:focus {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* Outline on dark backgrounds */
.btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost-light:hover,
.btn-ghost-light:focus {
  background: #fff;
  border-color: #fff;
  color: var(--navy);
}

/* Compact header CTA (California Teal, white text) */
.btn-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 11px 20px;
  border-radius: 5px;
  white-space: nowrap;
  transition:
    background 0.2s ease,
    transform 0.15s ease;
}

.btn-header-cta:hover,
.btn-header-cta:focus {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
}

/* ---- Shared section headings + labels + text link -------------------- */
.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  color: var(--text-head);
  margin-bottom: 16px;
}

.section-title.center {
  text-align: center;
  margin-bottom: 40px;
}

.text-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--accent);
  text-transform: uppercase;
}

.text-cta i {
  font-size: 0.85em;
  transition: transform 0.2s ease;
}

.text-cta:hover,
.text-cta:focus {
  color: var(--accent-dark);
}

.text-cta:hover i {
  transform: translateX(3px);
}

/* ---- Placeholder marker (plain bracketed text, bold label) ------------ */
.placeholder-note {
  display: block;
  margin-bottom: 20px;
}

/* ---- Interior page hero (shared) -------------------------------------- */
.page-hero {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: #fff;
  padding: clamp(60px, 8vw, 110px) 0;
}

.page-hero-inner {
  max-width: 940px;
  text-align: center;
}

.page-hero-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 14px;
}

.page-hero-title {
  color: #fff;
  margin-bottom: 20px;
}

.page-hero-sub {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  max-width: 64ch;
  margin: 0 auto;
}

/* Spacing when the hero has more than one paragraph */
.page-hero-sub + .page-hero-sub {
  margin-top: 18px;
}

.page-hero-cta {
  margin-top: 30px;
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* ---- CTA band (shared) ------------------------------------------------ */
.cta-band {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-top: 3px solid var(--gold);
  color: #fff;
  padding: clamp(56px, 8vw, 100px) 0;
}

.cta-band-inner {
  max-width: 800px;
  text-align: center;
}

.cta-title {
  color: #fff;
  margin-bottom: 18px;
}

.cta-text {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
  margin-bottom: 32px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================================================
   ANNOUNCEMENT TOP BAR (above header)
   ========================================================================= */
.topbar {
  background: var(--accent);
  color: #fff;
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.topbar-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 16px;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 7px 16px;
  border-radius: 100px;
}

.topbar-dot {
  position: relative;
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold-light);
}

.topbar-dot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--gold-light);
  animation: topbar-pulse 1.8s ease-out infinite;
}

@keyframes topbar-pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(3);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .topbar-dot::before {
    animation: none;
  }
}

.topbar-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  line-height: 1.3;
}

.topbar-title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: #fff;
}

.topbar-sub {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
}

.topbar-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.8125rem;
  padding: 11px 22px;
  border-radius: 8px;
  white-space: nowrap;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

.topbar-cta:hover,
.topbar-cta:focus {
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}

.topbar-cta i {
  font-size: 0.85em;
  transition: transform 0.2s ease;
}

.topbar-cta:hover i {
  transform: translateX(3px);
}

/* Hide the announcement bar on mobile; keep the inline desktop layout at 768px+. */
@media (max-width: 767px) {
  .topbar {
    display: none;
  }
}

/* =========================================================================
   UTILITY LINKS BAR (resident quick actions, above header)
   ========================================================================= */
/* Sticky wrapper: utility bar + header stay pinned together on scroll */
.site-top {
  position: sticky;
  top: 0;
  z-index: 100;
}

.utility-bar {
  background: var(--accent);
}

.utility-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 26px;
  padding-top: 9px;
  padding-bottom: 9px;
}

/* Make a Payment CTA (white pill on the teal bar) */
.utility-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 100px;
  white-space: nowrap;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease;
}

.utility-cta i {
  color: var(--accent);
  font-size: 0.9em;
}

.utility-cta:hover,
.utility-cta:focus {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-1px);
}

.utility-cta:hover i,
.utility-cta:focus i {
  color: var(--navy);
}

.utility-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  transition: color 0.15s ease;
}

.utility-link i {
  color: #fff;
  font-size: 0.9em;
}

.utility-link:hover,
.utility-link:focus {
  color: rgba(255, 255, 255, 0.78);
}

/* Online Requests hover dropdown */
.utility-dropdown {
  position: relative;
  display: inline-flex;
}

.utility-dropdown-toggle .utility-caret {
  font-size: 0.7em;
  transition: transform 0.2s ease;
}

.utility-dropdown-menu {
  position: absolute;
  top: 100%;
  left: -60px;
  min-width: 210px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0.18s;
  z-index: 200;
}

.utility-dropdown:hover .utility-dropdown-menu,
.utility-dropdown:focus-within .utility-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.utility-dropdown:hover .utility-caret,
.utility-dropdown:focus-within .utility-caret {
  transform: rotate(180deg);
}

.utility-dropdown-menu a {
  display: block;
  padding: 9px 18px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}

.utility-dropdown-menu a:hover,
.utility-dropdown-menu a:focus {
  background: var(--surface-light);
  color: var(--accent);
}

@media (max-width: 680px) {
  .utility-bar-inner {
    justify-content: center;
    gap: 8px 18px;
  }
}

/* =========================================================================
   HEADER — navy bar, gold accents
   ========================================================================= */
.site-header {
  position: relative;
  z-index: 100;
  background: var(--navy);
  border-bottom: 2px solid var(--gold);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo {
  flex-shrink: 0;
  display: block;
  line-height: 0;
}

.site-logo img {
  height: 70px;
  width: auto;
  /* Dark, transparent logo -> render white on the navy bar */
  filter: brightness(0) invert(1);
}

.header-collapse {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav {
  margin-left: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-menu > li {
  position: relative;
}

.nav-menu a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  padding: 6px 0;
  display: inline-block;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current-menu-parent > a {
  color: var(--accent);
}

.nav-menu .menu-item-has-children > a::after {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f078"; /* chevron-down */
  font-size: 0.6em;
  margin-left: 7px;
  color: var(--accent);
  vertical-align: middle;
}

.submenu-toggle {
  display: none;
}

/* Desktop dropdown */
.nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  padding: 8px 0;
  background: var(--navy-mid);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 2px solid var(--gold);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0.18s;
  z-index: 10;
}

.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu .sub-menu a {
  display: block;
  width: 100%;
  padding: 9px 18px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.72);
}

.nav-menu .sub-menu a:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
}

.nav-menu .sub-menu .menu-item-has-children > a::after {
  content: none;
}

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

.header-phone {
  font-family: var(--font-mono);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.header-phone:hover,
.header-phone:focus {
  color: var(--accent-dark);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: auto;
}

.nav-toggle:hover,
.nav-toggle:focus {
  background: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

/* =========================================================================
   FOOTER — navy, gold headings, 4 columns
   ========================================================================= */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.55);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 76px) 24px clamp(28px, 3vw, 40px);
  display: grid;
  grid-template-columns: minmax(260px, 2fr) 1fr 1fr;
  gap: 44px;
}

.footer-logo-link {
  display: inline-block;
  line-height: 0;
}

.footer-logo {
  height: 52px;
  width: auto;
  margin-bottom: 18px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.footer-contact {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.6);
}

.footer-contact strong {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.footer-contact a {
  color: var(--accent);
}

.footer-contact a:hover {
  color: var(--accent-dark);
}

.footer-tagline {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  max-width: 44ch;
  margin-bottom: 18px;
}

.footer-hours {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.3px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 14px;
}

.footer-cta-btn {
  margin-top: 22px;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-menu a {
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
}

.footer-menu a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 24px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p,
.footer-legal {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.3px;
  color: rgba(255, 255, 255, 0.4);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.55);
}

.footer-legal a:hover {
  color: var(--accent);
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1200px) {
  .header-inner {
    justify-content: space-between;
    gap: 12px;
  }

  .nav-toggle {
    display: flex;
  }

  .header-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    background: var(--navy);
    border-bottom: 2px solid var(--gold);
    box-shadow: var(--shadow);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }

  .site-header.nav-open .header-collapse {
    display: flex;
  }

  .site-nav {
    margin-right: 0;
    width: 100%;
  }

  .nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0;
  }

  .nav-menu > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .nav-menu > li:last-child {
    border-bottom: none;
  }

  .nav-menu a {
    padding: 14px 24px;
    width: 100%;
    font-size: 0.9375rem;
  }

  .nav-menu .menu-item-has-children > a::after {
    content: none;
  }

  .nav-menu .menu-item-has-children {
    position: relative;
  }

  .submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    right: 0;
    width: 56px;
    height: 50px;
    color: var(--accent);
    font-size: 0.9rem;
  }

  .submenu-toggle:hover,
  .submenu-toggle:focus {
    background: none;
  }

  .submenu-toggle i {
    transition: transform 0.2s ease;
  }

  .menu-item-has-children.is-open > .submenu-toggle i {
    transform: rotate(180deg);
  }

  .nav-menu .sub-menu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 2px 0 6px;
    background: rgba(0, 0, 0, 0.22);
  }

  .nav-menu .menu-item-has-children.is-open > .sub-menu {
    display: flex;
  }

  .nav-menu .sub-menu a {
    padding: 11px 24px 11px 40px;
  }

  .header-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 18px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .header-phone {
    text-align: center;
    padding: 6px 0;
  }

  .btn-header-cta {
    width: 100%;
    padding: 14px 20px;
  }

  .site-header.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .site-header.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }
  .site-header.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
  
  .footer-bottom,
  .footer-legal {
      justify-content: center;
  }
  
  .footer-bottom p {
    text-align: center;
    }

}

@media (max-width: 560px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-actions .btn,
  .page-hero-cta .btn {
    width: 100%;
  }
}
