/*
Theme Name: ES Crafts
Theme URI: https://example.com
Author: ES Crafts
Description: Custom modern WordPress theme for ES Crafts glassware.
Version: 1.0
Text Domain: escrafts
*/

/* ============================================================
   ES CRAFTS COLOUR PALETTE
   ============================================================ */

:root {
    --white: #FFFFFF;
    --blue-dark: #021D90;
    --blue-primary: #1631A2;
    --blue-medium: #4A61BE;
    --blue-light: #7D8EE4;
    --blue-soft: #8A99DA;

    --text-dark: #111827;
    --text-grey: #5F6675;
    --bg-soft: #F7F9FF;
    --border: rgba(2, 29, 144, 0.12);
}

/* ============================================================
   RESET
   ============================================================ */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    background: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================================
   HEADER
   ============================================================ */

.es-header {
    position: sticky;
    top: 0;
    z-index: 9999;

    width: 100%;
    background: rgba(255, 255, 255, 0.96);

    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    box-shadow: 0 5px 25px rgba(2, 29, 144, 0.06);
}

.es-header-inner {
    width: min(1400px, calc(100% - 48px));
    min-height: 86px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* ============================================================
   LOGO
   ============================================================ */

.es-logo {
    display: flex;
    align-items: center;
    gap: 13px;
    flex-shrink: 0;
}

.es-logo-mark {
    width: 47px;
    height: 47px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            var(--blue-dark),
            var(--blue-primary),
            var(--blue-medium)
        );

    color: var(--white);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -1px;

    box-shadow: 0 8px 25px rgba(22, 49, 162, 0.22);
}

.es-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.es-logo-name {
    color: var(--blue-dark);
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.es-logo-sub {
    margin-top: 6px;

    color: var(--blue-medium);
    font-size: 9px;
    font-weight: 700;

    letter-spacing: 2.4px;
    text-transform: uppercase;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.es-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.es-nav a {
    position: relative;

    padding: 13px 18px;

    color: var(--blue-dark);
    font-size: 15px;
    font-weight: 650;

    border-radius: 12px;

    transition:
        color 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease;
}

.es-nav a::after {
    content: "";

    position: absolute;
    left: 50%;
    bottom: 7px;

    width: 0;
    height: 2px;

    background: var(--blue-medium);
    border-radius: 10px;

    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.es-nav a:hover {
    color: var(--blue-primary);
    background: rgba(125, 142, 228, 0.1);
    transform: translateY(-1px);
}

.es-nav a:hover::after {
    width: 34%;
}

.es-nav a.active {
    color: var(--blue-primary);
    background: rgba(125, 142, 228, 0.12);
}

.es-nav a.active::after {
    width: 34%;
}

/* ============================================================
   MOBILE MENU
   ============================================================ */

.es-menu-toggle {
    display: none;

    width: 46px;
    height: 46px;

    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: var(--white);
    cursor: pointer;
}

.es-menu-lines {
    width: 21px;
    height: 15px;
    position: relative;
}

.es-menu-lines span {
    position: absolute;
    left: 0;

    width: 100%;
    height: 2px;

    background: var(--blue-dark);
    border-radius: 10px;

    transition: 0.3s ease;
}

.es-menu-lines span:nth-child(1) {
    top: 0;
}

.es-menu-lines span:nth-child(2) {
    top: 6px;
}

.es-menu-lines span:nth-child(3) {
    top: 12px;
}

/* ============================================================
   HERO
   ============================================================ */

.es-hero {
    position: relative;
    overflow: hidden;

    min-height: 680px;

    display: flex;
    align-items: center;

    background:
        radial-gradient(
            circle at 80% 30%,
            rgba(138,153,218,0.42),
            transparent 34%
        ),
        radial-gradient(
            circle at 65% 80%,
            rgba(74,97,190,0.22),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #FFFFFF 0%,
            #F6F8FF 42%,
            #E9EDFF 100%
        );
}

.es-hero::before {
    content: "";

    position: absolute;
    width: 430px;
    height: 430px;

    right: -140px;
    top: -130px;

    border-radius: 50%;

    border: 1px solid rgba(2,29,144,0.09);
}

.es-hero::after {
    content: "";

    position: absolute;

    width: 330px;
    height: 330px;

    right: 60px;
    bottom: -210px;

    border-radius: 50%;
    background: rgba(125,142,228,0.10);
}

.es-hero-inner {
    position: relative;
    z-index: 2;

    width: min(1400px, calc(100% - 48px));
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1.1fr 0.9fr;

    gap: 70px;
    align-items: center;
}

.es-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 23px;

    color: var(--blue-primary);
    font-size: 12px;
    font-weight: 800;

    letter-spacing: 2.3px;
    text-transform: uppercase;
}

.es-eyebrow::before {
    content: "";

    width: 34px;
    height: 2px;

    background: var(--blue-medium);
    border-radius: 10px;
}

.es-hero h1 {
    max-width: 780px;

    color: var(--blue-dark);

    font-size: clamp(48px, 6vw, 82px);
    line-height: 0.98;
    letter-spacing: -3px;

    font-weight: 800;
}

.es-hero h1 span {
    display: block;

    background:
        linear-gradient(
            90deg,
            var(--blue-primary),
            var(--blue-medium),
            var(--blue-light)
        );

    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.es-hero-description {
    max-width: 630px;

    margin-top: 27px;

    color: var(--text-grey);
    font-size: 18px;
    line-height: 1.8;
}

.es-hero-actions {
    margin-top: 34px;

    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.es-btn {
    min-height: 52px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 28px;

    border-radius: 14px;

    font-size: 14px;
    font-weight: 750;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.es-btn-primary {
    color: var(--white);

    background:
        linear-gradient(
            135deg,
            var(--blue-dark),
            var(--blue-primary),
            var(--blue-medium)
        );

    box-shadow: 0 12px 30px rgba(22,49,162,0.22);
}

.es-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 17px 36px rgba(22,49,162,0.30);
}

.es-btn-secondary {
    color: var(--blue-dark);

    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(2,29,144,0.14);
}

.es-btn-secondary:hover {
    transform: translateY(-3px);
    background: var(--white);
}

/* ============================================================
   HERO GLASS CARD
   ============================================================ */

.es-hero-art {
    position: relative;

    min-height: 470px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.es-glass-card {
    width: min(420px, 100%);
    min-height: 420px;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 42px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.86),
            rgba(138,153,218,0.22)
        );

    border: 1px solid rgba(255,255,255,0.88);

    box-shadow:
        0 40px 90px rgba(2,29,144,0.14),
        inset 0 1px 0 rgba(255,255,255,0.9);

    backdrop-filter: blur(18px);
}

.es-glass-icon {
    position: relative;

    width: 175px;
    height: 230px;
}

.es-glass-bowl {
    position: absolute;
    top: 0;
    left: 17px;

    width: 141px;
    height: 132px;

    border: 8px solid var(--blue-primary);
    border-top-width: 5px;

    border-radius: 18px 18px 72px 72px;

    background:
        linear-gradient(
            160deg,
            rgba(255,255,255,0.7),
            rgba(125,142,228,0.18)
        );

    box-shadow:
        inset 15px 12px 18px rgba(255,255,255,0.65),
        0 18px 30px rgba(2,29,144,0.12);
}

.es-glass-stem {
    position: absolute;

    width: 8px;
    height: 73px;

    left: 84px;
    top: 128px;

    background: var(--blue-primary);
    border-radius: 10px;
}

.es-glass-base {
    position: absolute;

    width: 94px;
    height: 9px;

    bottom: 17px;
    left: 41px;

    background: var(--blue-primary);
    border-radius: 50%;
}

/* ============================================================
   GENERAL SECTIONS
   ============================================================ */

.es-section {
    padding: 95px 0;
}

.es-container {
    width: min(1400px, calc(100% - 48px));
    margin: 0 auto;
}

.es-section-heading {
    max-width: 760px;
    margin-bottom: 48px;
}

.es-section-label {
    margin-bottom: 10px;

    color: var(--blue-medium);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 2.3px;
    text-transform: uppercase;
}

.es-section-title {
    color: var(--blue-dark);

    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.08;
    letter-spacing: -1.6px;
}

.es-section-text {
    margin-top: 15px;

    color: var(--text-grey);
    font-size: 17px;

    max-width: 690px;
}

/* ============================================================
   COLLECTION CARDS
   ============================================================ */

.es-collections {
    background: var(--white);
}

.es-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.es-card {
    position: relative;
    overflow: hidden;

    min-height: 330px;

    padding: 34px;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    border-radius: 25px;

    background:
        linear-gradient(
            145deg,
            #FFFFFF,
            #F3F5FF
        );

    border: 1px solid var(--border);

    box-shadow: 0 15px 40px rgba(2,29,144,0.07);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.es-card::before {
    content: "";

    position: absolute;

    width: 170px;
    height: 170px;

    top: -60px;
    right: -50px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            rgba(125,142,228,0.26),
            rgba(22,49,162,0.04)
        );

    transition: transform 0.4s ease;
}

.es-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 25px 60px rgba(2,29,144,0.12);
}

.es-card:hover::before {
    transform: scale(1.18);
}

.es-card-number {
    position: absolute;
    top: 28px;
    left: 30px;

    color: rgba(2,29,144,0.14);

    font-size: 55px;
    font-weight: 800;
}

.es-card h3 {
    position: relative;
    z-index: 2;

    color: var(--blue-dark);
    font-size: 24px;
    line-height: 1.15;
}

.es-card p {
    position: relative;
    z-index: 2;

    margin-top: 10px;

    color: var(--text-grey);
    font-size: 14px;
}

/* ============================================================
   FEATURE SECTION
   ============================================================ */

.es-feature {
    background:
        linear-gradient(
            135deg,
            var(--blue-dark),
            var(--blue-primary) 42%,
            var(--blue-medium)
        );

    color: var(--white);
}

.es-feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.es-feature h2 {
    font-size: clamp(38px, 5vw, 60px);
    line-height: 1.04;
    letter-spacing: -2px;
}

.es-feature p {
    margin-top: 22px;

    max-width: 620px;

    color: rgba(255,255,255,0.80);
    font-size: 17px;
    line-height: 1.8;
}

.es-feature-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.es-feature-box {
    min-height: 160px;

    padding: 28px;

    border-radius: 21px;

    background: rgba(255,255,255,0.11);
    border: 1px solid rgba(255,255,255,0.16);

    backdrop-filter: blur(10px);
}

.es-feature-box strong {
    display: block;

    font-size: 20px;
    margin-bottom: 6px;
}

.es-feature-box span {
    color: rgba(255,255,255,0.72);
    font-size: 13px;
}

/* ============================================================
   PAGE HERO
   ============================================================ */

.es-page-hero {
    padding: 100px 0 75px;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(125,142,228,0.3),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #FFFFFF,
            #EEF1FF
        );

    border-bottom: 1px solid var(--border);
}

.es-page-hero h1 {
    color: var(--blue-dark);

    font-size: clamp(44px, 6vw, 70px);
    line-height: 1;
    letter-spacing: -2.5px;
}

.es-page-hero p {
    margin-top: 20px;

    max-width: 650px;

    color: var(--text-grey);
    font-size: 17px;
}

/* ============================================================
   SHOP
   ============================================================ */

.es-shop-placeholder {
    max-width: 850px;

    margin: 0 auto;
    padding: 65px 45px;

    text-align: center;

    border-radius: 30px;

    background:
        linear-gradient(
            145deg,
            #FFFFFF,
            #F1F4FF
        );

    border: 1px solid var(--border);
    box-shadow: 0 20px 55px rgba(2,29,144,0.08);
}

.es-shop-placeholder h2 {
    color: var(--blue-dark);
    font-size: 35px;
}

.es-shop-placeholder p {
    max-width: 620px;
    margin: 17px auto 0;

    color: var(--text-grey);
}

/* ============================================================
   GALLERY
   ============================================================ */

.es-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.es-gallery-item {
    min-height: 320px;

    position: relative;
    overflow: hidden;

    display: flex;
    align-items: flex-end;

    padding: 28px;

    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            #EDF1FF,
            #DDE3FF
        );

    border: 1px solid var(--border);

    transition: transform 0.3s ease;
}

