/* CMAC Brand — tokens from brand book */
:root {
  --cmac-red: #ed2c29;
  --cmac-black: #000000;
  --cmac-white: #ffffff;
  --cmac-gray-100: #f5f5f5;
  --cmac-gray-200: #e8e8e8;
  --cmac-gray-500: #6b6b6b;
  --cmac-gray-700: #333333;
  --shadow-hard: 4px 4px 0 0 var(--cmac-black);
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--cmac-gray-100); }
::-webkit-scrollbar-thumb { background: var(--cmac-black); }
::-webkit-scrollbar-thumb:hover { background: var(--cmac-red); }

.brutalist-border {
  border: 2px solid var(--cmac-black);
  box-shadow: var(--shadow-hard);
}

.brutalist-border-sm { border: 2px solid var(--cmac-black); }

.brutalist-button {
  border: 2px solid var(--cmac-black);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.brutalist-button:hover {
  box-shadow: var(--shadow-hard);
  transform: translate(-2px, -2px);
}

.brutalist-button:active {
  box-shadow: none;
  transform: translate(2px, 2px);
}

.hard-shadow { box-shadow: var(--shadow-hard); }

.hard-shadow-hover:hover {
  box-shadow: 6px 6px 0 0 var(--cmac-black);
  transform: translate(-2px, -2px);
}

.hard-shadow-active:active {
  box-shadow: none;
  transform: translate(4px, 4px);
}

.review-card {
  animation: fadeUp 0.4s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .review-card { animation: none; }
  .brutalist-button:hover,
  .hard-shadow-hover:hover { transform: none; }
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  padding: 0.75rem 1.5rem;
  background: var(--cmac-red);
  color: var(--cmac-white);
  font-family: 'Wix Madefor Text', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.star-empty { font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
.star-filled { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }

/* ── Site brand bar (cmacroofingreviews.com) ── */
.site-brand-bar {
  background: var(--cmac-black);
  border-bottom: 3px solid var(--cmac-red);
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 60;
}

.site-brand-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
}

@media (min-width: 768px) {
  .site-brand-bar__inner {
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

.site-brand-bar__brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
  min-width: 0;
}

.site-brand-bar__logo-wrap {
  flex-shrink: 0;
  line-height: 0;
}

.site-brand-bar__logo {
  height: 1.75rem;
  width: auto;
  display: block;
}

.site-brand-bar__domain {
  font-family: 'Wix Madefor Display', sans-serif;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--cmac-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-brand-bar__domain span {
  color: var(--cmac-red);
}

.site-brand-bar__tag {
  font-family: 'Wix Madefor Text', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cmac-gray-500);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .site-brand-bar__tag { display: none; }
  .site-brand-bar__domain { font-size: 0.8125rem; }
  .site-brand-bar__logo { height: 1.125rem; }
}

/* ── Main site header ── */
.site-header {
  top: 2.75rem;
  background: var(--cmac-white);
  border-bottom: 2px solid var(--cmac-black);
  overflow: visible;
}

.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  max-width: 1920px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  min-height: 4.5rem;
}

@media (min-width: 768px) {
  .site-header__inner {
    padding-left: 4rem;
    padding-right: 4rem;
    padding-top: 1.125rem;
    padding-bottom: 1.125rem;
    min-height: 5rem;
  }
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo__img {
  display: block;
  height: 2.5rem;
  width: auto;
  max-width: min(280px, 60vw);
  object-fit: contain;
  object-position: left center;
}

@media (min-width: 768px) {
  .site-logo__img {
    height: 3rem;
    max-width: 360px;
  }
}

.site-logo:focus-visible {
  outline: 2px solid var(--cmac-red);
  outline-offset: 4px;
}

/* Footer logo — dark wordmark on white pad over black footer */
.footer-logo {
  display: inline-block;
  line-height: 0;
  margin-bottom: 1.5rem;
  background: var(--cmac-white);
  padding: 0.625rem 1rem;
}

.footer-logo__img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 2.75rem;
  object-fit: contain;
}
