/* ==========================================================================
   GLOBAL STYLES - Apply to ALL pages
   ========================================================================== */

/* ============================================================
   CONTAINER - Global
   ============================================================ */
.el-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* ============================================================
   FOOTER - Global Styles (applies to ALL pages)
   ============================================================ */

.el-footer {
    background: #123263;
    color: rgba(255, 255, 255, 0.85);
}

.el-footer a {
    color: inherit;
}

.el-footer h2,
.el-footer h3 {
    color: #ffffff;
    margin: 0 0 0.5em;
}

.el-footer h3 {
    text-transform: UPPERCASE;
    font-weight: 400;
    font-size: 18px;
}

/* Subscribe Section */
.el-footer__subscribe {
    background: #204e8f;
    padding: 40px 0;
}

.el-footer__subscribe-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.el-footer__subscribe-inner > div {
    width: 40%;
}

.el-footer__subscribe-inner > div:last-child {
    width: 55%;
}

.el-footer__subscribe-inner h2 {
    margin-bottom: 0.2rem !important;
    font-size: 28px !important;
    font-weight: 500 !important;
}

.el-footer__subscribe p {
    margin: 0;
    opacity: 0.85;
    font-size: 1.1rem;
}

.el-footer button.elementor-button {
    text-transform: UPPERCASE !important;
}

/* Main Footer */
.el-footer__main {
    padding: 56px 0;
}

.el-footer__logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 32px;
}

.el-footer__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.6fr;
    gap: 32px;
}

.el-footer__col p {
    margin: 0 0 0.2em;
    opacity: 0.85;
    line-height: 1.6;
}

.el-footer__col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.el-footer__address {
    margin-top: 0.6rem !important;
}

.el-footer__connect-heading {
    margin-top: 1.5em !important;
}

.el-footer__social {
    display: flex;
    gap: 12px;
}

.el-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.el-footer__social a:hover {
    background: #e8891c;
}

.el-footer__col--links .el-footer__links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 32px;
}

/* Legal Section */
.el-footer__legal {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 20px 0;
}

.el-footer__legal-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.el-footer__legal-inner p {
    margin: 0;
    opacity: 0.7;
}

.el-footer__legal-inner ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.el-footer__legal-inner ul a {
    opacity: 0.7;
}

.el-footer__legal-inner ul a:hover {
    opacity: 1;
}

/* Footer Subscribe Form - Elementor Override */
.el-footer__subscribe .elementor-element-3352da34 {
    width: auto !important;
    max-width: 100% !important;
    --container-widget-width: auto !important;
    --container-widget-flex-grow: 0 !important;
    flex-shrink: 0;
}

.el-footer__subscribe .elementor-form-fields-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    flex-wrap: nowrap;
}

.el-footer__subscribe .elementor-field-group {
    margin: 0 !important;
}

.el-footer__subscribe .elementor-field-group.e-form__buttons {
    width: auto !important;
}

.el-footer__subscribe .elementor-field {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #ffffff !important;
    padding: 8px 4px !important;
    min-width: 160px;
}

.el-footer__subscribe .elementor-field::placeholder {
    color: rgba(255, 255, 255, 0.65) !important;
}

.el-footer__subscribe .elementor-field:focus {
    outline: none !important;
    border-bottom-color: #F58322 !important;
    box-shadow: none !important;
}

.el-footer__subscribe .elementor-button {
    border: 1px solid #fff !important;
    border-radius: 0px !important;
    padding: 8px 16px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    white-space: nowrap;
    transition: background-color 0.15s ease;
    background: transparent !important;
    color: var(--el-white) !important;
}

.el-footer__subscribe .elementor-button:hover {
    background: #c96f0c !important;
}

/* Footer Responsive */
@media (max-width: 992px) {
    .el-footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 786px) {
    .el-footer__subscribe-inner > div {
        width: 100% !important;
    }
}

@media (max-width: 600px) {
    .el-footer__grid {
        grid-template-columns: 1fr;
    }

    .el-footer__col--links .el-footer__links-grid {
        grid-template-columns: 1fr 1fr;
    }

    .el-footer__subscribe .elementor-form-fields-wrapper {
        flex-direction: column;
        align-items: stretch !important;
    }

    .el-footer__subscribe .elementor-form-fields-wrapper .elementor-field-group,
    .el-footer__subscribe .elementor-form-fields-wrapper .elementor-col-30,
    .el-footer__subscribe .elementor-form-fields-wrapper .elementor-col-40,
    .el-footer__subscribe .elementor-form-fields-wrapper .elementor-col-25,
    .el-footer__subscribe .elementor-form-fields-wrapper [class*="elementor-col-"] {
        width: 100% !important;
        max-width: 100% !important;
        flex-basis: 100% !important;
    }

    .el-footer__subscribe .elementor-field {
        min-width: 0;
        width: 100% !important;
    }

    .el-footer__subscribe .elementor-button {
        width: 100%;
    }

    .el-footer__legal-inner {
        flex-direction: column;
        text-align: center;
    }

    .el-footer__legal-inner ul {
        justify-content: center;
    }
}

