/* ============================================================
   CORKBOARD — interactive pinned-board contact hero
   Each item is its own clickable link, absolutely positioned
   on a fixed-ratio "stage" so the whole board scales as one.
   ============================================================ */

.cork-hero {
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,0.04), transparent 60%),
        linear-gradient(180deg, #1b1b1b 0%, #232323 100%);
    padding: var(--sp-7) 0 var(--sp-6);
    text-align: center;
}

.cork-hero__head {
    max-width: 760px;
    margin: 0 auto var(--sp-5);
    padding: 0 var(--sp-4);
}

.cork-hero__head h1 {
    color: var(--ink);
    margin-bottom: var(--sp-3);
}

.cork-hero__head p {
    color: rgba(237,237,237,0.78);
    font-size: 1.05rem;
    margin: 0;
}

.cork-hero__hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: var(--sp-4);
    font-family: 'Caveat', cursive;
    font-size: 1.4rem;
    color: var(--mustard-bright);
    transform: rotate(-2deg);
}

.cork-hero__hint i { animation: cork-bob 1.6s ease-in-out infinite; }
@keyframes cork-bob { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(4px);} }

/* ---- the board frame + cork surface ---- */
.corkboard-wrap {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--sp-4);
}

.corkboard {
    position: relative;
    width: 100%;
    aspect-ratio: 1538 / 1023;
    border-radius: 8px;
    overflow: hidden;
    background: #c08a4a url("../images/board/back-board.webp") center/cover no-repeat;
    box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}

/* ---- a single clickable item ---- */
.ci {
    position: absolute;
    display: block;
    transform: rotate(var(--rot, 0deg));
    transition: transform 0.18s ease, filter 0.18s ease;
    filter: drop-shadow(0 8px 12px rgba(0,0,0,0.32));
    cursor: pointer;
    z-index: 1;
    -webkit-tap-highlight-color: transparent;
}
.ci img {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
    user-select: none;
}
.ci:hover,
.ci:focus-visible {
    transform: rotate(var(--rot, 0deg)) scale(1.06) translateY(-4px);
    filter: drop-shadow(0 16px 22px rgba(0,0,0,0.42));
    z-index: 30;
    outline: none;
}
.ci:focus-visible { filter: drop-shadow(0 0 0 3px var(--mustard-bright)) drop-shadow(0 16px 22px rgba(0,0,0,0.42)); }

/* the phone buzzes like it's ringing on hover (animate the image, not the link,
   so the link's entrance/hover animation isn't restarted) */
@media (prefers-reduced-motion: no-preference) {
    .ci--phone:hover img,
    .ci--phone:focus-visible img {
        animation: phone-ring 0.4s linear infinite;
    }
    @keyframes phone-ring {
        0%   { transform: rotate(0deg)  translate(0, 0); }
        15%  { transform: rotate(-7deg) translate(-2px, 0); }
        30%  { transform: rotate(7deg)  translate(2px, 0); }
        45%  { transform: rotate(-6deg) translate(-2px, 0); }
        60%  { transform: rotate(6deg)  translate(2px, 0); }
        75%  { transform: rotate(-4deg) translate(-1px, 0); }
        90%  { transform: rotate(4deg)  translate(1px, 0); }
        100% { transform: rotate(0deg)  translate(0, 0); }
    }
}

/* lift label that appears on hover */
.ci__label {
    position: absolute;
    left: 50%;
    bottom: -6px;
    translate: -50% 100%;
    background: #1b1b1b;
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    padding: 4px 9px;
    border-radius: 5px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    z-index: 40;
}
.ci:hover .ci__label,
.ci:focus-visible .ci__label { opacity: 0.96; }

/* handwriting overlaid on the blank notes */
.ci__hand {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: 'Caveat', cursive;
    font-weight: 700;
    line-height: 1.02;
    color: #1b3fa0;            /* blue biro on yellow */
    padding: 24% 15% 16%;
    transform: rotate(-3deg);
    pointer-events: none;
    font-size: clamp(0.8rem, 2.15vw, 1.7rem);
}
.ci--pink .ci__hand { color: #1b1b1b; }   /* black pen on pink */

/* cream tear-off notes: pin at top, slits at bottom — keep text in the upper-middle */
.ci__hand--notice {
    align-items: flex-start;
    padding: 26% 14% 30%;
    color: #2b2b2b;
    transform: rotate(0deg);
}

/* kraft banner: wide + short, single line */
.ci__hand--banner {
    color: #fbf3e2;
    padding: 16% 6%;
    transform: rotate(0deg);
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.35);
    font-size: clamp(0.85rem, 2.4vw, 2rem);
}

/* entrance: notes drop onto the board, staggered */
@media (prefers-reduced-motion: no-preference) {
    .ci { animation: ci-pin 0.6s cubic-bezier(0.22,0.61,0.36,1) both; }
    @keyframes ci-pin {
        0%   { opacity: 0; translate: 0 -40px; transform: rotate(var(--rot,0deg)) scale(0.9); }
        100% { opacity: 1; translate: 0 0;     transform: rotate(var(--rot,0deg)) scale(1); }
    }
}

/* ============================================================
   MOBILE — the absolute board doesn't tap well on small screens,
   so swap it for a tidy grid of the same links.
   ============================================================ */
/* highlight the enquiry form when a board item sends you to it */
@keyframes enquiry-flash {
    0%   { box-shadow: 0 0 0 0 rgba(244,168,4,0); }
    25%  { box-shadow: 0 0 0 5px rgba(244,168,4,0.6); }
    100% { box-shadow: 0 0 0 0 rgba(244,168,4,0); }
}
.enquiry--flash { animation: enquiry-flash 1.2s ease; border-radius: 8px; }

.board-list { display: none; }

@media (max-width: 760px) {
    .corkboard-wrap { display: none; }

    .board-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--sp-3);
        max-width: 520px;
        margin: 0 auto;
        padding: 0 var(--sp-4);
    }
    .board-list__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 6px;
        min-height: 92px;
        padding: var(--sp-4) var(--sp-3);
        background: var(--mustard);
        color: #1b1b1b;
        border-radius: 4px 4px 6px 6px;
        font-family: 'Caveat', cursive;
        font-size: 1.25rem;
        font-weight: 700;
        line-height: 1.1;
        box-shadow: 0 6px 12px rgba(0,0,0,0.28);
        position: relative;
        text-decoration: none;
        transform: rotate(var(--rot, 0deg));
    }
    .board-list__item i { font-size: 1.1rem; color: var(--mustard-deep); }
    .board-list__item--pink { background: #ff7ab0; }
    .board-list__item--kraft { background: #c79a5e; }
    .board-list__item--wide { grid-column: 1 / -1; }
    .board-list__item::before {
        /* push pin */
        content: "";
        position: absolute;
        top: -7px; left: 50%;
        translate: -50% 0;
        width: 12px; height: 12px;
        border-radius: 50%;
        background: radial-gradient(circle at 35% 30%, #ff6b6b, #c0392b);
        box-shadow: 0 2px 3px rgba(0,0,0,0.4);
    }
    .board-list__item span { font-family: 'Manrope', sans-serif; font-size: 0.72rem; font-weight: 600; opacity: 0.75; }
}

@media (max-width: 420px) {
    .board-list { grid-template-columns: 1fr; }
}
