/* Theme overrides for Hudson Willbe */

.s-header__logo .logo--text {
    font-family: var(--font-1), "Castoro", Georgia, serif;
    font-size: 2.05rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}

.s-header {
    --header-height: 84px;
}

.hudson-pretitle {
    font-size: clamp(2.45rem, 3.5vw, 3.9rem) !important;
    letter-spacing: 0.04em !important;
    text-transform: none !important;
    font-weight: 600 !important;
    margin-bottom: 0.9rem !important;
    line-height: 1.25 !important;
}

.hudson-hero-title {
    display: flex;
    flex-direction: column;
    gap: 0.48em;
    font-size: clamp(3.6rem, 5.2vw, 7.6rem) !important;
    line-height: 1.16 !important;
    width: max-content;
    max-width: min(100%, 70rem);
}

.hudson-hero-title > span {
    display: block;
}

.hudson-hero__id {
    font-size: 1.08em;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.hudson-hero__punch {
    font-size: clamp(1.9rem, 2.8vw, 3.55rem);
    font-weight: 500;
    max-width: none;
    white-space: nowrap;
}

.hudson-hero__punch em {
    font-style: normal;
    color: var(--color-1);
}

.hudson-hero__sub {
    font-size: clamp(1.65rem, 2.4vw, 3.05rem);
    font-weight: 500;
    letter-spacing: 0.01em;
    opacity: 0.8;
    max-width: none;
    line-height: 1.45;
    white-space: nowrap;
}

.hudson-hero__invite {
    font-size: clamp(2.25rem, 3.1vw, 3.85rem);
    font-weight: 600;
    color: var(--color-1);
    letter-spacing: 0.02em;
}

.s-intro__content-btns .btn {
    font-size: 1.28rem;
    letter-spacing: 0.06em;
    text-transform: none;
    padding: 0 2.8rem;
    height: 4.9rem;
    line-height: 4.7rem;
}

/* Stretch copy into the right empty area so punch/sub fit on one line */
.s-intro .s-intro__content-text {
    grid-column: 1 / -1;
    max-width: min(95vw, 74rem);
}

@media (max-width: 900px) {
    .hudson-hero__id,
    .hudson-hero__punch,
    .hudson-hero__sub {
        white-space: normal;
    }

    .hudson-hero-title {
        width: auto;
        max-width: 100%;
    }
}

.hudson-hero__invite::after {
    content: "";
    display: inline-block;
    width: 0.08em;
    height: 0.85em;
    margin-left: 0.12em;
    background: currentColor;
    vertical-align: -0.05em;
    animation: hudson-caret 1s steps(1) infinite;
}

@keyframes hudson-caret {
    0%, 45% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.hudson-reveal {
    opacity: 0;
    transform: translateY(1.1rem);
}

.no-js .hudson-reveal,
.ss-show .hudson-reveal {
    animation: hudson-reveal-up 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: var(--reveal-delay, 0s);
}

@keyframes hudson-reveal-up {
    from {
        opacity: 0;
        transform: translateY(1.1rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hudson-reveal,
    .no-js .hudson-reveal,
    .ss-show .hudson-reveal {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .hudson-hero__invite::after {
        animation: none;
        opacity: 0;
    }
}

.hudson-domains-lead {
    max-width: 40em;
    margin-bottom: 2.5rem;
}

.hudson-inner {
    padding: 10rem 0 4rem;
    min-height: 50vh;
}

.hudson-placeholder {
    opacity: 0.7;
}

.hudson-back {
    margin-top: 3rem;
}

.hudson-contact-list li {
    margin-bottom: 0.5rem;
}

.hudson-contact-form-wrap {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.hudson-contact-form label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.hudson-contact-form input,
.hudson-contact-form textarea {
    width: 100%;
    margin-bottom: 1.2rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.25);
    color: inherit;
    border-radius: 2px;
}

.hudson-contact-form button {
    margin-top: 0.5rem;
}

.hudson-form-notice {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 2px;
}

.hudson-form-notice--ok {
    background: rgba(60, 160, 90, 0.25);
}

.hudson-form-notice--error {
    background: rgba(180, 60, 60, 0.25);
}

.hudson-post-card {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.hudson-post-card__title {
    margin-bottom: 0.35rem;
}

.hudson-post-card__meta {
    opacity: 0.65;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.hudson-richtext {
    line-height: 1.75;
    max-width: 45em;
}

.hudson-richtext img {
    max-width: 100%;
    height: auto;
}

/* Inner pages: header should stick earlier without full intro */
body:not(.home) .s-header {
    position: fixed;
}

body:not(.home) #preloader {
    /* keep default */
}

body.page .s-footer .section-header,
body.single .s-footer .section-header,
body.blog .s-footer .section-header {
    margin-top: 2rem;
}

/* Compact top-level nav */
.s-header__menu-links {
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: min(78vw, 92rem);
    align-items: stretch;
}

.s-header__menu-links > li {
    position: relative;
}

.s-header__menu-links a {
    font-size: 1.55rem !important;
    padding: 0 1rem !important;
    white-space: nowrap;
}

/* Dropdown */
.s-header__menu-links .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0.75rem 0;
    min-width: 14.5rem;
    background: var(--color-3, #1a1a1a);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.4rem);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.s-header__menu-links .sub-menu a {
    display: block;
    padding: 0.75rem 1.2rem !important;
    font-size: 1.35rem !important;
    color: rgba(255, 255, 255, 0.85) !important;
    white-space: nowrap;
}

.s-header__menu-links .sub-menu a:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.06);
}

.s-header__menu-links .menu-item-has-children > a::after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 0.35em;
    border-left: 0.28em solid transparent;
    border-right: 0.28em solid transparent;
    border-top: 0.35em solid currentColor;
    vertical-align: 0.15em;
    opacity: 0.7;
}

@media (min-width: 901px) {
    .s-header__menu-links .menu-item-has-children:hover > .sub-menu,
    .s-header__menu-links .menu-item-has-children:focus-within > .sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .s-header__menu-links .menu-item-has-children > .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0.25rem 0 0.75rem 0.75rem;
        min-width: 0;
    }

    .s-header__menu-links .sub-menu a {
        color: inherit !important;
        padding: 0.45rem 0.5rem !important;
        font-size: 1.15rem !important;
    }

    .s-header__menu-links .menu-item-has-children > a::after {
        display: none;
    }
}

.hudson-domain-group-title {
    margin: 1.5rem 0 0.75rem;
}

.hudson-domain-group-title h3 {
    margin: 0;
    font-size: clamp(1.4rem, 2vw, 2rem);
    letter-spacing: 0.02em;
}

.hudson-domain-group-title:first-child {
    margin-top: 0;
}

