/* Ergen Metallbau — Editorial Light / Bold Blue
 * Vibe: warmes Handwerk, modern, vertrauensvoll, persönlich.
 * Typo: Saira Condensed (Display, very tall), Inter (Body), Cormorant (italic accents).
 * Colors: warm off-white + tiefes Ergen-Blau + soft sand/cream layers.
 */

:root {
  /* ——— palette ——— */
  --bg:            oklch(97.5% 0.006 85);    /* warm off-white */
  --bg-cream:      oklch(94% 0.014 85);      /* one step warmer */
  --bg-sand:       oklch(91% 0.018 80);      /* paper-tan layer */
  --bg-blue:       oklch(34% 0.18 265);      /* deep ergen blue section bg */
  --bg-blue-dark:  oklch(22% 0.14 265);      /* darker blue */
  --surface:       oklch(99% 0.003 85);
  --line:          oklch(85% 0.006 85);
  --line-strong:   oklch(70% 0.008 85);

  --ink:           oklch(15% 0.01 250);      /* near-black body */
  --ink-soft:      oklch(38% 0.01 250);
  --ink-mute:      oklch(58% 0.01 250);
  --ink-inv:       oklch(97% 0.003 85);

  --brand:         oklch(38% 0.20 265);      /* primary ergen blue */
  --brand-deep:    oklch(28% 0.20 265);
  --brand-bright:  oklch(50% 0.22 265);
  --brand-tint:    oklch(94% 0.04 265);

  --whatsapp:      oklch(64% 0.18 145);
  --whatsapp-deep: oklch(52% 0.19 145);

  /* ——— type ——— */
  --ff-display: "Saira Condensed", "Oswald", "Archivo Narrow", system-ui, sans-serif;
  --ff-body:    "Inter", system-ui, -apple-system, sans-serif;
  --ff-italic:  "Cormorant Garamond", "Cormorant", Georgia, serif;
  --ff-mono:    "JetBrains Mono", ui-monospace, Menlo, monospace;

  /* ——— rhythm ——— */
  --maxw: 1480px;
  --gutter: clamp(20px, 4vw, 64px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }

/* type utilities */
.t-display {
  font-family: var(--ff-display);
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 0.85;
  text-transform: uppercase;
}
.t-italic {
  font-family: var(--ff-italic);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}
.t-eyebrow {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.t-mono { font-family: var(--ff-mono); font-size: 13px; letter-spacing: 0.04em; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  position: relative;
}

section { position: relative; padding-block: clamp(80px, 11vw, 160px); }

/* unified image wrapper — bg image, with overlay caption support */
.img {
  position: relative;
  background: var(--bg-cream) center/cover no-repeat;
  overflow: hidden;
}

/* eyebrow + label badges */
.eyebrow {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--brand);
  display: inline-block;
}

/* CTA buttons */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 28px;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1.5px solid currentColor;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn.solid { background: var(--ink); color: var(--ink-inv); border-color: var(--ink); }
.btn.solid:hover { background: var(--brand); border-color: var(--brand); }
.btn.brand { background: var(--brand); color: var(--ink-inv); border-color: var(--brand); }
.btn.brand:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn.whatsapp { background: var(--whatsapp); color: white; border-color: var(--whatsapp); }
.btn.whatsapp:hover { background: var(--whatsapp-deep); border-color: var(--whatsapp-deep); }
.btn.ghost-light { color: var(--ink); }
.btn.ghost-light:hover { background: var(--ink); color: var(--ink-inv); }
.btn .arrow { transition: transform 0.25s ease; display: inline-block; }
.btn:hover .arrow { transform: translateX(6px); }
.btn .icon { width: 18px; height: 18px; }

/* reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.2,0,0.1,1), transform 0.9s cubic-bezier(0.2,0,0.1,1);
}
[data-reveal].revealed { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: 0.1s; }
[data-reveal][data-delay="2"] { transition-delay: 0.2s; }
[data-reveal][data-delay="3"] { transition-delay: 0.3s; }
[data-reveal][data-delay="4"] { transition-delay: 0.4s; }

/* custom cursor */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--brand);
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: multiply;
  transition: width 0.25s cubic-bezier(0.2,0,0.1,1),
              height 0.25s cubic-bezier(0.2,0,0.1,1),
              background 0.25s ease, opacity 0.25s ease;
  transform: translate(-50%, -50%);
  opacity: 0;
}
.cursor.visible { opacity: 0.85; }
.cursor.hover-link { width: 64px; height: 64px; background: var(--brand-bright); mix-blend-mode: multiply; }
.cursor.hover-zoom { width: 96px; height: 96px; background: oklch(50% 0.22 265 / 0.9); mix-blend-mode: normal; }
.cursor .label {
  font-family: var(--ff-mono);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: white; opacity: 0;
  transition: opacity 0.2s ease 0.1s;
  white-space: nowrap;
}
.cursor.hover-zoom .label { opacity: 1; }
.cursor {
  display: flex; align-items: center; justify-content: center;
}

@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
}

/* "look-at-the-craft" repeating divider */
.divider {
  display: flex; align-items: center; gap: 18px;
  padding: 18px 0;
  font-family: var(--ff-mono);
  font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.divider .star { color: var(--brand); }
