/* =========================================================
   TRINET WEBSITE v2 — Visual System v0.1
   Development domain: trinet.life
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f7f5;
  --text: #17201a;
  --text-soft: #59635c;
  --brand: #23623d;
  --brand-dark: #17462b;
  --accent: #b18a3d;
  --border: #dfe5e0;
  --max-width: 1180px;
  --radius: 18px;
  --shadow: 0 16px 45px rgba(23, 32, 26, 0.08);
}


/* ---------- RESET ---------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}


/* ---------- NAVIGATION ---------- */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
}

nav {
  width: min(92%, var(--max-width));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
}

nav a {
  color: var(--text-soft);
  font-size: 0.94rem;
  font-weight: 600;
  transition: color 160ms ease;
}

nav a:first-child {
  margin-right: auto;
  color: var(--brand-dark);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

nav a:hover,
nav a:focus-visible {
  color: var(--brand);
}


/* ---------- GENERAL SECTIONS ---------- */

section {
  width: min(92%, var(--max-width));
  margin: 0 auto;
  padding: 100px 0;
}

section > p:first-child {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

h1,
h2 {
  margin-top: 0;
  color: var(--text);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 800px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 7vw, 6.3rem);
}

h2 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(2.1rem, 4.5vw, 4rem);
}

section > p:not(:first-child) {
  max-width: 720px;
  margin-top: 0;
  color: var(--text-soft);
  font-size: 1.08rem;
}


/* ---------- HERO ---------- */

#home {
  min-height: calc(100vh - 74px);
  padding-top: 140px;
  padding-bottom: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#home > p:nth-of-type(2) {
  max-width: 690px;
  margin-bottom: 36px;
  font-size: clamp(1.12rem, 2vw, 1.35rem);
}

#home > a {
  display: inline-flex;
  width: fit-content;
  min-height: 50px;
  margin-right: 10px;
  margin-bottom: 10px;
  padding: 0 24px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand);
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 700;
  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

#home > a:first-of-type {
  background: var(--brand);
  color: #ffffff;
}

#home > a:last-of-type {
  background: #ffffff;
  color: var(--brand);
}

#home > a:hover {
  transform: translateY(-2px);
  background: var(--brand-dark);
  color: #ffffff;
}


/* ---------- PRODUCT SECTION ---------- */

#products {
  width: 100%;
  max-width: none;
  padding-left: max(4%, calc((100% - var(--max-width)) / 2));
  padding-right: max(4%, calc((100% - var(--max-width)) / 2));
  background: var(--bg-soft);
}


/* ---------- PRODUCT CARDS ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 340px));
  gap: 28px;
  margin-top: 48px;
}

.product-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.product-image {
  display: flex;
  min-height: 300px;
  padding: 18px 16px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #ffffff;
}

.product-image-pair img {
  display: block;
  width: calc(50% - 5px);
  max-width: 185px;
  height: 275px;
  object-fit: contain;
}

.product-content {
  padding: 26px 28px 30px;
  border-top: 1px solid var(--border);
}

.product-brand {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.product-card h3 {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1.15;
}

.product-scientific {
  margin: 0 0 14px;
  color: var(--text-soft);
  font-size: 0.94rem;
  font-style: italic;
}

.product-format {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 650;
}

.product-packaging {
  margin: -6px 0 16px;
  color: var(--brand);
  font-size: 0.84rem;
  font-weight: 700;
}

.product-disclaimer {
  margin: 0 0 22px;
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.product-link {
  display: inline-flex;
  min-height: 44px;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand);
  border-radius: 999px;
  color: var(--brand);
  font-size: 0.9rem;
  font-weight: 700;
  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.product-link:hover,
.product-link:focus-visible {
  transform: translateY(-2px);
  background: var(--brand);
  color: #ffffff;
}


/* ---------- AWC ---------- */

#awc {
  margin-top: 90px;
  margin-bottom: 90px;
  padding: 80px;
  background: var(--brand-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

#awc > p:first-child {
  color: #d6bd7a;
}

#awc h2 {
  color: #ffffff;
}

#awc > p:not(:first-child) {
  color: rgba(255, 255, 255, 0.78);
}

#awc > p:last-child {
  display: inline-block;
  margin-top: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 700;
}


/* ---------- ABOUT ---------- */

#about {
  border-bottom: 1px solid var(--border);
}


/* ---------- QUALITY ---------- */

#quality {
  border-bottom: 1px solid var(--border);
}


