/*
Theme Name: EssaySnap Landing
Description: EssaySnap's bilingual marketing site and publishing theme.
Version: 1.2.1
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: essaysnap-landing
*/

.pe-heading-reset { margin: 0; }
.pe-skip-link { position: absolute; left: -9999px; z-index: 10000; }
.pe-skip-link:focus { left: 1rem; top: 1rem; padding: .75rem 1rem; background: white; color: black; }

.pe-support-guide {
    box-sizing: border-box;
    max-width: 72rem;
    margin: 0 auto;
    padding: clamp(1.5rem, 5vw, 4rem) clamp(1rem, 5vw, 3rem);
}
.pe-support-guide h2 { margin-top: 0; }
.pe-support-guide p { max-width: 68ch; }
.pe-support-guide a { text-decoration: underline; text-underline-offset: .15em; }

.es-form-heading{margin:0 0 1rem}.es-notice,.es-error{max-width:70rem;margin:2rem auto;padding:1rem}.es-error{min-height:50vh}

.es-home {
    --es-green: #176b45;
    --es-green-hover: #104d33;
    --es-ink: #173329;
    --es-muted: #466157;
    --es-border: #b2cdbf;
    --es-paper: #f1f8f4;
    --es-float-size: 56px;
    --es-float-inset: 20px;
}

.es-home .navbar-logo-left {
    position: relative;
    border-bottom: 1px solid #e0ebe4;
    box-shadow: none;
}

.es-home .hero-section.main {
    padding: clamp(32px, 4vw, 54px) 0;
    background: var(--es-paper);
}

