/*
Theme Name: HY Server Trays
Theme URI: https://example.com/
Author: HY
Description: Lightweight B2B WordPress theme for HY server drive trays and data center spare parts.
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
Text Domain: hy-server-trays
*/

:root {
  --ink: #1d2527;
  --ink-2: #334044;
  --muted: #667376;
  --line: #d9e1df;
  --soft: #f5f7f6;
  --soft-2: #eaf0ee;
  --paper: #ffffff;
  --accent: #9bd857;
  --accent-dark: #4c8b1b;
  --blue: #1f6d88;
  --steel: #66747a;
  --gold: #b9822a;
  --shadow: 0 24px 70px rgba(20, 30, 32, 0.13);
  --shadow-strong: 0 34px 90px rgba(20, 30, 32, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Aptos", "Segoe UI", "Helvetica Neue", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, #f7faf8 0, #fff 360px),
    var(--paper);
  overflow-x: hidden;
}

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

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

.hy-top-strip {
  display: flex;
  justify-content: center;
  gap: 26px;
  padding: 8px 18px;
  color: #edf5f1;
  background: #11191b;
  font-size: 12px;
  font-weight: 700;
}

.hy-top-strip a {
  color: var(--accent);
}

.hy-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 56px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 32px rgba(20, 30, 32, 0.06);
  backdrop-filter: blur(16px);
}

.hy-logo {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.hy-logo img {
  width: 158px;
}

.hy-logo span {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
}

.hy-nav {
  display: flex;
  gap: 24px;
  color: #4d5a5d;
  font-size: 14px;
  font-weight: 800;
}

.hy-cta,
.hy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: #14200d;
  background: var(--accent);
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
  box-shadow: 0 12px 30px rgba(118, 184, 54, 0.22);
}

.hy-button-secondary {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--ink);
  box-shadow: none;
}

.hy-cta:hover,
.hy-button:hover {
  transform: translateY(-2px);
}

.hy-main,
.hy-footer {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
}

.hy-hero,
.hy-proof-band,
.hy-section,
.hy-hero-summary,
.hy-split-section {
  width: 100%;
}

.home .hy-main {
  width: 100%;
}

.home .hy-proof-band,
.home .hy-section,
.home .hy-hero-summary,
.home .hy-split-section {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
}

.home .hy-top-strip {
  display: none;
}

.home .hy-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 24px 0;
  color: #fff;
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.home .hy-logo img {
  filter: invert(1) brightness(2.4);
}

.home .hy-logo span {
  color: #fff;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.34);
}

.home .hy-nav {
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
}

.home .hy-nav a {
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.32);
}

.home .hy-cta {
  color: #11191b;
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.22);
}

.hy-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.88fr);
  gap: 72px;
  align-items: center;
  min-height: calc(100vh - 112px);
  padding: 78px 0 62px;
}

.home .hy-hero {
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  grid-template-columns: 1fr;
  place-items: center;
  padding: 148px 24px 98px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(ellipse at center, rgba(10, 14, 15, 0.56), rgba(10, 14, 15, 0.18) 44%, rgba(10, 14, 15, 0.42)),
    linear-gradient(180deg, rgba(10, 14, 15, 0.34), rgba(10, 14, 15, 0.18) 42%, rgba(10, 14, 15, 0.5)),
    linear-gradient(90deg, rgba(10, 14, 15, 0.2), rgba(10, 14, 15, 0.04) 44%, rgba(10, 14, 15, 0.24)),
    url("assets/source-tray-hero.jpg") center / cover no-repeat;
}

.hy-hero::before {
  content: "";
  position: absolute;
  inset: 38px -34px 36px auto;
  width: min(46vw, 560px);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(29, 37, 39, 0.06), transparent 38%),
    linear-gradient(180deg, #eef3f1, #f8faf9);
  z-index: -1;
}

.home .hy-hero::before {
  display: none;
}

.hy-hero-copy {
  max-width: 720px;
}

.home .hy-hero-copy {
  max-width: 1120px;
}