.es-gallery-item:hover {
    transform: translateY(-5px);
}

.es-gallery-item::before {
    content: "ES";
    position: absolute;

    right: 25px;
    top: 18px;

    color: rgba(2,29,144,0.10);

    font-size: 100px;
    font-weight: 900;
}

.es-gallery-item h3 {
    position: relative;
    z-index: 2;

    color: var(--blue-dark);
    font-size: 21px;
}

/* ============================================================
   CONTACT
   ============================================================ */

.es-contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;

    gap: 50px;
}

.es-contact-info,
.es-contact-form {
    padding: 38px;

    border-radius: 25px;
    border: 1px solid var(--border);

    background: var(--white);

    box-shadow: 0 17px 45px rgba(2,29,144,0.07);
}

.es-contact-info h2,
.es-contact-form h2 {
    color: var(--blue-dark);
    font-size: 29px;
}

.es-contact-info p {
    margin-top: 15px;
    color: var(--text-grey);
}

.es-contact-detail {
    margin-top: 25px;
    padding-top: 20px;

    border-top: 1px solid var(--border);
}

.es-contact-detail strong {
    color: var(--blue-primary);
}

/* ============================================================
   WORDPRESS CONTENT
   ============================================================ */

.es-page-content {
    padding: 75px 0;
}

.es-page-content h2,
.es-page-content h3 {
    color: var(--blue-dark);
    margin: 25px 0 12px;
}

.es-page-content p {
    margin-bottom: 18px;
}

/* ============================================================
   FOOTER
   ============================================================ */

.es-footer {
    background: #011468;
    color: var(--white);
}

.es-footer-main {
    padding: 58px 0;

    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;

    gap: 55px;
}

.es-footer-logo {
    font-size: 26px;
    font-weight: 800;
}

.es-footer-description {
    max-width: 430px;

    margin-top: 14px;

    color: rgba(255,255,255,0.66);
    font-size: 14px;
}

.es-footer h4 {
    margin-bottom: 14px;
    font-size: 14px;
}

