/* Cross-block components: brand, nav, mega menu, mobile menu, footer,
   sections, buttons, chips, cards. Values taken 1:1 from the design export. */

/* ---- Section scaffolding ---- */

.section {
  padding: var(--space-9) 0;
}

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

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

.section__head {
  max-width: 720px;
  margin-bottom: var(--space-7);
}

.eyebrow {
  display: block;
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: 13px;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-3);
}

.section--inverse .eyebrow {
  color: var(--mint-400);
}

.section__title {
  font-size: var(--text-3xl);
}

.section--inverse .section__title {
  color: var(--white);
}

.section__intro {
  margin-top: var(--space-4);
  font-size: var(--text-lg);
  color: var(--text-muted);
}

.section--inverse .section__intro {
  color: var(--ink-300);
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 26px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: 17px;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--dur-fast) var(--ease-out);
}

.btn--primary {
  background: var(--accent);
  color: var(--text-on-accent);
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--text-on-accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lift);
}

.btn--ghost {
  border: 1px solid var(--border-strong);
  color: var(--text-heading);
}

.btn--ghost:hover {
  border-color: var(--text-heading);
  color: var(--text-heading);
}

.btn--ghost-inverse {
  border: 1px solid var(--white-a35);
  color: var(--white);
}

.btn--ghost-inverse:hover {
  border-color: var(--white);
  color: var(--white);
}

.btn--nav {
  height: 38px;
  padding: 0 12px;
  font-size: 15px;
  gap: 6px;
}

/* ---- Chips ---- */

.chip {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--border-soft);
  color: var(--text-body);
}

.chip--petrol {
  background: var(--petrol-50);
  border-color: var(--petrol-a28);
  color: var(--accent);
}

.chip--inverse {
  background: var(--mint-a14);
  border-color: var(--mint-a35);
  color: var(--mint-200);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
}

/* ---- Cards ---- */

.card {
  background: var(--surface-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-6);
  transition: all var(--dur-fast) var(--ease-out);
}

a.card:hover,
.card--hover:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-1px);
}

.card--inverse {
  background: var(--white-a05);
  border: 1px solid var(--white-a12);
  box-shadow: none;
}

.card__number {
  font-family: var(--font-display);
  font-weight: var(--weight-heavy);
  font-size: 22px;
  color: var(--petrol-200);
}

.section--inverse .card__number,
.card--inverse .card__number {
  color: var(--mint-400);
}

/* ---- Brand lockup (nav + footer) ---- */

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: none;
  opacity: .95;
  transition: opacity var(--dur-fast) var(--ease-out);
}

.brand:hover {
  opacity: 1;
}

.brand__mark {
  height: 40px;
  width: auto;
}

.brand__text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 40px;
  padding: 1px 0;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: 21px;
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--white);
}

.brand__tagline {
  font-family: var(--font-display);
  font-weight: var(--weight-medium);
  font-size: 11px;
  line-height: 1;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--mint-400);
}

/* ---- Scroll progress ---- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 41; /* above .nav (40) */
  pointer-events: none;
}

.scroll-progress__bar {
  height: 100%;
  background: var(--mint-400);
  transform-origin: left;
  transform: scaleX(0);
}

/* ---- Main navigation ---- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--night-900);
  border-bottom: 1px solid var(--white-a08);
  transition: background-color var(--dur-med) var(--ease-out);
}

.nav--scrolled {
  background: var(--night-a72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav__bar {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.nav__items {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  min-width: 0;
  gap: 2px;
}

.nav__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 10px;
  border-radius: var(--radius-md);
  white-space: nowrap;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: 12.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--white-a78);
  transition: all var(--dur-fast) var(--ease-out);
}

.nav__item:hover {
  color: var(--white);
  background: var(--white-a08);
}

.nav__item--active {
  background: var(--mint-a16);
  box-shadow: inset 0 0 0 1px rgba(127, 181, 175, .38);
}

.nav__item--active::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--mint-400);
}

.nav__item-chevron {
  display: inline-flex;
  color: var(--mint-400);
}

.nav__divider {
  width: 1px;
  height: 24px;
  background: var(--white-a14);
  margin: 0 var(--space-2);
}

.nav__phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  flex: none;
  margin-right: var(--space-2);
  border: 1px solid rgba(255, 255, 255, .2);
  color: rgba(255, 255, 255, .8);
  text-decoration: none;
  transition: all var(--dur-fast) var(--ease-out);
}

.nav__phone:hover {
  color: var(--white);
  border-color: var(--white);
  background: var(--white-a08);
}

.nav__burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  color: var(--white);
}

.nav__burger .nav__burger-close {
  display: none;
}

.nav--open .nav__burger .icon--menu {
  display: none;
}

.nav--open .nav__burger .nav__burger-close {
  display: block;
}

/* ---- Mega menu ---- */

.mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(20, 32, 31, .97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--white-a08);
  border-bottom: 1px solid var(--white-a08);
  box-shadow: var(--shadow-pop);
}

.mega__inner {
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}

.mega__heading {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: 13px;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--mint-400);
  margin-bottom: var(--space-4);
}

.mega__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
}

.mega__card {
  display: grid;
  gap: 6px;
  padding: var(--space-4);
  border: 1px solid var(--white-a16);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--dur-fast) var(--ease-out);
}

.mega__card:hover {
  background: var(--mint-a16);
  border-color: rgba(127, 181, 175, .38);
}

.mega__title {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: 15px;
  color: var(--white);
  white-space: nowrap;
}

.mega__text {
  font-size: 14.5px;
  color: var(--ink-300);
  line-height: 1.5;
}

/* ---- Mobile menu ---- */

.mobile-menu {
  /* Absolute below the sticky nav, not fixed: the scrolled nav gets a
     backdrop-filter, which turns it into the containing block for fixed
     descendants and would collapse the panel to zero height. */
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: calc(100vh - var(--nav-height));
  height: calc(100dvh - var(--nav-height));
  z-index: 39;
  overflow-y: auto;
  background: var(--night-900);
}

.mobile-menu__inner {
  display: grid;
  gap: var(--space-2);
  padding-top: var(--space-6);
  padding-bottom: var(--space-8);
}

.mobile-menu__link {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-xl);
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white-a78);
  padding: var(--space-2) 0;
}

.mobile-menu__link:hover,
.mobile-menu__link--active {
  color: var(--white);
}

.mobile-menu__group {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-2) 0;
}

.mobile-menu__group-label {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: 13px;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--mint-400);
  margin-bottom: var(--space-2);
}

.mobile-menu__sublink {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-md);
  text-decoration: none;
  color: var(--white-a78);
  padding: var(--space-1) 0 var(--space-1) var(--space-4);
  border-left: 2px solid var(--mint-a35);
}

.mobile-menu__sublink:hover,
.mobile-menu__sublink--active {
  color: var(--white);
  border-left-color: var(--mint-400);
}

.mobile-menu__contact {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding-top: var(--space-5);
  border-top: 1px solid var(--white-a12);
}

.mobile-menu__row {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--ink-300);
  text-decoration: none;
  font-size: var(--text-md);
}

.mobile-menu__row:hover {
  color: var(--white);
}

.mobile-menu__cta {
  margin-top: var(--space-4);
  width: 100%;
}

body.menu-open {
  overflow: hidden;
}

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

.footer {
  background: var(--surface-inverse);
  color: var(--ink-300);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-7);
  padding-top: var(--space-8);
  padding-bottom: var(--space-7);
}

.footer__brand .brand {
  margin-bottom: var(--space-4);
}

.footer__brand .brand__name {
  color: var(--paper);
}

.footer__about {
  font-size: 15px;
  max-width: 300px;
  line-height: var(--leading-body);
}

.footer__col {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer__heading {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: 13px;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--ink-500);
}

.footer__link {
  color: var(--ink-300);
  font-size: 15px;
  text-decoration: none;
}

.footer__link:hover {
  color: var(--white);
}

.footer__address {
  font-size: 15px;
  line-height: var(--leading-body);
}

.footer__hours {
  font-size: 15px;
  line-height: var(--leading-body);
  color: var(--ink-500);
}

.footer__sub {
  border-top: 1px solid var(--white-a12);
}

.footer__sub-inner {
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: 14px;
  color: var(--ink-500);
}

.footer__sub-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}

.footer__sub-link {
  color: var(--ink-500);
  font-size: 14px;
  text-decoration: none;
}

.footer__sub-link:hover {
  color: var(--ink-300);
}

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

@media (max-width: 1080px) {
  .nav__sub,
  .nav__phone,
  .nav__divider {
    display: none;
  }
}

@media (max-width: 1024px) {
  .nav__items .nav__item,
  .nav__items .nav__item--toggle {
    display: none;
  }

  /* With the nav items collapsed into the burger there is room for the
     brand tagline again (hidden at 1080px only for the crowded in-between) */
  .nav__sub {
    display: block;
  }

  .nav__burger {
    display: inline-flex;
  }

  .mega {
    display: none;
  }

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

@media (max-width: 480px) {
  .btn--nav {
    display: none;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}
