/* Invigilare Health — Soma-aligned brand palette */
:root {
  --background: #f8fafc;
  --foreground: #0f172a;
  --muted: #64748b;
  --brand: #6b1724;
  --brand-soft: #a8adb4;
  --brand-50: #fef2f2;
  --brand-100: #fee2e2;
  --brand-700: #b91c1c;
  --brand-800: #991b1b;
  --brand-900: #7f1d1d;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-700: #334155;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: Inter, system-ui, -apple-system, sans-serif;
  --max: 42rem;
  --wide: 56rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--foreground);
  background: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--brand-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand-800);
}

:focus-visible {
  outline: 2px solid var(--brand-700);
  outline-offset: 3px;
}

/* —— Site chrome —— */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 1.25rem 1.5rem;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.site-nav a {
  color: var(--slate-700);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--brand);
}

/* —— Brand wordmark —— */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: inherit;
}

.brand__shield {
  width: auto;
  height: 3.75rem;
  flex-shrink: 0;
}

.brand__name {
  margin: 0;
  line-height: 1.15;
}

.brand__invigilare {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  color: var(--brand);
  letter-spacing: -0.02em;
}

.brand__health {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--brand-soft);
}

.brand--hero .brand__shield {
  height: clamp(4.5rem, 12vw, 6.5rem);
}

.brand--footer .brand__shield {
  height: 2.25rem;
}

.brand--footer .brand__invigilare {
  font-size: 1.1rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 90% 70% at 85% 20%, rgba(107, 23, 36, 0.09), transparent 55%),
    radial-gradient(ellipse 70% 50% at 10% 90%, rgba(185, 28, 28, 0.06), transparent 50%),
    linear-gradient(165deg, #f8fafc 0%, #f1f5f9 45%, #faf5f5 100%);
}

.hero__atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 48px,
      rgba(15, 23, 42, 0.015) 48px,
      rgba(15, 23, 42, 0.015) 49px
    );
}

.hero__inner {
  width: min(100% - 2.5rem, var(--wide));
  margin-inline: auto;
  padding: 6rem 0 5rem;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero__inner {
    grid-template-columns: 1fr auto;
    gap: 3.5rem;
  }
}

.hero__copy {
  max-width: 28rem;
}

.hero__headline {
  margin: 1.75rem 0 0.85rem;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.85rem, 4.2vw, 2.65rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

.hero__lede {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 26rem;
}

.hero__visual {
  justify-self: center;
}

.hero__visual img {
  height: clamp(10rem, 28vw, 16rem);
  width: auto;
  filter: drop-shadow(0 18px 40px rgba(107, 23, 36, 0.18));
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  border-radius: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn--primary {
  background: var(--brand-700);
  color: #fff;
}

.btn--primary:hover {
  background: var(--brand-800);
  color: #fff;
}

.btn--primary:active {
  transform: translateY(1px);
}

/* —— Sections —— */
.section {
  padding: 4.5rem 0;
}

.section--alt {
  background:
    linear-gradient(180deg, #f1f5f9 0%, #f8fafc 100%);
  border-block: 1px solid var(--slate-200);
}

.section__inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.section__inner--wide {
  width: min(100% - 2.5rem, var(--wide));
}

.section__label {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

.section__title {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.section__body {
  margin: 0;
  color: var(--slate-700);
  font-size: 1.05rem;
}

.section__body + .section__body {
  margin-top: 1rem;
}

.section__quiet {
  margin: 1.25rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
}

/* —— Stack list —— */
.stack {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.stack li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--slate-200);
  font-size: 0.9375rem;
}

.stack li:last-child {
  border-bottom: none;
}

.stack dt,
.stack .stack__key {
  font-weight: 600;
  color: var(--brand);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-top: 0.1rem;
}

.stack .stack__val {
  color: var(--slate-700);
}

@media (max-width: 520px) {
  .stack li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

.product-grid {
  display: grid;
  gap: 2rem;
  margin-top: 0.25rem;
}

@media (min-width: 700px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

.product__name {
  margin: 0 0 0.65rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand);
}

/* —— Contact —— */
.contact-email {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 1.15rem;
  font-weight: 500;
  word-break: break-all;
}

/* —— Footer —— */
.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--slate-200);
  background: #fff;
}

.site-footer__inner {
  width: min(100% - 2.5rem, var(--wide));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer__copy {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* —— Motion —— */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(1rem);
    transition:
      opacity 0.7s var(--ease),
      transform 0.7s var(--ease);
  }

  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  .hero .reveal-hero {
    opacity: 0;
    transform: translateY(1.25rem);
    animation: hero-in 0.9s var(--ease) forwards;
  }

  .hero .reveal-hero-delay {
    animation-delay: 0.15s;
  }

  .hero .reveal-hero-delay-2 {
    animation-delay: 0.3s;
  }

  .hero .reveal-hero-visual {
    opacity: 0;
    transform: translateY(1.5rem) scale(0.96);
    animation: hero-visual-in 1s var(--ease) 0.2s forwards;
  }

  @keyframes hero-in {
    to {
      opacity: 1;
      transform: none;
    }
  }

  @keyframes hero-visual-in {
    to {
      opacity: 1;
      transform: none;
    }
  }
}
