/* ==========================================================================
   LK-SOLARC — BASE / RESET / TYPOGRAFIE
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@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;
    scroll-behavior: auto !important;
  }
}

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
}
ul, ol { padding: 0; list-style: none; }
img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  font-weight: 700;
}

h1 { font-size: var(--fs-hero); font-weight: 800; }
h2 { font-size: var(--fs-3xl); font-weight: 800; }
h3 { font-size: var(--fs-xl); font-weight: 700; }
h4 { font-size: var(--fs-md); font-weight: 700; }

p { color: var(--text-secondary); line-height: var(--lh-loose); }
p.lead { font-size: var(--fs-lg); color: var(--text-secondary); line-height: var(--lh-normal); }

::selection { background: var(--c-gold); color: var(--c-anthracite-900); }

:focus-visible {
  outline: 2.5px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- Layout Helpers ---- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}
@media (max-width: 640px) {
  .container { padding-inline: var(--sp-4); }
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

.section {
  padding-block: var(--sp-9);
  position: relative;
}
@media (max-width: 900px) {
  .section { padding-block: var(--sp-8); }
}
@media (max-width: 560px) {
  .section { padding-block: var(--sp-7); }
}

.section--tight { padding-block: var(--sp-7); }
section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }
.section--dark { background: var(--bg-dark); color: var(--text-inverse); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--text-inverse); }
.section--dark p { color: var(--text-inverse-muted); }
.section--alt { background: var(--bg-alt); }
.section--tint { background: var(--c-hellgrau); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--text-gold);
  margin-bottom: var(--sp-3);
}
.section--dark .eyebrow { color: var(--c-gold-300); }
.eyebrow::before {
  content: "";
  width: 28px; height: 1.5px;
  background: currentColor;
  display: inline-block;
}

.section-head {
  max-width: 720px;
  margin-bottom: var(--sp-7);
}
.section-head.centered { margin-inline: auto; text-align: center; }
.section-head p.lead { margin-top: var(--sp-3); }

.text-gold { color: var(--text-gold); }
.section--dark .text-gold { color: var(--c-gold); }
.text-muted { color: var(--text-muted); }

.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: -9999px;
  top: 0;
  background: var(--c-anthracite-900);
  color: #fff;
  padding: 14px 22px;
  z-index: 999;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 1.1em 1.9em;
  border-radius: var(--r-full);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
  border: 1.5px solid transparent;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn--primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
}
.btn--primary:hover {
  background: var(--btn-primary-bg-hover);
  transform: translateY(-2px);
}

.btn--gold {
  background: var(--btn-gold-bg);
  color: var(--btn-gold-text);
}
.btn--gold:hover {
  background: var(--btn-gold-bg-hover);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  border-color: var(--text-primary);
  transform: translateY(-2px);
}
.section--dark .btn--ghost { color: var(--text-inverse); border-color: rgba(255,255,255,0.28); }
.section--dark .btn--ghost:hover { border-color: #fff; }

.btn--on-dark { color: #fff; border-color: rgba(255,255,255,0.3); }
.btn--on-dark:hover { border-color: #fff; }

.btn--sm { padding: 0.8em 1.4em; font-size: var(--fs-xs); }
.btn--block { width: 100%; }

.btn--whatsapp {
  background: #25D366;
  color: #08341A;
}
.btn--whatsapp:hover { background: #1EBE5A; transform: translateY(-2px); }

.btn--white {
  background: #FFFFFF;
  color: #14130F;
  border-color: #FFFFFF;
}
.btn--white:hover { background: #F1EEE6; transform: translateY(-2px); }

/* ---- Cards ---- */
.card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

/* ---- Reveal-on-scroll ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal="scale"] { transform: scale(0.94); }
[data-reveal="scale"].is-visible { transform: scale(1); }
[data-reveal="left"] { transform: translateX(-32px); }
[data-reveal="left"].is-visible { transform: translateX(0); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="right"].is-visible { transform: translateX(0); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}

/* Stagger children */
[data-reveal-group] > * { transition-delay: calc(var(--stagger, 0) * 90ms); }