.es-footer-links {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.es-footer-links a {
    color: rgba(255,255,255,0.67);
    font-size: 14px;
    transition: color 0.2s ease;
}

.es-footer-links a:hover {
    color: var(--white);
}

.es-footer-bottom {
    padding: 19px 0;

    border-top: 1px solid rgba(255,255,255,0.10);

    color: rgba(255,255,255,0.48);
    font-size: 12px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {

    .es-header-inner {
        min-height: 74px;
    }

    .es-menu-toggle {
        display: flex;
    }

    .es-nav {
        position: absolute;

        left: 24px;
        right: 24px;
        top: 81px;

        display: none;
        flex-direction: column;
        align-items: stretch;

        padding: 15px;

        background: rgba(255,255,255,0.98);

        border: 1px solid var(--border);
        border-radius: 18px;

        box-shadow: 0 20px 50px rgba(2,29,144,0.14);
    }

    .es-nav.open {
        display: flex;
    }

    .es-nav a {
        width: 100%;
        padding: 14px 16px;
    }

    .es-hero {
        min-height: auto;
        padding: 75px 0;
    }

    .es-hero-inner {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .es-hero-art {
        min-height: 350px;
    }

    .es-glass-card {
        min-height: 350px;
    }

    .es-card-grid,
    .es-gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .es-feature-grid,
    .es-contact-grid {
        grid-template-columns: 1fr;
    }

    .es-footer-main {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 620px) {

    .es-header-inner,
    .es-hero-inner,
    .es-container {
        width: min(100% - 30px, 1400px);
    }

    .es-logo-name {
        font-size: 20px;
    }

    .es-logo-sub {
        display: none;
    }

    .es-hero h1 {
        font-size: 47px;
        letter-spacing: -2px;
    }

    .es-hero-description {
        font-size: 16px;
    }

    .es-hero-actions {
        flex-direction: column;
    }

    .es-btn {
        width: 100%;
    }

    .es-card-grid,
    .es-gallery-grid,
    .es-feature-boxes {
        grid-template-columns: 1fr;
    }

    .es-section {
        padding: 70px 0;
    }

    .es-footer-main {
        grid-template-columns: 1fr;
    }

    .es-contact-info,
    .es-contact-form,
    .es-shop-placeholder {
        padding: 28px 22px;
    }
}

/* ============================================================
   ES CRAFTS - SQUARE SHOP EMBED
   ============================================================ */

.es-square-shop {
    width: 100%;
    background: #FFFFFF;
}

.es-square-header {
    padding: 60px 0 45px;

    background:
        radial-gradient(
            circle at 80% 15%,
            rgba(125, 142, 228, 0.28),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #FFFFFF 0%,
            #F5F7FF 50%,
            #E9EDFF 100%
        );

    border-bottom: 1px solid rgba(2, 29, 144, 0.10);
}

.es-square-header h1 {
    margin: 0;

    color: #021D90;

    font-size: clamp(42px, 6vw, 68px);
    font-weight: 800;

    line-height: 1;
    letter-spacing: -2px;
}

.es-square-header p {
    margin-top: 16px;

    color: #5F6675;
    font-size: 17px;
}

.es-square-store-section {
    width: 100%;
    padding: 0;
    margin: 0;
}

.es-square-frame-wrap {
    width: 100%;
    height: calc(100vh - 145px);

    min-height: 850px;

    overflow: hidden;

    background: #FFFFFF;
}

.es-square-frame {
    width: 100%;
    height: 100%;

    display: block;

    margin: 0;
    padding: 0;

    border: 0;

    background: #FFFFFF;
}

@media (max-width: 768px) {

    .es-square-header {
        padding: 38px 0 30px;
    }

    .es-square-frame-wrap {
        min-height: 900px;
        height: calc(100vh - 120px);
    }

}

/* ============================================================
   ES CRAFTS - FULL WIDTH SQUARE STORE
   ============================================================ */

#es-square-shop {
    display: block !important;

    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden !important;

    background: #FFFFFF;
}

#es-square-store {
    display: block !important;

    width: 100% !important;
    max-width: none !important;

    height: 1400px !important;
    min-height: 100vh !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;

    background: #FFFFFF;
}

/* Remove WordPress page width restrictions */

body.page-template-page-shop main,
body.page-template-page-shop #es-square-shop,
body.page-template-page-shop iframe {
    width: 100% !important;
    max-width: none !important;
}

/* MOBILE */

@media (max-width: 768px) {

    #es-square-store {
        height: 1600px !important;
    }

}

/* ============================================================
   ES CRAFTS WORDPRESS LOGO
   ============================================================ */

.es-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    flex-shrink: 0;

    padding: 0;
    margin: 0;
}


/* REAL WORDPRESS LOGO */

.es-custom-logo {
    display: block;

    width: auto !important;
    height: 64px !important;

    max-width: 300px !important;
    max-height: 64px !important;

    object-fit: contain;
    object-position: left center;

    margin: 0;
    padding: 0;
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 900px) {

    .es-custom-logo {
        height: 56px !important;
        max-height: 56px !important;
        max-width: 260px !important;
    }

}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 620px) {

    .es-custom-logo {
        height: 46px !important;
        max-height: 46px !important;
        max-width: 210px !important;
    }

}

/* ============================================================
   ES CRAFTS SQUARE SHOP
   SINGLE PAGE SCROLLBAR
   ============================================================ */

html,
body {
    overflow-x: hidden;
}


/* MAIN SHOP AREA */

#es-square-shop {
    display: block !important;

    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: visible !important;

    background: #FFFFFF;
}


/* SQUARE CONTAINER */

#es-square-container {
    display: block !important;

    position: relative;

    width: 100% !important;
    max-width: none !important;

    /*
       Square cannot tell WordPress its height because
       it is hosted on another domain.

       Give the catalogue enough room to display fully.
    */

    height: 2400px;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden !important;

    background: #FFFFFF;
}


/* SQUARE WEBSITE */

#es-square-store {
    display: block !important;

    width: 100% !important;
    max-width: none !important;

    height: 2400px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;

    overflow: hidden !important;

    background: #FFFFFF;
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 900px) {

    #es-square-container,
    #es-square-store {
        height: 3000px !important;
    }

}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 620px) {

    #es-square-container,
    #es-square-store {
        height: 3800px !important;
    }

}

/* ============================================================
   ES CRAFTS CONTACT PAGE
   ============================================================ */

.es-contact-card {
    display: flex;
    align-items: center;

    gap: 18px;

    width: 100%;

    margin-top: 16px;
    padding: 18px 20px;

    border: 1px solid rgba(2, 29, 144, 0.11);
    border-radius: 17px;

    background:
        linear-gradient(
            135deg,
            #FFFFFF,
            #F5F7FF
        );

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.es-contact-card:hover {
    transform: translateY(-3px);

    border-color: #7D8EE4;

    box-shadow:
        0 14px 35px
        rgba(2, 29, 144, 0.10);
}


.es-contact-icon {
    width: 48px;
    height: 48px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    color: #FFFFFF;

    font-size: 21px;
    font-weight: 800;

    background:
        linear-gradient(
            135deg,
            #021D90,
            #1631A2,
            #4A61BE
        );

    box-shadow:
        0 8px 20px
        rgba(22, 49, 162, 0.20);
}


.es-contact-small {
    display: block;

    margin-bottom: 2px;

    color: #4A61BE;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.5px;
    text-transform: uppercase;
}


.es-contact-card strong {
    display: block;

    color: #021D90;

    font-size: 15px;

    overflow-wrap: anywhere;
}


/* SOCIAL AREA */

.es-contact-social-note {
    margin-top: 45px;
    padding-top: 30px;

    border-top:
        1px solid
        rgba(2, 29, 144, 0.10);
}

.es-contact-social-note strong {
    color: #021D90;
    font-size: 18px;
}

.es-contact-social-note p {
    margin-top: 8px;

    color: #5F6675;
    font-size: 14px;
}


.es-social-buttons {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 20px;
}


.es-social-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;

    padding: 0 22px;

    border-radius: 12px;

    color: #1631A2;

    font-size: 13px;
    font-weight: 750;

    background: #FFFFFF;

    border:
        1px solid
        rgba(22, 49, 162, 0.18);

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}


.es-social-button:hover {
    color: #FFFFFF;

    background:
        linear-gradient(
            135deg,
            #021D90,
            #1631A2,
            #4A61BE
        );

    transform: translateY(-2px);
}


@media (max-width: 620px) {

    .es-contact-card {
        padding: 15px;
    }

    .es-social-buttons {
        flex-direction: column;
    }

    .es-social-button {
        width: 100%;
    }

}

/* ============================================================
   ES CRAFTS DESIGN SPACE
   ============================================================ */

