/*
 Theme Name:   Divi Child
 Theme URI:    https://steigenbergers.com
 Description:  Divi Child Theme – Steigenbergers
 Author:       Kreativdock
 Author URI:   https://www.kreativdock.com
 Template:     Divi
 Version:      1.0.0
 Text Domain:  divi-child
*/

/* =====================================================
   SCROLL ANIMATIONS
   ===================================================== */

.sa-reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

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

.sa-reveal:nth-child(2) { transition-delay: 0.1s; }
.sa-reveal:nth-child(3) { transition-delay: 0.2s; }
.sa-reveal:nth-child(4) { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
    .sa-reveal { opacity: 1; transform: none; transition: none; }
}

/* =====================================================
   404 PAGE
   ===================================================== */

body.error404 {
    background: #0f0f0f;
}

body.error404 header.et-l--header,
body.error404 footer.et-l--footer,
body.error404 #et-main-area > *:not(.steig-404) {
    display: none !important;
}

body.error404 #et-main-area {
    background: #0f0f0f;
}

.steig-404 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 24px;
    background: #0f0f0f;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    text-align: center;
    color: #fff;
}

.steig-404__logo {
    width: 160px;
    margin-bottom: 64px;
    opacity: 0.9;
}

.steig-404__number {
    font-size: clamp(120px, 20vw, 220px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -4px;
    color: transparent;
    -webkit-text-stroke: 1.5px #B8952A;
    margin-bottom: 28px;
    animation: fadeSlide 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.steig-404__headline {
    font-size: clamp(22px, 4vw, 40px);
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    animation: fadeSlide 0.9s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.steig-404__sub {
    font-size: clamp(14px, 2vw, 17px);
    color: #666;
    max-width: 420px;
    line-height: 1.7;
    margin-bottom: 48px;
    animation: fadeSlide 0.9s 0.25s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.steig-404__btn {
    display: inline-block;
    padding: 14px 36px;
    background: transparent;
    border: 1.5px solid #B8952A;
    border-radius: 2px;
    color: #B8952A;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease;
    animation: fadeSlide 0.9s 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.steig-404__btn:hover {
    background: #B8952A;
    color: #0f0f0f;
    text-decoration: none;
}

.steig-404__line {
    width: 48px;
    height: 1.5px;
    background: #B8952A;
    margin: 0 auto 40px;
    animation: lineGrow 0.8s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes lineGrow {
    from { width: 0; opacity: 0; }
    to   { width: 48px; opacity: 1; }
}
