/* ================================================================
   EEA Footer Widget — Isolated Styles
   Brand: Echelon Etiquette Academy
   Palette: Navy #080872 · Gold #C7A73E · White · Black
   ================================================================ */

.eea-footer {
    --eea-footer-navy:    #080872;
    --eea-footer-navy-dk: #050554;
    --eea-footer-gold:    #C7A73E;
    --eea-footer-gold-lt: #d9bd5a;
    --eea-footer-white:   #ffffff;
    --eea-footer-text:    rgba(255, 255, 255, 0.78);
    --eea-footer-heading: #ffffff;
    --eea-footer-accent:  #C7A73E;
    --eea-footer-line:    rgba(199, 167, 62, 0.18);
    --eea-footer-ease:    cubic-bezier(.2, .8, .2, 1);

    position: relative;
    color: var(--eea-footer-text);
    font-family: 'Montserrat', 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    background: linear-gradient(180deg, #080872 0%, #050554 100%);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    z-index: 1;
}

/* Scoped reset */
.eea-footer,
.eea-footer *,
.eea-footer *::before,
.eea-footer *::after {
    box-sizing: border-box;
}

.eea-footer ul,
.eea-footer ol,
.eea-footer li,
.eea-footer__links,
.eea-footer__contact,
.eea-footer__social,
.eea-footer__legal {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.eea-footer__links li::marker,
.eea-footer__contact li::marker,
.eea-footer__social li::marker,
.eea-footer__legal li::marker {
    content: none !important;
}

.eea-footer a {
    color: inherit;
    text-decoration: none !important;
    transition: color .25s var(--eea-footer-ease), background .25s var(--eea-footer-ease), border-color .25s var(--eea-footer-ease);
}

.eea-footer p {
    margin: 0 0 12px;
}

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

.eea-footer h2,
.eea-footer h3,
.eea-footer h4 {
    margin: 0 0 20px;
    color: var(--eea-footer-heading);
}

/* Decorative pattern */
.eea-footer-pattern-yes .eea-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(40% 50% at 85% 0%, rgba(199, 167, 62, 0.18), transparent 60%),
        radial-gradient(35% 45% at 10% 100%, rgba(199, 167, 62, 0.10), transparent 65%),
        repeating-linear-gradient(135deg, rgba(255,255,255,0.012) 0 2px, transparent 2px 14px);
    pointer-events: none;
    z-index: 0;
}

.eea-footer__inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ================================================================
   TOP CTA STRIP
   ================================================================ */
.eea-footer__cta {
    position: relative;
    background:
        linear-gradient(135deg, rgba(199, 167, 62, 0.12), rgba(199, 167, 62, 0.02));
    border-bottom: 1px solid var(--eea-footer-line);
    padding: 56px 32px;
}

.eea-footer__cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(60% 100% at 100% 50%, rgba(199, 167, 62, 0.22), transparent 70%);
    pointer-events: none;
}

.eea-footer__cta-inner {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.eea-footer__cta-content {
    flex: 1 1 400px;
    min-width: 0;
}

.eea-footer__cta-heading {
    font-family: 'Baskervville', 'GFS Didot', Georgia, serif;
    font-size: clamp(26px, 3.4vw, 40px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0.4px;
    color: var(--eea-footer-white);
    margin: 0 0 12px;
}

.eea-footer__cta-sub {
    font-size: 15px;
    line-height: 1.6;
    color: var(--eea-footer-text);
    max-width: 640px;
    margin: 0;
}

.eea-footer__cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: var(--eea-footer-accent);
    color: var(--eea-footer-navy);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 2px solid var(--eea-footer-accent);
    border-radius: 999px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 10px 30px rgba(199, 167, 62, 0.25);
    flex-shrink: 0;
}

.eea-footer__cta-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--eea-footer-white);
    transform: translateY(101%);
    transition: transform .4s var(--eea-footer-ease);
    z-index: -1;
}

.eea-footer__cta-btn:hover {
    color: var(--eea-footer-navy);
    border-color: var(--eea-footer-white);
}

.eea-footer__cta-btn:hover::before {
    transform: translateY(0);
}

.eea-footer__cta-btn svg {
    width: 16px;
    height: 16px;
    transition: transform .3s var(--eea-footer-ease);
    flex-shrink: 0;
}

.eea-footer__cta-btn:hover svg {
    transform: translateX(4px);
}

/* ================================================================
   MAIN COLUMNS
   ================================================================ */
.eea-footer__main {
    padding: 80px 32px 48px;
    position: relative;
    z-index: 1;
}

.eea-footer__columns {
    display: grid;
    gap: 80px;
    row-gap: 56px;
}

/* Column count variants */
.eea-footer-cols-2 .eea-footer__columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.eea-footer-cols-3 .eea-footer__columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.eea-footer-cols-4 .eea-footer__columns { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.eea-footer-cols-5 .eea-footer__columns { grid-template-columns: 1.8fr 1fr 1fr 1.4fr 1.6fr; }

.eea-footer__col {
    min-width: 0;
}

.eea-footer__col-title {
    font-family: 'Baskervville', 'GFS Didot', Georgia, serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--eea-footer-heading);
    margin: 0 0 28px;
    position: relative;
    padding-bottom: 14px;
}