.es-design-space {
    background: #F8FAFF;
}

.es-design-hero {
    padding: 34px 0 26px;

    background:
        linear-gradient(
            135deg,
            #FFFFFF 0%,
            #F7F9FF 60%,
            #EEF2FF 100%
        );

    border-bottom: 1px solid rgba(2,29,144,.08);
}

.es-design-hero-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;
}

.es-design-hero h1 {
    margin: 3px 0 10px;

    color: #021D90;

    font-size: clamp(45px,6vw,72px);

    line-height: .95;

    letter-spacing: -3px;
}

.es-design-hero p {
    max-width: 820px;

    color: #4F5970;

    font-size: 16px;
}

.es-design-script {
    color: #1631A2;

    font-family: cursive;

    font-size: 31px;

    line-height: 1.05;

    transform: rotate(-4deg);

    text-align: center;
}

.es-design-script span {
    display: block;

    margin-top: 4px;
}



.es-designer-section {
    padding: 28px 0 70px;
}



.es-designer-grid {
    display: grid;

    grid-template-columns:
        minmax(0,1fr)
        minmax(0,1.05fr);

    gap: 20px;

    align-items: start;
}



.es-designer-panel,
.es-design-preview-panel {
    padding: 22px;

    background: #FFFFFF;

    border: 1px solid rgba(2,29,144,.11);

    border-radius: 18px;

    box-shadow:
        0 10px 35px
        rgba(2,29,144,.07);
}



.es-design-step-title {
    display: flex;
    align-items: center;

    gap: 14px;

    margin-bottom: 14px;
}

.es-design-step-title > span {
    width: 45px;
    height: 45px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    color: #FFFFFF;

    background:
        linear-gradient(
            135deg,
            #021D90,
            #1631A2,
            #4A61BE
        );

    font-size: 17px;

    font-weight: 800;
}

.es-design-step-title h2 {
    margin: 0;

    color: #021D90;

    font-size: 20px;
}

.es-design-step-title p {
    margin: 2px 0 0;

    color: #747C90;

    font-size: 12px;
}



.es-design-divider {
    height: 1px;

    margin: 20px 0;

    background:
        rgba(2,29,144,.10);
}



/* PRODUCT PICKER */

.es-product-picker {
    display: grid;

    grid-template-columns:
        repeat(4,1fr);

    gap: 10px;
}

.es-product-option {
    position: relative;

    min-height: 150px;

    padding: 12px 8px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: space-between;

    gap: 8px;

    background: #FFFFFF;

    border: 1px solid rgba(2,29,144,.13);

    border-radius: 12px;

    color: #021D90;

    cursor: pointer;

    transition: .22s ease;
}

.es-product-option:hover {
    transform: translateY(-2px);

    border-color: #7D8EE4;
}

.es-product-option.active {
    border: 2px solid #1631A2;

    box-shadow:
        0 7px 20px
        rgba(22,49,162,.11);
}

.es-product-option.active::after {
    content: "✓";

    position: absolute;

    top: 8px;
    right: 8px;

    width: 21px;
    height: 21px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #1631A2;

    color: #FFFFFF;

    font-size: 11px;
}

.es-product-option strong {
    font-size: 11px;
}



/* MINI GLASSES */

.es-mini-glass {
    position: relative;

    width: 68px;
    height: 95px;

    margin-top: 8px;
}

.es-mini-glass::before {
    content: "";

    position: absolute;

    border: 2px solid #AEB5C4;

    background:
        linear-gradient(
            130deg,
            rgba(255,255,255,.85),
            rgba(138,153,218,.08)
        );
}

.es-mini-glass::after {
    content: "";

    position: absolute;

    background: #AEB5C4;
}

.es-mini-glass.wine::before {
    width: 45px;
    height: 55px;

    left: 11px;
    top: 0;

    border-radius: 8px 8px 24px 24px;
}

.es-mini-glass.wine::after {
    width: 3px;
    height: 34px;

    left: 33px;
    top: 55px;
}

.es-mini-glass.gin::before {
    width: 58px;
    height: 55px;

    left: 5px;
    top: 2px;

    border-radius: 50%;
}

.es-mini-glass.gin::after {
    width: 3px;
    height: 32px;

    left: 33px;
    top: 57px;
}

.es-mini-glass.pint::before {
    width: 43px;
    height: 82px;

    left: 12px;
    top: 4px;

    border-radius: 4px 4px 9px 9px;
}

.es-mini-glass.tumbler::before {
    width: 50px;
    height: 62px;

    left: 9px;
    top: 22px;

    border-radius: 4px 4px 10px 10px;
}



/* TEXT */

.es-design-text {
    width: 100%;

    min-height: 80px;

    padding: 12px;

    border: 1px solid rgba(2,29,144,.17);

    border-radius: 9px;

    color: #021D90;

    font-family: inherit;

    resize: vertical;

    outline: none;
}

.es-character-count {
    margin-top: -20px;
    margin-right: 8px;

    text-align: right;

    color: #5F6880;

    font-size: 10px;
}



.es-design-controls-row {
    display: grid;

    grid-template-columns:
        1.1fr 1fr .8fr;

    gap: 14px;

    margin-top: 16px;
}

.es-design-controls-row label,
.es-position-control label,
#esDesignForm label {
    display: block;

    margin-bottom: 6px;

    color: #021D90;

    font-size: 11px;

    font-weight: 750;
}

.es-design-controls-row select {
    width: 100%;

    min-height: 36px;

    padding: 0 8px;

    border: 1px solid rgba(2,29,144,.17);

    border-radius: 7px;

    background: #FFFFFF;

    color: #021D90;
}



.es-range-with-number {
    display: flex;

    align-items: center;

    gap: 8px;
}

.es-range-with-number input {
    width: 100%;

    accent-color: #1631A2;
}

.es-range-with-number span {
    color: #021D90;

    font-size: 11px;
}



.es-align-buttons {
    display: flex;

    gap: 4px;
}

.es-align-buttons button {
    width: 36px;
    height: 36px;

    border: 1px solid rgba(2,29,144,.15);

    background: #FFFFFF;

    color: #1631A2;

    border-radius: 6px;

    cursor: pointer;
}

.es-align-buttons button.active {
    color: #FFFFFF;

    background: #1631A2;
}



.es-position-control {
    margin-top: 17px;
}

.es-position-row {
    display: grid;

    grid-template-columns:
        90px 1fr 28px;

    gap: 10px;

    align-items: center;

    margin-top: 8px;
}

.es-position-row span,
.es-position-row strong {
    color: #021D90;

    font-size: 10px;
}

.es-position-row input {
    width: 100%;

    accent-color: #1631A2;
}



/* CUSTOMER FORM */

.es-design-form-row {
    display: grid;

    grid-template-columns:
        repeat(2,1fr);

    gap: 12px;
}

#esDesignForm input[type="text"],
#esDesignForm input[type="email"],
#esDesignForm textarea {
    width: 100%;

    padding: 10px 11px;

    border: 1px solid rgba(2,29,144,.15);

    border-radius: 7px;

    outline: none;

    font-family: inherit;

    color: #111827;
}

.es-notes {
    min-height: 62px;

    resize: vertical;
}

.es-design-send {
    width: 100%;

    min-height: 48px;

    margin-top: 12px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 14px;

    border: 0;

    border-radius: 10px;

    color: #FFFFFF;

    background:
        linear-gradient(
            90deg,
            #1631A2,
            #021D90
        );

    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 10px 25px
        rgba(22,49,162,.18);
}

.es-send-arrow {
    font-size: 22px;
}



/* PREVIEW */

.es-design-preview-panel {
    position: sticky;

    top: 105px;
}