/* ============================================================
   HOMEPAGE SPECIFIC STYLES (Only applies to page-home.php)
   ============================================================ */

.evaculife-home {
    --el-navy-dark: #113263;
    --el-navy: #204e90;
    --el-blue: #204e90;
    --el-orange: #e8891c;
    --el-orange-dark: #c96f0c;
    --el-bg-light: #eef1f6;
    --el-text: #1c2230;
    --el-text-muted: #4a5468;
    --el-white: #ffffff;
    --el-radius: 0px;
    --el-container: 1200px;
    color: var(--el-text);
}

body h2,
html h2 {
    font-size: 1.875rem !important;
}

/**
 * FIX: Astra's base CSS sets `.site-content .ast-container` to
 * `display:flex` at desktop widths. Force it back to block layout
 * on this page template only.
 */
body.page-template-page-home .site-content > .ast-container {
    display: block !important;
}

main.evaculife-home {
    margin-top: 0 !important;
}

/* ============================================================
   CUSTOM HEADER — replaces Astra's header
   ============================================================ */

/* ----- Top Bar ----- */
.el-topbar {
    background: #F58322;
    position: relative;
    z-index: 100;
}

.el-topbar__inner {
    display: flex;
    gap: 24px;
    justify-content: flex-end;
    padding-block: 8px;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.el-topbar__inner a {
    color: #ffffff;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.el-topbar__inner a:hover {
    text-decoration: underline;
}

.el-topbar__inner svg {
    color: #ffffff;
    stroke: #ffffff;
    fill: none;
    flex-shrink: 0;
}

/* ----- Main Header ----- */
.el-header {
    background: #003366;
    position: sticky;
    top: 0;
    z-index: 99;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: 100px;
    display: flex;
}

.el-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-block: 12px;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
}

/* Logo */
.el-header__logo {
    flex-shrink: 0;
}

.el-header__logo a {
    display: block;
    text-decoration: none;
}

.el-header__logo img {
    height: 70px;
    width: auto;
    display: block;
}

.el-site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

/* Navigation */
.el-header__nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.el-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}

.el-nav-menu > li {
    position: relative;
}

.el-nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: color 0.2s, background 0.2s;
    border-radius: 4px;
}

.el-nav-menu > li > a:hover {
    color: #F58322;
    background: rgba(255, 255, 255, 0.05);
}

.el-nav-menu > .current-menu-item > a,
.el-nav-menu > .current-menu-ancestor > a {
    color: #F58322;
}

/* ============================================================
   DROPDOWN INDICATOR (Chevron/Down Arrow)
   ============================================================ */
.el-nav-menu .menu-item-has-children > a::after {
    content: "▾";
    font-size: 0.6rem;
    margin-left: 4px;
    transition: transform 0.3s ease;
    display: inline-block;
}

/* Rotate arrow when hovered or active */
.el-nav-menu .menu-item-has-children:hover > a::after,
.el-nav-menu .menu-item-has-children:focus-within > a::after {
    transform: rotate(180deg);
}

/* Nested sub-menu indicator */
.el-nav-menu .sub-menu .menu-item-has-children > a::after {
    content: "▸";
    float: right;
    font-size: 0.7rem;
    margin-left: 8px;
    transform: none !important;
}

.el-nav-menu .sub-menu .menu-item-has-children:hover > a::after {
    transform: none !important;
}

/* Dropdown */
.el-nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    padding: 8px 0;
    list-style: none;
    margin: 0;
    z-index: 999;
}

.el-nav-menu .sub-menu .sub-menu {
    left: 100%;
    top: -8px;
}

.el-nav-menu > li:hover > .sub-menu,
.el-nav-menu > li:focus-within > .sub-menu {
    display: block;
}

.el-nav-menu .sub-menu li:hover > .sub-menu,
.el-nav-menu .sub-menu li:focus-within > .sub-menu {
    display: block;
}

