/* ── Mega Footer block ───────────────────────────────────────────────────── */

/* The footer must stack above sticky/positioned elements from the preceding
   section (stacking cards use z-index up to 6) so their box-shadows cannot
   bleed into the footer corner area. z-index 20 clears any realistic value. */
.wp-block-template-part.site-footer,
.wp-block-template-part:has(.nyehs-footer-wrap) {
    position:          relative;
    z-index:           20;
    margin-block-start: 0;
}

/* JS writes --nyehs-footer-cap-bg with the detected preceding background
   colour. The wrapper fills edge-to-edge at that colour so the corner gaps
   match even when the preceding section is narrower than the viewport. */
.nyehs-footer-wrap {
    background: var(--nyehs-footer-cap-bg, transparent);
}

.nyehs-footer {
    background:    #fff;
    border-radius: 32px 32px 0 0;
    width:         100%;
    overflow:      hidden;
    background-image: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(15, 23, 42, 0.04) 0%, transparent 70%);
}

/* ── Main grid ───────────────────────────────────────────────────────────── */

.nyehs-footer__inner {
    max-width: 1200px;
    margin:    0 auto;
    padding:   clamp(56px, 7vw, 96px) clamp(24px, 5vw, 48px) clamp(48px, 6vw, 80px);
    display:   grid;
    grid-template-columns: 260px 1fr 280px;
    gap:       clamp(40px, 5vw, 72px);
    align-items: start;
}

.nyehs-footer__inner--no-nl {
    grid-template-columns: 260px 1fr;
}

/* ── Brand column ────────────────────────────────────────────────────────── */

.nyehs-footer__brand {
    display:        flex;
    flex-direction: column;
    gap:            20px;
}


.nyehs-footer__logo-img {
    display:   block;
    max-width: 100%;
}

.nyehs-footer__site-name {
    font-size:   1.4rem;
    font-weight: 700;
    color:       #0f172a;
}

.nyehs-footer__tagline {
    font-size:    0.875rem;
    line-height:  1.65;
    color:        rgba(15, 23, 42, 0.5);
    margin:       0;
    padding-left: 12px;
    border-left:  1px solid transparent;
    border-image: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(15, 23, 42, 0.18) 20%,
        rgba(15, 23, 42, 0.18) 80%,
        transparent 100%
    ) 1;
}

/* ── Social icons (in brand column) ─────────────────────────────────────── */

.nyehs-footer__socials {
    display:     flex;
    align-items: center;
    gap:         6px;
}

.nyehs-footer__socials--nl {
    padding-top: 16px;
    position:    relative;
}

.nyehs-footer__socials--nl::before {
    content:  '';
    position: absolute;
    top:      0;
    left:     10%;
    right:    10%;
    height:   1px;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(15, 23, 42, 0.10) 20%,
        rgba(15, 23, 42, 0.10) 80%,
        transparent 100%
    );
}

