@import "tailwindcss";

@theme {
  --color-brand-50: #f2f7f4;
  --color-brand-100: #dfece4;
  --color-brand-200: #bfd9c9;
  --color-brand-300: #94bda4;
  --color-brand-400: #61977a;
  --color-brand-500: #3f7859;
  --color-brand-600: #2f6649;
  --color-brand-700: #275f40;
  --color-brand-800: #214b35;
  --color-brand-900: #1c3e2e;
  --color-brand-950: #0e2219;
  --color-gold: #d9a441;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

:root {
  color: #2f3b35;
  background: #fff;
  font-family: var(--font-sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: #fff;
  color: #445149;
}

body.menu-open {
  overflow: hidden;
}

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

a,
button,
input,
select,
textarea {
  transition-duration: 180ms;
  transition-property: color, background-color, border-color, opacity, box-shadow,
    transform;
}

:focus-visible {
  outline: 3px solid #d9a441;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  transform: translateY(-180%);
  border-radius: 0.35rem;
  background: #fff;
  padding: 0.65rem 1rem;
  color: #1c3e2e;
  font-weight: 700;
  box-shadow: 0 10px 30px rgb(14 34 25 / 18%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  width: min(100% - 2rem, 76rem);
  margin-inline: auto;
}

.top-strip {
  background: #1c3e2e;
  color: #e8f3ec;
  font-size: 0.78rem;
}

.top-strip-inner {
  display: flex;
  min-height: 2.4rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.top-strip a {
  color: #fff;
}

.top-strip a:hover {
  color: #f5cf83;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid #e4ebe6;
  background: rgb(255 255 255 / 96%);
  backdrop-filter: blur(14px);
}

.nav-row {
  display: flex;
  min-height: 5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  width: min(17.75rem, 58vw);
  height: auto;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.65rem;
}

.desktop-nav a {
  color: #27352d;
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
  color: #275f40;
}

.rfq-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 0.4rem;
  background: #275f40;
  padding: 0.75rem 1rem;
  color: #fff !important;
}

.request-count {
  display: inline-grid;
  min-width: 1.45rem;
  height: 1.45rem;
  place-items: center;
  border-radius: 99px;
  background: #fff;
  color: #275f40;
  font-size: 0.72rem;
  font-weight: 800;
}

.menu-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid #cfdcd3;
  border-radius: 0.4rem;
  background: #fff;
  color: #1c3e2e;
}

.menu-lines,
.menu-lines::before,
.menu-lines::after {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  content: "";
}

.menu-lines {
  position: relative;
}

.menu-lines::before {
  position: absolute;
  top: -0.4rem;
}

.menu-lines::after {
  position: absolute;
  top: 0.4rem;
}

.mobile-panel {
  display: none;
  border-top: 1px solid #e4ebe6;
  background: #fff;
}

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

.mobile-nav {
  display: grid;
  gap: 0;
  padding-block: 0.5rem 1rem;
}

.mobile-nav a {
  border-bottom: 1px solid #edf1ee;
  padding: 0.9rem 0;
  color: #27352d;
  font-weight: 650;
  text-decoration: none;
}

.mobile-nav a:last-child {
  border-bottom: 0;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 42rem;
  overflow: hidden;
  background: #10291e;
  color: #fff;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(90deg, rgb(12 34 24 / 92%) 0%, rgb(17 47 33 / 74%) 48%, rgb(14 34 25 / 38%) 100%),
    url("/assets/images/hero-fasteners.png");
  background-position: center;
  background-size: cover;
  content: "";
}

.hero::after {
  position: absolute;
  right: -12rem;
  bottom: -24rem;
  z-index: -1;
  width: 44rem;
  height: 44rem;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 50%;
  box-shadow:
    0 0 0 6rem rgb(255 255 255 / 3%),
    0 0 0 12rem rgb(255 255 255 / 2%);
  content: "";
}

.hero-inner {
  display: grid;
  min-height: 42rem;
  align-items: center;
  padding-block: 6rem;
}

.hero-copy {
  max-width: 46rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  color: #f4cd80;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 2rem;
  height: 2px;
  background: currentColor;
  content: "";
}

.hero h1 {
  max-width: 45rem;
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 4.5rem);
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 1.03;
}

.hero p {
  max-width: 39rem;
  margin: 1.6rem 0 0;
  color: #e4eee7;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.8;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid transparent;
  border-radius: 0.35rem;
  padding: 0.75rem 1.2rem;
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: #275f40;
  color: #fff;
}

.button-primary:hover {
  background: #1c4931;
  transform: translateY(-1px);
}

.button-light {
  background: #fff;
  color: #275f40;
}

.button-light:hover {
  background: #eef6f1;
  transform: translateY(-1px);
}

.button-outline {
  border-color: #b8c8bd;
  background: transparent;
  color: #275f40;
}

.button-outline:hover {
  border-color: #275f40;
  background: #f2f7f4;
}

.button-danger {
  border-color: #d7b6b6;
  background: #fff;
  color: #8f2d2d;
}

.button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.metrics {
  position: relative;
  z-index: 3;
  margin-top: -4.2rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 24px 70px rgb(20 54 37 / 16%);
}

.metric {
  padding: 1.75rem 2rem;
  border-right: 1px solid #e3ebe5;
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  display: block;
  color: #1c3e2e;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  letter-spacing: -0.04em;
}

.metric span {
  color: #68766e;
  font-size: 0.86rem;
}

.section {
  padding-block: 6rem;
}

.section-soft {
  background: #f4f7f5;
}

.section-dark {
  background: #173c2a;
  color: #fff;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.25rem;
}

.section-heading-copy {
  max-width: 46rem;
}

.section-label {
  color: #397955;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section-title {
  margin: 0.55rem 0 0;
  color: #1f2e26;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.section-intro {
  max-width: 44rem;
  margin: 0.8rem 0 0;
  color: #657169;
  line-height: 1.75;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.product-card {
  overflow: hidden;
  border: 1px solid #dfe8e1;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 10px 30px rgb(21 59 39 / 5%);
}

.product-card:hover {
  border-color: #afc9b8;
  box-shadow: 0 20px 50px rgb(21 59 39 / 11%);
  transform: translateY(-3px);
}

.product-card-image {
  display: grid;
  aspect-ratio: 1 / 0.8;
  place-items: center;
  overflow: hidden;
  background: #edf2ef;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-body {
  padding: 1.15rem;
}

.product-card-category {
  color: #397955;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-card h3 {
  margin: 0.35rem 0 0.5rem;
  color: #24332a;
  font-size: 1.02rem;
  line-height: 1.35;
}

.product-card h3 a {
  color: inherit;
  text-decoration: none;
}

.product-card p {
  display: -webkit-box;
  min-height: 3.8rem;
  margin: 0;
  overflow: hidden;
  color: #6a756e;
  font-size: 0.82rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.product-card-link {
  display: inline-flex;
  margin-top: 0.85rem;
  color: #275f40;
  font-size: 0.8rem;
  font-weight: 750;
  text-decoration: none;
}

.category-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.category-card {
  position: relative;
  min-height: 18rem;
  overflow: hidden;
  border-radius: 0.5rem;
  color: #fff;
}

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

.category-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 24%, rgb(10 31 21 / 88%) 100%);
  content: "";
}

.category-card-content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 1.4rem;
}