.el-nav-menu .sub-menu li a {
    display: block;
    padding: 8px 20px;
    color: #1c2230;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}

.el-nav-menu .sub-menu li a:hover {
    background: #eef1f6;
    color: #F58322;
}

.el-nav-menu .sub-menu .current-menu-item > a {
    color: #F58322;
    font-weight: 600;
}

/* ============================================================
   CRITICAL: Hide Astra's dropdown arrows and buttons
   ============================================================ */
.el-nav-menu .ast-menu-toggle {
    display: none !important;
}

.el-nav-menu .dropdown-menu-toggle {
    display: none !important;
}

.el-nav-menu .ast-icon {
    display: none !important;
}

.el-nav-menu .menu-link .ast-icon {
    display: none !important;
}

/* Header Actions */
.el-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Search Button */
.el-header__search {
    color: #ffffff;
    text-decoration: none;
    padding: 6px;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s;
    background: none;
    border: none;
    cursor: pointer;
}

.el-header__search:hover {
    color: #F58322;
}

.el-header__search svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
}

/* Cart */
.el-header__cart {
    position: relative;
    color: #ffffff;
    text-decoration: none;
    padding: 6px;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s;
}

.el-header__cart:hover {
    color: #F58322;
}

.el-header__cart-count {
    position: absolute;
    top: -4px;
    right: -6px;
    background: #F58322;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.el-btn--small {
    padding: 8px 18px;
    font-size: 0.85rem;
}

/* Mobile Toggle */
.el-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.el-mobile-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: 0.3s;
}

.el-mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.el-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.el-mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Panel */
.el-mobile-panel {
    display: none;
    background: #003366;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.el-mobile-panel.open {
    display: block;
}

.el-mobile-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.el-mobile-nav > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.el-mobile-nav > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
}

.el-mobile-nav .sub-menu {
    list-style: none;
    padding-left: 20px;
    margin: 0;
}

.el-mobile-nav .sub-menu li a {
    display: block;
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
}

.el-mobile-nav .menu-item-has-children > a::after {
    content: "▾";
    font-size: 0.8rem;
    margin-left: 8px;
}

/* ============================================================
   SEARCH DROPDOWN (anchored under the header search icon)
   ============================================================ */
.el-header__search-wrap {
    position: relative;
    display: inline-flex;
}

.el-search-overlay {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 300px;
    max-width: calc(100vw - 40px);
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    padding: 12px;
    z-index: 999;
}

.el-search-overlay.open {
    display: block;
}

/* small arrow pointing up at the search icon */
.el-search-overlay::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 18px;
    width: 12px;
    height: 12px;
    background: #ffffff;
    transform: rotate(45deg);
    box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.03);
}

.el-search-overlay__form {
    width: 100%;
    display: flex;
    gap: 8px;
}

.el-search-overlay__form input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #dcdfe3;
    border-radius: 6px;
    background: #ffffff;
    color: #1a1a1a;
    font-size: 0.95rem;
}

.el-search-overlay__form input::placeholder {
    color: #8a8f96;
}

.el-search-overlay__form input:focus {
    outline: none;
    border-color: #F58322;
    box-shadow: 0 0 0 2px rgba(245, 131, 34, 0.35);
}

.el-search-overlay__form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    background: #F58322;
    border: none;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s;
}

.el-search-overlay__form button svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.el-search-overlay__form button:hover {
    background: #c96f0c;
}

/* Header Responsive */
@media (max-width: 1200px) {
    .el-header__nav {
        display: none;
    }
    .el-mobile-toggle {
        display: flex;
    }
    .el-header__actions .el-btn {
        display: none;
    }
}

@media (max-width: 600px) {
    .el-topbar__inner {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }
    .el-header__logo img {
        height: 40px;
    }
    .el-header__inner {
        padding-block: 10px;
    }
    .el-search-overlay__form {
        flex-direction: column;
    }
    .el-search-overlay__form button {
        width: 100%;
    }
    .el-search-overlay {
        right: -12px;
        width: 90vw;
    }
    .el-search-overlay::before {
        right: 30px;
    }
}

/* ============================================================
   HIDE ASTRA'S HEADER COMPLETELY
   ============================================================ */
body.page-template-page-home .site-header,
body.page-template-page-home #masthead,
body.page-template-page-home .ast-primary-header-bar,
body.page-template-page-home .ast-main-header-wrap,
body.page-template-page-home .ast-header-break-point .site-header,
body.page-template-page-home .ast-sticky-header,
body.page-template-page-home .ast-header,
body.page-template-page-home .ast-header-sticked {
    display: none !important;
}

