:root {
  --ink: #1d2730;
  --muted: #5d6870;
  --paper: #ffffff;
  --stone: #f1f2ef;
  --line: #d9dcd7;
  --accent: #1b6b84;
  --accent-dark: #124d5f;
  --font-body: "Barlow", "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Barlow Condensed", "Arial Narrow", "Segoe UI", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: 20px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-dark);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 10px;
  top: 10px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--paper);
}

/* Top bar */

.topbar {
  background: var(--ink);
  color: #dfe4e7;
  font-size: 0.875rem;
}

.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.topbar ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.topbar a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Header and navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
}

.logo img {
  width: auto;
  max-height: 56px;
}

.main-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav > ul {
  display: flex;
  gap: 4px;
}

.main-nav a {
  display: block;
  padding: 10px 14px;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

.main-nav a:hover,
.main-nav .is-active > a {
  color: var(--accent);
}

.has-sub {
  position: relative;
}

.sub-menu {
  display: none;
  min-width: 250px;
  padding: 8px 0;
  background: var(--paper);
}

.sub-menu a {
  padding: 8px 18px;
  font-family: var(--font-body);
  font-size: 1rem;
}

.nav-toggle,
.sub-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
}

@media (min-width: 901px) {
  .main-nav > ul > .is-active > a {
    box-shadow: inset 0 -3px 0 var(--accent);
  }

  .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    border: 1px solid var(--line);
    border-top: 3px solid var(--accent);
  }

  .has-sub:hover > .sub-menu,
  .has-sub:focus-within > .sub-menu {
    display: block;
  }
}

@media (max-width: 900px) {
  .site-header .wrap {
    min-height: 68px;
  }

  .logo img {
    max-height: 44px;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    width: 44px;
    height: 44px;
  }

  .nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

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

  .main-nav > ul {
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 16px;
  }

  .main-nav > ul > li {
    border-bottom: 1px solid var(--line);
  }

  .main-nav > ul > li:last-child {
    border-bottom: 0;
  }

  .main-nav a {
    padding: 12px 0;
  }

  .has-sub {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .has-sub > a {
    flex: 1;
  }

  .sub-toggle {
    display: inline-flex;
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
    line-height: 1;
  }

  .sub-toggle::before {
    content: "+";
  }

  .has-sub.is-open > .sub-toggle::before {
    content: "\2212";
  }

  .sub-menu {
    width: 100%;
    padding: 0 0 8px 12px;
    border-left: 3px solid var(--accent);
  }

  .has-sub.is-open > .sub-menu {
    display: block;
  }

  .sub-menu a {
    padding: 8px 0;
  }
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--accent);
  color: #ffffff;
}

.btn--primary:hover {
  background: var(--accent-dark);
  color: #ffffff;
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.85);
  color: #ffffff;
}

.btn--ghost:hover {
  background: #ffffff;
  color: var(--ink);
}

/* Hero */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 540px;
  overflow: hidden;
  background: var(--ink);
  color: #ffffff;
}

.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 28, 34, 0.86) 0%, rgba(20, 28, 34, 0.55) 55%, rgba(20, 28, 34, 0.2) 100%);
}

.hero .wrap {
  position: relative;
  z-index: 1;
  padding-top: 80px;
  padding-bottom: 80px;
}

.hero h1 {
  max-width: 11ch;
  margin-bottom: 0.3em;
  font-size: clamp(2.8rem, 8vw, 6rem);
  line-height: 0.95;
}

.hero p {
  max-width: 44ch;
  font-size: 1.2rem;
  color: #e6eaec;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Features strip */

.features {
  background: var(--stone);
  border-bottom: 1px solid var(--line);
}

.features ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.features li {
  padding: 24px 20px;
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 600;
  border-left: 1px solid var(--line);
}

.features li:first-child {
  padding-left: 0;
  border-left: 0;
}

@media (max-width: 700px) {
  .features ul {
    grid-template-columns: 1fr;
  }

  .features li {
    padding: 16px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .features li:first-child {
    border-top: 0;
  }
}

/* Sections */

.section {
  padding: 72px 0;
}

.section--stone {
  background: var(--stone);
}

.section__head {
  margin-bottom: 32px;
}

.section__head h2 {
  margin-bottom: 0.2em;
}

.section__head p {
  margin: 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.prose {
  max-width: 68ch;
}

@media (max-width: 860px) {
  .section {
    padding: 52px 0;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* Page head */

.page-head {
  padding: 44px 0 36px;
  background: var(--stone);
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  margin: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  color: var(--muted);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line);
}

/* Product grid */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 32px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-grid--three {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 860px) {
  .product-grid--three {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

.product-card a,
.product-card > div {
  display: block;
  color: inherit;
  text-decoration: none;
}

.product-card__media {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
}

.product-card__media img {
  width: 100%;
  height: 100%;
}

.product-grid--cover .product-card__media {
  aspect-ratio: 4 / 3;
}

.product-grid--cover .product-card__media img {
  object-fit: cover;
}

.product-grid--contain .product-card__media {
  aspect-ratio: 1 / 1;
  padding: 16px;
}

.product-grid--contain .product-card__media img {
  object-fit: contain;
}

.product-card__title {
  display: block;
  margin-top: 10px;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.25;
}

.product-card a:hover .product-card__title {
  color: var(--accent);
}

/* Brands */

.brands {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.brands ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.brands img {
  width: auto;
  max-width: 140px;
  max-height: 56px;
  object-fit: contain;
}

/* Contact */

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list li:last-child {
  border-bottom: 0;
}

.contact-list a,
.contact-item a {
  color: var(--ink);
}

.contact-list a:hover,
.contact-item a:hover {
  color: var(--accent);
}

.section--location {
  border-top: 1px solid var(--line);
}

.section--location .contact-list {
  max-width: 560px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.contact-item {
  padding-top: 16px;
  border-top: 3px solid var(--accent);
}

.contact-item p {
  margin: 0;
}

.map-embed {
  height: 450px;
  margin-top: 40px;
  border: 1px solid var(--line);
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 600px) {
  .map-embed {
    height: 320px;
  }
}

/* Footer */

.site-footer {
  font-size: 0.95rem;
  background: var(--stone);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  padding: 56px 0 40px;
}

.site-footer h3 {
  font-size: 1.3rem;
}

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

.site-footer li {
  margin-bottom: 6px;
}

.site-footer a {
  color: var(--ink);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-bottom img {
  width: auto;
  max-height: 40px;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .topbar__social {
    display: none;
  }

  .product-grid,
  .product-grid--three {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
  }

  .product-grid--contain .product-card__media {
    padding: 8px;
  }

  .product-card__title {
    font-size: 1.05rem;
  }
}
