@font-face {
  font-family: "Montserrat";
  src: url("Montserrat-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #161f22;
  --primary-hover: #2b3a3f;
  --navy: #0b194a;
  --navy-hover: #1a2c6e;
  --grey-box: #969696;
  --red: #bf0f2b;
  --grey-circle: #f0f0f0;
  --grey-band: #cccccc;
  --grey-skyline: #a9aaaa;
  --grey-title: #858686;
  --grey-sub: #6f7070;
  --cyan: #77ccea;
  --text: #4d4d4d;
  --text-strong: #1d1d1f;
  --text-muted: #6b6b6b;
  --surface: #ffffff;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 24px;
}

.icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Top bar --------------------------------------------------------------- */

.topbar {
  background: var(--navy);
  color: #fff;
  font-size: 0.8125rem;
}

/* Focus target of the back-to-top button; not interactive itself. */
.topbar:focus {
  outline: none;
}

.topbar a:focus-visible {
  outline-color: #fff;
}

.topbar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: 38px;
}

.topbar-welcome {
  margin: 0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.8;
}

.topbar-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.topbar-phone:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.topbar-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  display: flex;
  gap: 2px;
}

.lang-switch a {
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.lang-switch a:hover {
  background: rgba(255, 255, 255, 0.15);
}

.lang-switch a[aria-current="true"] {
  background: var(--surface);
  color: var(--primary);
}

/* Header ---------------------------------------------------------------- */

.site-header {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-bottom: 1px solid #ececec;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 80px;
}

.brand {
  height: 60px;
  width: auto;
}

/* Hero ------------------------------------------------------------------ */

.hero {
  overflow: hidden;
  padding-block: 56px 72px;
  background: var(--surface);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 40px;
}

.hero-racks svg {
  width: 100%;
  max-width: 380px;
  margin-inline: auto;
  overflow: visible;
  transform: perspective(900px) rotateY(24deg);
}

.hero-copy {
  position: relative;
  text-align: center;
}

.hero-skyline {
  width: 92%;
  margin: 0 auto -6px;
  color: var(--grey-skyline);
}

.hero h1 {
  position: relative;
  margin: 0;
  padding: 0.2em 0.5em;
  background: var(--grey-title);
  box-shadow: 0 6px 0 var(--grey-band);
  color: #fff;
  font-size: clamp(1.625rem, 1rem + 2vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-wrap: balance;
}

.hero-sub {
  margin: 6px 0 0;
  color: #fff;
  font-size: clamp(0.875rem, 0.8rem + 0.35vw, 1.0625rem);
  letter-spacing: 0.06em;
  line-height: 2;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero-sub span {
  padding: 0.25em 1.1em;
  background: var(--grey-sub);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero-more {
  display: inline-block;
  float: right;
  margin-top: 40px;
  color: var(--primary);
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}

.hero-more:hover {
  color: var(--red);
}

/* Trail of status lights from the racks towards the copy. */
.hero-dots {
  position: absolute;
  left: 38%;
  bottom: -40px;
  width: 220px;
  fill: var(--cyan);
}

/* Notice card ----------------------------------------------------------- */

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-bottom: 64px;
}

.main-content {
  flex: 1;
  padding-block: 40px 72px;
}

.card {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
  scroll-margin-top: 24px;
  overflow: hidden;
  border-top: 4px solid var(--primary);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 20px 40px -20px rgba(22, 31, 34, 0.4);
  text-align: center;
}

.card-body {
  padding: 44px 56px 40px;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--grey-circle);
  color: var(--primary);
}

.card-icon svg {
  width: 32px;
  height: 32px;
}

.card-text {
  max-width: 36em;
  margin: 0 auto;
  font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
  line-height: 1.75;
}

.card-text p {
  margin: 0 0 1em;
}

.card-text p:last-child {
  margin-bottom: 0;
}

.card-text .card-claim {
  margin-top: 1.5em;
  color: var(--primary);
  font-size: 1.25rem;
  line-height: 1.4;
  text-wrap: balance;
}

.card-thanks {
  color: var(--text-strong);
}

/* WIIT promo band --------------------------------------------------------- */

.wiit-promo {
  padding-block: 40px;
  background: var(--grey-band);
}

.wiit-promo-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(40px, 7vw, 96px);
}

.wiit-promo-box {
  flex: 0 1 500px;
  padding: 22px 30px 34px;
  background: var(--grey-box);
  color: #fff;
}

.wiit-promo-box h2 {
  margin: 0 0 16px;
  font-size: clamp(1.625rem, 1.2rem + 1vw, 2rem);
  font-weight: 400;
  line-height: 1.25;
}

.wiit-promo-box p {
  margin: 0 0 24px;
  font-size: 0.78125rem;
  line-height: 1.7;
}

.wiit-promo-btn {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 2px;
  background: var(--navy);
  color: #fff;
  font-size: 0.78125rem;
  text-decoration: none;
  transition: background-color 0.2s;
}

.wiit-promo-btn:hover {
  background: var(--navy-hover);
}

.wiit-promo-btn:focus-visible {
  outline-color: #fff;
}

.wiit-promo-logo {
  flex: 0 0 auto;
  width: clamp(200px, 22vw, 286px);
  color: #fff;
}

.wiit-promo-logo svg {
  width: 100%;
  height: auto;
  fill: currentColor;
}

.wiit-promo-logo span {
  display: block;
  margin-top: 0.75em;
  font-size: clamp(17.5px, 1.925vw, 25px);
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Footer ---------------------------------------------------------------- */

.site-footer {
  color: var(--text-muted);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer-main {
  padding-block: 56px 52px;
  background: #f1f1f1;
}

.footer-col h2 {
  margin: 0 0 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid #dadada;
  color: var(--text-strong);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.3;
  text-transform: uppercase;
}

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

.footer-col li + li {
  margin-top: 4px;
}

.footer-col a,
.footer-contact a {
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover,
.footer-contact a:hover {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-wiit {
  display: inline-block;
  color: var(--text-strong);
  text-decoration: none;
}

/* WIIT brand navy, as in the myLoc logo. */
.footer-wiit svg {
  width: 150px;
  height: auto;
  fill: var(--navy);
}

.footer-wiit span {
  display: block;
  margin-top: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
}

.footer-bottom {
  padding-block: 24px;
  background: #f7f7f7;
}

.footer-contact {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.footer-contact .icon {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: #a0a0a0;
}

.footer-contact p,
.footer-contact address {
  margin: 0;
  font-style: normal;
  line-height: 1.6;
}

.footer-contact strong {
  color: var(--text-strong);
  font-weight: 600;
}

.to-top {
  justify-self: end;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 2px;
  background: #8c8c8c;
  color: #fff;
  transition: background-color 0.2s;
}

.to-top:hover {
  background: var(--primary);
}

/* Responsive ------------------------------------------------------------ */

@media (max-width: 640px) {
  .container {
    padding-inline: 16px;
  }

  .topbar-inner {
    grid-template-columns: 1fr auto;
  }

  .topbar-welcome {
    display: none;
  }

  /* Phone shows as icon only; the number stays readable for screen readers. */
  .topbar-phone-number {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .header-inner {
    min-height: 64px;
  }

  .brand {
    height: 44px;
  }

  .hero {
    padding-block: 32px 40px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero-copy {
    order: -1;
  }

  .hero-skyline {
    width: 100%;
  }

  .hero-more {
    float: none;
    margin-top: 20px;
  }

  .hero-racks svg {
    max-width: 190px;
  }

  .hero-dots {
    display: none;
  }

  main {
    padding-bottom: 40px;
  }

  .main-content {
    padding-block: 24px 48px;
  }

  .wiit-promo-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
  }

  .wiit-promo-box {
    flex-basis: auto;
    padding: 20px 20px 28px;
  }

  .wiit-promo-logo {
    align-self: center;
    width: 200px;
  }

  .card-body {
    padding: 32px 20px 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-main {
    padding-block: 40px;
  }

  .footer-bottom .footer-grid {
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