body.page-template-page-home .site-header.ast-hfb-header .ast-primary-header-bar {
    display: none !important;
}

body.page-template-page-home .site-header .site-primary-header-wrap.ast-container {
    display: none !important;
}

/* ---- Main content container ---- */
.evaculife-home .el-container {
    max-width: var(--el-container);
    margin-inline: auto;
    padding-inline: 24px;
}

.evaculife-home h1,
.evaculife-home h2,
.evaculife-home h3 {
    color: var(--el-navy-dark);
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 0.5em;
}

.evaculife-home .el-section {
    padding: 50px 0;
}

.evaculife-home .el-eyebrow {
    color: var(--el-orange-dark);
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 0 !important;
}

.evaculife-home .el-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 14px 28px;
    border-radius: var(--el-radius);
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.evaculife-home .el-btn {
    text-transform: none !important;
    letter-spacing: normal !important;
}

.evaculife-home .el-btn--primary {
    background: var(--el-orange);
    color: var(--el-white);
}

.evaculife-home .el-btn--primary:hover {
    background: var(--el-orange-dark);
    color: var(--el-white);
}

.evaculife-home .el-btn--outline {
    background: transparent;
    color: var(--el-white);
    border: 1px solid var(--el-white);
}

.evaculife-home .el-btn--outline:hover {
    background: var(--el-white);
    color: var(--el-navy-dark);
}

.evaculife-home .el-btn--white {
    background: var(--el-white);
    color: var(--el-navy-dark);
}

.evaculife-home .el-btn--white:hover {
    background: var(--el-bg-light);
}

.el-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    text-decoration: none;
    color: #4a5468;
}

.el-link-arrow::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background: url('../img/forward-arrow-icon.webp') center / contain no-repeat;
    transition: transform 0.15s ease;
}

.el-link-arrow:hover {
    color: var(--el-orange-dark);
}

.el-link-arrow:hover::after {
    transform: translateX(4px);
}

.evaculife-home .el-section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 2px solid #dde2ea;
    padding-bottom: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.evaculife-home .el-section__head h2 {
    margin: 0;
}

/* ---------- Hero ---------- */
.evaculife-home .el-hero {
    position: relative;
    overflow: hidden;
    background: var(--el-blue);
    min-height: 550px;
}

.evaculife-home .el-hero__bg {
    background-image: url('../img/green-fire-exit-sign-showing-the-emergency-escape-route.webp');
    position: absolute;
    top: 0;
    right: 0;
    height: 550px;
    width: 60%;
    z-index: 5;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom;
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
}

.evaculife-home .el-hero__inner {
    position: relative;
    min-height: 550px;
    display: flex;
    align-items: center;
    z-index: 9;
}

.evaculife-home .el-hero__content {
    max-width: 480px;
    padding-block: 60px;
}

.evaculife-home .el-hero__title {
    color: var(--el-white);
    font-size: clamp(2rem, 4vw, 2.7rem) !important;
}

.evaculife-home .el-hero__subtitle {
    color: var(--el-white);
    font-size: 1.05rem;
    opacity: 0.92;
    margin-bottom: 1.75em;
    white-space: pre-line;
}

.evaculife-home .el-hero__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.evaculife-home .el-hero__actions a.el-btn {
    text-transform: uppercase !important;
    font-weight: 500;
}

.evaculife-home .el-hero__sign {
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

@media (max-width: 980px) {
    .evaculife-home .el-hero {
        min-height: 0;
    }
    .evaculife-home .el-hero__bg {
        display: block;
        position: static;
        width: 100%;
        height: 320px;
        clip-path: none;
        z-index: 1;
    }
    .evaculife-home .el-hero__inner {
        position: relative;
        min-height: 0;
        display: block;
        z-index: 9;
    }
    .evaculife-home .el-hero__content {
        max-width: none;
        padding-block: 32px;
    }
    .evaculife-home .el-hero__sign {
        position: absolute;
        top: 16px;
        right: 16px;
        left: auto;
        transform: none;
        width: 90px;
        height: auto;
        z-index: 9;
    }
}

@media (max-width: 480px) {
    .evaculife-home .el-hero__bg {
        height: 180px;
    }
    .evaculife-home .el-hero__sign {
        width: 72px;
    }
}

/* ---------- Category grid ---------- */
.evaculife-home .el-category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.evaculife-home .el-category-card a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: var(--el-text);
    gap: 12px;
}