.eea-footer__col-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 2px;
    background: var(--eea-footer-accent);
    border-radius: 2px;
}

/* ----- BRAND COLUMN ----- */
.eea-footer__brand-logo {
    margin-bottom: 22px;
}

.eea-footer__brand-logo img {
    width: 120px;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.25));
}

.eea-footer__tagline {
    font-family: 'Baskervville', 'GFS Didot', Georgia, serif;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--eea-footer-accent);
    margin: 0 0 18px;
}

.eea-footer__desc {
    font-size: 14px;
    line-height: 1.75;
    color: var(--eea-footer-text);
    margin: 0 0 28px;
}

.eea-footer__social-heading {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--eea-footer-text);
    margin-bottom: 12px;
}

/* ----- LINK LISTS ----- */
.eea-footer__links li {
    margin-bottom: 18px;
}

.eea-footer__links li:last-child {
    margin-bottom: 0;
}

.eea-footer__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--eea-footer-text);
    position: relative;
    padding-left: 0;
    transition: color .25s var(--eea-footer-ease), padding-left .3s var(--eea-footer-ease);
}

.eea-footer__link::before {
    content: "";
    width: 0;
    height: 1px;
    background: var(--eea-footer-accent);
    transition: width .3s var(--eea-footer-ease);
    align-self: center;
    flex-shrink: 0;
}

.eea-footer__link:hover {
    color: var(--eea-footer-accent);
}

.eea-footer__link:hover::before {
    width: 14px;
}

/* ----- CONTACT ----- */
.eea-footer__contact {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.eea-footer__contact-item {
    display: flex !important;
    align-items: flex-start;
    gap: 14px;
    font-size: 14px;
    line-height: 1.6;
}

.eea-footer__contact-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(199, 167, 62, 0.12);
    border: 1px solid rgba(199, 167, 62, 0.30);
    color: var(--eea-footer-accent);
    font-size: 13px;
    line-height: 1;
}

.eea-footer__contact-icon svg {
    width: 15px;
    height: 15px;
    color: inherit;
    stroke: currentColor;
    fill: none;
    display: block;
}

.eea-footer__contact-icon i {
    color: inherit;
    line-height: 1;
}

.eea-footer__contact-item a {
    color: var(--eea-footer-text);
}

.eea-footer__contact-item a:hover {
    color: var(--eea-footer-accent);
}

/* ----- NEWSLETTER ----- */
.eea-footer__nl-sub {
    font-size: 14px;
    line-height: 1.7;
    color: var(--eea-footer-text);
    margin: 0 0 24px;
}

.eea-footer__nl-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    position: relative;
}

.eea-footer__nl-srtext {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.eea-footer__nl-input {
    width: 100%;
    padding: 14px 18px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: var(--eea-footer-white);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    outline: none;
    transition: border-color .25s var(--eea-footer-ease), background .25s var(--eea-footer-ease), box-shadow .25s var(--eea-footer-ease);
}

.eea-footer__nl-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.eea-footer__nl-input:focus {
    border-color: var(--eea-footer-accent);
    background: rgba(255, 255, 255, 0.10);
    box-shadow: 0 0 0 4px rgba(199, 167, 62, 0.15);
}

.eea-footer__nl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    background: var(--eea-footer-accent);
    color: var(--eea-footer-navy);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background .25s var(--eea-footer-ease), color .25s var(--eea-footer-ease), transform .25s var(--eea-footer-ease), box-shadow .25s var(--eea-footer-ease);
    box-shadow: 0 8px 20px rgba(199, 167, 62, 0.25);
}

.eea-footer__nl-btn svg {
    width: 14px;
    height: 14px;
    transition: transform .3s var(--eea-footer-ease);
    flex-shrink: 0;
}

.eea-footer__nl-btn:hover {
    background: var(--eea-footer-white);
    color: var(--eea-footer-navy);
    transform: translateY(-1px);
}

.eea-footer__nl-btn:hover svg {
    transform: translateX(4px);
}

.eea-footer__nl-msg {
    font-size: 12px;
    line-height: 1.5;
    min-height: 18px;
    color: var(--eea-footer-accent);
}

.eea-footer__nl-msg.is-error  { color: #ff8a8a; }
.eea-footer__nl-msg.is-success { color: var(--eea-footer-gold-lt); }

/* ----- SOCIAL ICONS ----- */
.eea-footer__social {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.eea-footer__social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--eea-footer-white);
    font-size: 16px;
    transition: all .3s var(--eea-footer-ease);
}

.eea-footer__social a i,
.eea-footer__social a svg {
    width: 16px;
    height: 16px;
    color: inherit;
    fill: currentColor;
}

.eea-footer__social a svg path {
    fill: currentColor;
}

.eea-footer__social a:hover {
    background: var(--eea-footer-accent);
    border-color: var(--eea-footer-accent);
    color: var(--eea-footer-navy);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(199, 167, 62, 0.30);
}

/* ================================================================
   BOTTOM BAR
   ================================================================ */
