/*!
 * RecLite — global stylesheet
 *
 * Real per-component styles land with the MODULE-07 components.
 * This file provides only the global skeleton: reset, brand-variable hooks,
 * accessibility primitives (skip link, focus rings, reduced motion),
 * landmark scaffolding, and container utilities.
 *
 * Custom properties (--reclite-color-primary, etc.) are emitted inline in
 * <head> by reclite_brand_css_variables() in inc/helpers.php.
 */

/* ------------------------------------------------------------------ Reset */

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

html {
  -webkit-text-size-adjust: 100%;
}

/* ----------------------------------------------------------- Accessibility */

.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100000;
  background: var(--reclite-color-primary, #1f6feb);
  color: #fff;
  padding: 0.75rem 1rem;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
  outline: 3px solid #fff;
  outline-offset: -3px;
}

:focus-visible {
  outline: 3px solid var(--reclite-color-primary, #1f6feb);
  outline-offset: 2px;
}

[data-reduced-motion="true"] *,
[data-reduced-motion="true"] *::before,
[data-reduced-motion="true"] *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}

/* ----------------------------------------------------------------- Layout */

.site-main {
  min-height: 50vh;
}

.site-top-bar__inner,
.site-masthead__inner,
.site-footer__columns-inner,
.site-footer__bottom-inner,
.site-alert__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ----------------------------------------------------------------- Header */

.site-top-bar {
  background: var(--reclite-color-secondary, #0b3d2e);
  color: #fff;
  font-size: 0.85rem;
}
.site-top-bar a {
  color: #fff;
}
.site-top-bar__inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.site-masthead {
  background: var(--reclite-color-bg, #fff);
  border-bottom: 1px solid #e5e7eb;
}
.site-masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
  gap: 1.5rem;
}
.site-masthead__brand img {
  max-height: 60px;
  width: auto;
}
.site-masthead__nav .primary-menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}
.site-masthead__toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0.5rem;
}
.site-masthead__toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--reclite-color-text, #1a1a1a);
  margin: 5px 0;
}

.site-mobile-nav {
  background: var(--reclite-color-bg, #fff);
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
}
.site-mobile-nav .mobile-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-mobile-nav .mobile-menu li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}

@media (max-width: 768px) {
  .site-masthead__nav {
    display: none;
  }
  .site-masthead__toggle {
    display: block;
  }
}

/* ----------------------------------------------------------------- Alert */

.site-alert {
  background: #e7f3ff;
  color: #0b3d2e;
}
.site-alert--info {
  background: #e7f3ff;
  color: #0b3d2e;
}
.site-alert--warning {
  background: #fff7e0;
  color: #5a3e00;
}
.site-alert--danger {
  background: #fde2e2;
  color: #6a1f1f;
}
.site-alert__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}
.site-alert__message {
  flex: 1;
}
.site-alert__cta {
  padding: 0.3rem 0.8rem;
  border-radius: var(--reclite-btn-radius, 4px);
  background: var(--reclite-color-primary, #1f6feb);
  color: #fff !important;
  text-decoration: none;
}
.site-alert__dismiss {
  background: transparent;
  border: 0;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: inherit;
}

/* ----------------------------------------------------------------- Footer */

.site-footer {
  background: var(--reclite-color-secondary, #0b3d2e);
  color: #f5f5f5;
  margin-top: 3rem;
}
.site-footer a {
  color: #f5f5f5;
}
.site-footer__columns-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
.site-footer__col-heading {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
.site-footer__col ul,
.site-footer__social-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer__col li,
.site-footer__social-list li {
  padding: 0.25rem 0;
}
.site-footer__bottom {
  background: rgba(0, 0, 0, 0.25);
}
.site-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .site-footer__columns-inner {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------- Breadcrumbs */

.site-breadcrumbs {
  margin: 1rem auto;
  /* padding: 0 1rem; */
  font-size: 0.9rem;
  color: #555;
}
.site-breadcrumbs a {
  color: inherit;
}
