/*
Theme Name: Hello Elementor Child
Theme URI: https://elementor.com/hello-theme/
Description: 엘림아동발달센터 송현점용 Hello Elementor 하위테마
Author: Elim Child Development Center
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
*/

/* =========================================================
   엘림아동발달센터 송현점 Header / Footer 공통 CSS
   적용 위치: Child Theme style.css 맨 아래에 추가
   ========================================================= */

:root {
    --elim-orange: #c66f3d;
    --elim-orange-dark: #a95328;
    --elim-brown: #49372f;
    --elim-ink: #352d29;
    --elim-muted: #756b65;
    --elim-cream: #fbf8f4;
    --elim-beige: #f1e5da;
    --elim-line: #e3d8d1;
}

body.elim-menu-lock {
    overflow: hidden;
}

/* Hello Elementor/Elementor의 전역 버튼 테두리가 헤더 메뉴에 적용되지 않도록 초기화 */
.elim-site-header button,
.elim-site-header button:hover,
.elim-site-header button:focus,
.elim-site-header button:focus-visible,
.elim-site-header button:active {
    appearance: none;
    -webkit-appearance: none;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.elim-skip-link {
    position: fixed;
    top: -100px;
    left: 20px;
    z-index: 10000;
    padding: 12px 18px;
    background: var(--elim-orange);
    color: #fff;
    text-decoration: none;
}

.elim-skip-link:focus {
    top: 15px;
}

.elim-site-header,
.elim-site-footer {
    font-family: "Pretendard", "Noto Sans KR", sans-serif;
    word-break: keep-all;
}

.elim-site-header * ,
.elim-site-footer * {
    box-sizing: border-box;
}

.elim-site-header a,
.elim-site-footer a {
    color: inherit;
    text-decoration: none;
}

/* Header */
.elim-site-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid rgba(227, 216, 209, 0.75);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.elim-site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(73, 55, 47, 0.08);
}

.elim-header-inner {
    display: flex;
    width: min(1400px, calc(100% - 60px));
    height: 90px;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.elim-brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
    color: var(--elim-ink);
}

.elim-brand img {
    display: block;
    width: auto;
    max-width: 220px;
    max-height: 52px;
}

.elim-brand-mark,
.elim-footer-mark {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--elim-orange);
    color: #fff;
    font-family: Georgia, serif;
    font-size: 23px;
    font-weight: 700;
}

.elim-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.elim-brand-text strong {
    font-size: 18px;
    letter-spacing: -0.04em;
}

.elim-brand-text small {
    margin-top: 3px;
    color: var(--elim-orange-dark);
    font-size: 11px;
    letter-spacing: 0.15em;
}

.elim-main-menu {
    display: flex;
    margin: 0;
    padding: 0;
    align-items: center;
    list-style: none;
}

.elim-menu-item {
    position: relative;
}

.elim-menu-link,
.elim-menu-label {
    display: inline-flex !important;
    height: 90px;
    padding: 0 21px;
    align-items: center !important;
    flex-direction: row !important;
    justify-content: center;
    white-space: nowrap;
    border: 0;
    background: transparent;
    color: var(--elim-ink);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.25s ease;
}