.hy-eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hy-hero h1,
.hy-section h2,
.hy-split-copy h2 {
  margin: 0 0 18px;
  font-size: 64px;
  line-height: 1;
  letter-spacing: 0;
  font-weight: 900;
}

.home .hy-hero h1 {
  max-width: 1120px;
  margin-inline: auto;
  color: #fff;
  font-size: clamp(42px, 4.7vw, 70px);
  line-height: 1.1;
  text-shadow: 0 18px 58px rgba(0, 0, 0, 0.7);
}

.hy-lede,
.hy-section p,
.hy-product-card p,
.hy-product-meta,
.hy-meta span,
.hy-proof-band span,
.hy-reason-grid span,
.hy-split-copy p,
.hy-process-grid p {
  color: var(--muted);
  line-height: 1.6;
}

.hy-lede {
  max-width: 680px;
  font-size: 20px;
}

.home .hy-lede {
  max-width: 980px;
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(18px, 1.6vw, 25px);
  line-height: 1.52;
  text-shadow: 0 10px 38px rgba(0, 0, 0, 0.64);
}

.hy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.home .hy-actions {
  justify-content: center;
  margin-top: 34px;
}

.home .hy-button {
  color: #172022;
  background: rgba(243, 250, 250, 0.94);
  border-color: rgba(243, 250, 250, 0.94);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.home .hy-button-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.36);
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.hy-hero-summary {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  padding-top: 78px;
}

.hy-hero-summary > div:first-child {
  max-width: 520px;
}

.hy-hero-summary > div:last-child > p {
  max-width: 760px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.hy-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 0;
}

.hy-meta div {
  min-height: 112px;
  padding: 18px;
  border: 1px solid rgba(29, 37, 39, 0.08);
  border-top: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 42px rgba(20, 30, 32, 0.06);
}

.hy-meta strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
}

.hy-hero-visual {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(29, 37, 39, 0.08);
  background:
    radial-gradient(circle at 28% 20%, rgba(155, 216, 87, 0.16), transparent 32%),
    linear-gradient(145deg, #ffffff, #eef3f1);
  box-shadow: var(--shadow-strong);
}

.hy-hero-visual::after {
  content: "Server drive tray solutions";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  padding: 18px 20px;
  color: #fff;
  background: rgba(20, 30, 32, 0.82);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  font-size: 20px;
  font-weight: 900;
}

.hy-hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  padding: 34px;
  object-fit: contain;
  object-position: center;
}

.hy-proof-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 0;
  background: #172022;
  box-shadow: var(--shadow);
}

.hy-proof-band div {
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(155, 216, 87, 0.1), transparent 46%),
    #172022;
  color: #fff;
}

.hy-proof-band strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.hy-proof-band span {
  color: #b9c4c1;
}

.hy-section,
.hy-split-section {
  padding-top: 104px;
}

.hy-section-heading {
  max-width: 800px;
  margin-bottom: 30px;
}

.hy-row-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  max-width: none;
}

.hy-row-heading > div {
  max-width: 820px;
}

.hy-series-grid,
.hy-product-grid,
.hy-process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.hy-series-grid article,
.hy-product-card,
.hy-process-grid article {
  overflow: hidden;
  border: 1px solid rgba(29, 37, 39, 0.08);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 38px rgba(20, 30, 32, 0.06);
}

.hy-series-grid img {
  width: 100%;
  aspect-ratio: 1.48;
  object-fit: cover;
  background:
    linear-gradient(145deg, #f7faf8, #e8efec);
}

.hy-series-grid div {
  padding: 24px;
}

.hy-series-grid span,
.hy-product-card .hy-badge {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hy-series-grid h3,
.hy-process-grid h3 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.18;
}

.hy-split-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.hy-split-media {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--soft-2);
}

.hy-split-media img {
  width: 100%;
  min-height: 520px;
  object-fit: cover;
}

.hy-reason-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.hy-reason-grid div {
  min-height: 128px;
  padding: 20px;
  border: 1px solid rgba(29, 37, 39, 0.08);
  box-shadow: 0 12px 34px rgba(20, 30, 32, 0.05);
  background: rgba(255, 255, 255, 0.9);
}