/* ---------- ORDER ---------- */

#order {
  width: 100%;
  max-width: none;
  padding-left: max(4%, calc((100% - var(--max-width)) / 2));
  padding-right: max(4%, calc((100% - var(--max-width)) / 2));
  background: var(--bg-soft);
}

.order-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.order-links a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-width: 220px;
  padding: 18px 22px;
  border: 1px solid rgba(17, 24, 19, 0.1);
  border-radius: 18px;
  background: #ffffff;
  color: #111813;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(17, 24, 19, 0.08);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.order-links a::after {
  content: "→";
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 180ms ease;
}

.order-links a:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 16px 34px rgba(17, 24, 19, 0.14);
}

.order-links a:hover::after {
  transform: translateX(4px);
}

.order-links a:active {
  transform: translateY(-1px);
}



/* ---------- CONTACT ---------- */

#contact {
  padding-top: 110px;
  padding-bottom: 110px;
}


/* ---------- FOOTER ---------- */

footer {
  padding: 56px 4%;
  background: #111813;
  color: rgba(255, 255, 255, 0.68);
  text-align: center;
}

footer p {
  margin: 7px auto;
  max-width: 760px;
  font-size: 0.9rem;
}

footer p:first-child {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
}


/* ---------- ACCESSIBILITY ---------- */

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}


/* ---------- MOBILE ---------- */

@media (max-width: 760px) {

  header {
    position: relative;
  }

  nav {
    padding: 18px 0;
    min-height: auto;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px 18px;
  }

  nav a:first-child {
    width: 100%;
    margin-right: 0;
    margin-bottom: 5px;
  }

  nav a {
    font-size: 0.86rem;
  }

  section {
    width: min(88%, var(--max-width));
    padding: 72px 0;
  }

  #home {
    min-height: auto;
    padding-top: 90px;
    padding-bottom: 90px;
  }

  h1 {
    font-size: clamp(2.8rem, 14vw, 4.4rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3.2rem);
  }

  #awc {
    width: 88%;
    margin-top: 55px;
    margin-bottom: 55px;
    padding: 52px 28px;
  }

  #products,
  #order {
    padding-left: 6%;
    padding-right: 6%;
  }

  .product-grid {
    grid-template-columns: 1fr;
    margin-top: 38px;
  }

  .product-image {
    min-height: 300px;
    padding: 22px 16px;
    gap: 6px;
  }

  .product-image-pair img {
    width: calc(50% - 3px);
    max-width: 180px;
    height: 260px;
  }

  .order-links {
    flex-direction: column;
  }

  .order-links a {
    width: 100%;
    min-width: 0;
  }

}


/* ---------- REDUCED MOTION ---------- */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }

}

/* Prototype v0.3 — AWC journey */
#awc {
  padding: 88px 24px;
  color: #ffffff;
}

.awc-shell {
  max-width: 1180px;
  margin: 0 auto;
}

#awc .awc-eyebrow {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

#awc h2 {
  color: #ffffff;
}

#awc .awc-intro {
  max-width: 760px;
  margin: 0 0 36px;
  color: rgba(255, 255, 255, 0.88);
}

.awc-journey {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

#awc .awc-step {
  min-height: 220px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

#awc .awc-step-number {
  display: inline-block;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

#awc .awc-step h3 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 1.08rem;
}

#awc .awc-step p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
}

#awc .awc-coming-soon {
  display: inline-block;
  margin: 32px 0 0;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  color: #ffffff;
  font-weight: 700;
}

@media (max-width: 900px) {
  .awc-journey {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  #awc {
    padding: 64px 20px;
  }

  .awc-journey {
    grid-template-columns: 1fr;
  }

  #awc .awc-step {
    min-height: 0;
  }

  #awc .awc-step-number {
    margin-bottom: 22px;
  }
}

/* Prototype v0.4 — Trinet corporate branding */

.brand-link {
  display: flex;
  align-items: center;
  align-self: stretch;
  margin-right: auto;
  padding: 6px 0;
  line-height: 0;
}

.brand-logo {
  display: block;
  width: auto;
  height: 58px;
  max-width: 220px;
  object-fit: contain;
}

nav .brand-link:hover,
nav .brand-link:focus-visible {
  opacity: 0.88;
}

@media (max-width: 760px) {
  .brand-link {
    width: 100%;
    margin-right: 0;
    margin-bottom: 5px;
    padding: 0;
  }

  .brand-logo {
    height: 54px;
    max-width: 210px;
  }
}
