/* ===== reset ===== */
/* Minimal modern reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

img {
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

/* ===== variables ===== */
/*
  Breakpoints (mobile-first — base styles target the 393px mobile design,
  then override upward as each min-width is reached):
    Mobile:  393px  (base, no media query)
    Tablet:  744px  -> @media (min-width: 744px)
    Laptop:  1100px -> @media (min-width: 1100px)  (design target 1440px, held from 1100px
                                                     so real laptop windows in the 1100-1439px
                                                     range still get the laptop layout instead
                                                     of falling back to the tablet stack)
    Desktop: 1920px -> @media (min-width: 1920px)
*/

:root {
  /* Colors — from Figma design tokens */
  --brand-navy: #013a81;
  --accent-600: #3a6ec2;
  --accent-700: #285392;
  --accent-800: #1c3d6b;
  --accent-900: #0d2440;
  --accent-100: #eaf1fc;
  --accent-200: #cfe1f8;
  --accent-300: #aac9f0;
  --accent-400: #82ade3;
  --accent-500: #5c8fd1;
  --sky-600: #2f68b3;
  --shadow-navy: #1f4e8c;
  --neutral-100: #f5f5f8;
  --neutral-300: #d4d4d7;
  --neutral-600: #7a7a7d;
  --neutral-700: #5d5d60;
  --neutral-800: #424244;
  --neutral-900: #2b2b2d;
  --form-label: #3d3636;
  --overlay-dark: rgba(22, 22, 22, 0.39);
  --color-bg: #ffffff;
  --color-text: #161616;

  /* Typography */
  --font-heading: "Barlow Condensed", Arial, sans-serif;
  --font-body: "Barlow", Arial, sans-serif;

  /* Layout */
  --container-max-width: 1920px;
  --container-padding: 24px;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
}

@media (min-width: 744px) {
  :root {
    --container-padding: 40px;
  }
}

@media (min-width: 1100px) {
  :root {
    --container-padding: 120px;
  }
}

/* ===== header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 97px;
  z-index: 100;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  background: var(--neutral-100);
  transition: background-color 0.2s ease;
}

.site-header--overlay {
  background: var(--overlay-dark);
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--neutral-100);
  padding-inline: 28px;
}

.site-header__logo {
  height: 32px;
  width: auto;
  flex-shrink: 0;
}

.site-header__wordmark {
  display: none;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(22px, calc(1.1px + 2.81vw), 32px);
  color: var(--brand-navy);
  white-space: nowrap;
}

.site-header__nav {
  display: none;
}

.site-header__nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 20px;
  color: var(--neutral-800);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.site-header__nav-link.is-active {
  color: var(--accent-600);
}

.site-header--overlay .site-header__nav-link {
  color: var(--neutral-100);
}

.site-header--overlay .site-header__nav-link.is-active {
  color: var(--neutral-100);
}

.site-header__nav-link--underline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  text-decoration: underline;
}

.site-header__nav-link--underline img {
  width: 24px;
  height: 24px;
  filter: invert(1) brightness(0.6);
}

.site-header--overlay .site-header__nav-link--underline img {
  filter: none;
}

.site-header__action {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-navy);
  padding-inline: 40px;
  overflow: hidden;
}

.site-header__action::before,
.site-header__action::after {
  content: "";
  position: absolute;
  inset: -40px;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.1) 0px,
    rgba(255, 255, 255, 0.1) 2px,
    transparent 2px,
    transparent 16px
  );
  opacity: 0;
  transition: opacity 0.2s ease;
  animation: site-header-hatch 1.5s linear infinite;
  pointer-events: none;
}

.site-header__action::before {
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.3) 0px,
    rgba(255, 255, 255, 0.3) 2px,
    transparent 2px,
    transparent 16px
  );
  mask-image: linear-gradient(315deg, transparent 10%, black 50%, transparent 90%);
  -webkit-mask-image: linear-gradient(315deg, transparent 10%, black 50%, transparent 90%);
}

.site-header__action:hover::before,
.site-header__action:hover::after {
  opacity: 1;
}

@keyframes site-header-hatch {
  from {
    background-position: 0 0;
  }
  to {
    background-position: -11.3137px -11.3137px;
  }
}

.site-header__contact-label {
  display: none;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: 0.02em;
  color: var(--neutral-100);
  white-space: nowrap;
}

.site-header__menu-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-header__menu-toggle img {
  width: 100%;
  height: 100%;
}

@media (min-width: 744px) {
  .site-header__wordmark {
    display: block;
  }

  .site-header__logo {
    height: 34px;
  }
}

@media (min-width: 1100px) {
  .site-header {
    border-bottom: 1px solid #b7b7ba;
  }

  .site-header__brand {
    padding-inline: 40px;
    gap: 22px;
  }

  .site-header__logo {
    height: 38px;
  }

  .site-header__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    max-width: 663px;
    min-width: 0;
  }

  .site-header__action {
    padding-inline: 40px;
  }

  .site-header__contact-label {
    display: block;
  }

  .site-header__menu-toggle {
    display: none;
  }
}

@media (min-width: 1920px) {
  .site-header__brand {
    padding-inline: 48px;
  }

  .site-header__action {
    padding-inline: 35px;
  }
}

/* ===== mobile-nav ===== */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.mobile-nav.is-open .mobile-nav__backdrop {
  opacity: 1;
}

.mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: var(--brand-navy);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-nav.is-open .mobile-nav__panel {
  transform: translateX(0);
}

.mobile-nav__head {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  padding: 24px 24px 0;
}

.mobile-nav__close {
  width: 24px;
  height: 24px;
}