.evaculife-home .el-category-card__img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: var(--el-radius);
    background: var(--el-bg-light);
    overflow: hidden;
}

.evaculife-home .el-category-card__img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.evaculife-home .el-category-card__label {
    font-weight: 600;
    font-size: 0.95rem;
}

.evaculife-home .el-category-card a:hover .el-category-card__img {
    background: #e2e8f2;
}

@media (max-width: 992px) {
    .evaculife-home .el-category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 560px) {
    .evaculife-home .el-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---------- Intro / welcome ---------- */
.evaculife-home .el-intro {
    background: var(--el-white);
}

.evaculife-home .el-intro__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.evaculife-home .el-intro__media img {
    width: 100%;
    height: auto;
    border-radius: var(--el-radius);
    display: block;
}

.evaculife-home .el-intro__content p {
    color: var(--el-text-muted);
    margin-bottom: 0.5em;
}

@media (max-width: 782px) {
    .evaculife-home .el-intro__grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Trust strip ---------- */
.evaculife-home .el-trust-strip {
    background: var(--el-bg-light);
}

.evaculife-home .el-trust-strip__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.evaculife-home .el-trust-item {
    text-align: center;
    padding-inline: 12px;
    position: relative;
}

.evaculife-home .el-trust-item__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    color: var(--el-white);
    margin-bottom: 20px;
}

.evaculife-home .el-trust-item h2 {
    font-size: 1.25rem;
}

.evaculife-home .el-trust-item p {
    color: var(--el-text-muted);
    margin-bottom: 1em;
}

.evaculife-home .el-trust-item:not(:first-child)::before {
    content: "";
    position: absolute;
    left: -20px;
    /* half of the 40px grid gap, centers it in the gutter */
    top: 10%;
    bottom: 10%;
    width: 1px;
    background: #d9dee3;
}

@media (max-width: 782px) {
    .evaculife-home .el-trust-strip__grid {
        grid-template-columns: 1fr;
    }
    .evaculife-home .el-trust-item:not(:first-child)::before {
        display: none;
        /* dividers don't make sense once it stacks to 1 column */
    }
}

/* ---------- Featured solutions ---------- */
.evaculife-home .el-solutions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px 28px;
    list-style: none;
    margin: 32px 0 0;
    padding: 0;
}

.evaculife-home .el-solutions-grid h3 {
    font-size: 1.1rem;
    margin-bottom: 0.35em;
}

.evaculife-home .el-solutions-grid h3 a {
    color: var(--el-navy-dark);
    text-decoration: none;
}

.evaculife-home .el-solutions-grid h3 a:hover {
    color: var(--el-orange-dark);
}

.evaculife-home .el-solutions-grid p {
    color: var(--el-text-muted);
    font-size: 0.95rem;
    margin: 0;
}

@media (max-width: 992px) {
    .evaculife-home .el-solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .evaculife-home .el-solutions-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Orange CTA banner ---------- */
.evaculife-home .el-cta-banner {
    background: var(--el-orange);
    text-align: center;
}

.evaculife-home .el-cta-banner__inner {
    margin: 0 auto;
}

.evaculife-home .el-cta-banner h2 {
    color: var(--el-white);
}

.evaculife-home .el-cta-banner p {
    color: var(--el-white);
    opacity: 0.95;
    margin: 0 auto 1.75em auto;
    max-width: 720px;
}

/* ---------- Contact form ---------- */
.evaculife-home .el-contact {
    position: relative;
    color: var(--el-white);
    overflow: hidden;
    padding: 64px 0;
    text-align: center;
}

.evaculife-home .el-contact__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(16, 31, 69, 0.2), rgba(16, 31, 69, 0.2)),
        url('../img/enquire-section-BG.webp') center / cover no-repeat;
}

.evaculife-home .el-contact__inner {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
}

.evaculife-home .el-contact h2 {
    color: var(--el-white);
}

.evaculife-home .el-contact p {
    opacity: 0.9;
    margin-bottom: 2em;
}

.evaculife-home .el-contact .gform-field-label {
    display: none !important;
}

.evaculife-home .el-contact .gform-footer {
    margin: 0 auto !important;
}

.evaculife-home .el-contact #gform_submit_button_3 {
    background-color: #1f4d8f !important;
    text-transform: uppercase;
}

.evaculife-home .el-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    text-align: left;
}

.evaculife-home .el-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.evaculife-home .el-form__row--full {
    grid-template-columns: 1fr;
}

.evaculife-home .el-form input,
.evaculife-home .el-form select,
.evaculife-home .el-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--el-white);
    padding: 10px 2px;
    font-size: 1rem;
    border-radius: 0;
}