.es-preview-top {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-bottom: 12px;
}

.es-preview-top small {
    color: #4A61BE;

    font-size: 9px;

    letter-spacing: 2px;

    font-weight: 800;
}

.es-preview-top h2 {
    margin: 2px 0 0;

    color: #021D90;

    font-size: 27px;
}

.es-live-preview {
    display: flex;

    align-items: center;

    gap: 6px;

    padding: 8px 12px;

    border-radius: 20px;

    background: #D9F8E4;

    color: #098640;

    font-size: 9px;

    font-weight: 800;
}

.es-live-preview span {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #11B65C;
}



.es-glass-stage {
    overflow: hidden;

    border-radius: 13px;

    background: #3B3937;
}

#esDesignCanvas {
    display: block;

    width: 100%;
    height: auto;
}



.es-preview-footer {
    display: grid;

    grid-template-columns:
        1fr auto;

    gap: 15px;

    align-items: center;

    margin-top: 12px;

    padding: 13px;

    border-radius: 9px;

    background: #EEF2FF;
}

.es-preview-footer strong {
    color: #021D90;

    font-size: 11px;
}

.es-preview-footer p {
    margin: 3px 0 0;

    color: #5D6780;

    font-size: 9px;
}

#esResetDesign {
    padding: 9px 13px;

    border: 1px solid #8A99DA;

    border-radius: 7px;

    color: #1631A2;

    background: #FFFFFF;

    cursor: pointer;

    font-size: 10px;

    font-weight: 750;
}



/* MESSAGES */

.es-design-success,
.es-design-error {
    margin-bottom: 20px;

    padding: 15px 18px;

    border-radius: 10px;
}

.es-design-success {
    color: #096A38;

    background: #E7F8EE;

    border: 1px solid #A5DFC0;
}

.es-design-success span {
    margin-left: 8px;
}

.es-design-error {
    color: #991B1B;

    background: #FFF1F1;

    border: 1px solid #F3B7B7;
}



/* RESPONSIVE */

@media (max-width: 1000px) {

    .es-designer-grid {
        grid-template-columns: 1fr;
    }

    .es-design-preview-panel {
        position: relative;

        top: auto;
    }

    .es-product-picker {
        grid-template-columns:
            repeat(2,1fr);
    }

}

@media (max-width: 700px) {

    .es-design-hero-grid {
        display: block;
    }

    .es-design-script {
        display: none;
    }

    .es-design-controls-row {
        grid-template-columns: 1fr;
    }

    .es-design-form-row {
        grid-template-columns: 1fr;
    }

    .es-preview-footer {
        grid-template-columns: 1fr;
    }

    .es-product-picker {
        grid-template-columns:
            repeat(2,1fr);
    }

}


/* ES CRAFTS GLASS SELECTOR V3 */

.es-product-picker {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

.es-product-option {
    position: relative;

    min-height: 155px !important;

    padding: 12px 8px !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: space-between !important;

    background:
        linear-gradient(
            145deg,
            #FFFFFF,
            #F7F9FF
        ) !important;

    border:
        1px solid
        rgba(2,29,144,.14) !important;

    border-radius: 13px !important;

    color: #021D90 !important;

    cursor: pointer;

    overflow: hidden;

    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.es-product-option:hover {
    transform: translateY(-3px);

    border-color: #7D8EE4 !important;

    box-shadow:
        0 10px 25px
        rgba(2,29,144,.09);
}

.es-product-option.active {
    border:
        2px solid
        #1631A2 !important;

    box-shadow:
        0 9px 25px
        rgba(22,49,162,.12);
}

.es-product-option strong {
    color: #021D90;

    font-size: 11px;

    font-weight: 800;

    text-align: center;
}


/* Proper glass SVG */

.es-glass-thumb {
    display: block !important;

    width: 82px !important;
    height: 108px !important;

    margin: 0 auto;

    overflow: visible;
}

.es-glass-thumb .glass-body {
    fill:
        rgba(138,153,218,.07);

    stroke:
        #AAB4CA;

    stroke-width:
        2.3;

    stroke-linejoin:
        round;

    filter:
        drop-shadow(
            0 5px 5px
            rgba(2,29,144,.08)
        );
}

.es-glass-thumb .glass-line {
    fill: none;

    stroke:
        #AAB4CA;

    stroke-width:
        2.3;

    stroke-linecap:
        round;

    stroke-linejoin:
        round;
}


/* remove old pseudo glass artwork */

.es-product-option .es-mini-real,
.es-product-option .es-mini-glass {
    display: none !important;
}


/* Make live preview larger */

.es-glass-stage {
    width: 100%;

    border-radius: 14px;

    overflow: hidden;

    background: #3A3937;
}

#esDesignCanvas {
    width: 100% !important;
    height: auto !important;

    display: block !important;

    cursor: grab;

    touch-action: none;
}

#esDesignCanvas:active {
    cursor: grabbing;
}


@media (max-width: 850px) {

    .es-product-picker {
        grid-template-columns:
            repeat(3, minmax(0, 1fr)) !important;
    }

}


@media (max-width: 520px) {

    .es-product-picker {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }

}





/* ==========================================================
   ES CRAFTS
   LIGHTWEIGHT DESIGN SPACE CARD ANIMATION
   ========================================================== */

/*
 * Only animate transform.
 * This is dramatically cheaper than animated blur/filter/
 * drop-shadow effects.
 */

.es-glass-card {

    position: relative;

    overflow: hidden;

    transform:
        translateZ(0);

    animation:
        esLightCardFloat
        5s
        ease-in-out
        infinite;

}


@keyframes esLightCardFloat {

    0%,
    100% {

        transform:
            translate3d(
                0,
                0,
                0
            );

    }

    50% {

        transform:
            translate3d(
                0,
                -6px,
                0
            );

    }

}


/*
 * Lightweight shimmer.
 *
 * The shimmer element itself moves with transform rather
 * than constantly changing left/filter values.
 */

.es-glass-card::before {

    content: "";

    position: absolute;

    z-index: 10;

    top: -25%;
    bottom: -25%;

    left: -35%;

    width: 22%;

    pointer-events: none;

    transform:
        translate3d(
            -250%,
            0,
            0
        )
        skewX(-20deg);

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.24),
            rgba(86,125,230,.10),
            transparent
        );

    animation:
        esLightShimmer
        4.8s
        ease-in-out
        infinite;

}


@keyframes esLightShimmer {

    0%,
    58% {

        transform:
            translate3d(
                -250%,
                0,
                0
            )
            skewX(-20deg);

        opacity: 0;

    }

    62% {

        opacity: 1;

    }

    82% {

        transform:
            translate3d(
                700%,
                0,
                0
            )
            skewX(-20deg);

        opacity: 1;

    }

    86%,
    100% {

        transform:
            translate3d(
                700%,
                0,
                0
            )
            skewX(-20deg);

        opacity: 0;

    }

}


/*
 * Small glass movement.
 * Transform only.
 */

.es-glass-icon {

    transform:
        translateZ(0);

    animation:
        esLightGlassMove
        4s
        ease-in-out
        infinite;

}


@keyframes esLightGlassMove {

    0%,
    100% {

        transform:
            translate3d(
                0,
                0,
                0
            );

    }

    50% {

        transform:
            translate3d(
                0,
                -3px,
                0
            )
            scale(1.02);

    }

}


/*
 * No animated filters, blur or shadows.
 */

.es-glass-card,
.es-glass-card::after,
.es-glass-icon,
.es-glass-bowl,
.es-glass-stem,
.es-glass-base {

    filter:
        none !important;

    backdrop-filter:
        none !important;

    -webkit-backdrop-filter:
        none !important;

}


