/* ══════════════════════════════════════════════════════════
   SCHMIEDE FÖRSTER — Shared Stylesheet
   Warme Eisenpalette · Barlow Condensed + EB Garamond
   ══════════════════════════════════════════════════════════ */

/* DESIGN TOKENS */
:root {
    --coal:           #120E09;
    --iron-bg:        #1A1410;
    --iron-surface:   #221A13;
    --iron-raise:     #2C2218;
    --iron-border:    #3D3026;
    --iron-line:      #52422E;
    --cream:          #ECE4D4;
    --cream-70:       #CCC4B4;
    --ash:            #7A6A5C;
    --smoke:          #A09080;
    --forge:          #C06018;
    --forge-hi:       #D07020;
    --forge-glow:     rgba(192, 96, 24, 0.14);
    --brass:          #B08828;
    --brass-lo:       rgba(176, 136, 40, 0.35);
    --ff-display: 'Barlow Condensed', sans-serif;
    --ff-serif:   'EB Garamond', Georgia, serif;
    --max-w: 1240px;
    --pad:   clamp(20px, 5vw, 64px);
    --gap:   clamp(80px, 10vw, 136px);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in:  cubic-bezier(0.4, 0, 1, 1);
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--iron-bg);
    color: var(--cream);
    font-family: var(--ff-serif);
    font-size: 18px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* Grain texture overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9000;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    opacity: 0.032;
    mix-blend-mode: screen;
}

/* UTILITIES */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad); }

.eyebrow {
    font-family: var(--ff-display);
    font-weight: 600;
    font-size: 11.5px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--brass);
    display: flex;
    align-items: center;
    gap: 14px;
}
.eyebrow::before {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: var(--brass);
    opacity: 0.7;
    flex-shrink: 0;
}

.h2 {
    font-family: var(--ff-display);
    font-weight: 900;
    font-size: clamp(38px, 5.5vw, 72px);
    line-height: 0.95;
    letter-spacing: -0.025em;
    text-transform: uppercase;
    color: var(--cream);
}

.body-copy {
    font-family: var(--ff-serif);
    font-size: clamp(15px, 1.4vw, 17px);
    color: var(--smoke);
    line-height: 1.8;
    max-width: 560px;
}

.ornament {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}
.ornament::before,
.ornament::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--brass) 50%, transparent);
    opacity: 0.45;
}
.ornament__mark {
    width: 7px; height: 7px;
    background: var(--brass);
    transform: rotate(45deg);
    flex-shrink: 0;
    opacity: 0.75;
}

.section-rule {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--iron-line) 20%, var(--iron-line) 80%, transparent);
}

/* BUTTONS */
.btn {
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: 13.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 16px 36px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background 0.22s, border-color 0.22s, transform 0.15s;
    min-height: 52px;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.btn--forge { background: var(--forge); color: var(--cream); }
.btn--forge:hover { background: var(--forge-hi); }
.btn--ghost { color: var(--cream); border: 1px solid var(--iron-line); }
.btn--ghost:hover { border-color: var(--cream-70); }
.btn--brass { background: transparent; color: var(--brass); border: 1px solid var(--brass); }
.btn--brass:hover { background: var(--brass); color: var(--coal); }

/* SCROLL REVEAL */
.r {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.r.on  { opacity: 1; transform: none; }
.r-d1  { transition-delay: 0.10s; }
.r-d2  { transition-delay: 0.20s; }
.r-d3  { transition-delay: 0.30s; }
.r-d4  { transition-delay: 0.40s; }
.r-d5  { transition-delay: 0.50s; }
.r-d6  { transition-delay: 0.60s; }
.r-d7  { transition-delay: 0.70s; }
.r-d8  { transition-delay: 0.80s; }

.clip-reveal {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1s var(--ease-out);
}
.clip-reveal.on { clip-path: inset(0 0% 0 0); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .r, .clip-reveal { opacity: 1; transform: none; clip-path: none; }
}

/* NAVIGATION */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 22px 0;
    transition: background 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
    border-bottom: 1px solid transparent;
}
.nav.scrolled {
    background: rgba(26, 20, 16, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom-color: var(--iron-border);
    padding: 14px 0;
}
.nav.nav--solid {
    background: rgba(26, 20, 16, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom-color: var(--iron-border);
    padding: 14px 0;
}
.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav__logo { display: flex; align-items: center; }
.nav__logo-img {
    height: 80px;
    width: auto;
    display: block;
    transition: height 0.4s ease;
}
.nav.scrolled .nav__logo-img,
.nav.nav--solid .nav__logo-img { height: 48px; }
.nav__logo-name {
    font-family: var(--ff-display);
    font-weight: 900;
    font-size: 20px;
    letter-spacing: 0.02em;
    color: var(--cream);
}
.nav__logo-name span { color: var(--forge); }
.nav__logo-sub {
    font-family: var(--ff-display);
    font-weight: 400;
    font-size: 10px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--ash);
}
.nav__links {
    display: flex;
    align-items: center;
    gap: 34px;
    list-style: none;
}
.nav__links a {
    font-family: var(--ff-display);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ash);
    position: relative;
    transition: color 0.22s;
}
.nav__links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0; right: 0;
    height: 1px;
    background: var(--brass);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s var(--ease-out);
}
.nav__links a:hover,
.nav__links a[aria-current="page"] { color: var(--cream); }
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__links a[aria-current="page"]::after { background: var(--forge); }
.nav__cta {
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: var(--forge);
    color: var(--cream);
    padding: 11px 24px;
    transition: background 0.22s;
}
.nav__cta:hover { background: var(--forge-hi); }
.nav__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    min-width: 44px; min-height: 44px;
    align-items: center;
    justify-content: center;
}
.nav__burger span {
    display: block;
    width: 24px; height: 2px;
    background: var(--cream);
    transition: transform 0.3s, opacity 0.3s;
}