.evaculife-home .el-form input::placeholder,
.evaculife-home .el-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

.evaculife-home .el-form select {
    color: rgba(255, 255, 255, 0.85);
}

.evaculife-home .el-form select option {
    color: var(--el-text);
}

.evaculife-home .el-form button {
    align-self: flex-start;
    border: none;
    cursor: pointer;
}

@media (max-width: 600px) {
    .evaculife-home .el-form__row {
        grid-template-columns: 1fr;
    }
}

/* ---------- Articles ---------- */
.evaculife-home .el-section .el-articles {
    padding: 30px 0 0 !important;
}

.evaculife-home .el-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.evaculife-home .el-article-card {
    display: block;
    text-decoration: none;
    color: var(--el-text);
}

.evaculife-home .el-article-card__img {
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: var(--el-radius);
    overflow: hidden;
    background: var(--el-bg-light);
    margin-bottom: 16px;
}

.evaculife-home .el-article-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.evaculife-home .el-article-card h3 {
    font-size: 1.05rem;
    margin: 0;
}

.evaculife-home .el-article-card:hover h3 {
    color: var(--el-orange-dark);
}

@media (max-width: 782px) {
    .evaculife-home .el-articles-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Shop By Category section ---------- */
.page-template-page-home-php .featured-cats-grid,
.featured-cats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.page-template-page-home-php .featured-cats-grid .featured-cat,
.featured-cats-grid .featured-cat {
    border: none !important;
    border-radius: 3px !important;
}

.page-template-page-home-php .featured-cats-grid a:hover .featured-cat,
.featured-cats-grid a:hover .featured-cat {
    background: #f2f2f2;
}

@media (max-width: 992px) {
    .page-template-page-home-php .featured-cats-grid,
    .featured-cats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .page-template-page-home-php .featured-cats-grid,
    .featured-cats-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

/**
 * Safety net: if Astra's own default footer widgets render underneath
 * this custom one, hide them on this page template only.
 */
body.page-template-page-home .site-footer,
body.page-template-page-home .ast-small-footer,
body.page-template-page-home footer.site-footer-wrap,
body.page-template-page-home #colophon {
    display: none !important;
}

/**
 * Fix: Remove extra margin/padding from Astra's content wrapper
 */
body.page-template-page-home .site-content {
    padding-top: 0 !important;
}

body.page-template-page-home .ast-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/**
 * Fix: Hero section full width
 */
.evaculife-home .el-hero {
    margin-top: 0 !important;
}

/* ============================================================
   GRAVITY FORMS — Validation styling (global, applies to every
   form on the site)

   Gravity Forms shows "this field is required" twice: once in
   the summary box at the top of the form, and again directly
   under (or beside) each invalid field. That's redundant, so
   the per-field copies are hidden below. The top summary box is
   kept, but resized and cleaned up — it was inheriting the
   site's global "body h2 { font-size: 1.875rem !important; }"
   rule with no line-height set, which is what caused the
   oversized, overlapping heading text.
   ============================================================ */

/* Hide the duplicate per-field / per-input error messages.
   Covers the class names used across GF versions. */
.gform_wrapper .gfield_validation_message,
.gform_wrapper .gfield_description.validation_message,
.gform_wrapper div.validation_message,
.gform_wrapper .gfield_error > .gfield_description {
    display: none !important;
}

/* Still show which fields are invalid, just via a quiet border
   instead of repeated text. */
.gform_wrapper .gfield_error input,
.gform_wrapper .gfield_error select,
.gform_wrapper .gfield_error textarea,
.gform_wrapper .gfield_error .ginput_container_name input {
    border: 1px solid #c0392b !important;
}

/* ---- Top validation summary box ---- */
.gform_validation_errors {
    font-size: 1rem;
    line-height: 1.5;
    padding: 22px 26px !important;
    border-radius: 6px;
}

.gform_validation_errors h2,
.gform_validation_errors .gform_submission_error {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    margin: 0 0 14px !important;
}

.gform_validation_errors h2 svg,
.gform_validation_errors .gform_submission_error svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 3px;
}

.gform_validation_errors ul,
.gform_validation_errors ol {
    margin: 0 !important;
    padding-left: 20px !important;
    list-style: disc;
}

.gform_validation_errors li {
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 4px;
}

.gform_validation_errors li a {
    color: inherit;
    text-decoration: none;
}
.gform_validation_errors li a:hover {
    text-decoration: underline;
}