/**
 * Kent Cleaning Solutions: page layout (header, hero, sections, footer).
 */

.container {
  width: 100%;
  max-width: calc(var(--kcs-container) + var(--kcs-gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--kcs-gutter);
}

.site-main:focus {
  outline: none;
}

/* Top bar. */
.topbar {
  background: var(--kcs-ink);
  color: rgb(255 255 255 / 82%);
  font-size: 0.85rem;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 40px;
}

.topbar__text {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin: 0;
}

.topbar__text svg {
  color: var(--kcs-accent);
  flex: none;
}

.topbar__phone {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .topbar__text { font-size: 0.8rem; }
}

/* Header. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--kcs-line);
  box-shadow: 0 6px 20px rgb(16 32 48 / 6%);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--kcs-header-h);
}

.site-header__brand {
  flex: none;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-logo img {
  width: auto;
  max-height: 56px;
  max-width: 220px;
}

.site-logo__text {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--kcs-ink);
}

.site-header__nav {
  display: flex;
  justify-content: flex-end;
  flex: 1;
  min-width: 0;
}

.site-header__nav .mlt-menu {
  --mlt-menu-font-size: 0.97rem;
}

/* Hero. */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(900px 420px at 90% -10%, color-mix(in srgb, var(--kcs-accent) 38%, transparent), transparent 70%),
    radial-gradient(700px 380px at -10% 120%, color-mix(in srgb, var(--kcs-accent) 18%, transparent), transparent 70%),
    linear-gradient(135deg, var(--kcs-ink), var(--kcs-primary));
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 5%) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding-block: clamp(40px, 6vw, 80px) clamp(48px, 7vw, 96px);
}

.hero--image .hero__inner {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.hero__text {
  max-width: 760px;
}

.hero .page-title {
  margin: 0;
  color: #fff;
}

.hero .eyebrow {
  color: color-mix(in srgb, var(--kcs-accent) 70%, #fff);
}

.hero__meta {
  margin: 0.9rem 0 0;
  font-size: 0.95rem;
  color: rgb(255 255 255 / 70%);
}

.hero__intro {
  margin: 1.1rem 0 0;
  max-width: 62ch;
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  color: rgb(255 255 255 / 82%);
}

.hero__media img {
  width: 100%;
  aspect-ratio: 10 / 7;
  object-fit: cover;
  border-radius: calc(var(--kcs-radius) + 6px);
  box-shadow: 0 30px 60px rgb(0 0 0 / 30%);
}

@media (max-width: 860px) {
  .hero--image .hero__inner {
    grid-template-columns: 1fr;
  }
}

/* Breadcrumb (inside the hero). */
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25em 0;
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  font-size: 0.85rem;
  color: rgb(255 255 255 / 65%);
}

.breadcrumb li + li::before {
  content: "/";
  margin: 0 0.6em;
  opacity: 0.5;
}

.breadcrumb a {
  color: rgb(255 255 255 / 80%);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Sections. */
.section {
  padding-block: var(--kcs-section);
}

.section + .section:not(.section--tint) {
  padding-top: 0;
}

.section--tint {
  background: var(--kcs-surface);
}

.section--tint + .section:not(.section--tint) {
  padding-top: var(--kcs-section);
}

.section__title {
  margin-bottom: 1.5rem;
}

.section__title--sm {
  font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
}

.page-admin {
  padding-top: 1.5rem;
}

/* Content with a sticky side card. */
.layout-aside {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.layout-aside__side {
  position: sticky;
  top: calc(var(--kcs-header-h) + 24px);
}

@media (max-width: 980px) {
  .layout-aside {
    grid-template-columns: 1fr;
  }

  .layout-aside__side {
    position: static;
  }
}

/* Footer. */
.site-footer {
  color: rgb(255 255 255 / 74%);
  background: var(--kcs-ink);
  font-size: 0.95rem;
}

.site-footer a {
  color: rgb(255 255 255 / 82%);
  text-decoration: none;
}

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

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-block: clamp(48px, 7vw, 80px);
}

.site-footer__name {
  display: inline-block;
  margin-bottom: 0.9rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff !important;
}

.site-footer__about p {
  max-width: 38ch;
}

.site-footer__address {
  display: flex;
  gap: 0.5em;
}

.site-footer__address svg {
  flex: none;
  margin-top: 0.3em;
  color: var(--kcs-accent);
}

.site-footer__title {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

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

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

.site-footer__more {
  font-weight: 700;
  color: color-mix(in srgb, var(--kcs-accent) 70%, #fff) !important;
}

.site-footer__legal {
  border-top: 1px solid rgb(255 255 255 / 10%);
  font-size: 0.85rem;
  color: rgb(255 255 255 / 55%);
}

.site-footer__legal-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.25rem;
}

.site-footer__legal p {
  margin: 0;
}

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

  .site-footer__about {
    grid-column: 1 / -1;
  }
}

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