.mobile-nav__close img {
  width: 100%;
  height: 100%;
}

.mobile-nav__links {
  display: flex;
  flex-direction: column;
  padding: 16px 24px 24px;
}

.mobile-nav__link {
  padding: 16px 0;
  border-bottom: 1px solid rgba(245, 245, 248, 0.15);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 20px;
  color: var(--neutral-100);
}

.mobile-nav__link.is-active {
  color: var(--accent-400);
}

.mobile-nav__link--underline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: underline;
}

.mobile-nav__link--underline img {
  width: 20px;
  height: 20px;
}

@media (min-width: 1100px) {
  .mobile-nav.is-open {
    display: none;
  }
}

/* ===== buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 8px 24px;
  height: 42px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(18px, calc(9.04px + 2.28vw), 26px);
  white-space: nowrap;
  transition: box-shadow 0.2s ease;
}

.btn__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.btn--primary {
  background: var(--accent-600);
  color: var(--neutral-100);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  box-shadow: 6px 6px 0 0 var(--neutral-100);
}

.btn--secondary {
  background: var(--neutral-100);
  color: var(--accent-700);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  box-shadow: 6px 6px 0 0 var(--accent-600);
}

.btn--footer {
  background: var(--neutral-100);
  color: var(--accent-900);
}

.btn--footer:hover,
.btn--footer:focus-visible {
  box-shadow: 6px 6px 0 0 var(--accent-600);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (min-width: 744px) {
  .hero__cta {
    gap: 68px;
  }

  .btn {
    height: 76px;
    gap: 18px;
    padding: 8px 20px;
  }

  .btn__icon {
    width: 28px;
    height: 28px;
  }

  .btn--primary .btn__icon,
  .btn--products .btn__icon,
  .btn--footer .btn__icon {
    width: 34px;
    height: 34px;
  }
}

@media (min-width: 1100px) {
  .hero__cta {
    gap: 24px;
  }
}

@media (min-width: 1920px) {
  .btn {
    padding: 8px 32px;
  }
}

/* ===== footer ===== */
.site-footer {
  background: var(--brand-navy);
  color: var(--neutral-100);
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "wordmark" "cta" "linksfab" "contact" "copyright";
  row-gap: 32px;
  padding: 40px var(--container-padding) 32px;
  overflow: hidden;
}

.site-footer__wordmark {
  grid-area: wordmark;
  min-width: 0;
  overflow: hidden;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: normal;
  text-align: center;
  white-space: nowrap;
  font-size: clamp(40px, calc(12.01px + 7.12vw), 65px);
}

.site-footer__cta {
  grid-area: cta;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--sky-600);
}

.site-footer__cta-text {
  font-family: var(--font-body);
  font-weight: 600;
  line-height: normal;
  max-width: 430px;
  font-size: 24px;
}

.btn--footer {
  font-size: clamp(20px, calc(13.28px + 1.71vw), 26px) !important;
}

.site-footer__nav {
  grid-area: linksfab;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--sky-600);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 35px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(18px, calc(11.28px + 1.71vw), 24px);
}

.site-footer__fabrication {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.site-footer__fabrication-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(20px, calc(15.52px + 1.14vw), 24px);
}

.site-footer__supreme {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(18px, calc(11.28px + 1.71vw), 24px);
  text-decoration: underline;
}

.site-footer__supreme img {
  width: 20px;
  height: 20px;
}

.site-footer__contact {
  grid-area: contact;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--sky-600);
}

.site-footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.site-footer__contact-item img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 6px;
}

.site-footer__contact-item p {
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.5;
  font-size: clamp(16px, calc(11.52px + 1.14vw), 20px);
}

.site-footer__copyright {
  grid-area: copyright;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--sky-600);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(14px, calc(7.28px + 1.71vw), 20px);
}

.site-footer__credit-link {
  text-decoration: underline;
}

.site-footer__divider {
  display: none;
  background: var(--sky-600);
}

@media (min-width: 744px) {
  .site-footer__links {
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 20px;
  }

  .site-footer__fabrication {
    align-items: flex-start;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "wordmark wordmark" "cta linksfab" "contact contact" "copyright copyright";
    column-gap: 28px;
  }

  .site-footer__wordmark {
    font-size: clamp(65px, calc(17.5px + 6.38vw), 140px);
  }

  .site-footer__nav {
    border-left: 1px solid var(--sky-600);
    padding-left: 28px;
  }

  .site-footer__copyright {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 1100px) {
  .site-footer {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-areas: "wordmark wordmark wordmark" "cta linksfab contact" "copyright copyright copyright";
    padding-top: 56px;
    padding-bottom: 56px;
    position: relative;
  }

  .site-footer__cta,
  .site-footer__nav,
  .site-footer__contact,
  .site-footer__copyright {
    border: none;
    padding-left: 0;
  }

  .site-footer__nav,
  .site-footer__contact {
    padding-left: 28px;
  }

  .site-footer__divider {
    display: block;
  }

  .site-footer__divider--h1,
  .site-footer__divider--h2 {
    grid-column: 1 / -1;
    height: 1px;
  }

  .site-footer__divider--h1 {
    grid-row: 2;
    align-self: start;
    margin-top: -16px;
  }

  .site-footer__divider--h2 {
    grid-row: 3;
    align-self: start;
    margin-top: -16px;
  }

  .site-footer__divider--v1,
  .site-footer__divider--v2 {
    grid-row: 2;
    width: 1px;
    height: 100%;
  }

  .site-footer__divider--v1 {
    grid-column: 1;
    justify-self: end;
  }

  .site-footer__divider--v2 {
    grid-column: 2;
    justify-self: end;
  }
}
