:root {
  --paper: #fafaf9;
  --tint: #f1f2f2;
  --line: #dedfe0;
  --ink: #222326;
  --muted: #515357;
}

.alp-header {
  background: #fff;
  border-bottom: 1px solid #e2e2e2;
  box-shadow: 0 5px 20px #22232608;
}

:is(.header, .alp-footer) .brand {
  flex: none;
  width: 10.2rem;
  height: 70px;
  overflow: hidden;
}
:is(.header, .alp-footer) .brand .alp-brand-art {
  flex: none;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}
.alp-header .navrow { min-height: 76px; height: auto; gap: clamp(.8rem, 2vw, 2rem); }
.alp-header .desktop-nav { gap: clamp(.85rem, 1.5vw, 1.6rem); margin-inline: auto; }
.alp-header .desktop-nav > a,
.alp-header .desktop-nav summary { font-size: .91rem; font-weight: 700; }
.alp-header .desktop-nav details[open] > summary { color: var(--red-dark); }
.alp-header .header-phone {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  white-space: nowrap;
  font-size: .89rem;
  text-decoration: none;
}
.alp-header .header-client {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 .8rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  font-size: .89rem;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}
.button, .alp-header .button { border-radius: .5rem; min-height: 44px; }
.alp-header .header-actions { gap: .65rem; }
.alp-header .trades-panel,
.alp-header .about-panel {
  background: #fff;
  border-top: 3px solid var(--red);
  border-radius: 0 0 .8rem .8rem;
  box-shadow: 0 18px 35px #20222524;
}
.alp-header .trades-panel {
  width: min(calc(100% - 2 * var(--gutter)), 72rem);
  padding: clamp(1rem, 2.6vw, 2.25rem);
}
.alp-header .trades-panel-grid { gap: 1.25rem; }
.alp-header .trades-panel-grid > div { border-inline-start: 1px solid var(--line); padding-inline-start: 1rem; }
.menu-heading { margin: 0 0 .55rem; color: var(--ink); font-size: .97rem; font-weight: 750; }
.alp-header .trades-panel a, .alp-header .about-panel a { min-height: 37px; }
.alp-header .menu-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.directory-form { margin: 0; }
.directory-form label { display: block; margin-bottom: .25rem; font-size: .9rem; font-weight: 700; }
.directory-form .searchline { display: flex; align-items: stretch; gap: .5rem; }
.directory-form input {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  padding: .6rem .8rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #b9babc;
  border-radius: .5rem;
}
.directory-form .button { padding-inline: .85rem; font-size: .9rem; }
.zone-menu-grid { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 2.3rem; }
.zone-menu-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .15rem .8rem; }

.mast-alp { background: #f1f2f2; }
.mast-alp .mast-inner { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(1.5rem, 4.6vw, 4.7rem); }
.mast-alp h1 { margin-block: .5rem .95rem; font-size: clamp(2.8rem, 5.25vw, 5.1rem); }
.mast-lead { max-width: 34rem; color: var(--muted); font-size: clamp(1.03rem, 1.36vw, 1.22rem); }
.mast-alp .mast-actions { gap: .75rem; }
.home-film, .film-page video {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: .9rem;
  overflow: hidden;
  box-shadow: 0 18px 38px #2022251b;
}
.home-film video, .film-page video {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 16/9;
  object-fit: contain;
}
.home-film figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .25rem 1rem;
  padding: .75rem 1.05rem;
  color: var(--muted);
  font-size: .89rem;
}
.home-film figcaption .textlink { white-space: normal; }
.film-page { max-width: 66rem; padding-block: clamp(1.8rem, 4vw, 3.75rem); }
.film-page h1 { font-size: clamp(2.55rem, 5vw, 4.5rem); }
.film-page video { margin-top: 1.25rem; }
.film-caption { margin-top: .65rem; margin-bottom: 1.2rem; color: var(--muted); }
.home-sections .site-shortcuts { margin-block: 1.4rem 0; border-radius: .65rem; }
.sector-more summary { min-height: 36px; padding-top: .35rem; cursor: pointer; color: var(--red-dark); font-weight: 650; }
.sector-more .inline-links { margin-bottom: .5rem; }

