/* ==========================================================================
   Sapax corporate site. A distinct, more neutral palette from Hafy's own
   marketing site (marketing-site/css/styles.css) on purpose: this page
   is the parent company, not the product, so it should read as related
   but not identical. System fonts only, no external requests at all.
   ========================================================================== */

:root {
  --color-background: #FFFFFF;
  --color-surface: #F5F4F2;
  --color-border: #E4E2DD;
  --color-text: #181D1F;
  --color-text-muted: #5B5952;
  --color-primary: #181D1F;
  --color-primary-text: #FFFFFF;
  --color-accent: #0E5C61;
  --color-accent-soft: #DCEBEA;

  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --shadow-card: 0 4px 14px rgba(24, 29, 31, 0.08);
  --shadow-lg: 0 10px 28px rgba(24, 29, 31, 0.12);

  --container: 880px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img, svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.3px;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* ---------- Header ---------- */

.site-header {
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}

.brand-logo {
  height: 22px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.nav-links a:hover {
  color: var(--color-text);
}

@media (max-width: 560px) {
  .nav-links {
    display: none;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-primary-text);
}

.btn-primary:hover {
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}

.btn-outline:hover {
  border-color: var(--color-text);
}

/* ---------- Hero ---------- */

.hero {
  padding: 96px 0 72px;
  text-align: center;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  max-width: 14ch;
}

.hero .lede {
  max-width: 52ch;
  color: var(--color-text-muted);
  font-size: 1.1rem;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 12px;
}

/* ---------- Sections ---------- */

section {
  padding: 72px 0;
}

.bg-surface {
  background: var(--color-surface);
}

.section-head {
  text-align: center;
  max-width: 46ch;
  margin: 0 auto 40px;
}

.tag {
  display: inline-block;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--color-text-muted);
  margin: 0;
}

/* ---------- Product card ---------- */

.product-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 32px;
  text-decoration: none;
  color: inherit;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.product-card-icon {
  flex: none;
  width: 56px;
  height: 56px;
}

.product-card-body h3 {
  margin-bottom: 8px;
  font-size: 1.4rem;
}

.product-card-body p {
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.product-card-link {
  font-weight: 700;
  color: var(--color-accent);
}

.products-note {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 28px 0 0;
}

/* ---------- About ---------- */

.about-body {
  max-width: 60ch;
  margin: 0 auto;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.about-body .inline-link {
  color: var(--color-accent);
  font-weight: 700;
  text-decoration: underline;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 56px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
}

.footer-brand p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  max-width: 32ch;
}

.footer-brand-logo {
  margin-bottom: 12px;
}

.footer-brand-logo .brand-logo {
  height: 26px;
}

.footer-col h5 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--color-accent);
}

.email-copy {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 0.92rem;
  color: var(--color-text);
  cursor: pointer;
  text-align: left;
  border-bottom: 1px dashed var(--color-border-strong, #C2B49B);
}

.email-copy:hover {
  color: var(--color-accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

@media (max-width: 640px) {
  .footer-top {
    grid-template-columns: 1fr;
  }

  .product-card {
    flex-direction: column;
  }
}

/* ---------- Scroll reveal ----------
   Visible by default; JS opts elements into being hidden before the
   IntersectionObserver runs, so a page where the script fails to run
   never leaves content permanently invisible. */

.reveal-hidden {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-hidden.visible {
  opacity: 1;
  transform: none;
}