.eea-footer__bottom {
    position: relative;
    background: rgba(0, 0, 0, 0.25);
    border-top: 1px solid var(--eea-footer-line);
    padding: 22px 32px;
    color: rgba(255,255,255,0.7);
    z-index: 1;
}

.eea-footer__bottom-inner {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.eea-footer__copy {
    margin: 0;
    font-size: 13px;
    letter-spacing: 0.3px;
}

.eea-footer__legal {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px 24px;
    align-items: center;
}

.eea-footer__legal li {
    position: relative;
}

.eea-footer__legal li + li::before {
    content: "·";
    position: absolute;
    left: -14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--eea-footer-accent);
}

.eea-footer__legal a {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

.eea-footer__legal a:hover {
    color: var(--eea-footer-accent);
}

/* ================================================================
   BACK TO TOP
   ================================================================ */
.eea-footer__top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--eea-footer-accent);
    color: var(--eea-footer-navy);
    border: 2px solid var(--eea-footer-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity .35s var(--eea-footer-ease), visibility .35s var(--eea-footer-ease), transform .35s var(--eea-footer-ease), background .25s var(--eea-footer-ease), color .25s var(--eea-footer-ease);
    z-index: 9990;
    box-shadow: 0 12px 32px rgba(199, 167, 62, 0.35);
}

.eea-footer__top svg {
    width: 18px;
    height: 18px;
}

.eea-footer__top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.eea-footer__top:hover {
    background: var(--eea-footer-white);
    color: var(--eea-footer-navy);
    transform: translateY(-4px);
}

/* ================================================================
   ELEMENTOR / THEME OVERRIDE GUARDS
   ================================================================ */
.elementor-page .eea-footer,
.e-con .eea-footer,
.elementor-widget-container .eea-footer {
    color: var(--eea-footer-text) !important;
}

.elementor-page .eea-footer a,
.e-con .eea-footer a {
    text-decoration: none !important;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
    .eea-footer-cols-4 .eea-footer__columns,
    .eea-footer-cols-5 .eea-footer__columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .eea-footer__col--brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .eea-footer__cta {
        text-align: center;
    }
    .eea-footer__cta-inner {
        flex-direction: column;
        align-items: center;
    }
    .eea-footer__cta-content {
        flex: 0 0 auto !important;
        width: 100%;
        max-width: 100%;
        text-align: center;
    }
    .eea-footer__cta-heading {
        font-size: 26px;
        text-align: center;
    }
    .eea-footer__cta-sub {
        text-align: center;
        margin: 0 auto;
    }
    .eea-footer__cta-btn {
        align-self: center;
    }
    .eea-footer__main {
        padding: 56px 20px 32px;
    }
    .eea-footer__columns,
    .eea-footer-cols-2 .eea-footer__columns,
    .eea-footer-cols-3 .eea-footer__columns,
    .eea-footer-cols-4 .eea-footer__columns,
    .eea-footer-cols-5 .eea-footer__columns {
        grid-template-columns: 1fr;
        gap: 44px;
    }
    .eea-footer__col--brand {
        grid-column: 1;
    }

    /* ===== CENTER EVERYTHING ON MOBILE ===== */
    .eea-footer__col {
        text-align: center;
    }

    .eea-footer__col-title {
        text-align: center;
        padding-bottom: 16px;
    }

    .eea-footer__col-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    /* Brand column */
    .eea-footer__brand-logo {
        display: flex;
        justify-content: center;
        margin: 0 auto 22px;
    }
    .eea-footer__brand-logo img {
        margin: 0 auto;
    }
    .eea-footer__tagline,
    .eea-footer__desc {
        text-align: center;
    }
    .eea-footer__social-heading {
        text-align: center;
    }
    .eea-footer__social {
        justify-content: center !important;
    }

    /* Quick links / Services lists */
    .eea-footer__links {
        text-align: center;
    }
    .eea-footer__link {
        justify-content: center;
    }
    .eea-footer__link::before {
        display: none;
    }

    /* Contact column */
    .eea-footer__contact {
        align-items: center;
    }
    .eea-footer__contact-item {
        flex-direction: column;
        align-items: center !important;
        text-align: center;
        gap: 10px;
    }
    .eea-footer__contact-item a {
        word-break: break-word;
    }

    /* Newsletter */
    .eea-footer__nl-sub {
        text-align: center;
    }
    .eea-footer__nl-form {
        align-items: stretch;
    }
    .eea-footer__nl-input {
        text-align: center;
    }
    .eea-footer__nl-btn {
        align-self: stretch;
        justify-content: center;
    }
    .eea-footer__nl-msg {
        text-align: center;
    }
    .eea-footer__bottom {
        padding: 18px 20px;
    }
    .eea-footer__bottom-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .eea-footer__legal {
        justify-content: center;
    }
    .eea-footer__top {
        right: 16px;
        bottom: 16px;
        width: 42px;
        height: 42px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .eea-footer,
    .eea-footer *,
    .eea-footer *::before,
    .eea-footer *::after {
        animation: none !important;
        transition: none !important;
    }
}