/*
 * Keep hover responsive but cheap.
 */

.es-glass-card:hover {

    box-shadow:
        0 18px 40px
        rgba(22,55,160,.14);

}


/*
 * Mobile gets an even slower animation.
 */

@media(max-width:700px) {

    .es-glass-card {

        animation-duration:
            6s;

    }

}


/*
 * Accessibility.
 */

@media(prefers-reduced-motion: reduce) {

    .es-glass-card,
    .es-glass-card::before,
    .es-glass-icon {

        animation:
            none !important;

    }

}


/* =====================================================
   ES CRAFTS - FOOTER POWERED BY SM UNIFIED SOLUTIONS
   ===================================================== */

.footer-copyright {
    display: inline-block;
}

.footer-powered {
    float: right;
    display: inline-block;
    text-align: right;
    opacity: 0.8;
}

.footer-powered strong {
    font-weight: 600;
}

@media (max-width: 768px) {
    .footer-powered {
        float: none;
        display: block;
        text-align: center;
        margin-top: 8px;
    }

    .footer-copyright {
        display: block;
        text-align: center;
    }
}

/* ES Crafts footer bottom alignment */
.es-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.es-footer-bottom-inner .footer-powered {
    float: none;
    margin-left: auto;
}

@media (max-width: 768px) {
    .es-footer-bottom-inner {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 7px;
    }

    .es-footer-bottom-inner .footer-powered {
        margin-left: 0;
    }
}

/* =====================================================
   ES CRAFTS - FOOTER COPYRIGHT LEFT / POWERED BY RIGHT
   ===================================================== */

.es-footer-bottom .es-container.es-footer-bottom-inner {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
    padding-left: 40px !important;
    padding-right: 40px !important;
}

.es-footer-bottom .footer-copyright {
    display: block !important;
    float: none !important;
    text-align: left !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
}

.es-footer-bottom .footer-powered {
    display: block !important;
    float: none !important;
    text-align: right !important;
    margin: 0 0 0 auto !important;
    flex: 0 0 auto !important;
}

/* Mobile */
@media (max-width: 768px) {

    .es-footer-bottom .es-container.es-footer-bottom-inner {
        flex-direction: column !important;
        justify-content: center !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        gap: 6px !important;
    }

    .es-footer-bottom .footer-copyright,
    .es-footer-bottom .footer-powered {
        width: 100% !important;
        text-align: center !important;
        margin: 0 !important;
    }
}


/* =====================================================
   FINAL FOOTER SPLIT FIX
   Copyright LEFT - SM Unified Solutions RIGHT
   ===================================================== */

.es-footer-bottom {
    width: 100% !important;
}

.es-footer-bottom > .es-container.es-footer-bottom-inner {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 40px !important;
    box-sizing: border-box !important;

    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    align-items: center !important;
}

.es-footer-bottom > .es-container.es-footer-bottom-inner .footer-copyright {
    display: block !important;
    width: auto !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    justify-self: start !important;
}

.es-footer-bottom > .es-container.es-footer-bottom-inner .footer-powered {
    display: block !important;
    width: auto !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: right !important;
    justify-self: end !important;
}

/* Mobile - stack neatly */
@media (max-width: 768px) {

    .es-footer-bottom > .es-container.es-footer-bottom-inner {
        grid-template-columns: 1fr !important;
        padding: 0 20px !important;
        gap: 6px !important;
    }

    .es-footer-bottom > .es-container.es-footer-bottom-inner .footer-copyright,
    .es-footer-bottom > .es-container.es-footer-bottom-inner .footer-powered {
        justify-self: center !important;
        text-align: center !important;
    }
}



/* ============================================================
   ES CRAFTS LEGAL & INFO PAGE
   ============================================================ */

.es-legal-page {
    background: #f7f8fc;
}


/* HERO */

.es-legal-hero {
    position: relative;
    overflow: hidden;
}

.es-legal-hero h1 span {
    color: #1631A2;
}

.es-legal-hero p {
    max-width: 720px;
}


/* QUICK LINKS */

.es-legal-nav-section {
    position: relative;
    z-index: 5;
    padding: 0 0 20px;
    background: #f7f8fc;
}

.es-legal-quick-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;

    padding: 18px;

    background: #ffffff;

    border: 1px solid rgba(2, 29, 144, 0.10);
    border-radius: 20px;

    box-shadow:
        0 12px 40px rgba(2, 29, 144, 0.07);
}

.es-legal-quick-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;

    padding: 9px 17px;

    border-radius: 999px;

    background: rgba(2, 29, 144, 0.06);

    color: #021D90;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.es-legal-quick-links a:hover {
    transform: translateY(-2px);

    background: #021D90;
    color: #ffffff;

    box-shadow:
        0 8px 20px rgba(2, 29, 144, 0.18);
}


/* CONTENT */

.es-legal-content-section {
    padding: 40px 0 100px;
}

.es-legal-container {
    max-width: 1050px;
}

.es-legal-card {
    position: relative;

    display: grid;

    grid-template-columns: 90px 1fr;

    gap: 30px;

    margin-bottom: 24px;

    padding: 38px;

    background: #ffffff;

    border:
        1px solid
        rgba(2, 29, 144, 0.09);

    border-radius: 26px;

    box-shadow:
        0 15px 50px
        rgba(2, 29, 144, 0.06);

    scroll-margin-top: 130px;

    overflow: hidden;
}

.es-legal-card::after {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 5px;
    height: 100%;

    background:
        linear-gradient(
            180deg,
            #021D90,
            #4A61BE
        );
}


/* NUMBER */

.es-legal-number {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 70px;
    height: 70px;

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            #021D90,
            #1631A2
        );

    color: #ffffff;

    font-size: 22px;
    font-weight: 800;

    letter-spacing: 1px;

    box-shadow:
        0 10px 25px
        rgba(2, 29, 144, 0.20);
}


/* TEXT */

