/* R-Valorize AG – site styles.
   The brand has an official logo only (gold swash R, grey geometric caps, always on white).
   Colours below are sampled from that logo; everything else is a neutral, quiet system
   that never borrows xpures red/pink for the parent brand. */

:root {
  --gold-700: #9a7624;
  --gold-600: #b8902f;
  --gold-500: #cfa640;
  --gold-300: #e6c35c;
  --gold-100: #f7efd9;
  --graphite-900: #232325;
  --graphite-700: #3c3c3f;
  --graphite-500: #5b5b5f;
  --graphite-300: #9a9a9e;
  --line: #e4e2dd;
  --paper: #ffffff;
  --paper-warm: #f8f6f1;
  --gold-gradient: linear-gradient(115deg, var(--gold-600) 0%, var(--gold-300) 55%, var(--gold-700) 100%);

  --font-sans: 'Avenir Next', Avenir, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2.05rem);
  --step-3: clamp(1.95rem, 1.6rem + 1.6vw, 3rem);
  --step-4: clamp(2.4rem, 1.8rem + 2.8vw, 4.25rem);

  --wrap: 1180px;
  --gutter: 16px;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(35 35 37 / 6%), 0 12px 32px -18px rgb(35 35 37 / 28%);
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--graphite-700);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--graphite-900); text-decoration-color: var(--gold-500); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--gold-700); }

:focus-visible { outline: 2px solid var(--gold-600); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { color: var(--graphite-900); line-height: 1.15; margin: 0 0 0.6em; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); font-weight: 500; letter-spacing: -0.02em; }
h2 { font-size: var(--step-3); font-weight: 500; }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

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

.skip-link {
  position: absolute; left: 12px; top: 12px; z-index: 50; transform: translateY(-200%);
  background: var(--graphite-900); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { transform: none; color: #fff; }

main:focus { outline: none; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgb(255 255 255 / 94%);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 80px; gap: 24px; }
.brand { display: block; flex: none; }
.brand img { width: 192px; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.site-nav a {
  display: block; padding: 10px 12px; border-radius: 999px;
  font-size: var(--step--1); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500;
  color: var(--graphite-500); text-decoration: none;
}
.site-nav a:hover { color: var(--graphite-900); background: var(--paper-warm); }
.site-nav a[aria-current='page'] { color: var(--graphite-900); box-shadow: inset 0 -2px 0 var(--gold-500); border-radius: 0; }

.nav-toggle { display: none; }

@media (max-width: 899px) {
  .brand img { width: 140px; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    display: block; width: 18px; height: 2px; background: var(--graphite-900); border-radius: 2px; position: relative; content: '';
    transition: transform 0.2s ease, background 0.2s ease;
  }
  .nav-toggle-bar::before { position: absolute; top: -6px; }
  .nav-toggle-bar::after { position: absolute; top: 6px; }
  .nav-toggle[aria-expanded='true'] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded='true'] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded='true'] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: 8px var(--gutter) 20px; gap: 0; }
  .site-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: var(--step-0); }
  .site-nav a[aria-current='page'] { box-shadow: inset 3px 0 0 var(--gold-500); padding-left: 14px; }
  /* Without JavaScript the menu stays reachable as a plain list. */
  html:not(.js) .site-nav { display: block; position: static; box-shadow: none; border: 0; }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .header-inner { flex-wrap: wrap; }
}

/* Sections */
.section { padding: clamp(56px, 8vw, 112px) 0; }
.section--warm { background: var(--paper-warm); }
.section--tight { padding-top: clamp(32px, 4vw, 56px); }
.section + .section:not(.section--warm) { border-top: 1px solid var(--line); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: var(--step--1); letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
  color: var(--gold-700); margin: 0 0 18px;
}
.eyebrow::before { content: ''; width: 32px; height: 2px; background: var(--gold-gradient); border-radius: 2px; }

.lead { font-size: var(--step-1); line-height: 1.55; color: var(--graphite-500); max-width: 62ch; }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.6em; font-size: var(--step-2); }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }

.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(64px, 10vw, 144px) 0 clamp(56px, 8vw, 112px); }
.hero::after {
  content: ''; position: absolute; right: -12vw; top: -20vw; width: 52vw; height: 52vw; max-width: 760px; max-height: 760px;
  border-radius: 50%; border: 1.5px solid var(--gold-300); opacity: 0.55; pointer-events: none;
}
.hero::before {
  content: ''; position: absolute; right: 4vw; top: 8vw; width: 26vw; height: 26vw; max-width: 380px; max-height: 380px;
  border-radius: 50%; background: radial-gradient(circle at 30% 30%, var(--gold-100), transparent 70%); pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { max-width: 15ch; }
.hero .lead { margin-top: 8px; }
.hero--page h1 { max-width: 20ch; font-size: var(--step-3); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px;
  border-radius: 999px; font-weight: 600; font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  border: 1.5px solid var(--graphite-900); color: var(--graphite-900); background: transparent; transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.button:hover { background: var(--graphite-900); color: #fff; }
.button--gold { border-color: transparent; background: var(--gold-gradient); color: var(--graphite-900); }
.button--gold:hover { background: var(--graphite-900); color: #fff; }

/* Cards and grids */
.grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 720px) and (max-width: 1023px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }

.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card::before { content: ''; position: absolute; left: 24px; right: 24px; top: -1px; height: 3px; border-radius: 0 0 3px 3px; background: var(--gold-gradient); }
.card h3 { margin-bottom: 0.5em; }
.card p { color: var(--graphite-500); }
.card .more { margin-top: auto; padding-top: 20px; font-weight: 600; font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.card .more::after { content: ' →'; }
.more-row { display: flex; flex-wrap: wrap; gap: 0 32px; margin-top: auto; }
.card--plain { box-shadow: none; }
.card--plain::before { display: none; }

.pillar-number { font-size: var(--step--1); letter-spacing: 0.16em; color: var(--gold-700); font-weight: 600; margin-bottom: 14px; }

.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.feature-list li { position: relative; padding-left: 28px; }
.feature-list li::before {
  content: ''; position: absolute; left: 0; top: 0.62em; width: 14px; height: 2px; background: var(--gold-gradient); border-radius: 2px;
}
.feature-list strong { color: var(--graphite-900); }

/* Split layout */
.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 7fr; } .split--even { grid-template-columns: 1fr 1fr; } }

/* Journey steps (anumax) */
.journey { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 900px) { .journey { grid-template-columns: repeat(4, 1fr); } }
.journey li {
  counter-increment: step; position: relative; padding: 28px 24px 24px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line);
}
.journey li::before {
  content: counter(step, decimal-leading-zero); display: block; font-size: var(--step-2); font-weight: 300; color: var(--gold-600); margin-bottom: 10px; line-height: 1;
}
.journey h3 { font-size: var(--step-0); text-transform: uppercase; letter-spacing: 0.08em; }
.journey p { color: var(--graphite-500); font-size: var(--step--1); line-height: 1.6; }

/* Brand tiles */
.brand-tile { display: grid; gap: 28px; align-content: start; }
.brand-tile .brand-mark { aspect-ratio: 16 / 7; padding: 8% 14%; }
.brand-mark {
  aspect-ratio: 4 / 3; border-radius: calc(var(--radius) + 6px); display: grid; place-items: center; padding: 12%;
  background: var(--paper-warm); border: 1px solid var(--line);
}
.brand-mark--anumax { background: linear-gradient(160deg, #f4f6f7 0%, #e9eef0 100%); }
.brand-mark--xpures { background: linear-gradient(160deg, #fff 0%, #f6f1f2 100%); }
.wordmark { font-size: clamp(2.2rem, 1.7rem + 2.2vw, 3.8rem); letter-spacing: 0.04em; color: var(--graphite-900); font-weight: 300; }
.wordmark small { display: block; font-size: var(--step--1); letter-spacing: 0.22em; text-transform: uppercase; color: var(--graphite-500); margin-top: 8px; text-align: center; }

/* Facts */
.facts { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.fact { background: #fff; padding: 24px; }
.fact dt { font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase; color: var(--graphite-300); font-weight: 600; }
.fact dd { margin: 6px 0 0; color: var(--graphite-900); font-weight: 500; }

/* Quote band */
.band { background: var(--graphite-900); color: #e9e7e2; }
.band h2, .band .eyebrow { color: #fff; }
.band .lead { color: #cfcdc7; }
.band .button { border-color: #fff; color: #fff; }
.band .button:hover { background: #fff; color: var(--graphite-900); }

/* Notes */
.note {
  border-left: 3px solid var(--gold-500); background: var(--gold-100); padding: 16px 20px; border-radius: 0 10px 10px 0;
  color: var(--graphite-700); font-size: var(--step--1);
}

/* Contact */
.contact-card address { font-style: normal; line-height: 1.9; }
.contact-card a { font-weight: 500; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #fff; padding-top: 56px; font-size: var(--step--1); }
.footer-grid { display: grid; gap: 32px; padding-bottom: 40px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-logo { width: 150px; margin-bottom: 14px; }
.footer-claim { color: var(--graphite-500); max-width: 28ch; }
.footer-title { font-size: var(--step--1); letter-spacing: 0.16em; text-transform: uppercase; color: var(--graphite-300); margin-bottom: 14px; }
.site-footer address { font-style: normal; line-height: 1.8; color: var(--graphite-700); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links a { text-decoration: none; color: var(--graphite-700); }
.footer-links a:hover { color: var(--gold-700); }
.footer-base { border-top: 1px solid var(--line); padding-top: 20px; padding-bottom: 28px; color: var(--graphite-300); }

/* Reveal on scroll (progressive enhancement, disabled for reduced motion) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
.brand-mark img { width: min(100%, 360px); }