.es-home .hero-section.main .hero-overlay { background: #f1f8f4f2; }
.es-home .hero-section-main-wrapper { gap: clamp(20px, 4vw, 58px); }
.es-home .hero-section-content-wrapper { margin: 0; min-width: 0; }
.es-home .hero-heading-wrapper,
.es-home .hero-subheading-wrapper { opacity: 1 !important; }

.es-home .hero-heading-wrapper { display: flex; flex-direction: column; gap: 10px; }
.es-home .hero-heading {
    order: -1;
    margin: 0;
    color: var(--es-ink);
    font-size: clamp(36px, 3.8vw, 54px);
    font-weight: 700;
    line-height: 1.14;
    letter-spacing: -.025em;
    text-wrap: pretty;
}

.es-home:lang(zh-HK) .hero-heading { word-break: keep-all; text-wrap: balance; }

.es-home .hero-heading-wrapper .text-span {
    align-self: flex-start;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: var(--es-green);
    font-size: clamp(15px, 1.6vw, 20px);
    font-weight: 700;
    line-height: 1.4;
}

.es-home .hero-subheading-wrapper { padding: 0; margin: 14px 0 20px; }
.es-home .hero-subheading {
    max-width: 68ch;
    margin: 0;
    color: var(--es-muted);
    font-size: 16px;
    line-height: 1.6;
}

.es-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.es-hero-actions a {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 8px 22px;
    border: 1px solid var(--es-green);
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    transition: background-color .18s ease, border-color .18s ease;
}

.es-hero-quote { background: var(--es-green); color: #fff; }
.es-hero-quote:hover { background: var(--es-green-hover); border-color: var(--es-green-hover); color: #fff; }
.es-hero-signup { background: #fff; color: var(--es-green); }
.es-hero-signup:hover { background: #e2f1e7; color: var(--es-green-hover); }
.es-hero-hint { margin: 9px 0 0; color: var(--es-muted); font-size: 13px; line-height: 1.45; }

.es-home .hero-tutor-box { height: clamp(216px, 26vw, 330px); transform: none; }

.es-home .sub-hero-section { padding-top: 26px; background-color: #ebf4ef; }
.es-home .sub-hero-section .form-dash {
    margin: 0 auto 30px;
    padding: 18px;
    border: 1px solid var(--es-border);
    box-shadow: none;
}

.es-home .sub-hero-section .form-2 { align-items: end; }
.es-home .es-picker-field { display: grid; flex: 1 1 0; min-width: 0; gap: 5px; }
.es-home .es-picker-field label {
    margin: 0;
    color: var(--es-ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.es-home .sub-hero-section .select-field {
    min-width: 0;
    padding-inline: 10px;
    border: 1px solid var(--es-border);
    border-radius: 10px;
    color: var(--es-ink);
    font-size: 16px;
    text-overflow: ellipsis;
}
.es-home .sub-hero-section .select-field:has(option[value=""]:checked) { color: var(--es-muted); }

.es-home .sub-hero-section .form-2 .link-block {
    min-height: 50px;
    border-color: var(--es-border);
    border-radius: 10px;
    color: var(--es-green);
}
.es-home .sub-hero-section .form-2 .text-block-25 { color: inherit; }

.es-home .float-sign,
.es-home .whats-app-logo-wrapper {
    bottom: calc(var(--es-float-inset) + env(safe-area-inset-bottom, 0px));
    height: var(--es-float-size);
    border-radius: 999px;
    box-shadow: 0 4px 12px rgb(23 51 41 / 22%);
}

.es-home .float-sign {
    left: calc(var(--es-float-inset) + env(safe-area-inset-left, 0px));
    gap: 6px;
    padding: 0 14px;
    background: var(--es-green);
    white-space: nowrap;
}

.es-home .float-sign:hover { background: var(--es-green-hover); }
.es-home .float-sign .qoute-icon { width: 20px; height: 20px; }
.es-home .float-sign .text-block-42 { font-size: 14px; font-weight: 700; line-height: 1.25; }
.es-home .whats-app-logo-wrapper {
    right: calc(var(--es-float-inset) + env(safe-area-inset-right, 0px));
    width: var(--es-float-size);
}
.es-home .whats-app-logo-wrapper img { display: block; width: 100%; height: 100%; }

.es-home .navbar-logo-left :focus-visible,
.es-home main :focus-visible,
.es-home .whats-app-logo-wrapper:focus-visible,
.es-home .float-sign:focus-visible {
    outline: 2px solid var(--es-green);
    outline-offset: 3px;
}

.es-home .hero-section ::selection { background: #cfe8d8; color: var(--es-ink); }

@media (max-width: 991px) {
    .es-home .navbar-wrapper { gap: 8px; }
    .es-home .language-div { display: flex; margin-left: auto; }
    .es-home:lang(zh-HK) .language-div .china,
    .es-home:lang(en) .language-div .english { display: none; }
    .es-home .language-div a {
        display: grid;
        place-items: center;
        min-width: 44px;
        min-height: 44px;
        padding: 0 10px;
        border: 1px solid var(--es-border);
        border-radius: 10px;
        background: #fff;
        color: var(--es-green);
        font-weight: 700;
    }
    .es-home .hero-section-main-wrapper { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
    .es-home .menu-button {
        display: grid !important;
        place-items: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 1px solid var(--es-border);
        border-radius: 10px;
        color: var(--es-ink);
    }
    .es-home .menu-button.w--open { color: var(--es-ink); background: #e2f1e7; }
    .es-home .w-icon-nav-menu {
        position: static;
        display: block;
        width: 18px;
        height: 12px;
        border-block: 2px solid currentColor;
    }
    .es-home .w-icon-nav-menu::before {
        display: block;
        margin-top: 3px;
        border-top: 2px solid currentColor;
        content: "";
    }
}

@media (max-width: 767px) {
    .es-home { --es-float-size: 52px; --es-float-inset: 12px; }
    .es-home .hero-section.main { padding: 26px 0 16px; }
    .es-home .hero-section.main .hero-bg { display: none; }
    .es-home .hero-section-main-wrapper { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .es-home .hero-heading { font-size: clamp(30px, 8.3vw, 40px); }
    .es-home .hero-subheading-wrapper { margin: 12px 0 17px; }
    .es-home .hero-subheading { font-size: 15px; }
    .es-hero-actions {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .es-hero-actions a { padding-inline: 9px; }
    .es-home .hero-tutor-box { height: 136px; }
    .es-home .hero-tutor-box .hero-image { width: 108px; }
    .es-home .sub-hero-section { padding-top: 16px; }
    .es-home .sub-hero-section .form-dash { padding: 12px; }
}

@media (max-width: 479px) {
    .es-home .nav-logo { font-size: 18px; }
    .es-home .sub-hero-section .form-2 {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }
    .es-home .sub-hero-section .form-2 .link-block { grid-column: 1 / -1; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .es-hero-actions a { transition: none; }
    .es-home .hero-section.main .hero-bg,
    .es-home .hero-tutor-box .blue-circle { visibility: hidden; }
}
