/* Page frame: site header, the shared section container and the footer. */

/* Header */
.site-header {
  height: 86px;
  max-width: 1600px;
  margin: auto;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 25px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-name {
  font:
    bold 36px/1 Arial,
    sans-serif;
  letter-spacing: -2px;
}

.brand-o {
  color: var(--orange);
  display: inline-block;
  margin-left: 2px;
}

/* Base caption is the narrow stacked footer lockup; the header overrides it below. */
.brand-caption {
  font:
    600 10px/1.3 Arial,
    sans-serif;
  letter-spacing: 2px;
  border-left: 1px solid #bfc3b8;
  padding: 8px 0 8px 11px;
  width: 48px;
}

.site-header .brand-caption {
  width: auto;
  flex-shrink: 0;
  font:
    700 13px/1.25 Arial,
    sans-serif;
  letter-spacing: 1.1px;
  padding: 3px 0 3px 12px;
  color: var(--ink);
}

.site-header .brand-caption span {
  display: block;
}

.site-header .brand-caption span:last-child {
  color: var(--rust);
}

.site-header nav {
  display: flex;
  gap: 30px;
  font-size: 13px;
}

.site-header nav a:hover {
  color: var(--rust);
}

.header-cta {
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 12px;
  display: flex;
  gap: 27px;
  align-items: center;
}

.header-cta span {
  font-size: 19px;
}

/* Shared section container */
.section {
  max-width: 1440px;
  margin: auto;
  padding: 100px 6%;
}

/* Footer */
footer {
  padding: 35px 5% 25px;
  max-width: 1600px;
  margin: auto;
}

.footer-top {
  display: flex;
  align-items: center;
  gap: 35px;
  padding-bottom: 27px;
}

.footer-top > p {
  font-size: 11px;
  color: var(--ink-soft);
}

.social-links {
  margin-left: auto;
  display: flex;
  gap: 25px;
  font: 10px Arial;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 9px;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .site-header {
    height: 75px;
    padding: 0 5%;
  }

  .brand-name {
    font-size: 30px;
  }

  .site-header nav {
    gap: 17px;
    font-size: 11px;
  }

  .site-header nav a {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header-cta {
    padding: 10px 14px;
    gap: 12px;
  }

  .section {
    padding: 65px 5%;
  }

  .footer-top {
    gap: 22px;
  }

  .footer-top > p {
    font-size: 12px;
  }

  .social-links {
    gap: 14px;
    font-size: 12px;
  }

  .social-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .footer-bottom {
    flex-wrap: wrap;
    font-size: 12px;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 600px) {
  .site-header {
    height: auto;
    min-height: 80px;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 15px;
    padding-bottom: 12px;
  }

  .site-header .brand {
    gap: 9px;
  }

  .site-header .brand-caption {
    font-size: 12px;
    padding-left: 9px;
    letter-spacing: 0.8px;
  }

  .site-header nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 2px;
    font-size: 12px;
  }

  .site-header nav a {
    padding: 5px 0;
    flex: 1;
  }

  .header-cta {
    margin-left: auto;
    font-size: 12px;
    gap: 8px;
    padding: 8px 10px;
    min-height: 44px;
  }

  .section {
    padding: 55px 6%;
  }

  .footer-top {
    flex-wrap: wrap;
    gap: 20px;
  }

  .footer-top .brand-name {
    font-size: 27px;
  }

  .footer-top .brand-caption {
    font-size: 11px;
    width: auto;
  }

  .social-links {
    width: 100%;
    margin: 0;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 18px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }
}