.es-legal-label {
    display: inline-block;

    margin-bottom: 6px;

    color: #4A61BE;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}

.es-legal-card-content h2 {
    margin:
        0
        0
        18px;

    color: #021D90;

    font-size: clamp(
        26px,
        3vw,
        34px
    );

    line-height: 1.15;
}

.es-legal-card-content p {
    max-width: 800px;

    margin:
        0
        0
        16px;

    color: #444a59;

    font-size: 16px;
    line-height: 1.8;
}

.es-legal-card-content p:last-of-type {
    margin-bottom: 0;
}

.es-legal-card-content a {
    color: #021D90;
    font-weight: 700;
}


/* EMAIL BUTTON */

.es-legal-email-link {
    display: inline-flex;

    margin-top: 18px;

    padding:
        12px
        18px;

    border-radius: 12px;

    background:
        rgba(2, 29, 144, 0.07);

    color: #021D90 !important;

    font-weight: 800;

    text-decoration: none;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.es-legal-email-link:hover {
    transform: translateY(-2px);

    background:
        rgba(2, 29, 144, 0.13);
}


/* CONTACT CARD */

.es-legal-contact-card {
    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f5f7ff
        );
}

.es-legal-contact-box {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;

    margin-top: 25px;
}

.es-legal-contact-box > div {
    display: flex;
    flex-direction: column;

    gap: 4px;

    padding: 17px 18px;

    background: #ffffff;

    border:
        1px solid
        rgba(2, 29, 144, 0.10);

    border-radius: 14px;
}

.es-legal-contact-box span {
    color: #74798a;

    font-size: 12px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.7px;
}

.es-legal-contact-box a {
    overflow-wrap: anywhere;

    color: #021D90;

    font-size: 15px;

    text-decoration: none;
}

.es-legal-contact-button {
    display: inline-flex;

    margin-top: 25px;
}


/* UPDATED */

.es-legal-updated {
    margin-top: 30px;

    color: #7a7f8d;

    font-size: 13px;

    text-align: center;
}


/* ============================================================
   LEGAL PAGE - TABLET
   ============================================================ */

@media (max-width: 800px) {

    .es-legal-card {
        grid-template-columns: 65px 1fr;

        gap: 20px;

        padding: 28px;
    }

    .es-legal-number {
        width: 58px;
        height: 58px;

        border-radius: 16px;

        font-size: 18px;
    }

    .es-legal-contact-box {
        grid-template-columns: 1fr;
    }

}


/* ============================================================
   LEGAL PAGE - MOBILE
   ============================================================ */

@media (max-width: 560px) {

    .es-legal-nav-section {
        padding-top: 0;
    }

    .es-legal-quick-links {
        justify-content: flex-start;

        flex-wrap: nowrap;

        overflow-x: auto;

        padding: 14px;

        scrollbar-width: none;
    }

    .es-legal-quick-links::-webkit-scrollbar {
        display: none;
    }

    .es-legal-quick-links a {
        flex: 0 0 auto;
    }


    .es-legal-content-section {
        padding:
            25px
            0
            70px;
    }


    .es-legal-card {
        display: block;

        padding:
            26px
            22px
            28px;

        border-radius: 20px;
    }


    .es-legal-number {
        width: 52px;
        height: 52px;

        margin-bottom: 20px;

        border-radius: 14px;

        font-size: 16px;
    }


    .es-legal-card-content h2 {
        font-size: 26px;
    }


    .es-legal-card-content p {
        font-size: 15px;

        line-height: 1.75;
    }


    .es-legal-email-link {
        max-width: 100%;

        overflow-wrap: anywhere;
    }

}



/* ============================================================
   ES CRAFTS - FINAL LEGAL & INFO DESIGN
   ============================================================ */


/* ------------------------------------------------------------
   PAGE
   ------------------------------------------------------------ */

body .es-legal-page {
    background:
        linear-gradient(
            180deg,
            #f6f8ff 0%,
            #ffffff 35%,
            #f7f8fc 100%
        );

    color: #202536;
}


/* ------------------------------------------------------------
   HERO
   ------------------------------------------------------------ */

body .es-legal-page .es-legal-hero {
    position: relative;

    padding:
        90px
        0
        115px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 85% 30%,
            rgba(125, 142, 228, 0.32),
            transparent 34%
        ),
        radial-gradient(
            circle at 70% 100%,
            rgba(74, 97, 190, 0.18),
            transparent 38%
        ),
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f4f6ff 45%,
            #e8edff 100%
        );

    border-bottom:
        1px solid
        rgba(2, 29, 144, 0.08);
}


body .es-legal-page .es-legal-hero::before {
    content: "";

    position: absolute;

    width: 380px;
    height: 380px;

    right: -100px;
    top: -170px;

    border:
        70px solid
        rgba(2, 29, 144, 0.035);

    border-radius: 50%;
}


body .es-legal-page .es-legal-hero::after {
    content: "&";

    position: absolute;

    right: 7%;
    bottom: -110px;

    color:
        rgba(2, 29, 144, 0.035);

    font-size: 330px;
    font-weight: 900;

    line-height: 1;

    pointer-events: none;
}


body .es-legal-page .es-legal-hero .es-container {
    position: relative;

    z-index: 2;
}


body .es-legal-page .es-legal-hero .es-section-label {
    display: inline-flex;

    align-items: center;

    margin-bottom: 16px;

    padding:
        8px
        15px;

    border-radius: 999px;

    background:
        rgba(2, 29, 144, 0.08);

    color: #1631A2;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 1.4px;

    text-transform: uppercase;
}


body .es-legal-page .es-legal-hero h1 {
    max-width: 800px;

    margin:
        0
        0
        18px;

    color: #10182f;

    font-size:
        clamp(
            48px,
            7vw,
            82px
        );

    font-weight: 850;

    line-height: 0.98;

    letter-spacing: -3px;
}


body .es-legal-page .es-legal-hero h1 span {
    color: #021D90;
}


body .es-legal-page .es-legal-hero p {
    max-width: 720px;

    margin: 0;

    color: #596174;

    font-size:
        clamp(
            17px,
            2vw,
            20px
        );

    line-height: 1.7;
}


/* ------------------------------------------------------------
   FLOATING QUICK NAVIGATION
   ------------------------------------------------------------ */

body .es-legal-page .es-legal-nav-section {
    position: relative;

    z-index: 20;

    margin-top: -52px;

    padding:
        0
        20px
        25px;

    background: transparent;
}


body .es-legal-page .es-legal-nav-section .es-container {
    max-width: 1180px;

    margin:
        0
        auto;
}


body .es-legal-page .es-legal-quick-links {
    display: flex;

    flex-wrap: wrap;

    align-items: center;
    justify-content: center;

    gap: 9px;

    padding: 16px;

    background:
        rgba(255, 255, 255, 0.96);

    border:
        1px solid
        rgba(2, 29, 144, 0.09);

    border-radius: 22px;

    box-shadow:
        0 20px 60px
        rgba(15, 31, 90, 0.12);

    backdrop-filter: blur(15px);
}


body .es-legal-page .es-legal-quick-links a {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 43px;

    padding:
        10px
        17px;

    border-radius: 999px;

    background: #f3f5fd;

    color: #26345e;

    font-size: 13px;
    font-weight: 750;

    line-height: 1;

    text-decoration: none;

    white-space: nowrap;

    transition:
        transform 180ms ease,
        background 180ms ease,
        color 180ms ease,
        box-shadow 180ms ease;
}


body .es-legal-page .es-legal-quick-links a:hover {
    transform: translateY(-2px);

    background: #021D90;

    color: #ffffff;

    box-shadow:
        0 9px 22px
        rgba(2, 29, 144, 0.22);
}


/* ------------------------------------------------------------
   LEGAL CONTENT
   ------------------------------------------------------------ */

body .es-legal-page .es-legal-content-section {
    padding:
        35px
        20px
        110px;
}


body .es-legal-page .es-legal-container {
    width: 100%;

    max-width: 1080px;

    margin:
        0
        auto;
}


/* ------------------------------------------------------------
   CARDS
   ------------------------------------------------------------ */

body .es-legal-page .es-legal-card {
    position: relative;

    display: grid;

    grid-template-columns:
        76px
        minmax(0, 1fr);

    gap: 30px;

    width: 100%;

    margin:
        0
        0
        22px;

    padding:
        38px
        42px;

    overflow: hidden;

    background: #ffffff;

    border:
        1px solid
        rgba(2, 29, 144, 0.075);

    border-radius: 24px;

    box-shadow:
        0 14px 45px
        rgba(27, 42, 90, 0.065);

    scroll-margin-top: 130px;

    transition:
        transform 200ms ease,
        box-shadow 200ms ease,
        border-color 200ms ease;
}


body .es-legal-page .es-legal-card:hover {
    transform:
        translateY(-3px);

    border-color:
        rgba(2, 29, 144, 0.14);

    box-shadow:
        0 22px 60px
        rgba(27, 42, 90, 0.10);
}


body .es-legal-page .es-legal-card::before {
    content: "";

    position: absolute;

    left: 0;
    top: 25px;
    bottom: 25px;

    width: 4px;

    border-radius:
        0
        5px
        5px
        0;

    background:
        linear-gradient(
            180deg,
            #021D90,
            #4A61BE
        );
}


/* ------------------------------------------------------------
   NUMBERS
   ------------------------------------------------------------ */

