/**
 * Premium layout shell — header, containers, typography.
 */

:root {
  --ccc-shell-max: 1180px;
  --ccc-shell-pad: clamp(1rem, 3vw, 2rem);
  --ccc-header-height: 4.5rem;
  --ccc-font-display: "Playfair Display", Georgia, "Times New Roman", serif;
}

/* ——— Constrained premium shell ——— */
.ccc-site-shell,
.ccc-northstar-layout .container:not(.ccc-site-shell) {
  width: 100%;
  max-width: var(--ccc-shell-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--ccc-shell-pad);
  padding-right: var(--ccc-shell-pad);
}

.ccc-northstar-layout .ccc-section .container,
.ccc-northstar-layout .ccc-hero__content.container {
  max-width: var(--ccc-shell-max);
  padding-left: var(--ccc-shell-pad);
  padding-right: var(--ccc-shell-pad);
}

/* ——— Premium header ——— */
#wrapper-navbar {
  position: sticky;
  top: 0;
  z-index: 1040;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(11, 29, 57, 0.08);
  box-shadow: 0 8px 30px rgba(11, 29, 57, 0.06);
}

.admin-bar #wrapper-navbar {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar #wrapper-navbar {
    top: 46px;
  }
}

#main-nav {
  display: none;
}

.ccc-site-header__bar {
  min-height: var(--ccc-header-height);
  display: flex;
  align-items: center;
}

.ccc-site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

.ccc-site-header__logo .custom-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ccc-navy);
}

.ccc-brand-logo--header {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ccc-navy);
  min-width: 0;
}

.ccc-brand-logo--header .ccc-brand-logo__waves {
  flex: 0 0 auto;
  width: 2.75rem;
  color: var(--ccc-blue-bright);
}

.ccc-brand-logo--header .ccc-brand-logo__waves svg {
  display: block;
  width: 100%;
  height: auto;
}

.ccc-brand-logo--header .ccc-brand-logo__copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1.15;
  min-width: 0;
}

.ccc-brand-logo--header .ccc-brand-logo__name {
  font-family: var(--ccc-font-display);
  font-size: clamp(0.82rem, 1.4vw, 0.98rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ccc-navy);
}

.ccc-brand-logo--header .ccc-brand-logo__tagline {
  font-family: var(--ccc-font-sans);
  font-size: clamp(0.58rem, 1vw, 0.68rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ccc-gray-cool);
}

.ccc-site-header__toggle {
  display: none;
  margin-left: auto;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--ccc-border);
  border-radius: 0.65rem;
  background: #fff;
  padding: 0;
  cursor: pointer;
}

.ccc-site-header__toggle-bars,
.ccc-site-header__toggle-bars::before,
.ccc-site-header__toggle-bars::after {
  display: block;
  width: 1.125rem;
  height: 2px;
  margin: 0 auto;
  background: var(--ccc-navy);
  border-radius: 1px;
  content: "";
}

.ccc-site-header__toggle-bars::before {
  transform: translateY(-6px);
}

.ccc-site-header__toggle-bars::after {
  transform: translateY(4px);
}

.ccc-site-header__panel {
  grid-column: 2 / 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-width: 0;
}

.ccc-site-header__menu {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ccc-site-header__item {
  position: relative;
}

.ccc-site-header__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.7rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ccc-navy);
  text-decoration: none;
  border-radius: 0.5rem;
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.ccc-site-header__link:hover,
.ccc-site-header__item.is-active > .ccc-site-header__link {
  color: var(--ccc-blue-bright);
  background: rgba(28, 101, 216, 0.06);
}

.ccc-site-header__caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.65;
}

.ccc-site-header__submenu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 15rem;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(11, 29, 57, 0.08);
  border-radius: 0.75rem;
  box-shadow: 0 18px 40px rgba(11, 29, 57, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 30;
}

.ccc-site-header__submenu a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ccc-navy);
  text-decoration: none;
}

