/* ================================================================
   EEA Services Grid — Modern card-based services widget
   ================================================================ */

.eea-services {
    --eea-svc-navy:    #080872;
    --eea-svc-gold:    #C7A73E;
    --eea-svc-gold-lt: #d9bd5a;
    --eea-svc-white:   #ffffff;
    --eea-svc-ink:     #1a1a2e;
    --eea-svc-mute:    #6b6b80;
    --eea-svc-accent:  #C7A73E;
    --eea-svc-primary: #080872;
    --eea-svc-ease:    cubic-bezier(.2, .8, .2, 1);

    position: relative;
    width: 100%;
    padding: 120px 32px;
    color: var(--eea-svc-ink);
    font-family: 'Montserrat', 'Poppins', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
    isolation: isolate;
    background: #fafafe;
}

.eea-services,
.eea-services *,
.eea-services *::before,
.eea-services *::after {
    box-sizing: border-box;
}

.eea-services ul,
.eea-services li {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

.eea-services a {
    color: inherit;
    text-decoration: none !important;
}

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

/* Full-width breakout */
.eea-services--fullwidth {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}

.elementor-widget:has(.eea-services--fullwidth),
.elementor-widget:has(.eea-services--fullwidth) > .elementor-widget-container,
.elementor-column:has(.eea-services--fullwidth),
.elementor-section:has(.eea-services--fullwidth),
.elementor-container:has(.eea-services--fullwidth),
.e-con:has(.eea-services--fullwidth),
.e-con-inner:has(.eea-services--fullwidth) {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow: visible !important;
}

/* Background blob — subtle gold + navy atmosphere */
.eea-services--blob::before {
    content: "";
    position: absolute;
    top: -10%;
    right: -10%;
    width: 50%;
    height: 60%;
    background: radial-gradient(closest-side, rgba(199, 167, 62, 0.10), rgba(199, 167, 62, 0));
    z-index: 0;
    pointer-events: none;
}

.eea-services--blob::after {
    content: "";
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 50%;
    height: 60%;
    background: radial-gradient(closest-side, rgba(8, 8, 114, 0.08), rgba(8, 8, 114, 0));
    z-index: 0;
    pointer-events: none;
}

/* ================================================================
   INNER & HEADER
   ================================================================ */
.eea-services__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.eea-services__header {
    margin-bottom: 64px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.eea-services__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--eea-svc-accent);
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.eea-services__eyebrow-line {
    display: inline-block;
    width: 36px;
    height: 1px;
    background: var(--eea-svc-accent);
    opacity: .7;
}

.eea-services__heading {
    font-family: 'Baskervville', 'GFS Didot', Georgia, serif;
    font-size: clamp(28px, 4.2vw, 48px);
    font-weight: 600;
    line-height: 1.15;
    color: var(--eea-svc-primary);
    margin: 0 0 18px;
    letter-spacing: 0.3px;
}

.eea-services__sub {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #5a5a70;
    margin: 0;
}

/* ================================================================
   GRID
   ================================================================ */
.eea-services__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    width: 100%;
}

.eea-services__card-wrap {
    position: relative;
    display: flex;
    height: 100%;
}

/* ================================================================
   CARD
   ================================================================ */
.eea-services__card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    background: var(--eea-svc-white);
    border: 1px solid rgba(8, 8, 114, 0.06);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 50px -10px rgba(8, 8, 114, 0.10);
    transition: transform .45s var(--eea-svc-ease), box-shadow .45s var(--eea-svc-ease), border-color .3s var(--eea-svc-ease);
    cursor: default;
}

a.eea-services__card {
    cursor: pointer;
}

.eea-services__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 70px -10px rgba(8, 8, 114, 0.20);
    border-color: rgba(199, 167, 62, 0.30);
}

/* Gold left-edge accent bar that grows on hover */
.eea-services__card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--eea-svc-accent);
    border-radius: 0 3px 3px 0;
    transition: height .45s var(--eea-svc-ease);
    z-index: 3;
}

.eea-services__card:hover::before {
    height: 56px;
}

/* ================================================================
   CARD — MEDIA / IMAGE
   ================================================================ */
.eea-services__media {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: #f4f4fb;
}

.eea-services__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform .8s var(--eea-svc-ease);
}

.eea-services-zoom-yes .eea-services__card:hover .eea-services__media img {
    transform: scale(1.08);
}

/* Bottom gradient overlay for readability */
.eea-services__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(8, 8, 114, 0.55) 100%);
    pointer-events: none;
}

/* Icon overlay (gold circle on top-right of image) */
.eea-services__icon {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--eea-svc-accent);
    color: var(--eea-svc-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(199, 167, 62, 0.35);
    z-index: 2;
    transition: transform .4s var(--eea-svc-ease);
}

.eea-services__icon i,
.eea-services__icon svg {
    width: 18px;
    height: 18px;
    font-size: 18px;
    color: inherit;
    fill: currentColor;
}

.eea-services__icon svg path { fill: currentColor; }

.eea-services__card:hover .eea-services__icon {
    transform: rotate(-12deg) scale(1.05);
}

/* Number badge (bottom-left of image) */
.eea-services__number {
    position: absolute;
    bottom: 18px;
    left: 22px;
    color: var(--eea-svc-white);
    font-family: 'Baskervville', serif;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 2;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    opacity: .9;
}

/* ================================================================
   CARD — CONTENT
   ================================================================ */
