/* ═══ shared page chrome — every template below the homepage ═══ */

/* ── page hero ── */
/* the page hero gets a soft navy wash rather than a flat grey block and a border */
.als-phero {
  position: relative;
  overflow: hidden;
  background: var(--mist);
}
.als-phero::before {
  content: "";
  position: absolute;
  inset: auto -10% -60% 40%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(47, 65, 111, 0.1), transparent 66%);
  pointer-events: none;
}
/* padding-block only — the shorthand would zero .als-wrap's left/right gutter */
.als-phero__in {
  position: relative;
  padding-block: clamp(26px, 3vw, 44px) clamp(40px, 5vw, 72px);
}
.als-phero__t {
  font-size: var(--t-page);
  margin: 20px 0 0;
  max-width: 20ch;
}
.als-phero__t-em {
  color: var(--red);
}
.als-phero__lead {
  font-size: var(--t-lead);
  margin: 20px 0 0;
  max-width: 60ch;
}
.als-phero__cta {
  display: flex;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}

/* split variant: copy left, photo right */
.als-phero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 54px;
  align-items: center;
}
.als-phero__grid .als-phero__t {
  max-width: none;
}
.als-phero__media {
  position: relative;
  padding: 0 12px 12px 0;
}
.als-phero__media::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  top: 12px;
  left: 12px;
  background: var(--navy);
  border-radius: var(--r-lg);
}
.als-phero__img {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow-3);
}

/* centred variant */
.als-phero--center {
  text-align: center;
}
.als-phero--center .als-phero__t,
.als-phero--center .als-phero__lead {
  margin-inline: auto;
  max-width: 22ch;
}
.als-phero--center .als-phero__lead {
  max-width: 62ch;
}
.als-phero--center .als-phero__cta {
  justify-content: center;
}

@media (max-width: 1080px) {
  .als-phero--center .als-phero__t,
  .als-phero--center .als-phero__lead {
    max-width: 100%;
  }
}
/* ── breadcrumbs ── */
.als-crumbs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
}
.als-crumbs__l {
  color: var(--ink-3);
  text-decoration: none;
}
.als-crumbs__l:hover {
  color: var(--navy);
}
.als-crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line);
}
.als-crumbs [aria-current] {
  color: var(--navy);
  font-weight: 600;
}
@media (max-width: 1080px) {
  .als-crumbs {
    margin-bottom: 24px;
  }
}
/* ── body + sidebar ── */
.als-body {
  display: grid;
  grid-template-columns: 1fr 348px;
  gap: 56px;
  align-items: start;
}
.als-aside {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.als-panel {
  background: #fff;
  border-radius: 16px;
  padding: 28px 26px;
  box-shadow: var(--shadow-1);
}
.als-panel--dark {
  position: relative;
  overflow: hidden;
  color: var(--on-navy);
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 70%);
  box-shadow: var(--shadow-2);
}
.als-panel--dark::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -6%;
  width: 70%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(237, 27, 36, 0.18), transparent 66%);
  pointer-events: none;
}
.als-panel__t {
  position: relative;
  font-size: var(--t-card);
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 8px;
}
.als-panel--dark .als-panel__d,
.als-panel--dark .als-panel__num,
.als-panel--dark .als-panel__note {
  position: relative;
}
.als-panel--dark .als-panel__t {
  color: #fff;
}
.als-panel__d {
  font-size: 15px;
  margin: 0 0 16px;
}
.als-panel__num {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 18px 20px;
  transition:
    background 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.als-panel__num:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}
.als-panel__num-l {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-navy-2);
}
.als-panel__num-n {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}
.als-panel__note {
  font-size: 13.5px;
  color: var(--on-navy-2);
  margin: 12px 0 0;
}

.als-sidelist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.als-sidelist li + li {
  border-top: 1px solid var(--line);
}
.als-sidelist__l {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  min-height: 44px;
  transition:
    color 0.18s var(--ease),
    padding 0.18s var(--ease);
}
.als-sidelist__l .als-arrow {
  transition: transform 0.2s var(--ease);
  opacity: 0.45;
}
.als-sidelist__l:hover {
  color: var(--navy);
}
.als-sidelist__l:hover .als-arrow {
  transform: translateX(4px);
  opacity: 1;
}
.als-sidelist__l[aria-current] {
  color: var(--red);
}