.ccc-site-header__submenu a:hover,
.ccc-site-header__submenu a[aria-current="page"] {
  background: var(--ccc-surface);
  color: var(--ccc-blue-bright);
}

@media (min-width: 992px) {
  .ccc-site-header__item--has-menu:hover > .ccc-site-header__submenu,
  .ccc-site-header__item--has-menu:focus-within > .ccc-site-header__submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

.ccc-site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.ccc-site-header__phone {
  display: none;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ccc-navy);
  text-decoration: none;
  white-space: nowrap;
}

.ccc-site-header__cta {
  font-size: 0.875rem;
  min-height: 44px;
  padding: 0 1.15rem;
  box-shadow: 0 10px 24px rgba(28, 101, 216, 0.22);
}

@media (max-width: 991.98px) {
  .ccc-site-header__inner {
    grid-template-columns: 1fr auto;
  }

  .ccc-site-header__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .ccc-site-header__panel {
    grid-column: 1 / -1;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 0 1rem;
    border-top: 1px solid rgba(11, 29, 57, 0.08);
  }

  .ccc-site-header__panel.is-open {
    display: flex;
  }

  .ccc-site-header__menu {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .ccc-site-header__item {
    width: 100%;
  }

  .ccc-site-header__link {
    width: 100%;
    padding: 0.75rem 0.25rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(11, 29, 57, 0.06);
  }

  .ccc-site-header__submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0.5rem 0.75rem;
    display: none;
  }

  .ccc-site-header__item--has-menu.is-open > .ccc-site-header__submenu {
    display: block;
  }

  .ccc-site-header__actions {
    width: 100%;
    flex-direction: column;
    padding-top: 0.75rem;
  }

  .ccc-site-header__phone {
    display: block;
    text-align: center;
  }

  .ccc-site-header__cta {
    width: 100%;
  }
}

/* ——— Display typography ——— */
.ccc-hero__title,
.ccc-section__title,
.ccc-final-cta__title,
.ccc-site-header__brand-name {
  font-family: var(--ccc-font-display);
}

.ccc-hero__title {
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* ——— Hero + trust bar ——— */
.ccc-hero--video {
  display: block;
  min-height: clamp(560px, 78vh, 720px);
}

.ccc-hero__content {
  padding-top: clamp(4rem, 10vh, 6.5rem);
  padding-bottom: clamp(3rem, 8vh, 5rem);
}

.ccc-trust-bar {
  position: relative;
  z-index: 2;
  margin-top: 0;
  border-top: none;
  box-shadow: 0 -1px 0 rgba(11, 29, 57, 0.06);
}

/* ——— Section polish ——— */
.ccc-section {
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
}

.ccc-challenge__card,
.ccc-card,
.ccc-promise-card {
  border-radius: 1rem;
  box-shadow: 0 12px 36px rgba(11, 29, 57, 0.06);
}

.ccc-value-band {
  border-top: 4px solid rgba(28, 101, 216, 0.35);
}

/* Hide skip link visually until focused */
#wrapper-navbar .skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#wrapper-navbar .skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: #fff;
  color: var(--ccc-navy);
  z-index: 2000;
  box-shadow: var(--ccc-shadow-lg);
}

/* ——— Section intros ——— */
.ccc-section__intro {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.ccc-section__intro--center {
  text-align: center;
}

.ccc-section__intro--center .ccc-section__lead {
  margin-left: auto;
  margin-right: auto;
}

.ccc-section__cta-row {
  text-align: center;
  margin-top: 2.5rem;
}

/* ——— Challenge 4-up ——— */
.ccc-challenge__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.ccc-challenge__card {
  text-align: center;
  padding: 1.5rem 1rem;
  background: #fff;
  border: 1px solid var(--ccc-border);
  border-radius: 1rem;
}

.ccc-challenge__card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ccc-gray-cool);
}

@media (max-width: 991.98px) {
  .ccc-challenge__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .ccc-challenge__grid {
    grid-template-columns: 1fr;
  }
}