.category-card h3 {
  margin: 0;
  font-size: 1.25rem;
}

.category-card p {
  margin: 0.45rem 0 0;
  color: #dfeae3;
  font-size: 0.84rem;
  line-height: 1.55;
}

.category-card a {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.service-card {
  border: 1px solid #dce7df;
  border-radius: 0.5rem;
  background: #fff;
  padding: 2rem;
}

.service-number {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border-radius: 50%;
  background: #e4efe8;
  color: #275f40;
  font-weight: 800;
}

.service-card h3 {
  margin: 1.3rem 0 0.55rem;
  color: #24332a;
  font-size: 1.2rem;
}

.service-card p {
  margin: 0;
  color: #68756d;
  line-height: 1.7;
}

.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #173c2a;
  color: #fff;
}

.cta-band::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(18 54 36 / 98%), rgb(28 77 51 / 85%)),
    url("/assets/images/cta-fasteners.png") center / cover;
  content: "";
}

.cta-band .button-outline {
  border-color: rgb(255 255 255 / 55%);
  color: #fff;
}

.cta-band .button-outline:hover {
  border-color: #fff;
  background: rgb(255 255 255 / 10%);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 4.25rem;
}

.cta-inner h2 {
  max-width: 42rem;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.cta-inner p {
  max-width: 39rem;
  margin: 0.8rem 0 0;
  color: #dbe9e0;
  line-height: 1.7;
}

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #173c2a;
  color: #fff;
}