/* ── prose ── */
.als-prose {
  font-size: 18px;
  line-height: 1.75;
}
.als-prose h2 {
  font-size: clamp(24px, 1.3rem + 1vw, 33px);
  margin: 52px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.als-prose h2:first-child {
  border-top: 0;
  padding-top: 0;
}
.als-prose h3 {
  font-size: 22px;
  margin: 34px 0 0;
}
.als-prose h2:first-child,
.als-prose h3:first-child {
  margin-top: 0;
}
.als-prose p {
  margin: 16px 0 0;
}
.als-prose ul,
.als-prose ol {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.als-prose ol {
  counter-reset: als-ol;
}
.als-prose li {
  position: relative;
  padding-left: 32px;
  margin-top: 11px;
}
.als-prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 18px;
  height: 13px;
  background: var(--red);
  clip-path: polygon(0 46%, 11% 34%, 40% 64%, 89% 5%, 100% 17%, 40% 90%);
}
.als-prose ol li {
  counter-increment: als-ol;
}
.als-prose ol li::before {
  content: counter(als-ol);
  position: absolute;
  left: 0;
  top: 2px;
  width: 23px;
  height: 23px;
  border-radius: 6px;
  background: var(--navy-soft);
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.als-prose blockquote {
  margin: 32px 0 0;
  padding: 26px 30px;
  background: var(--mist);
  border-radius: 14px;
  box-shadow: inset 4px 0 0 var(--red);
  font-size: 19.5px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--navy);
}
.als-prose img {
  border-radius: 14px;
  width: 100%;
  box-shadow: var(--shadow-1);
}
.als-prose figcaption {
  font-size: 14px;
  color: var(--ink-3);
  margin-top: 10px;
}
.als-prose a {
  color: var(--red-dk);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── generic tile grids ── */
.als-tiles {
  display: grid;
  gap: clamp(14px, 1.4vw, 20px);
}
.als-tiles--2 {
  grid-template-columns: repeat(2, 1fr);
}
.als-tiles--3 {
  grid-template-columns: repeat(3, 1fr);
}
.als-tiles--4 {
  grid-template-columns: repeat(4, 1fr);
}
.als-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  padding: 26px 24px 24px;
  text-decoration: none;
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition:
    transform 0.26s var(--ease),
    box-shadow 0.26s var(--ease);
}
/* a red edge that wipes in on hover — the accent doing work without being decorative */
.als-tile::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.28s var(--ease);
}
.als-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--lift);
}
.als-tile:hover::before {
  transform: scaleY(1);
}
.als-tile:hover .als-arrow {
  transform: translateX(5px);
}
.als-tile__t {
  font-size: var(--t-card);
  font-weight: 800;
  color: var(--navy);
}
.als-tile__d {
  font-size: 15.5px;
  color: var(--ink-2);
  margin: 9px 0 20px;
}
.als-tile__more {
  margin-top: auto;
}

/* ── split band: text one side, list the other ── */
.als-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
}

/* ── pagination ── */
.als-pager {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 44px;
}
.als-pager__l {
  min-width: 48px;
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 0 16px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-1);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-2);
  text-decoration: none;
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    color 0.2s var(--ease);
}
.als-pager__l:hover {
  transform: translateY(-2px);
  box-shadow: var(--lift);
  color: var(--navy);
}
.als-pager__l[aria-current] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* ── contact / form ── */
.als-form {
  display: grid;
  gap: 16px;
}
.als-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.als-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.als-field__l {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}
.als-input,
.als-textarea,
.als-select {
  font: 16.5px/1.4 var(--font);
  color: var(--ink);
  background: #fff;
  border: 0;
  box-shadow: inset 0 0 0 1px var(--line);
  border-radius: 12px;
  padding: 16px 17px;
  min-height: 54px;
  width: 100%;
  transition: box-shadow 0.18s var(--ease);
}
.als-input:hover,
.als-textarea:hover,
.als-select:hover {
  box-shadow: inset 0 0 0 1px var(--ink-3);
}
.als-input:focus,
.als-textarea:focus,
.als-select:focus {
  outline: 3px solid var(--red);
  outline-offset: 2px;
  box-shadow: inset 0 0 0 2px var(--navy);
}
.als-textarea {
  min-height: 132px;
  resize: vertical;
}
.als-form__note {
  font-size: 13.5px;
  color: var(--ink-3);
}

/* ── contact detail cards ── */
.als-cd {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.als-cd__c {
  background: #fff;
  border-radius: 16px;
  padding: 28px 26px;
  text-decoration: none;
  display: block;
  box-shadow: var(--shadow-1);
  transition:
    transform 0.24s var(--ease),
    box-shadow 0.24s var(--ease);
}
.als-cd__c:hover {
  transform: translateY(-4px);
  box-shadow: var(--lift);
}
.als-cd__c--call {
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-2);
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 72%);
}
.als-cd__c--call::before {
  content: "";
  position: absolute;
  top: -54%;
  right: -8%;
  width: 74%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(237, 27, 36, 0.18), transparent 66%);
  pointer-events: none;
}
.als-cd__k,
.als-cd__v,
.als-cd__d {
  position: relative;
}
.als-cd__k {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.als-cd__c--call .als-cd__k {
  color: var(--on-navy-2);
}
.als-cd__v {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  margin-top: 10px;
  display: block;
  letter-spacing: -0.02em;
}
.als-cd__c--call .als-cd__v {
  color: #fff;
}
.als-cd__d {
  font-size: 14.5px;
  color: var(--ink-3);
  margin-top: 6px;
  display: block;
}
.als-cd__c--call .als-cd__d {
  color: var(--on-navy-2);
}

/* ── masonry gallery ── */
.als-mas {
  columns: 3;
  column-gap: 18px;
}
.als-mas__i {
  break-inside: avoid;
  margin-bottom: 18px;
  border-radius: 14px;
  overflow: hidden;
  display: block;
  box-shadow: var(--shadow-1);
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.als-mas__i:hover {
  transform: translateY(-4px);
  box-shadow: var(--lift);
}

/* ── blog ── */
.als-posts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.als-post {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 28px;
  text-decoration: none;
  align-items: center;
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.3s var(--ease);
  padding-bottom: 24px;
  border-bottom: 1px solid #dce2ed;
}
.als-post:hover {
  transform: translateY(-4px);
}
.als-post:hover .als-arrow {
  transform: translateX(5px);
}
.als-post__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 12px;
}
.als-post__right {
  display: flex;
  flex-direction: column;
  padding: 20px 0;
}
.als-post__m {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
  display: block;
}
.als-post__t {
  font-size: 21px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
  transition: color 0.18s var(--ease);
  display: block;
}
.als-post__d {
  font-size: 15px;
  color: var(--ink-2);
  display: block;
}
.als-post__more {
  margin-top: 16px;
}

/* ── alternating feature band ── */
.als-alt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
}
.als-alt + .als-alt {
  margin-top: 64px;
}
.als-alt--flip .als-alt__media {
  order: -1;
}
.als-alt__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow-2);
}