/* ——— Process 4-up ——— */
.ccc-process__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.ccc-process__step {
  background: #fff;
  border: 1px solid var(--ccc-border);
  border-radius: 1rem;
  padding: 1.5rem 1.25rem;
  text-align: center;
  box-shadow: 0 12px 36px rgba(11, 29, 57, 0.06);
}

.ccc-process__step p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ccc-gray-cool);
  line-height: 1.5;
}

@media (max-width: 991.98px) {
  .ccc-process__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .ccc-process__grid {
    grid-template-columns: 1fr;
  }
}

/* ——— Value band 5-up ——— */
.ccc-value-band {
  padding: clamp(3.5rem, 7vw, 5rem) 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 100%, rgba(28, 101, 216, 0.22) 0%, transparent 60%),
    linear-gradient(180deg, var(--ccc-navy-deep) 0%, var(--ccc-navy) 100%);
  color: rgba(255, 255, 255, 0.92);
}

.ccc-value-band__title {
  text-align: center;
  color: #fff;
  font-family: var(--ccc-font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400;
  margin: 0 0 2.5rem;
}

.ccc-value-band__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
}

.ccc-value-band__item {
  text-align: center;
  padding: 0 0.5rem;
}

.ccc-value-band__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.85rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.ccc-value-band__icon::before {
  content: "";
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--ccc-blue-bright);
}

.ccc-value-band__item-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
}

.ccc-value-band__item p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.8);
}

.ccc-value-band__note {
  text-align: center;
  margin: 2rem auto 0;
  max-width: 42rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.68);
}

@media (max-width: 991.98px) {
  .ccc-value-band__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .ccc-value-band__grid {
    grid-template-columns: 1fr;
  }
}

/* ——— Education split ——— */
.ccc-education__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.ccc-education__media {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(11, 29, 57, 0.12);
}

.ccc-education__img {
  display: block;
  width: 100%;
  height: auto;
}

.ccc-education__benefits {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}

.ccc-education__cta {
  margin-top: 1.5rem;
}

@media (max-width: 991.98px) {
  .ccc-education__grid {
    grid-template-columns: 1fr;
  }
}

/* ——— Service area hub grid ——— */
.ccc-hub-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.ccc-hub-card {
  display: block;
  text-decoration: none;
  color: inherit;
  text-align: center;
}

.ccc-hub-card__thumb {
  display: block;
  border-radius: 0.75rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-bottom: 0.65rem;
  border: 1px solid var(--ccc-border);
  box-shadow: 0 8px 24px rgba(11, 29, 57, 0.08);
}

.ccc-hub-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.ccc-hub-card:hover .ccc-hub-card__img {
  transform: scale(1.04);
}

.ccc-hub-card__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ccc-navy);
}

.ccc-hub-card:hover .ccc-hub-card__label {
  color: var(--ccc-blue-bright);
}

.ccc-service-areas__all-wrap {
  text-align: center;
  margin: 0;
}

.ccc-regions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (max-width: 1199.98px) {
  .ccc-hub-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .ccc-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ccc-regions-grid {
    grid-template-columns: 1fr;
  }
}

/* ——— Card grid fallback (non-services sections) ——— */
.ccc-card-grid--six:not(.ccc-card-grid--services) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (max-width: 991.98px) {
  .ccc-card-grid--six:not(.ccc-card-grid--services) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .ccc-card-grid--six:not(.ccc-card-grid--services) {
    grid-template-columns: 1fr;
  }
}

/* ——— Final CTA ——— */
.ccc-final-cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* ——— Blog preview rows ——— */
.ccc-blog-preview__row {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 575.98px) {
  .ccc-blog-preview__row {
    grid-template-columns: 1fr;
  }
}

/* ——— Kill stray section CTAs ——— */
.ccc-challenge .ccc-btn,
.ccc-process .ccc-btn {
  display: none;
}