.nyehs-footer__social {
    display:         flex;
    align-items:     center;
    justify-content: center;
    width:           32px;
    height:          32px;
    border-radius:   50%;
    border:          1px solid rgba(15, 23, 42, 0.12);
    color:           rgba(15, 23, 42, 0.45);
    text-decoration: none;
    transition:      color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nyehs-footer__social:hover {
    color:        #fff;
    border-color: transparent;
    transform:    translateY(-2px);
}

.nyehs-footer__social--twitter:hover   { background: #000; }
.nyehs-footer__social--linkedin:hover  { background: #0a66c2; }
.nyehs-footer__social--facebook:hover  { background: #1877f2; }
.nyehs-footer__social--youtube:hover   { background: #ff0000; }
.nyehs-footer__social--tiktok:hover    { background: #000; }
.nyehs-footer__social--instagram:hover {
    background:   linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
}

/* ── Newsletter column (right grid column) ───────────────────────────────── */

.nyehs-footer__nl-col {
    padding-top:    4px;
    display:        flex;
    flex-direction: column;
    gap:            0;
}

.nyehs-footer__newsletter {
    display:        flex;
    flex-direction: column;
    gap:            8px;
}


.nyehs-footer__nl-heading {
    font-size:      0.9rem;
    font-weight:    800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color:          #0d41ff;
    margin:         0;
    line-height:    1.2;
}

.nyehs-footer__nl-subtext {
    font-size: 0.82rem;
    color:     rgba(15, 23, 42, 0.5);
    margin:    0;
    line-height: 1.5;
}

.nyehs-footer__nl-row {
    display:        flex;
    align-items:    center;
    border-bottom:  1.5px solid rgba(15, 23, 42, 0.2);
    padding-bottom: 8px;
    gap:            8px;
    transition:     border-color 0.15s ease;
}

.nyehs-footer__nl-row:focus-within {
    border-color: #0f172a;
}

.nyehs-footer__nl-input {
    flex:       1;
    border:     none;
    outline:    none;
    background: transparent;
    font-size:  0.875rem;
    color:      #0f172a;
    padding:    0;
    min-width:  0;
}

.nyehs-footer__nl-input::placeholder {
    color: rgba(15, 23, 42, 0.35);
}

.nyehs-footer__nl-btn {
    background: none;
    border:     none;
    padding:    0 2px;
    cursor:     pointer;
    color:      #0f172a;
    display:    flex;
    align-items: center;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.nyehs-footer__nl-btn:hover {
    transform: translateX(3px);
}

.nyehs-footer__nl-btn:disabled {
    opacity: 0.4;
    cursor:  not-allowed;
}

.nyehs-footer__nl-success {
    font-size: 0.875rem;
    color:     #16a34a;
    margin:    0;
}

/* ── Nav columns ─────────────────────────────────────────────────────────── */

.nyehs-footer__cols {
    display:       flex;
    gap:           clamp(28px, 3.5vw, 56px);
    flex-wrap:     wrap;
    align-content: start;
    padding-top:   4px;
}

.nyehs-footer__col {
    min-width: 100px;
    flex:      1;
}

.nyehs-footer__col-heading {
    font-size:      0.68rem;
    font-weight:    700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color:          #0f172a;
    margin:         0 0 16px;
    padding-bottom: 10px;
    position:       relative;
}

.nyehs-footer__col-heading::after {
    content:  '';
    position: absolute;
    bottom:   0;
    left:     0;
    right:    0;
    height:   1px;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(15, 23, 42, 0.10) 20%,
        rgba(15, 23, 42, 0.10) 80%,
        transparent 100%
    );
}

.nyehs-footer__links {
    list-style: none;
    margin:     0;
    padding:    0;
    display:    flex;
    flex-direction: column;
    gap:        10px;
}

.nyehs-footer__links li {
    overflow: hidden;
}

.nyehs-footer__links a {
    display:         inline-flex;
    align-items:     center;
    gap:             5px;
    font-size:       0.875rem;
    color:           rgba(15, 23, 42, 0.5);
    text-decoration: none;
    transition:      color 0.2s ease, transform 0.2s ease;
    transform:       translateX(0);
}

.nyehs-footer__links a::before {
    content:     '';
    display:     inline-block;
    width:       0;
    height:      1px;
    background:  #0f172a;
    transition:  width 0.2s ease;
    flex-shrink: 0;
}

.nyehs-footer__links a:hover {
    color:     #0f172a;
    transform: translateX(4px);
}

.nyehs-footer__links a:hover::before {
    width: 10px;
}

/* ── Contact info (inside brand column) ──────────────────────────────────── */

.nyehs-footer__contact {
    display:        flex;
    flex-direction: column;
    gap:            2px;
    padding-top:    16px;
    position:       relative;
}

/* Separator above contact — same gradient style as brand/nav divider */
.nyehs-footer__contact::before {
    content:  '';
    position: absolute;
    top:      0;
    left:     10%;
    right:    10%;
    height:   1px;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(15, 23, 42, 0.10) 20%,
        rgba(15, 23, 42, 0.10) 80%,
        transparent 100%
    );
}

.nyehs-footer__contact-item {
    display:     flex;
    align-items: flex-start;
    gap:         10px;
    font-size:   0.82rem;
    color:       rgba(15, 23, 42, 0.6);
    line-height: 1.55;
    padding:     7px 6px;
    border-radius: 6px;
    transition:  background 0.15s ease, color 0.15s ease;
}

.nyehs-footer__contact-item:hover {
    background: rgba(15, 23, 42, 0.03);
}

/* Icon wrapper — circle with outline, no fill */
.nyehs-footer__contact-icon-wrap {
    display:         flex;
    align-items:     center;
    justify-content: center;
    flex-shrink:     0;
    width:           24px;
    height:          24px;
    border:          1px solid rgba(15, 23, 42, 0.14);
    border-radius:   50%;
    margin-top:      1px;
    color:           rgba(15, 23, 42, 0.45);
    transition:      border-color 0.15s ease, color 0.15s ease;
}

.nyehs-footer__contact-item:hover .nyehs-footer__contact-icon-wrap {
    border-color: rgba(15, 23, 42, 0.3);
    color:        rgba(15, 23, 42, 0.7);
}

.nyehs-footer__contact-item a {
    color:           inherit;
    text-decoration: none;
    transition:      color 0.15s ease;
}

.nyehs-footer__contact-item a:hover {
    color: #0f172a;
}

/* ── Hours schedule ──────────────────────────────────────────────────────── */

.nyehs-footer__hours {
    display:        flex;
    flex-direction: column;
    gap:            10px;
    margin-top:     4px;
    padding-top:    12px;
}

.nyehs-footer__hours-label {
    display:        flex;
    align-items:    center;
    gap:            7px;
    font-size:      0.65rem;
    font-weight:    700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color:          rgba(15, 23, 42, 0.4);
}

/* Hours label clock icon — smaller, no outline */
.nyehs-footer__hours-label .nyehs-footer__contact-icon-wrap {
    width:        18px;
    height:       18px;
    border:       none;
    color:        rgba(15, 23, 42, 0.35);
    margin-top:   0;
}

.nyehs-footer__hours-list {
    list-style: none;
    margin:     0;
    padding:    0;
    display:    flex;
    flex-direction: column;
    gap:        2px;
}

.nyehs-footer__hours-row {
    display:         grid;
    grid-template-columns: 34px 1fr;
    gap:             8px;
    align-items:     baseline;
    font-size:       0.79rem;
    color:           rgba(15, 23, 42, 0.58);
    padding:         4px 6px;
    border-radius:   5px;
    border-left:     2px solid transparent;
    transition:      background 0.15s ease, border-color 0.15s ease;
}

.nyehs-footer__hours-row.is-closed {
    color: rgba(15, 23, 42, 0.28);
}

.nyehs-footer__hours-row.is-today {
    background:   rgba(15, 23, 42, 0.06);
    border-color: rgba(15, 23, 42, 0.35);
    color:        #0f172a;
    font-weight:  500;
}

.nyehs-footer__hours-row.is-today.is-closed {
    color:        rgba(15, 23, 42, 0.45);
    border-color: rgba(15, 23, 42, 0.15);
}

.nyehs-footer__hours-day {
    font-weight: 500;
    font-size:   0.74rem;
}

.nyehs-footer__hours-time {
    font-size: 0.77rem;
}

/* ── Bottom bar ──────────────────────────────────────────────────────────── */

.nyehs-footer__bottom {
    position:   relative;
    background: rgba(15, 23, 42, 0.025);
}

.nyehs-footer__bottom::before {
    content:  '';
    position: absolute;
    top:      0;
    left:     clamp(24px, 5vw, 48px);
    right:    clamp(24px, 5vw, 48px);
    height:   1px;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(15, 23, 42, 0.10) 20%,
        rgba(15, 23, 42, 0.10) 80%,
        transparent 100%
    );
}

.nyehs-footer__bottom-inner {
    max-width:   1200px;
    margin:      0 auto;
    padding:     16px clamp(24px, 5vw, 48px);
    display:     flex;
    align-items: center;
    flex-wrap:   wrap;
    gap:         8px 28px;
}

.nyehs-footer__copyright {
    font-size: 0.78rem;
    color:     rgba(15, 23, 42, 0.38);
}

/* ── Legal links ─────────────────────────────────────────────────────────── */

.nyehs-footer__legal {
    display:     flex;
    align-items: center;
    gap:         20px;
}

.nyehs-footer__legal::before {
    content:     '·';
    color:       rgba(15, 23, 42, 0.2);
    font-size:   1rem;
    line-height: 1;
}

.nyehs-footer__legal a {
    font-size:       0.78rem;
    color:           rgba(15, 23, 42, 0.38);
    text-decoration: none;
    transition:      color 0.15s ease;
}

.nyehs-footer__legal a:hover {
    color: rgba(15, 23, 42, 0.7);
}

/* ── Back to top ─────────────────────────────────────────────────────────── */

.nyehs-footer__back-top {
    display:       flex;
    align-items:   center;
    gap:           6px;
    margin-left:   auto;
    padding:       6px 12px 6px 14px;
    border:        1px solid rgba(15, 23, 42, 0.15);
    border-radius: 999px;
    background:    transparent;
    color:         rgba(15, 23, 42, 0.45);
    font-size:     0.75rem;
    font-weight:   500;
    letter-spacing: 0.01em;
    cursor:        pointer;
    transition:    color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
    white-space:   nowrap;
}

.nyehs-footer__back-top:hover {
    color:        #fff;
    background:   #0f172a;
    border-color: #0f172a;
    transform:    translateY(-2px);
}

.nyehs-footer__back-top-icon {
    display:    flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.nyehs-footer__back-top:hover .nyehs-footer__back-top-icon {
    transform: translateY(-2px);
}

/* ── Mobile ──────────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
.nyehs-footer__inner,
    .nyehs-footer__inner--no-nl {
        grid-template-columns: 1fr 1fr;
        row-gap:               40px;
    }

    .nyehs-footer__brand {
        grid-column:    1 / -1;
        flex-direction: row;
        flex-wrap:      wrap;
        align-items:    flex-start;
        gap:            24px 40px;
    }

    .nyehs-footer__contact {
        flex:       0 0 100%;
        padding-top: 16px;
    }

    .nyehs-footer__nl-col {
        grid-column: 2 / 3;
    }
}

@media (max-width: 600px) {
    .nyehs-footer {
        border-radius: 20px 20px 0 0;
    }

    .nyehs-footer__inner,
    .nyehs-footer__inner--no-nl {
        grid-template-columns: 1fr;
        padding-bottom:        40px;
    }

    .nyehs-footer__brand {
        flex-direction: column;
        gap:            20px;
    }

    .nyehs-footer__nl-col {
        grid-column: auto;
    }
}