.trade-mast { background: #f1f2f2; color: var(--ink); }
.trade-mast h1, .trade-mast .kicker { color: var(--ink); }
.trade-mast h1 { font-size: clamp(2.5rem, 4.7vw, 4.7rem); }
.trade-mast-grid > div > p:not(.kicker, .chantier-review) { color: var(--muted); }
.trade-mast-grid figure { border-radius: .7rem; overflow: hidden; }
.trade-mast-grid figcaption { color: #fff; }
.trade-mast .mast-secondary { color: var(--ink); }
.trade-mast .mast-secondary:hover { color: var(--red-dark); }
.trade-mast .chantier-review { color: var(--ink); }
.trade-mast .chantier-review strong,
.trade-mast .chantier-review span:not(.chantier-stars) { color: var(--muted); }
.trade-quote { margin-bottom: .8rem; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trade-quote-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .65rem 1.3rem;
  padding-block: clamp(1.05rem, 2.6vw, 1.65rem);
}
.trade-quote h2 { font-size: clamp(1.45rem, 2.65vw, 2rem); margin-bottom: .35rem; }
.trade-quote p { color: var(--muted); }
.trade-quote-actions { display: flex; align-items: flex-start; gap: .55rem; flex-wrap: wrap; }
.inline-quote summary { cursor: pointer; list-style: none; }
.inline-quote summary::-webkit-details-marker { display: none; }
.inline-quote-panel { margin-top: .7rem; max-width: 65rem; }
.inline-quote-panel iframe { display: block; width: 100%; border: 1px solid var(--line); border-radius: .6rem; }
.inline-quote-panel iframe:not([src]) { display: none; }
.inline-quote-panel > p { margin-top: .65rem; }
.trade-quote-inner:has(.inline-quote[open]) { grid-template-columns: minmax(0,1fr); }
.trade-quote-actions:has(.inline-quote[open]) { display: grid; justify-items: start; }
.inline-quote[open] { width: 100%; }
.local-project-facts { margin-block: .7rem; padding: .85rem 1rem; background: var(--tint); border-radius: .55rem; }
.local-project-facts strong { color: var(--ink); }
.trade-terms { display: flex; flex-wrap: wrap; gap: .35rem .65rem; list-style: none; padding: 0; }
.trade-terms li { padding: .25rem .6rem; border-radius: .45rem; background: var(--tint); font-size: .93rem; }
.trade-location-finder { max-width: 35rem; margin-block: 1rem 1.25rem; }
.town-mast .town-mast-grid { gap: clamp(1.25rem, 4vw, 3.25rem); }
.town-mast-grid figure { border-radius: .75rem; overflow: hidden; }
.town-service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; margin-block: 1rem; }
.town-service-grid a {
  display: block;
  padding: .9rem;
  border: 1px solid var(--line);
  border-radius: .6rem;
  color: inherit;
  background: #fff;
  text-decoration: none;
}
.town-service-grid a:hover { border-color: var(--red); }
.town-service-grid a strong { display: block; color: var(--red-dark); font-size: 1rem; }
.town-service-grid a span { display: block; margin-top: .35rem; color: var(--muted); font-size: .91rem; }

.alp-footer { color: var(--ink); background: #f0f1f1; border-top: 3px solid var(--red-dark); }
.alp-footer .footer-grid { padding-block: 2.5rem 2rem; }
.alp-footer .footer-col h2, .alp-footer .footer-agencies h2 {
  font-size: 1.04rem;
  letter-spacing: 0;
  font-weight: 750;
}
.alp-footer .footer-col a { font-size: .94rem; margin-block: .4rem; text-decoration: none; }
.alp-footer .footer-col a:hover { text-decoration: underline; }
.alp-footer address { margin-top: .6rem; font-style: normal; font-size: .93rem; }
.alp-footer .footer-opening { margin-top: .32rem; color: var(--muted); font-size: .88rem; }
.footer-contact-actions { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .9rem; margin-top: .2rem; }
.alp-footer .footer-contact-actions a { color: var(--red-dark); text-decoration: underline; }
.alp-footer .footer-agencies ul { margin-top: .35rem; gap: .2rem 1.05rem; }
.alp-footer .footer-agencies a { color: var(--red-dark); }
.footer-identity { border-top: 1px solid var(--line); padding-block: 1.05rem; font-size: .88rem; }
.footer-identity .alp-site-identity { display: grid; gap: .45rem; }
.footer-identity nav { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; }
.alp-footer .footline, .alp-footer .footline a { color: var(--muted); font-size: .87rem; }

@media (max-width: 1240px) {
  .alp-header .desktop-nav { display: none; }
  .alp-header .mobile-menu { display: block; }
  .alp-header .header-client { display: none; }
  .alp-header .mobile-menu > summary {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-height: 44px;
    padding: .5rem .7rem;
    border: 1px solid var(--line);
    border-radius: .5rem;
    cursor: pointer;
    list-style: none;
    font-weight: 750;
  }
  .alp-header .mobile-menu summary::-webkit-details-marker { display: none; }
  .alp-header .mobile-menu > summary i {
    width: 16px;
    height: 11px;
    border-block: 2px solid currentColor;
    background: linear-gradient(currentColor,currentColor) center / 100% 1px no-repeat;
  }
  .alp-header .mobile-menu nav {
    position: absolute;
    inset: 100% 0 auto;
    max-height: min(74dvh, 40rem);
    overflow: auto;
    background: #fff;
    box-shadow: 0 14px 32px #20222520;
    border-bottom: 3px solid var(--red);
    padding: .8rem var(--gutter) 1.2rem;
  }
  .alp-header .mobile-menu nav > a,
  .alp-header .mobile-menu nav details > summary {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: .4rem .15rem;
    cursor: pointer;
    list-style: none;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .alp-header .mobile-menu nav details > summary::after {
    content: '+';
    margin-inline-start: auto;
    color: var(--red-dark);
    font-weight: 650;
  }
  .alp-header .mobile-menu nav details[open] > summary::after { content: '−'; }
  .alp-header .mobile-project-links { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .4rem; }
  .alp-header .mobile-project-links .button { display: inline-flex; align-items: center; padding: .58rem .8rem; }
  .alp-header .mobile-submenu { padding: .45rem .8rem .85rem; background: var(--tint); }
  .alp-header .mobile-submenu a { display: block; min-height: 38px; padding: .43rem 0; }
  .alp-header .mobile-submenu .directory-form { margin-top: .45rem; }
}

@media (max-width: 760px) {
  .alp-header .navrow { min-height: 65px; }
  .alp-header .brand { width: 8.3rem; height: 60px; }
  .mast-alp .mast-inner, .trade-quote-inner { grid-template-columns: minmax(0, 1fr); }
  .mast-alp h1 { font-size: clamp(2.5rem, 9vw, 3.75rem); }
  .home-sections .site-shortcuts { display: none; }
  .town-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
  body .quick-access-rail { display: none !important; }
}

@media (max-width: 430px) {
  .alp-header .brand { width: 7.75rem; }
  .alp-header .header-phone { font-size: .79rem; }
  .alp-header .header-quote { display: none; }
  .alp-header .mobile-menu > summary { padding-inline: .52rem; }
  .alp-header .header-actions { gap: .45rem; }
  .alp-footer .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .alp-footer .foot-brand, .alp-footer .footer-contact { grid-column: 1 / -1; }
}