.elim-menu-label:hover,
.elim-menu-label:focus,
.elim-menu-label:focus-visible,
.elim-menu-label:active {
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.elim-has-submenu > .elim-menu-link::after,
.elim-has-submenu > .elim-menu-label::after {
    content: "";
    display: block;
    position: static;
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    margin: -4px 0 0 9px !important;
    padding: 0;
    border: 0 !important;
    border-right: 1.5px solid currentColor !important;
    border-bottom: 1.5px solid currentColor !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    transform: rotate(45deg);
}

.elim-menu-item:hover > .elim-menu-link,
.elim-menu-item:hover > .elim-menu-label,
.elim-menu-item:focus-within > .elim-menu-link,
.elim-menu-item:focus-within > .elim-menu-label {
    color: var(--elim-orange);
}

.elim-submenu {
    position: absolute;
    top: calc(100% - 1px);
    left: 50%;
    width: 190px;
    margin: 0;
    padding: 13px;
    visibility: hidden;
    list-style: none;
    background: #fff;
    border: 1px solid var(--elim-line);
    box-shadow: 0 18px 38px rgba(73, 55, 47, 0.12);
    opacity: 0;
    transform: translate(-50%, 12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.elim-menu-item:hover > .elim-submenu,
.elim-menu-item:focus-within > .elim-submenu {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, 0);
}

.elim-submenu a {
    display: block;
    padding: 12px 14px;
    color: var(--elim-muted);
    font-size: 14px;
    transition: background 0.2s ease, color 0.2s ease, padding 0.2s ease;
}

.elim-submenu a:hover,
.elim-submenu a:focus {
    padding-left: 19px;
    background: var(--elim-cream);
    color: var(--elim-orange-dark);
}

.elim-header-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
}

.elim-header-cta {
    display: inline-flex;
    min-width: 112px;
    height: 45px;
    align-items: center;
    justify-content: center;
    background: var(--elim-orange);
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.25s ease;
}

.elim-header-cta:hover {
    background: var(--elim-orange-dark);
}

.elim-menu-toggle {
    display: none !important;
    position: relative;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    transition: opacity 0.25s ease;
}

.elim-menu-toggle:hover {
    background: transparent;
    opacity: 0.68;
}

.elim-menu-toggle span {
    position: absolute;
    left: 50%;
    width: 28px;
    height: 2.5px;
    border-radius: 2px;
    background: var(--elim-ink);
    transform: translateX(-50%);
    transition: top 0.3s ease, transform 0.3s ease, opacity 0.2s ease;
}

.elim-menu-toggle span:nth-child(1) { top: 12px; }
.elim-menu-toggle span:nth-child(2) { top: 20px; }
.elim-menu-toggle span:nth-child(3) { top: 28px; }

.elim-site-header.is-menu-open .elim-menu-toggle span:nth-child(1) {
    top: 20px;
    transform: translateX(-50%) rotate(45deg);
}

.elim-site-header.is-menu-open .elim-menu-toggle span:nth-child(2) {
    opacity: 0;
}

.elim-site-header.is-menu-open .elim-menu-toggle span:nth-child(3) {
    top: 20px;
    transform: translateX(-50%) rotate(-45deg);
}

.elim-mobile-panel {
    display: none;
}

/* Footer */
.elim-site-footer {
    background: var(--elim-brown);
    color: #fff;
}

.elim-footer-main {
    padding: 85px 0 70px;
}

.elim-footer-inner {
    display: grid;
    width: min(1280px, calc(100% - 80px));
    margin: 0 auto;
    grid-template-columns: 1fr 1.45fr 0.75fr;
    gap: 8%;
}

.elim-footer-brand > a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.elim-footer-brand > a > span:last-child {
    display: flex;
    flex-direction: column;
}

.elim-footer-brand strong {
    font-size: 18px;
}

.elim-footer-brand small {
    margin-top: 4px;
    color: #eebd9f;
    font-size: 11px;
    letter-spacing: 0.14em;
}

.elim-footer-brand > p {
    margin: 30px 0 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.8;
}

.elim-footer-navigation {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.elim-footer-navigation > div,
.elim-footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.elim-footer-title {
    display: block;
    margin-bottom: 23px;
    color: #fff;
    font-size: 14px;
}

.elim-footer-navigation a {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 13px;
    transition: color 0.2s ease;
}

.elim-footer-navigation a:hover {
    color: #f1b28b;
}

.elim-footer-phone {
    color: #f2b995 !important;
    font-size: 23px;
    font-weight: 700;
}

.elim-footer-contact > p {
    margin: 12px 0 23px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 13px;
    line-height: 1.7;
}

.elim-footer-button {
    display: flex;
    width: 100%;
    min-width: 195px;
    padding: 15px 17px;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff !important;
    font-size: 13px;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.elim-footer-button:hover {
    border-color: var(--elim-orange);
    background: var(--elim-orange);
}

.elim-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.elim-footer-bottom-inner {
    display: flex;
    width: min(1280px, calc(100% - 80px));
    min-height: 95px;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.elim-business-info {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 11px;
}

.elim-footer-policy {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-end;
    gap: 7px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 10px;
}

.elim-footer-policy a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 12px;
    font-weight: 700;
}

.elim-floating-call {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 9000;
    display: flex;
    height: 55px;
    padding: 0 21px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 30px;
    background: #e53935;
    box-shadow: 0 10px 28px rgba(135, 16, 16, 0.28);
    color: #111 !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.25s ease;
}

.elim-floating-call:hover {
    background: #c62828;
    color: #000 !important;
    transform: translateY(-3px);
}

.elim-floating-call svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

/* 햄버거 메뉴는 모바일 화면에서만 사용 */
@media (max-width: 767px) {
    .elim-desktop-nav {
        display: none;
    }

    .elim-menu-toggle {
        display: block !important;
    }

    .elim-mobile-panel {
        display: block;
        position: fixed;
        top: 81px;
        right: 0;
        bottom: 0;
        width: min(480px, 100%);
        visibility: hidden;
        overflow-y: auto;
        background: #fff;
        box-shadow: -15px 20px 40px rgba(73, 55, 47, 0.13);
        opacity: 0;
        transform: translateX(100%);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    }

    .elim-site-header.is-menu-open .elim-mobile-panel {
        visibility: visible;
        opacity: 1;
        transform: translateX(0);
    }

    .elim-mobile-panel-inner {
        min-height: 100%;
        padding: 25px 32px 45px;
    }

    .elim-mobile-menu,
    .elim-mobile-menu ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .elim-mobile-group,
    .elim-mobile-single {
        border-bottom: 1px solid var(--elim-line);
    }

    .elim-mobile-group-toggle,
    .elim-mobile-parent-row,
    .elim-mobile-single > a {
        width: 100%;
        min-height: 61px;
    }

    .elim-mobile-group > .elim-mobile-group-toggle,
    .elim-mobile-parent-row,
    .elim-mobile-single > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .elim-mobile-group-toggle {
        padding: 0;
        border: 0;
        background: transparent;
        color: var(--elim-ink);
        font: inherit;
        font-size: 18px;
        font-weight: 700;
        text-align: left;
        cursor: pointer;
    }

    .elim-mobile-parent-row > a,
    .elim-mobile-single > a {
        color: var(--elim-ink);
        font-size: 18px;
        font-weight: 700;
    }

    .elim-mobile-parent-row .elim-mobile-group-toggle {
        width: 45px;
        min-height: 61px;
        justify-content: flex-end;
        text-align: right;
    }

    .elim-mobile-group-toggle span {
        color: var(--elim-orange);
        font-size: 20px;
        font-weight: 400;
        transition: transform 0.25s ease;
    }

    .elim-mobile-group.is-open > .elim-mobile-group-toggle span,
    .elim-mobile-group.is-open > .elim-mobile-parent-row .elim-mobile-group-toggle span {
        transform: rotate(45deg);
    }

    .elim-mobile-group > ul {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.3s ease;
    }

    .elim-mobile-group.is-open > ul {
        max-height: 760px;
        padding: 4px 0 18px;
        opacity: 1;
    }

    .elim-mobile-group > ul a {
        display: block;
        padding: 9px 14px;
        color: var(--elim-muted);
        font-size: 14px;
    }

    .elim-mobile-contact {
        margin-top: 38px;
        padding: 25px;
        background: var(--elim-cream);
    }

    .elim-mobile-contact span,
    .elim-mobile-contact a {
        display: block;
    }

    .elim-mobile-contact span {
        color: var(--elim-muted);
        font-size: 12px;
    }

    .elim-mobile-contact a {
        margin-top: 8px;
        color: var(--elim-orange-dark);
        font-size: 21px;
        font-weight: 700;
    }

    .elim-footer-inner {
        grid-template-columns: 1fr 1.5fr;
    }

    .elim-footer-contact {
        grid-column: 1 / -1;
        padding-top: 35px;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .elim-footer-button {
        width: auto;
    }
}

@media (max-width: 767px) {
    .elim-header-inner {
        width: calc(100% - 30px);
        height: 76px;
    }

    .elim-brand-mark {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }

    .elim-brand-text strong {
        font-size: 15px;
    }

    .elim-brand-text small {
        font-size: 9px;
    }

    .elim-header-cta {
        display: none;
    }

    .elim-menu-toggle {
        width: 43px;
        height: 43px;
    }

    .elim-mobile-panel {
        top: 76px;
        width: 100%;
    }

    .elim-mobile-panel-inner {
        padding: 18px 22px 40px;
    }

    .elim-footer-main {
        padding: 65px 0 50px;
    }

    .elim-footer-inner {
        width: calc(100% - 36px);
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .elim-footer-navigation {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px 20px;
    }

    .elim-footer-contact {
        grid-column: auto;
    }

    .elim-footer-bottom-inner {
        display: block;
        width: calc(100% - 36px);
        padding: 27px 0;
    }

    .elim-business-info {
        display: block;
        line-height: 1.8;
    }

    .elim-business-info span {
        display: block;
    }

    .elim-footer-policy {
        margin-top: 20px;
        align-items: flex-start;
        line-height: 1.6;
    }

    .elim-floating-call {
        right: 15px;
        bottom: 15px;
        width: 52px;
        height: 52px;
        padding: 0;
    }

    .elim-floating-call span {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .elim-site-header *,
    .elim-site-footer *,
    .elim-floating-call {
        transition-duration: 0.01ms !important;
    }
}