/* ═══ responsive ═══ */
@media (max-width: 1080px) {
  .als-body {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .als-aside {
    position: static;
  }
  .als-phero__lead {
    max-width: 100%;
  }
  .als-phero__grid,
  .als-split,
  .als-alt {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .als-alt--flip .als-alt__media {
    order: 0;
  }
  .als-phero__t {
    font-size: 36px;
  }
  .als-tiles--4,
  .als-tiles--3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .als-mas {
    columns: 2;
  }
  .als-cd {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .als-post {
    grid-template-columns: 1fr;
  }
  .als-post__right {
    padding: 0;
  }
}
@media (max-width: 640px) {
  .als-phero__in {
    padding-block: 24px 34px;
  }
  .als-phero__t {
    margin-top: 14px;
    max-width: 100%;
  }
  .als-phero__cta .als-btn {
    flex: 1;
  }
  .als-phero__media {
    padding: 0;
  }
  .als-phero__media::before {
    display: none;
  }
  .als-tiles--2,
  .als-tiles--3,
  .als-tiles--4 {
    grid-template-columns: 1fr;
  }
  .als-post {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .als-post__m {
    margin-bottom: 6px;
  }
  .als-mas {
    columns: 1;
  }
  .als-prose h2 {
    font-size: 25px;
    margin-top: 34px;
  }
  .als-prose h3 {
    font-size: 20px;
  }
  .als-form__row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 425px) {
  .als-phero__cta .als-btn {
    flex: unset;
  }
}

/* ═══ BLOG SIDEBAR LAYOUT ═══ */
.als-blog-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
}

@media (max-width: 992px) {
  .als-blog-layout {
    grid-template-columns: 1fr;
  }
}

.als-blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.als-widget {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-1);
}

.als-widget__t {
  font-size: 19px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 20px;
}

/* Categories Widget */
.als-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.als-cat-list li {
  border-bottom: 1px solid var(--line);
}
.als-cat-list li:last-child {
  border-bottom: none;
}
.als-cat-list a {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s var(--ease);
}
.als-cat-list a:hover {
  color: var(--red);
}
.als-cat-list a.active {
  color: var(--navy);
  font-weight: 700;
}

/* Start Here Widget */
.als-start-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.als-start-list a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  transition: color 0.2s var(--ease);
}
.als-start-list a:hover {
  color: var(--navy);
}
.als-start-list .num {
  color: var(--red);
  font-weight: 700;
  font-size: 13px;
}

/* CTA Widget */
.als-widget-cta p {
  font-size: 14px;
  color: var(--ink-2);
  margin-bottom: 20px;
  line-height: 1.5;
}
.als-widget-cta .phone {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  text-decoration: none;
}
.als-widget-cta .phone .icon {
  width: 40px;
  height: 40px;
  background: var(--red);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
}
.als-widget-cta .phone .icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.als-widget-cta .phone .details {
  text-align: left;
}
.als-widget-cta .phone .details span {
  display: block;
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.als-widget-cta .phone .details strong {
  display: block;
  font-size: 22px;
  color: var(--navy);
  font-weight: 800;
  line-height: 1;
}
.als-widget-cta .btn {
  display: block;
  width: 100%;
  background: var(--red);
  color: #fff;
  box-shadow: 0 6px 18px rgba(237, 27, 36, 0.32);
}

/* Service Areas Widget */
.als-widget-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.als-widget-areas a {
  background: var(--mist);
  color: var(--navy);
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 13px;
  text-decoration: none;
  font-weight: 600;
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease);
}
.als-widget-areas a:hover {
  background: var(--red);
  color: white;
}
.als-phero__center .als-crumbs {
  justify-content: center;
}
.als-phero__center .als-phero__t {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.als-phero__center .als-phero__lead {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.als-phero__center .als-phero__cta {
  justify-content: center;
}