/* MOBILE MENU */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(18, 14, 9, 0.98);
    padding: 90px var(--pad) 48px;
    flex-direction: column;
    gap: 0;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: clamp(32px, 9vw, 54px);
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--cream);
    padding: 14px 0;
    border-bottom: 1px solid var(--iron-border);
    transition: color 0.2s, padding-left 0.3s var(--ease-out);
}
.mobile-menu a:hover,
.mobile-menu a[aria-current="page"] { color: var(--forge); }
.mobile-menu a:hover { padding-left: 12px; }
.mobile-menu__footer {
    margin-top: 36px;
    font-family: var(--ff-serif);
    font-size: 14px;
    color: var(--ash);
    line-height: 1.8;
}
.mobile-menu__footer a { color: var(--smoke); transition: color 0.2s; }
.mobile-menu__footer a:hover { color: var(--forge); }

/* PAGE HERO (inner pages) */
.page-hero {
    position: relative;
    padding: clamp(140px, 18vw, 220px) 0 clamp(64px, 8vw, 100px);
    overflow: hidden;
}
.page-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: sepia(30%) saturate(0.8) brightness(0.55);
}
.page-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(18,14,9,0.3) 0%, rgba(18,14,9,0.7) 50%, rgba(18,14,9,0.95) 100%);
}
.page-hero__inner { position: relative; z-index: 1; }
.page-hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    animation: heroFadeUp 0.8s 0.2s var(--ease-out) both;
}
.page-hero__eyebrow-line {
    flex-shrink: 0;
    height: 1px;
    background: var(--brass);
    opacity: 0.7;
}
.page-hero__eyebrow-text {
    font-family: var(--ff-display);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--brass);
}
.page-hero__title {
    font-family: var(--ff-display);
    font-weight: 900;
    font-size: clamp(48px, 8vw, 108px);
    line-height: 0.92;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: var(--cream);
    margin-bottom: 24px;
    animation: heroFadeUp 1s 0.35s var(--ease-out) both;
}
.page-hero__body {
    font-family: var(--ff-serif);
    font-style: italic;
    font-size: clamp(15px, 1.4vw, 18px);
    color: var(--cream-70);
    max-width: 520px;
    line-height: 1.8;
    animation: heroFadeUp 0.9s 0.55s var(--ease-out) both;
}
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(36px); }
    to   { opacity: 1; transform: none; }
}

/* STATS BAR */
.stats {
    background: var(--iron-surface);
    border-top: 1px solid var(--iron-border);
    border-bottom: 1px solid var(--iron-border);
}
.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.stats__item {
    padding: clamp(28px, 4vw, 52px) clamp(20px, 3vw, 40px);
    border-right: 1px solid var(--iron-border);
    text-align: center;
}
.stats__item:last-child { border-right: none; }
.stats__num {
    font-family: var(--ff-display);
    font-weight: 900;
    font-size: clamp(40px, 5.5vw, 68px);
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--cream);
}
.stats__num sup { font-size: 0.45em; color: var(--forge); vertical-align: super; letter-spacing: 0; }
.stats__label {
    font-family: var(--ff-display);
    font-weight: 600;
    font-size: 10.5px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ash);
    margin-top: 10px;
}