.page-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(13 43 28 / 96%), rgb(25 70 47 / 70%)),
    url("/assets/images/hero-fasteners.png") center 44% / cover;
  content: "";
}

.page-hero-inner {
  padding-block: 5.5rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: #d5e5da;
  font-size: 0.78rem;
}

.breadcrumbs a {
  color: #fff;
}

.page-hero h1 {
  max-width: 52rem;
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.05em;
  line-height: 1.06;
}

.page-hero p {
  max-width: 42rem;
  margin: 1rem 0 0;
  color: #dbe9e0;
  line-height: 1.75;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(16rem, 2fr) minmax(12rem, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.form-label {
  display: block;
  margin-bottom: 0.45rem;
  color: #33433a;
  font-size: 0.78rem;
  font-weight: 750;
}

.form-control {
  width: 100%;
  min-height: 3.1rem;
  border: 1px solid #cbd7cf;
  border-radius: 0.35rem;
  background: #fff;
  padding: 0.72rem 0.85rem;
  color: #26352c;
}

.form-control:focus {
  border-color: #397955;
  box-shadow: 0 0 0 4px rgb(57 121 85 / 12%);
  outline: 0;
}

textarea.form-control {
  min-height: 8rem;
  resize: vertical;
}

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

.form-stack {
  display: grid;
  gap: 1rem;
}

.form-status {
  min-height: 1.5rem;
  margin-top: 0.9rem;
  color: #425048;
  font-size: 0.88rem;
  line-height: 1.5;
}

.form-status[data-state="success"] {
  color: #1f6b42;
}

.form-status[data-state="error"] {
  color: #a03333;
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed #b9cbbf;
  border-radius: 0.5rem;
  padding: 3rem 1.5rem;
  text-align: center;
}

.empty-state h2,
.empty-state h3 {
  margin: 0;
  color: #25342b;
}

.empty-state p {
  max-width: 32rem;
  margin: 0.7rem auto 0;
  color: #6a776f;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: start;
}

.product-detail-image {
  overflow: hidden;
  border-radius: 0.6rem;
  background: #edf2ef;
}

.product-detail-image img {
  width: 100%;
  aspect-ratio: 1 / 0.85;
  object-fit: cover;
}

.product-detail-copy h1 {
  margin: 0;
  color: #203028;
  font-size: clamp(2.2rem, 4vw, 3.35rem);
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.product-detail-copy > p {
  margin: 1rem 0 0;
  color: #647169;
  line-height: 1.75;
}

.spec-list {
  display: grid;
  margin: 2rem 0;
  border-top: 1px solid #dce5df;
}

.spec-row {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  border-bottom: 1px solid #dce5df;
  padding: 0.85rem 0;
}

.spec-row dt {
  color: #2e3d34;
  font-weight: 750;
}

.spec-row dd {
  margin: 0;
  color: #647169;
}

.configure-panel {
  border-radius: 0.5rem;
  background: #f2f6f3;
  padding: 1.5rem;
}

.configure-panel h2 {
  margin: 0 0 0.5rem;
  color: #26372d;
  font-size: 1.2rem;
}

.configure-panel > p {
  margin: 0 0 1.25rem;
  color: #68756d;
  font-size: 0.86rem;
  line-height: 1.6;
}

.request-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(20rem, 0.75fr);
  gap: 2rem;
  align-items: start;
}

.panel {
  border: 1px solid #dce5df;
  border-radius: 0.5rem;
  background: #fff;
  padding: 1.5rem;
  box-shadow: 0 12px 35px rgb(20 54 37 / 6%);
}

.panel h2 {
  margin: 0 0 1.25rem;
  color: #26372d;
  font-size: 1.35rem;
}

.request-items {
  display: grid;
  gap: 1rem;
}

.request-item {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) 6rem auto;
  gap: 1rem;
  align-items: center;
  border-bottom: 1px solid #e4ebe6;
  padding-bottom: 1rem;
}

.request-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.request-item img {
  width: 5rem;
  height: 5rem;
  border-radius: 0.35rem;
  object-fit: cover;
}

.request-item h3 {
  margin: 0;
  color: #26372d;
  font-size: 1rem;
}

.request-item p {
  margin: 0.35rem 0 0;
  color: #6a776f;
  font-size: 0.78rem;
  line-height: 1.45;
}

.quantity-control {
  max-width: 5.5rem;
}

.remove-button {
  border: 0;
  background: transparent;
  color: #9a3838;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr);
  gap: 4rem;
  align-items: start;
}

.prose h2 {
  margin: 2.2rem 0 0.7rem;
  color: #26362d;
  font-size: 1.6rem;
  letter-spacing: -0.025em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: #5f6d65;
  line-height: 1.8;
}

.prose ul {
  padding-left: 1.25rem;
}

.image-panel {
  overflow: hidden;
  border-radius: 0.6rem;
  background: #e7efea;
}

.image-panel img {
  width: 100%;
  min-height: 28rem;
  object-fit: cover;
}

.contact-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  border-bottom: 1px solid #dce5df;
  padding-bottom: 1rem;
}