.eea-services__content {
    position: relative;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.eea-services__category {
    display: inline-flex;
    align-self: flex-start;
    padding: 5px 12px;
    background: rgba(199, 167, 62, 0.12);
    color: var(--eea-svc-accent);
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 999px;
    margin: 0 0 4px;
}

.eea-services__title {
    font-family: 'Baskervville', 'GFS Didot', Georgia, serif;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--eea-svc-primary);
    margin: 0;
    transition: color .3s var(--eea-svc-ease);
}

.eea-services__desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: #5a5a70;
    margin: 0;
}

/* Features checklist */
.eea-services__features {
    display: flex !important;
    flex-direction: column;
    gap: 8px;
    margin: 4px 0 0 !important;
}

.eea-services__features li {
    position: relative;
    padding-left: 28px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: #3a3a55;
}

.eea-services__features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 1px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(199, 167, 62, 0.12);
    color: var(--eea-svc-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

/* "Learn More" link */
.eea-services__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
    color: var(--eea-svc-primary);
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color .3s var(--eea-svc-ease), gap .3s var(--eea-svc-ease);
}

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

.eea-services__card:hover .eea-services__link {
    color: var(--eea-svc-accent);
    gap: 14px;
}

.eea-services__card:hover .eea-services__link svg {
    transform: translateX(4px);
}

/* ================================================================
   CARD VARIANT — OVERLAY  (content over image)
   ================================================================ */
.eea-services-style-overlay .eea-services__card {
    border: none;
}

.eea-services-style-overlay .eea-services__media {
    height: 460px;
    flex: 1;
}

.eea-services-style-overlay .eea-services__media::after {
    background: linear-gradient(180deg, transparent 20%, rgba(8, 8, 114, 0.85) 100%);
}

.eea-services-style-overlay .eea-services__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 32px 28px;
    color: var(--eea-svc-white);
}

.eea-services-style-overlay .eea-services__title {
    color: var(--eea-svc-white);
}

.eea-services-style-overlay .eea-services__desc {
    color: rgba(255, 255, 255, 0.88);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height .5s var(--eea-svc-ease), opacity .4s var(--eea-svc-ease);
}

.eea-services-style-overlay .eea-services__card:hover .eea-services__desc {
    max-height: 200px;
    opacity: 1;
}

.eea-services-style-overlay .eea-services__features {
    display: none !important;
}

.eea-services-style-overlay .eea-services__category {
    background: rgba(255, 255, 255, 0.18);
    color: var(--eea-svc-white);
}

.eea-services-style-overlay .eea-services__link {
    color: var(--eea-svc-white);
}

.eea-services-style-overlay .eea-services__card:hover .eea-services__link {
    color: var(--eea-svc-gold-lt);
}

/* ================================================================
   CARD VARIANT — MINIMAL  (no image, icon-based)
   ================================================================ */
.eea-services-style-minimal .eea-services__media {
    display: none;
}

.eea-services-style-minimal .eea-services__content {
    padding: 40px 28px;
}

.eea-services-style-minimal .eea-services__content::before {
    content: "";
    display: block;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--eea-svc-accent), rgba(199, 167, 62, 0.5));
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(199, 167, 62, 0.25);
}

/* ================================================================
   ENTRY ANIMATIONS  (visible by default, animate when JS-ready)
   ================================================================ */
.eea-services [data-aos] {
    opacity: 1;
    transform: none;
}

.eea-services--js-ready [data-aos] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s var(--eea-svc-ease), transform .7s var(--eea-svc-ease);
}

.eea-services--js-ready.is-in-view [data-aos] {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger card entries */
.eea-services--js-ready.is-in-view .eea-services__card-wrap:nth-child(1) [data-aos],
.eea-services--js-ready.is-in-view .eea-services__card-wrap:nth-child(1) { transition-delay: .05s; }
.eea-services--js-ready.is-in-view .eea-services__card-wrap:nth-child(2) { transition-delay: .15s; }
.eea-services--js-ready.is-in-view .eea-services__card-wrap:nth-child(3) { transition-delay: .25s; }
.eea-services--js-ready.is-in-view .eea-services__card-wrap:nth-child(4) { transition-delay: .35s; }
.eea-services--js-ready.is-in-view .eea-services__card-wrap:nth-child(5) { transition-delay: .45s; }
.eea-services--js-ready.is-in-view .eea-services__card-wrap:nth-child(6) { transition-delay: .55s; }

/* ================================================================
   ELEMENTOR / THEME GUARDS
   ================================================================ */
.elementor-page .eea-services a,
.e-con .eea-services a {
    text-decoration: none !important;
}

/* ================================================================
   RESPONSIVE  (column count is controlled by Elementor's responsive
   "Columns" control — these media queries only handle non-column
   sizing that should always shrink on smaller screens)
   ================================================================ */
@media (max-width: 768px) {
    .eea-services {
        padding: 64px 20px;
    }
    .eea-services__header {
        margin-bottom: 40px;
    }
    .eea-services__heading {
        font-size: clamp(26px, 8vw, 36px);
    }
    .eea-services__media {
        height: 220px;
    }
    .eea-services-style-overlay .eea-services__media {
        height: 380px;
    }
    .eea-services-style-overlay .eea-services__desc {
        max-height: 200px;
        opacity: 1;
    }
    .eea-services__content {
        padding: 24px;
    }
    .eea-services__title {
        font-size: 22px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .eea-services,
    .eea-services *,
    .eea-services *::before,
    .eea-services *::after {
        animation: none !important;
        transition: none !important;
    }
    .eea-services [data-aos] {
        opacity: 1 !important;
        transform: none !important;
    }
}
