/*
 * public/parts/components.css
 * ETOWN Local building blocks used on more than one ETOWN page:
 * pill buttons, section labels, big titles, pop-in animation.
 */

/* Logo mark: "ETO" over "WN" in the brand font, set as a square. Text, not an image, so it
   always matches the site font and color. Size it with font-size. */
.etw-logo-mark {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 17px;
    line-height: 0.86;
    letter-spacing: 0.02em;
    color: var(--c-ink);
    text-decoration: none;
    text-transform: uppercase;
}

.etw-logo-mark span {
    display: block;
}

/* "WN" is narrower than "ETO" in Lexend; a touch more spacing squares the block up */
.etw-logo-mark span + span {
    letter-spacing: 0.08em;
    margin-right: -0.06em;
}

.etw-title-xl {
    font-weight: 800;
    font-size: clamp(28px, 4.5vw, 44px);
    line-height: 1.1;
}

/* Pill button */
.etw-btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--c-ink);
    border-radius: 999px;
    padding: 16px 32px;
    font-weight: 600;
    font-size: 16px;
    background: var(--c-white);
    color: var(--c-ink);
    transition: background 0.2s ease, color 0.2s ease;
}

.etw-btn-pill:hover {
    background: var(--c-ink);
    color: var(--c-white);
}

.etw-btn-pill:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.etw-btn-pill:disabled:hover {
    background: var(--c-white);
    color: var(--c-ink);
}

/* Section label: a vertical bar next to two short lines of text */
.etw-label {
    display: flex;
    align-items: center;
    gap: 12px;
}

.etw-label-bar {
    width: 5px;
    height: 42px;
    background: var(--c-ink);
    border-radius: 3px;
    flex-shrink: 0;
}

.etw-label-text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 18px;
    line-height: 1.15;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* Pop-in animation for hero text and logo */
@keyframes etwPop {
    0% { opacity: 0; transform: scale(0.4); }
    60% { opacity: 1; transform: scale(1.15); }
    100% { opacity: 1; transform: scale(1); }
}

.etw-pop-in {
    opacity: 0;
    animation: etwPop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s forwards;
}