body .es-legal-page .es-legal-number {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 68px;
    height: 68px;

    margin: 0;

    border-radius: 19px;

    background:
        linear-gradient(
            145deg,
            #021D90,
            #2744ba
        );

    color: #ffffff;

    font-size: 20px;
    font-weight: 850;

    letter-spacing: 1px;

    box-shadow:
        0 12px 25px
        rgba(2, 29, 144, 0.22);
}


/* ------------------------------------------------------------
   CARD TEXT
   ------------------------------------------------------------ */

body .es-legal-page .es-legal-card-content {
    min-width: 0;
}


body .es-legal-page .es-legal-label {
    display: block;

    margin:
        2px
        0
        7px;

    color: #4A61BE;

    font-size: 11px;
    font-weight: 850;

    line-height: 1.4;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}


body .es-legal-page .es-legal-card-content h2 {
    margin:
        0
        0
        20px;

    color: #101b3f;

    font-size:
        clamp(
            26px,
            3vw,
            34px
        );

    font-weight: 800;

    line-height: 1.15;

    letter-spacing: -0.8px;
}


body .es-legal-page .es-legal-card-content p {
    max-width: 840px;

    margin:
        0
        0
        15px;

    color: #535b6d;

    font-size: 15.5px;

    line-height: 1.8;
}


body .es-legal-page .es-legal-card-content p:last-of-type {
    margin-bottom: 0;
}


body .es-legal-page .es-legal-card-content a {
    color: #021D90;

    font-weight: 750;

    text-decoration-thickness: 1px;

    text-underline-offset: 3px;
}


/* ------------------------------------------------------------
   EMAIL CALLOUT
   ------------------------------------------------------------ */

body .es-legal-page .es-legal-email-link {
    display: inline-flex;

    align-items: center;

    margin-top: 19px;

    padding:
        12px
        17px;

    border:
        1px solid
        rgba(2, 29, 144, 0.09);

    border-radius: 12px;

    background:
        #f2f5ff;

    color:
        #021D90 !important;

    font-size: 14px;
    font-weight: 800;

    text-decoration: none;

    transition:
        transform 180ms ease,
        background 180ms ease;
}


body .es-legal-page .es-legal-email-link::before {
    content: "@";

    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 25px;
    height: 25px;

    margin-right: 9px;

    border-radius: 50%;

    background: #021D90;

    color: #ffffff;

    font-size: 12px;
}


body .es-legal-page .es-legal-email-link:hover {
    transform: translateY(-2px);

    background: #e8edff;
}


/* ------------------------------------------------------------
   CONTACT CARD
   ------------------------------------------------------------ */

body .es-legal-page .es-legal-contact-card {
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(74, 97, 190, 0.10),
            transparent 35%
        ),
        #ffffff;
}


body .es-legal-page .es-legal-contact-box {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 12px;

    margin-top: 26px;
}


body .es-legal-page .es-legal-contact-box > div {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 5px;

    min-width: 0;

    padding:
        17px
        18px;

    background:
        #f8f9fd;

    border:
        1px solid
        rgba(2, 29, 144, 0.075);

    border-radius: 14px;
}


body .es-legal-page .es-legal-contact-box span {
    color: #858b9a;

    font-size: 10px;
    font-weight: 850;

    letter-spacing: 1px;

    text-transform: uppercase;
}


body .es-legal-page .es-legal-contact-box a {
    max-width: 100%;

    overflow-wrap: anywhere;

    color: #021D90;

    font-size: 14px;
    font-weight: 750;

    text-decoration: none;
}


body .es-legal-page .es-legal-contact-box a:hover {
    text-decoration: underline;
}


/* ------------------------------------------------------------
   CONTACT BUTTON
   ------------------------------------------------------------ */

body .es-legal-page .es-legal-contact-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 48px;

    margin-top: 24px;

    padding:
        12px
        23px;

    border-radius: 12px;

    background: #021D90;

    color: #ffffff !important;

    font-size: 14px;
    font-weight: 800;

    text-decoration: none;

    box-shadow:
        0 10px 25px
        rgba(2, 29, 144, 0.20);

    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        background 180ms ease;
}


body .es-legal-page .es-legal-contact-button:hover {
    transform: translateY(-2px);

    background: #1631A2;

    box-shadow:
        0 15px 32px
        rgba(2, 29, 144, 0.26);
}


/* ------------------------------------------------------------
   LAST UPDATED
   ------------------------------------------------------------ */

body .es-legal-page .es-legal-updated {
    margin-top: 35px;

    padding: 15px;

    color: #8b91a0;

    font-size: 12px;
    font-weight: 600;

    text-align: center;

    letter-spacing: 0.2px;
}


/* ------------------------------------------------------------
   TABLET
   ------------------------------------------------------------ */

@media (max-width: 800px) {

    body .es-legal-page .es-legal-hero {
        padding:
            70px
            0
            100px;
    }


    body .es-legal-page .es-legal-card {
        grid-template-columns:
            62px
            minmax(0, 1fr);

        gap: 22px;

        padding:
            30px
            28px;
    }


    body .es-legal-page .es-legal-number {
        width: 58px;
        height: 58px;

        border-radius: 16px;

        font-size: 17px;
    }


    body .es-legal-page .es-legal-contact-box {
        grid-template-columns: 1fr;
    }

}


/* ------------------------------------------------------------
   MOBILE
   ------------------------------------------------------------ */

@media (max-width: 560px) {

    body .es-legal-page .es-legal-hero {
        padding:
            55px
            20px
            88px;
    }


    body .es-legal-page .es-legal-hero h1 {
        font-size: 47px;

        letter-spacing: -2px;
    }


    body .es-legal-page .es-legal-hero p {
        font-size: 16px;
    }


    body .es-legal-page .es-legal-nav-section {
        margin-top: -43px;

        padding:
            0
            14px
            18px;
    }


    body .es-legal-page .es-legal-quick-links {
        flex-wrap: nowrap;

        justify-content: flex-start;

        overflow-x: auto;

        padding: 12px;

        border-radius: 17px;

        scrollbar-width: none;
    }


    body .es-legal-page
    .es-legal-quick-links::-webkit-scrollbar {
        display: none;
    }


    body .es-legal-page .es-legal-quick-links a {
        flex:
            0
            0
            auto;

        min-height: 39px;

        padding:
            9px
            14px;

        font-size: 12px;
    }


    body .es-legal-page .es-legal-content-section {
        padding:
            22px
            13px
            75px;
    }


    body .es-legal-page .es-legal-card {
        display: block;

        margin-bottom: 15px;

        padding:
            24px
            21px
            27px;

        border-radius: 19px;
    }


    body .es-legal-page .es-legal-card::before {
        top: 20px;
        bottom: 20px;
    }


    body .es-legal-page .es-legal-number {
        width: 51px;
        height: 51px;

        margin-bottom: 20px;

        border-radius: 14px;

        font-size: 15px;
    }


    body .es-legal-page .es-legal-card-content h2 {
        margin-bottom: 16px;

        font-size: 26px;
    }


    body .es-legal-page .es-legal-card-content p {
        font-size: 14.5px;

        line-height: 1.75;
    }


    body .es-legal-page .es-legal-email-link {
        max-width: 100%;

        font-size: 13px;

        overflow-wrap: anywhere;
    }


    body .es-legal-page .es-legal-contact-box {
        grid-template-columns: 1fr;
    }

}


/* ============================================================
   END FINAL LEGAL & INFO DESIGN
   ============================================================ */




/* ============================================================
   SM UNIFIED SOLUTIONS FOOTER LINK
   ============================================================ */

.footer-sm-link,
.footer-sm-link:visited {
    color: inherit;
    text-decoration: none;
}

.footer-sm-link:hover {
    text-decoration: underline;
}