.hy-reason-grid strong {
  display: block;
  margin-bottom: 8px;
}

.hy-product-card {
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.hy-product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.hy-product-card a {
  display: grid;
  height: 100%;
  padding: 18px;
}

.hy-product-card img {
  width: 100%;
  aspect-ratio: 1.42;
  object-fit: contain;
  padding: 12px;
  background:
    linear-gradient(145deg, #f9fbfa, #edf2ef);
  border-radius: 6px;
}

.hy-product-card h2,
.hy-product-card h3 {
  margin: 16px 0 8px;
  font-size: 24px;
}

.hy-process-grid article {
  min-height: 236px;
  padding: 24px;
  box-shadow: 0 12px 36px rgba(20, 30, 32, 0.06);
}

.hy-process-grid span {
  display: block;
  margin-bottom: 34px;
  color: var(--gold);
  font-weight: 900;
}

.hy-product-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
  gap: 28px;
  align-items: start;
  padding-top: 56px;
}

.hy-product-media {
  overflow: hidden;
  border: 1px solid rgba(29, 37, 39, 0.08);
  border-radius: 8px;
  background: var(--soft);
}

.hy-product-media img {
  width: 100%;
  aspect-ratio: 1.28;
  object-fit: contain;
}

.hy-product-summary {
  padding: 26px;
  border: 1px solid rgba(29, 37, 39, 0.08);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 38px rgba(20, 30, 32, 0.06);
}

.hy-product-summary h1 {
  margin: 0 0 14px;
  font-size: 44px;
  line-height: 1.02;
}

.hy-spec-table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
}

.hy-spec-table th,
.hy-spec-table td {
  padding: 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.hy-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 44px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .hy-top-strip {
    flex-wrap: wrap;
    gap: 10px 18px;
  }

  .hy-nav {
    display: none;
  }

  .hy-hero,
  .hy-hero-summary,
  .hy-proof-band,
  .hy-product-grid,
  .hy-series-grid,
  .hy-process-grid,
  .hy-split-section,
  .hy-product-detail {
    grid-template-columns: 1fr 1fr;
  }

  .hy-hero {
    min-height: auto;
  }

  .home .hy-hero {
    min-height: 100dvh;
    grid-template-columns: 1fr;
  }

  .hy-hero h1,
  .hy-section h2,
  .hy-split-copy h2 {
    font-size: 46px;
  }
}

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

  .hy-header {
    padding: 12px 16px;
  }

  .home .hy-header {
    width: 100%;
    padding: 12px 16px;
  }

  .hy-logo img {
    width: 120px;
  }

  .hy-logo span {
    display: none;
  }

  .hy-cta {
    min-height: 38px;
    padding-inline: 12px;
  }

  .hy-hero,
  .hy-hero-summary,
  .hy-proof-band,
  .hy-product-grid,
  .hy-series-grid,
  .hy-process-grid,
  .hy-split-section,
  .hy-product-detail,
  .hy-meta,
  .hy-reason-grid {
    grid-template-columns: 1fr;
  }

  .hy-hero {
    padding-top: 42px;
    gap: 32px;
  }

  .home .hy-hero {
    width: 100%;
    min-height: 100dvh;
    padding: 118px 16px 70px;
    background-position: center;
  }

  .home .hy-hero-copy {
    max-width: 100%;
  }

  .home .hy-hero h1 {
    font-size: 38px;
    line-height: 1.12;
  }

  .home .hy-lede {
    font-size: 17px;
  }

  .home .hy-hero::before {
    display: none;
  }

  .hy-hero::before {
    display: none;
  }

  .hy-hero-visual,
  .hy-hero-visual img {
    min-height: 360px;
  }

  .hy-split-media img {
    min-height: 320px;
  }

  .hy-hero h1,
  .hy-section h2,
  .hy-split-copy h2,
  .hy-product-summary h1 {
    font-size: 34px;
  }

  .hy-actions,
  .hy-button {
    width: 100%;
  }

  .hy-footer {
    display: block;
  }
}
