/* ============================================================
   hero.css — Full-width homepage hero
   ============================================================ */

/* Break out of any page content constraints */
.hero-section {
    position: absolute;
    width: 100vw;
    height:800px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    background-color: #585858;
    background-size: cover;
    background-position: left top;
    background-repeat: no-repeat;
    overflow: hidden;
    top: 102px;
    left: 0;
}

/* Subtle dark gradient overlay so text is always readable */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.78) 0%,
        rgba(0, 0, 0, 0) 100%
    );
    z-index: 1;
}

/* Torn paper edge at bottom of hero */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 80px;
    background-image: url("https://lineaoldenburg.com/header-silouette%20(1).svg");
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 3;
    pointer-events: none;
}

/* No image fallback */
.hero-section.no-image .hero-overlay {
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.85) 100%
    );
}

/* ============================================================
   CONTENT
   ============================================================ */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    padding: 82px 82px 182px 82px;
    max-width: 50%;
    width: 100%;
    animation: heroFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

.hero-title {
    font-size: clamp(2.2rem, 5.5vw, 8rem);
    font-weight: 500;
    color: #ffffff;
    line-height: 1;
    margin: 0 0 20px;
    letter-spacing: -0.3rem;
    font-family: "DM Sans", sans-serif !important;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
    font-weight: 400;
    text-shadow: 0 1px 8px rgba(0,0,0,0.2);
    max-width: 80vw;
    text-align: left;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.hero-buttons {
    display: flex;
    gap: 14px;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 42px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Jost', 'Helvetica Neue', sans-serif;
    padding: 14px 32px;
    font-size: 0.97rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    white-space: nowrap;
    text-transform: uppercase;
}

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

.hero-btn--primary {
    background: #ffffff;
    color: #1e5c38;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.hero-btn--primary:hover { background: #2d4a3e; color: white; }

.hero-btn--secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255,255,255,0.75);
}
.hero-btn--secondary:hover {
    background: white;
    border-color: #ffffff;
    color: #2d4a3e;
}

/* ============================================================
   CIRCLE BADGE
   ============================================================ */
.hero-circle-wrap {
    display: none;
    position: absolute;
    top: 60px;
    right: 60px;
    z-index: 4;
    animation: heroFadeUp 1.1s 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-circle {
    position: relative;
    width: 250px;
    height: 250px;
}

/* Rotating text ring */
.hero-circle__text {
    position: absolute;
    inset: 0;
    animation: circleSpin 40s linear infinite;
}
@keyframes circleSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.hero-circle__text span {
    position: absolute;
    left: 50%;
    top: 50%;
    font-size: 18px;
    font-family: "DM Sans", Arial, sans-serif;
    font-weight: 200;
    letter-spacing: 0.12em;
    color: #000000;
    text-transform: uppercase;
    transform-origin: 0 0;
    /* full transform applied by JS */
}

/* Center logo */
.hero-circle__logo {
    position: absolute;
    width: 160px;
    height: 160px;
    background: transparent;
    border-radius: 50%;
    top: 42px;
    left: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
}

.hero-circle__logo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-circle__logo:hover {
    transform: translate(-50%, -50%) scale(1.06);
    box-shadow: 0 8px 28px rgba(0,0,0,0.32);
}
.hero-circle__logo img {
    width: 88px;
    height: 88px;
    object-fit: contain;
    display: block;
}

/* Fallback hamburger lines (when no logo image is set) */
.hero-circle__logo .ham-line {
    position: absolute;
    width: 32px;
    height: 2.5px;
    background: #1e5c38;
    border-radius: 2px;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
}
.hero-circle__logo .ham-line:nth-child(1) { top: calc(50% - 10px); }
.hero-circle__logo .ham-line:nth-child(2) { top: 50%; transform: translate(-50%, -50%); }
.hero-circle__logo .ham-line:nth-child(3) { bottom: calc(50% - 10px); }
.hero-circle__logo:hover .ham-line:nth-child(1) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}
.hero-circle__logo:hover .ham-line:nth-child(2) { opacity: 0; }
.hero-circle__logo:hover .ham-line:nth-child(3) {
    bottom: 50%;
    transform: translate(-50%, 50%) rotate(-45deg);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Large tablet 901–1200px */
@media (max-width: 1200px) {
    .hero-content {
        max-width: 65%;
        padding: 60px 60px 160px 60px;
    }
    .hero-circle-wrap {
        right: 32px;
        bottom: 50px;
    }
}

/* Tablet 601–900px */
@media (max-width: 900px) {
    .hero-section {
        height: 80vh;
        background-position: 68% top;
        top: 86px; /* utility bar 32px + nav 54px on mobile */
    }
    .hero-content {
        max-width: 75%;
        padding: 40px 40px 150px 40px;
    }
    .hero-circle-wrap {
        right: 20px;
        bottom: 44px;
    }
    .hero-circle {
        width: 150px;
        height: 150px;
    }
    .hero-circle__text span { font-size: 10px; }
    .hero-circle__logo {
        width: 74px;
        height: 74px;
    }
    .hero-circle__logo img { width: 64px; height: 64px; }
    .hero-circle__logo .ham-line { width: 24px; }


    .hero-title { letter-spacing: -0.02em; }
}

/* Mobile ≤ 600px */
@media (max-width: 600px) {

    .hero-section {
        min-height: 85vh;
    background-position: 68% top;
        top: 82px;
    }

    .hero-title,
    .hero-subtitle {
        text-align: center;
        min-width: 100%;
    }

    /* Bottom-up gradient — keeps text over any photo legible */
    .hero-overlay {
        background: linear-gradient(
            to top,
            rgba(0,0,0,0.82) 0%,
            rgba(0,0,0,0.45) 60%,
            rgba(0,0,0,0.1) 100%
        );
    }

    .hero-content {
        max-width: 100%;
        padding: 24px 24px 120px 24px;
    }

    .hero-title { letter-spacing: -0.02em; }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-top: 28px;
    }
    .hero-btn {
        width: 100%;
        max-width: 290px;
        font-size: 0.8rem !important;
    }

    .hero-circle-wrap {
        right: 50%;
        top: 20px !important;
        transform: translateX(50%) !important;
    }
    .hero-circle {
        width: 120px;
        height: 120px;
    }
    .hero-circle__text span { font-size: 9px; }
    .hero-circle__logo {
        width: 60px;
        height: 60px;
    }
    .hero-circle__logo img { width: 52px; height: 52px; }
    .hero-circle__logo .ham-line {
        width: 20px;
        height: 2px;
        top: 22px;
    }
}

/* Very small ≤ 380px */
@media (max-width: 380px) {
    .hero-content { padding: 20px 16px 110px 16px; }
    .hero-circle-wrap { right: 10px; bottom: 28px; }
    .hero-circle { width: 100px; height: 100px; }
    .hero-circle__text span { font-size: 8px; }
    .hero-circle__logo { width: 50px; height: 50px; }
    .hero-circle__logo img { width: 42px; height: 42px; }
}