.contact-list strong {
  display: block;
  color: #26362d;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-list span,
.contact-list a {
  display: block;
  margin-top: 0.3rem;
  color: #5f6d65;
}

.site-footer {
  background: #10291e;
  color: #d9e7de;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.75fr 0.9fr;
  gap: 4rem;
  padding-block: 4.5rem;
}

.footer-logo {
  width: 16rem;
  filter: brightness(0) invert(1);
}

.footer-copy {
  max-width: 28rem;
  margin: 1rem 0 0;
  color: #b9cbbf;
  font-size: 0.88rem;
  line-height: 1.75;
}

.site-footer h2 {
  margin: 0 0 1rem;
  color: #fff;
  font-size: 1rem;
}

.footer-links,
.footer-contact {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a,
.footer-contact a {
  color: #c7d8cc;
  text-decoration: none;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgb(255 255 255 / 10%);
}

.footer-bottom-inner {
  display: flex;
  min-height: 4rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #9fb3a6;
  font-size: 0.76rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

@media (max-width: 64rem) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

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

  .product-detail-grid,
  .content-grid {
    gap: 2.5rem;
  }
}

@media (max-width: 48rem) {
  .top-strip-inner {
    min-height: 2.7rem;
    justify-content: center;
    text-align: center;
  }

  .top-strip .top-strip-secondary {
    display: none;
  }

  .nav-row {
    min-height: 4.5rem;
  }

  .hero,
  .hero-inner {
    min-height: 37rem;
  }

  .hero-inner {
    padding-block: 4.5rem 6rem;
  }

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

  .metric {
    border-right: 0;
    border-bottom: 1px solid #e3ebe5;
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .section {
    padding-block: 4.5rem;
  }

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

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

  .category-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .product-detail-grid,
  .request-layout,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .request-item {
    grid-template-columns: 4rem minmax(0, 1fr);
  }

  .request-item img {
    width: 4rem;
    height: 4rem;
  }

  .quantity-control,
  .remove-button {
    grid-column: 2;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .footer-bottom-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 1rem;
  }
}

@media (max-width: 34rem) {
  .site-shell {
    width: min(100% - 1.25rem, 76rem);
  }

  .brand-logo {
    width: 13.5rem;
  }

  .hero h1 {
    font-size: 2.65rem;
  }

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

  .spec-row {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