/* CTA STRIP */
.cta-strip {
    background: var(--forge);
    padding: clamp(48px, 6vw, 80px) 0;
}
.cta-strip__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.cta-strip__text h2 {
    font-family: var(--ff-display);
    font-weight: 900;
    font-size: clamp(28px, 4vw, 48px);
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--cream);
    line-height: 1;
    margin-bottom: 8px;
}
.cta-strip__text p {
    font-family: var(--ff-serif);
    font-style: italic;
    font-size: clamp(14px, 1.3vw, 16px);
    color: rgba(236,228,212,0.8);
}
.btn--white {
    background: var(--cream);
    color: var(--forge);
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: 13.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 16px 36px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    transition: background 0.22s, transform 0.15s;
    flex-shrink: 0;
}
.btn--white:hover { background: var(--iron-bg); color: var(--cream); }
.btn--white svg { width: 15px; height: 15px; flex-shrink: 0; }

/* FORM */
.form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label {
    font-family: var(--ff-display);
    font-weight: 600;
    font-size: 10.5px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--smoke);
}
.form-input, .form-textarea {
    width: 100%;
    background: var(--iron-raise);
    border: 1px solid var(--iron-border);
    color: var(--cream);
    padding: 14px 18px;
    font-family: var(--ff-serif);
    font-size: 16px;
    outline: none;
    transition: border-color 0.22s, background 0.22s;
    min-height: 52px;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--ash); font-style: italic; }
.form-input:focus, .form-textarea:focus { border-color: var(--brass); background: var(--iron-surface); }
.form-textarea { resize: vertical; min-height: 130px; line-height: 1.7; }
.form-note {
    font-family: var(--ff-serif);
    font-style: italic;
    font-size: 13px;
    color: var(--ash);
    line-height: 1.6;
}
.form-success {
    display: none;
    background: var(--iron-raise);
    border: 1px solid var(--iron-border);
    border-left: 3px solid var(--forge);
    padding: 18px 22px;
    font-family: var(--ff-serif);
    font-style: italic;
    font-size: 16px;
    color: var(--cream-70);
    line-height: 1.6;
}

/* FOOTER */
.footer {
    background: var(--coal);
    border-top: 1px solid var(--iron-border);
    padding: 56px 0 36px;
}
.footer__top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: start;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--iron-border);
    margin-bottom: 32px;
}
.footer__brand-name {
    font-family: var(--ff-display);
    font-weight: 900;
    font-size: 22px;
    color: var(--cream);
    letter-spacing: 0.02em;
}
.footer__brand-name span { color: var(--forge); }
.footer__brand-tagline {
    font-family: var(--ff-serif);
    font-style: italic;
    font-size: 14px;
    color: var(--ash);
    margin-top: 8px;
    line-height: 1.6;
}
.footer__brand-year {
    font-family: var(--ff-display);
    font-weight: 900;
    font-size: 56px;
    color: var(--iron-border);
    letter-spacing: -0.03em;
    line-height: 1;
    margin-top: 12px;
}
.footer__nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
}
.footer__nav a {
    font-family: var(--ff-display);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ash);
    transition: color 0.2s;
}
.footer__nav a:hover { color: var(--brass); }
.footer__contact { text-align: right; }
.footer__contact p {
    font-family: var(--ff-serif);
    font-size: 14px;
    color: var(--ash);
    line-height: 1.9;
}
.footer__contact a { transition: color 0.2s; }
.footer__contact a:hover { color: var(--brass); }
.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.footer__copy { font-family: var(--ff-serif); font-size: 13px; color: var(--iron-line); }
.footer__mark {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--ff-display);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--iron-line);
}
.footer__mark-diamond {
    width: 5px; height: 5px;
    background: var(--brass);
    transform: rotate(45deg);
    opacity: 0.5;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 880px) {
    .footer__top { grid-template-columns: 1fr; }
    .footer__contact { text-align: left; }
    .footer__nav { align-items: flex-start; }
    .cta-strip__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 768px) {
    .nav__links, .nav__cta { display: none; }
    .nav__burger { display: flex; }
    .stats__grid { grid-template-columns: repeat(2, 1fr); }
    .stats__item:nth-child(2) { border-right: none; }
    .stats__item:nth-child(1),
    .stats__item:nth-child(2) { border-bottom: 1px solid var(--iron-border); }
    .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .btn--white { width: 100%; justify-content: center; }
}

/* SHARED JS */
.scroll-init { opacity: 0; }
