:root {
  --ast-global-color-0: #1663c7;
  --ast-global-color-1: #0f7a5f;
  --ast-global-color-2: #172026;
  --ast-global-color-3: #66727c;
  --ast-global-color-4: #fbfcf8;
  --ast-global-color-5: #ffffff;
  --ast-border-color: #dbe2e7;
}

:root {
  --ink: #172026;
  --muted: #66727c;
  --line: #dbe2e7;
  --paper: #fbfcf8;
  --white: #ffffff;
  --blue: #1663c7;
  --green: #0f7a5f;
  --yellow: #f4c542;
  --coral: #df5b46;
  --shadow: 0 18px 45px rgba(23, 32, 38, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 252, 248, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.top-strip,
.main-nav,
.hero,
.section,
.branding-section,
.collections,
.contact-band,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.top-strip {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 0;
  color: var(--muted);
  font-size: 13px;
}

.top-strip div,
.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.main-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--ink);
  color: var(--yellow);
  font-size: 15px;
  letter-spacing: 0;
}

.nav-links {
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.search-box {
  display: flex;
  width: min(360px, 100%);
  border: 1px solid var(--line);
  background: var(--white);
}

.search-box input,
.contact-form input,
.contact-form select,
.subscribe-form input {
  min-width: 0;
  width: 100%;
  border: 0;
  padding: 13px 14px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.search-box button,
.subscribe-form button {
  border: 0;
  background: var(--blue);
  color: var(--white);
  padding: 0 16px;
  font-weight: 800;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
  gap: 42px;
  align-items: center;
  min-height: calc(100vh - 104px);
  padding: 42px 0;
}

.hero-copy h1,
.section-heading h2,
.branding-copy h2,
.showroom h2,
.contact-band h2 {
  margin: 0;
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy h1 {
  max-width: 680px;
  font-size: clamp(42px, 6vw, 78px);
}

.hero-copy p:not(.eyebrow) {
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  font-weight: 900;
}

.button.primary {
  background: var(--blue);
  color: var(--white);
}

.button.secondary {
  border-color: var(--ink);
  background: var(--white);
}

.hero-actions,
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-stats {
  margin-top: 34px;
  color: var(--muted);
}

.hero-stats span {
  min-width: 120px;
  border-left: 4px solid var(--yellow);
  padding-left: 12px;
}

.hero-stats strong {
  display: block;
  color: var(--ink);
  font-size: 24px;
}

.hero-gallery {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  grid-template-rows: 270px 270px;
  gap: 14px;
}

.hero-gallery img {
  height: 100%;
  box-shadow: var(--shadow);
}

.hero-gallery .gallery-main {
  grid-row: span 2;
}

.category-band {
  position: sticky;
  top: 103px;
  z-index: 10;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 14px max(16px, calc((100vw - 1180px) / 2));
  border-block: 1px solid var(--line);
  background: var(--white);
}

.category-pill {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  padding: 10px 18px;
  font-weight: 800;
  cursor: pointer;
}

.category-pill.active {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.section {
  padding: 76px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.section-heading h2,
.branding-copy h2,
.showroom h2,
.contact-band h2 {
  font-size: clamp(30px, 4vw, 54px);
}

.section-heading a {
  color: var(--blue);
  font-weight: 900;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.product-card,
.journal-card,
.catalogue-card,
.collection-grid article {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
}

.product-card[hidden] {
  display: none;
}

.product-card img {
  aspect-ratio: 1.22;
}

.product-card div,
.journal-card div,
.catalogue-card div {
  padding: 20px;
}

.product-card span,
.journal-card span,
.catalogue-card span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-card h3,
.journal-card h3,
.catalogue-card h3,
.method-list h3 {
  margin: 7px 0;
  line-height: 1.15;
  font-size: 22px;
}

.product-card p,
.catalogue-card p,
.method-list p,
.branding-copy p,
.showroom p,
.contact-band p,
.site-footer p {
  color: var(--muted);
}

.quote-button {
  width: 100%;
  min-height: 42px;
  margin-top: 12px;
  border: 0;
  background: var(--ink);
  color: var(--white);
  font-weight: 900;
  cursor: pointer;
}

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

.catalogue-count {
  color: var(--green);
  font-weight: 900;
}

.catalogue-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.catalogue-card img {
  aspect-ratio: 1.18;
  background: #eef3f5;
}

.catalogue-card h3 {
  font-size: 18px;
}

.catalogue-card h2 {
  margin: 7px 0;
  font-size: 20px;
  line-height: 1.15;
}

.catalogue-card a {
  display: block;
  height: 100%;
}

.catalogue-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.catalogue-meta strong {
  color: var(--ink);
}

.archive-catalogue h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1.2fr);
  gap: 42px;
  align-items: center;
}

.product-detail h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1;
}

.product-detail-content {
  margin: 20px 0 28px;
  color: var(--muted);
  font-size: 18px;
}

.product-detail-image img {
  box-shadow: var(--shadow);
}

.collections {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 32px;
  align-items: start;
  padding: 76px 0;
  border-block: 1px solid var(--line);
}

.collections h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.collection-grid article {
  padding: 24px;
}

.collection-grid span {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  background: var(--yellow);
  font-weight: 900;
}

.collection-grid h3 {
  margin: 16px 0 8px;
}

.quote-drawer {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  width: min(360px, calc(100vw - 36px));
}

.quote-drawer:not(.open) {
  width: min(210px, calc(100vw - 36px));
}

.quote-toggle {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: var(--green);
  color: var(--white);
  padding: 0 18px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.quote-count {
  display: grid;
  min-width: 26px;
  height: 26px;
  place-items: center;
  background: var(--yellow);
  color: var(--ink);
}

.quote-panel {
  display: none;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.quote-drawer.open .quote-panel {
  display: block;
}

.quote-panel h2 {
  margin: 0 0 12px;
}

.quote-items {
  max-height: 220px;
  overflow: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.quote-items li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.empty-quote {
  color: var(--muted);
}

.branding-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: stretch;
  padding: 70px 0;
}

.branding-copy {
  background: var(--ink);
  color: var(--white);
  padding: clamp(28px, 5vw, 54px);
}

.branding-copy p {
  color: #d5dde3;
}

.method-list {
  display: grid;
  gap: 14px;
}

.method-list article {
  display: grid;
  grid-template-columns: 62px 1fr;
  column-gap: 18px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 24px;
}

.method-list span {
  grid-row: span 2;
  display: grid;
  height: 62px;
  place-items: center;
  background: var(--yellow);
  font-weight: 900;
}

.method-list h3,
.method-list p {
  margin-block: 0 8px;
}

.showroom {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: center;
}

.showroom img {
  min-height: 430px;
  box-shadow: var(--shadow);
}

.action-strip {
  display: grid;
  width: min(1180px, calc(100% - 32px));
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0 auto 76px;
}

.action-strip a {
  display: grid;
  min-height: 132px;
  align-content: center;
  gap: 8px;
  padding: 28px;
  background: var(--ink);
  color: var(--white);
}

.action-strip a:nth-child(2) {
  background: var(--green);
}

.action-strip span {
  color: var(--yellow);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.action-strip strong {
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.05;
}

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

.journal-card img {
  aspect-ratio: 1.35;
}

.contact-band {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 76px;
  padding: 38px;
  background: #eaf2f4;
  border-top: 6px solid var(--green);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-form select,
.contact-form button {
  grid-column: span 2;
}

.contact-form input,
.contact-form select {
  border: 1px solid var(--line);
}

.contact-form button {
  border: 0;
  cursor: pointer;
}

.contact-form.submitted::after,
.subscribe-form.submitted::after {
  content: "Thanks, we will be in touch.";
  color: var(--green);
  font-weight: 900;
}

.contact-form.submitted::after {
  grid-column: span 2;
}

.product-grid.search-empty::after {
  content: "No matching ranges found.";
  grid-column: 1 / -1;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.4fr 0.75fr 0.75fr 0.8fr 1.2fr;
  gap: 30px;
  padding: 46px 0;
  border-top: 1px solid var(--line);
}

.site-footer h2 {
  margin: 0 0 12px;
  font-size: 16px;
}

.site-footer a:not(.brand) {
  display: block;
  margin: 8px 0;
  color: var(--muted);
}

.subscribe-form {
  display: grid;
  gap: 10px;
}

.subscribe-form input {
  border: 1px solid var(--line);
}

.subscribe-form button {
  min-height: 44px;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 920px) {
  .top-strip {
    display: none;
  }

  .main-nav {
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .nav-links,
  .search-box {
    grid-column: 1 / -1;
  }

  .nav-links {
    display: none;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .nav-links.open {
    display: flex;
  }

  .search-box {
    width: 100%;
  }

  .hero,
  .branding-section,
  .showroom,
  .product-detail,
  .action-strip,
  .collections,
  .contact-band,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-gallery {
    grid-template-rows: 220px 220px;
  }

  .category-band {
    top: 133px;
  }

  .product-grid,
  .catalogue-grid,
  .journal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .top-strip,
  .main-nav,
  .hero,
  .section,
  .branding-section,
  .action-strip,
  .collections,
  .contact-band,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-gallery,
  .product-grid,
  .catalogue-grid,
  .collection-grid,
  .journal-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .hero-gallery {
    grid-template-rows: 280px 180px 180px;
  }

  .hero-gallery .gallery-main,
  .contact-form select,
  .contact-form button,
  .contact-form.submitted::after {
    grid-row: auto;
    grid-column: auto;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .method-list article {
    grid-template-columns: 1fr;
  }

  .method-list span {
    width: 62px;
    margin-bottom: 14px;
  }

  .contact-band {
    padding: 26px 18px;
  }
}
