/* ==========================================================================
   Fliesenwelt Ollarius — Design System (Base)
   Component styles live in styles-site.css
   ========================================================================== */

/* ── Design tokens ── */
:root {
  --ink: #17191d;
  --muted: #626a73;
  --line: #dde2e5;
  --paper: #f7f7f3;
  --white: #ffffff;
  --stone: #d8d0c2;
  --clay: #b95f3d;
  --clay-dark: #8e4229;
  --clay-glow: rgba(185, 95, 61, 0.32);
  --teal: #1f776f;
  --teal-dark: #165a54;
  --teal-soft: #d9ece9;
  --charcoal: #20252a;
  --success: #1a7a4a;
  --success-soft: #e8f5ee;
  --error: #b42318;
  --error-soft: #fdecea;

  --shadow-sm: 0 4px 16px rgba(23, 25, 29, 0.06);
  --shadow: 0 24px 60px rgba(23, 25, 29, 0.14);
  --shadow-lg: 0 32px 80px rgba(23, 25, 29, 0.18);
  --shadow-glass: 0 8px 32px rgba(23, 25, 29, 0.12);

  --radius: 8px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  --container: 1180px;
  --container-narrow: 820px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 8vw, 7rem);

  --topbar-height: 40px;
  --nav-height: 88px;
  --nav-height-scrolled: 68px;
  --header-height: calc(var(--topbar-height) + var(--nav-height));
  --header-height-scrolled: calc(var(--topbar-height) + var(--nav-height-scrolled));
  --mobile-cta-height: 64px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --transition: 0.35s var(--ease-out-expo);
  --transition-fast: 0.2s var(--ease-out-expo);

  --focus-ring: 0 0 0 3px var(--teal-soft), 0 0 0 5px var(--teal);
}

/* ── Reset & base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.has-mobile-cta {
  padding-bottom: var(--mobile-cta-height);
}

body.cookie-visible {
  padding-bottom: calc(var(--mobile-cta-height) + 80px);
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--clay);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

::selection {
  background: var(--teal-soft);
  color: var(--ink);
}

/* ── Typography ── */
h1,
.h1 {
  font-size: clamp(2.75rem, 6vw, 6.8rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

h2,
.h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

h3,
.h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

h4,
.h4 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
}

.lead {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.7;
  color: var(--muted);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.text-link:hover {
  gap: 0.65rem;
  color: var(--clay);
}

.text-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.muted {
  color: var(--muted);
}

/* ── Layout ── */
.container {
  width: min(var(--container), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.container--narrow {
  width: min(var(--container-narrow), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.section {
  padding-block: var(--section-y);
}

.section--tight {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.section--dark {
  background: var(--charcoal);
  color: var(--white);
}

.section--paper {
  background: var(--paper);
}

.section--white {
  background: var(--white);
}

.section-head {
  max-width: 42rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head .lead {
  margin-top: 1rem;
}

.section-head--center .eyebrow {
  display: block;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  white-space: nowrap;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast);
}

.btn svg,
.btn i svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--clay);
  color: var(--white);
  box-shadow: 0 8px 24px var(--clay-glow);
}

.btn--primary:hover {
  background: var(--clay-dark);
  color: var(--white);
  box-shadow: 0 12px 32px var(--clay-glow);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: var(--clay);
  color: var(--clay);
  background: rgba(185, 95, 61, 0.05);
}

.btn--dark {
  background: var(--charcoal);
  color: var(--white);
}

.btn--dark:hover {
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn--teal {
  background: var(--teal);
  color: var(--white);
}

.btn--teal:hover {
  background: var(--teal-dark);
  color: var(--white);
}

.btn--small {
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
}

.btn--large {
  padding: 1.05rem 1.85rem;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.75s var(--ease-out-expo),
    transform 0.75s var(--ease-out-expo);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.65s var(--ease-out-expo),
    transform 0.65s var(--ease-out-expo);
  transition-delay: calc(var(--reveal-delay, 0ms) + var(--stagger, 0) * 80ms);
}

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .reveal-stagger > * {
    opacity: 1;
    transform: none;
  }

  .btn:hover {
    transform: none;
  }
}
