/* =========================================================
   HPA Modern Theme Overrides
   Layered on top of the legacy Divi/plugin styles
   ========================================================= */

:root {
    --hpa-primary: #00667a;
    --hpa-primary-dark: #003f4d;
    --hpa-accent: #7ebec5;
    --hpa-accent-soft: #d6ecef;
    --hpa-text: #1f2d33;
    --hpa-muted: #6c7a82;
    --hpa-bg: #f7fafb;
    --hpa-card: #ffffff;
    --hpa-border: #e3ebee;
    --hpa-shadow-sm: 0 4px 12px -6px rgba(0, 63, 77, 0.18);
    --hpa-shadow-md: 0 14px 30px -14px rgba(0, 63, 77, 0.28);
    --hpa-shadow-lg: 0 30px 60px -25px rgba(0, 63, 77, 0.35);
    --hpa-radius-sm: 0.5rem;
    --hpa-radius: 0.85rem;
    --hpa-radius-lg: 1.25rem;
    --hpa-gradient: linear-gradient(135deg, #00667a 0%, #7ebec5 100%);
    --hpa-gradient-soft: linear-gradient(135deg, rgba(0,102,122,0.95) 0%, rgba(126,190,197,0.85) 100%);
}

body.rtl {
    background: var(--hpa-bg) !important;
    color: var(--hpa-text);
    font-feature-settings: "ss01", "ss02";
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { transition: color .2s ease; }

/* =========================================================
   Header / Navigation — complete redesign
   ========================================================= */
#main-header {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    box-shadow: 0 8px 24px -16px rgba(0, 63, 77, 0.28);
    border-bottom: 1px solid rgba(0, 63, 77, 0.05);
}

#main-header .et_menu_container { position: relative; }

/* ---------- Top-level nav list ---------- */
#main-header #top-menu,
#main-header #top-menu.hpa-nav__list {
    display: flex !important;
    flex-direction: row;            /* under dir=rtl, row already flows right-to-left */
    align-items: center;
    gap: 4px;
    line-height: 1 !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Hard-reset every legacy padding/margin/float on top-level items */
#main-header #top-menu > li,
#main-header #top-menu > li.hpa-nav__item {
    display: block !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    list-style: none;
}

/* ---------- Top-level link (the pill) ---------- */
#main-header #top-menu > li > a,
#main-header #top-menu > li > .hpa-nav__link {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    color: var(--hpa-text) !important;
    font-weight: 600;
    font-size: 15px !important;
    line-height: 1 !important;
    padding: 10px 16px !important;
    border-radius: 999px;
    background: transparent !important;
    position: relative;
    text-decoration: none !important;
    transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

/* Animated underline under the pill, centered, doesn't collide with the pill bg */
#main-header #top-menu > li > a::after,
#main-header #top-menu > li > .hpa-nav__link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--hpa-gradient);
    border-radius: 2px;
    transition: width .25s ease;
}

/* Hover state */
#main-header #top-menu > li:hover > a,
#main-header #top-menu > li:hover > .hpa-nav__link {
    color: var(--hpa-primary) !important;
    background: rgba(126, 190, 197, 0.14) !important;
}

#main-header #top-menu > li:hover > a::after,
#main-header #top-menu > li:hover > .hpa-nav__link::after {
    width: 36px;
}

/* Active (current page) — pill background + visible underline */
#main-header #top-menu > li.current-menu-item > a,
#main-header #top-menu > li.current-menu-ancestor > a,
#main-header #top-menu > li.current_page_item > a,
#main-header #top-menu > li.current-menu-item > .hpa-nav__link,
#main-header #top-menu > li.current-menu-ancestor > .hpa-nav__link {
    color: var(--hpa-primary-dark) !important;
    background: rgba(126, 190, 197, 0.22) !important;
}

#main-header #top-menu > li.current-menu-item > a::after,
#main-header #top-menu > li.current-menu-ancestor > a::after,
#main-header #top-menu > li.current_page_item > a::after {
    width: 44px;
}

/* ---------- Caret icon ---------- */
.hpa-nav__caret {
    font-size: 11px;
    line-height: 1;
    transition: transform .25s ease;
    opacity: .75;
}

#main-header #top-menu > li:hover .hpa-nav__caret {
    transform: rotate(-180deg);
    opacity: 1;
}

/* Legacy Divi adds a ::after arrow inside `.menu-item-has-children > a` — kill it */
#main-header #top-menu .menu-item-has-children > a:first-child::after,
#main-header #top-menu .menu-item-has-sub-children > a:first-child::after {
    content: none !important;
    display: none !important;
}
/* but we still want OUR own underline ::after on the link to render — re-enable it */
#main-header #top-menu > li.menu-item-has-children > a::after,
#main-header #top-menu > li.menu-item-has-children > .hpa-nav__link::after {
    content: "" !important;
    display: block !important;
    position: absolute;
    left: 50%;
    bottom: 2px;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--hpa-gradient);
    border-radius: 2px;
    transition: width .25s ease;
}
#main-header #top-menu > li.menu-item-has-children:hover > a::after,
#main-header #top-menu > li.menu-item-has-children:hover > .hpa-nav__link::after {
    width: 36px;
}
#main-header #top-menu > li.menu-item-has-children.current-menu-item > a::after,
#main-header #top-menu > li.menu-item-has-children.current-menu-ancestor > a::after {
    width: 44px;
}

/* ---------- Dropdown panel ---------- */
#main-header #top-menu .sub-menu,
#main-header #top-menu .hpa-nav__dropdown {
    background: #fff !important;
    border: 1px solid rgba(0, 63, 77, 0.06) !important;
    border-top: 1px solid rgba(0, 63, 77, 0.06) !important;   /* overrides legacy 3px blue */
    border-radius: 14px !important;
    box-shadow: 0 24px 48px -20px rgba(0, 63, 77, 0.28),
                0 6px 18px -8px rgba(0, 63, 77, 0.18) !important;
    padding: 8px !important;
    margin: 0 !important;
    margin-top: 14px !important;     /* visual gap to parent link */
    width: auto !important;          /* override legacy width: 240px */
    min-width: 240px !important;
    list-style: none;
    /* slide-in animation */
    transform: translateY(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
    pointer-events: none;
}

/* Invisible "bridge" so the cursor can travel from the link DOWN to the
   dropdown without leaving the hover area (this kills the close-on-traverse bug). */
#main-header #top-menu .sub-menu::before,
#main-header #top-menu .hpa-nav__dropdown::before {
    content: "";
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
    background: transparent;
}

/* Decorative tick on the dropdown — moved to ::after so ::before can be the bridge */
#main-header #top-menu .sub-menu::after,
#main-header #top-menu .hpa-nav__dropdown::after {
    content: "";
    position: absolute;
    top: -6px;
    inset-inline-end: 24px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-top: 1px solid rgba(0, 63, 77, 0.06);
    border-inline-end: 1px solid rgba(0, 63, 77, 0.06);
    transform: rotate(-45deg);
}

#main-header #top-menu > li:hover > .sub-menu,
#main-header #top-menu > li:hover > .hpa-nav__dropdown,
#main-header #top-menu > li:focus-within > .sub-menu,
#main-header #top-menu > li:focus-within > .hpa-nav__dropdown {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .22s ease, transform .22s ease, visibility 0s linear 0s;
}

/* ---------- Dropdown item ---------- */
#main-header #top-menu .sub-menu li,
#main-header #top-menu .hpa-nav__dropdown-item {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    position: relative;
    list-style: none;
}

#main-header #top-menu .sub-menu li > a,
#main-header #top-menu .hpa-nav__dropdown-link {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    width: auto !important;        /* override legacy width: 200px */
    color: var(--hpa-text) !important;
    font-size: 14px !important;
    font-weight: 500;
    line-height: 1.5 !important;
    padding: 10px 14px !important;
    border-radius: 10px;
    text-decoration: none !important;
    background: transparent !important;
    transition: background .2s ease, color .2s ease, padding .2s ease, transform .2s ease;
    position: relative;
}

/* Left accent bar that grows in on hover */
#main-header #top-menu .sub-menu li > a::before,
#main-header #top-menu .hpa-nav__dropdown-link::before {
    content: "";
    position: absolute;
    top: 50%;
    inset-inline-start: 6px;
    transform: translateY(-50%);
    width: 0;
    height: 60%;
    background: var(--hpa-gradient);
    border-radius: 2px;
    transition: width .2s ease;
}

#main-header #top-menu .sub-menu li > a:hover,
#main-header #top-menu .sub-menu li.current-menu-item > a,
#main-header #top-menu .hpa-nav__dropdown-link:hover {
    background: var(--hpa-accent-soft) !important;
    color: var(--hpa-primary-dark) !important;
    padding-inline-start: 22px !important;
}

#main-header #top-menu .sub-menu li > a:hover::before,
#main-header #top-menu .sub-menu li.current-menu-item > a::before,
#main-header #top-menu .hpa-nav__dropdown-link:hover::before {
    width: 3px;
}

/* sub-caret rotates a tiny bit when its row is hovered */
.hpa-nav__sub-caret {
    font-size: 11px;
    color: var(--hpa-muted);
    transition: transform .2s ease, color .2s ease;
}

#main-header #top-menu .sub-menu li:hover > a .hpa-nav__sub-caret {
    color: var(--hpa-primary);
    transform: translateX(-3px);
}

/* ---------- Nested (3rd-level) submenu ---------- */
#main-header #top-menu .sub-menu .sub-menu,
#main-header #top-menu .hpa-nav__sub-dropdown {
    position: absolute;
    top: -8px;
    inset-inline-end: calc(100% + 6px);
    inset-inline-start: auto;
    margin: 0 !important;
    transform: translateX(-8px);
}

#main-header #top-menu .sub-menu .sub-menu::before,
#main-header #top-menu .hpa-nav__sub-dropdown::before {
    display: none;
}

#main-header #top-menu .sub-menu li:hover > .sub-menu,
#main-header #top-menu .sub-menu li:hover > .hpa-nav__sub-dropdown {
    transform: translateX(0);
}

/* Phone CTA pill — sits on the visual LEFT edge of the navbar (opposite the
   logo, which sits on the visual RIGHT in RTL). Pulled OUT of logo_container's
   positioning context via fixed offset within the relative .et_menu_container. */
.header-phone-cta {
    position: absolute;
    top: 50%;
    left: 15px;
    right: auto;
    transform: translateY(-50%);
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .35rem 1rem .35rem .35rem;
    background: var(--hpa-gradient);
    border: none;
    border-radius: 999px;
    text-decoration: none !important;
    color: #fff !important;
    line-height: 1.1;
    margin: 0 !important;
    float: none !important;
    box-shadow: 0 8px 18px -10px rgba(0, 102, 122, 0.55);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.header-phone-cta:hover {
    color: #fff !important;
    box-shadow: 0 12px 24px -10px rgba(0, 102, 122, 0.75);
    transform: translateY(-50%) translateY(-1px);
    filter: brightness(1.06);
}

.header-phone-cta .header-phone-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--hpa-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    flex-shrink: 0;
}

.header-phone-cta .header-phone-text {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.15;
}

.header-phone-cta .header-phone-label {
    font-size: .68rem;
    opacity: .85;
    font-weight: 500;
}

.header-phone-cta .header-phone-number {
    font-size: .92rem;
    font-weight: 700;
    letter-spacing: .3px;
}

/* Reserve room on the navigation:
   - right side (RTL start) for the LOGO (absolutely positioned over the navbar)
   - left side (RTL end)   for the PHONE CTA pill
   Also override legacy padding-top: 35px so the menu vertically centers in the 84px navbar. */
#main-header #et-top-navigation {
    padding: 0 !important;
    padding-right: 170px !important;   /* logo space (RTL: visual right) */
    padding-left: 200px !important;    /* phone CTA space (RTL: visual left) */
    height: 84px;
    display: flex !important;
    align-items: center;
    justify-content: flex-start;       /* under RTL, flex-start is the right edge */
}

#main-header #top-menu-nav {
    display: flex;
    align-items: center;
    width: 100%;
    float: none !important;
}

@media (max-width: 980px) {
    .header-phone-cta .header-phone-text { display: none; }
    .header-phone-cta {
        padding: .3rem;
        left: 10px;
    }
    .header-phone-cta .header-phone-icon {
        width: 34px;
        height: 34px;
        font-size: .95rem;
    }
    #main-header #et-top-navigation {
        padding-right: 0 !important;
        padding-left: 60px !important;
    }
}

.visually-hidden-focusable {
    position: absolute;
    top: -100px;
    inset-inline-start: 1rem;
    background: var(--hpa-primary);
    color: #fff;
    padding: .5rem 1rem;
    border-radius: 0 0 .5rem .5rem;
    z-index: 9999;
    transition: top .2s ease;
}
.visually-hidden-focusable:focus { top: 0; }

/* =========================================================
   Hero / Main Slider
   ========================================================= */
.et_pb_fullwidth_slider_0 .et_pb_slide {
    position: relative;
    background-size: cover !important;
    background-position: center !important;
}

.et_pb_fullwidth_slider_0 .et_pb_slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(0, 31, 38, 0.30) 0%,
        rgba(0, 63, 77, 0.25) 45%,
        rgba(0, 63, 77, 0.55) 100%);
    z-index: 1;
}

.et_pb_fullwidth_slider_0 .et_pb_container {
    position: relative;
    z-index: 2;
}

.et_pb_fullwidth_slider_0 .et_pb_slide_title,
.et_pb_fullwidth_slider_0 .et_pb_slide_title a {
    color: #fff !important;
    font-weight: 800 !important;
    font-size: clamp(1.6rem, 4vw, 3rem) !important;
    line-height: 1.3 !important;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
    letter-spacing: -0.5px;
}

.et_pb_fullwidth_slider_0 .et_pb_slide_content {
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: clamp(0.95rem, 1.4vw, 1.15rem) !important;
    max-width: 720px;
    margin-inline: auto;
    line-height: 1.85 !important;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
}

.et_pb_fullwidth_slider_0 .et_pb_button {
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.85) !important;
    padding: .85rem 2rem !important;
    border-radius: 999px !important;
    font-weight: 600 !important;
    transition: background .25s ease, transform .25s ease, box-shadow .25s ease !important;
}

.et_pb_fullwidth_slider_0 .et_pb_button:hover {
    background: #fff !important;
    color: var(--hpa-primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.45);
}

.et_pb_fullwidth_slider_0 .et-pb-controllers {
    z-index: 3;
}

.et_pb_fullwidth_slider_0 .et-pb-controllers a {
    background: rgba(255, 255, 255, 0.45) !important;
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    margin: 0 4px !important;
    transition: all .25s ease !important;
    text-indent: -9999px;
    overflow: hidden;
    border: none !important;
}

.et_pb_fullwidth_slider_0 .et-pb-controllers a.et-pb-active-control {
    background: #fff !important;
    width: 32px !important;
    border-radius: 999px !important;
}

.et_pb_fullwidth_slider_0 .et-pb-slider-arrows a {
    color: #fff !important;
    background: rgba(0, 0, 0, 0.25);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .25s ease;
}
.et_pb_fullwidth_slider_0 .et-pb-slider-arrows a:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* =========================================================
   Section Headings
   ========================================================= */
.et_pb_text_0 h1,
.et_pb_text_0 h2 {
    color: var(--hpa-primary-dark) !important;
    font-weight: 800 !important;
    position: relative;
    display: inline-block;
    padding-bottom: .75rem;
    margin-bottom: 2rem !important;
}

.et_pb_text_0 h1::after,
.et_pb_text_0 h2::after {
    content: "";
    position: absolute;
    inset-inline-start: 50%;
    transform: translateX(50%);
    bottom: 0;
    width: 70px;
    height: 4px;
    background: var(--hpa-gradient);
    border-radius: 999px;
}

/* =========================================================
   About Us Section
   ========================================================= */
#about-us {
    padding: 5rem 1rem !important;
    background: linear-gradient(180deg, #ffffff 0%, var(--hpa-bg) 100%) !important;
}

#about-us .et_pb_text_inner {
    color: var(--hpa-text);
    font-size: 1.05rem;
    line-height: 2.1;
}

#about-us .et_pb_text_inner h1,
#about-us .et_pb_text_inner h2,
#about-us .et_pb_text_inner h3 {
    color: var(--hpa-primary-dark);
    font-weight: 700;
    margin-bottom: 1rem;
}

#about-us .et_pb_image_wrap img {
    border-radius: var(--hpa-radius-lg);
    box-shadow: var(--hpa-shadow-lg);
    transition: transform .4s ease;
}

#about-us .et_pb_image_wrap:hover img {
    transform: translateY(-6px);
}

/* =========================================================
   Product Categories Cards
   ========================================================= */
.et_pb_section .et_pb_blurb {
    background: var(--hpa-card);
    border-radius: var(--hpa-radius-lg);
    padding: 2.25rem 1.5rem 1.5rem !important;
    box-shadow: var(--hpa-shadow-sm);
    border: 1px solid var(--hpa-border);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    height: 100%;
}

.et_pb_section .et_pb_blurb:hover {
    transform: translateY(-8px);
    box-shadow: var(--hpa-shadow-lg);
    border-color: var(--hpa-accent);
}

.et_pb_section .et_pb_main_blurb_image {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.et_pb_section .et_pb_main_blurb_image .et_pb_image_wrap {
    display: inline-block;
    background: linear-gradient(135deg, var(--hpa-accent-soft), #fff);
    padding: 1.25rem;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px var(--hpa-border);
    transition: transform .35s ease;
}

.et_pb_section .et_pb_blurb:hover .et_pb_image_wrap {
    transform: scale(1.05) rotate(-3deg);
}

.et_pb_section .et_pb_blurb img {
    max-width: 100% !important;
    height: auto;
}

.et_pb_section .et_pb_module_header a {
    color: var(--hpa-primary-dark) !important;
    font-size: 1.25rem;
    font-weight: 700;
}

.et_pb_section .et_pb_blurb_description {
    color: var(--hpa-muted);
    font-size: .95rem;
    line-height: 1.9;
}

.et_pb_section .et_pb_button_module_wrapper {
    margin-top: 1.25rem;
}

.et_pb_button {
    display: inline-block !important;
    background: var(--hpa-gradient) !important;
    color: #fff !important;
    border: none !important;
    padding: .75rem 1.75rem !important;
    border-radius: 999px !important;
    font-weight: 600 !important;
    box-shadow: 0 10px 22px -10px rgba(0, 102, 122, 0.55) !important;
    transition: transform .25s ease, box-shadow .25s ease !important;
}

.et_pb_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -10px rgba(0, 102, 122, 0.7) !important;
    color: #fff !important;
}

/* Tighter padding override for product cards (Divi had 5rem) */
.et_pb_section .col-lg-4[style*="padding:5rem"],
.et_pb_section .col-md-6[style*="padding:5rem"] {
    padding: 1rem !important;
}

/* =========================================================
   Latest Blog Cards
   ========================================================= */
article.card {
    border-radius: var(--hpa-radius-lg) !important;
    box-shadow: var(--hpa-shadow-sm);
    transition: transform .3s ease, box-shadow .3s ease;
    background: var(--hpa-card);
}

article.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hpa-shadow-md);
}

article.card .card-title a {
    color: var(--hpa-primary-dark) !important;
    transition: color .2s ease;
}

article.card:hover .card-title a {
    color: var(--hpa-primary) !important;
}

article.card .btn-outline-info {
    color: var(--hpa-primary) !important;
    border-color: var(--hpa-primary) !important;
    border-radius: 999px;
    padding: .5rem 1.25rem;
    font-weight: 600;
    transition: background .25s ease, color .25s ease;
}

article.card .btn-outline-info:hover {
    background: var(--hpa-primary) !important;
    color: #fff !important;
}

section[aria-label="آخرین مقالات"] h2 {
    color: var(--hpa-primary-dark);
    font-weight: 800;
    position: relative;
    display: inline-block;
    padding-bottom: .75rem;
    margin-inline: auto;
}

section[aria-label="آخرین مقالات"] h2::after {
    content: "";
    position: absolute;
    inset-inline-start: 50%;
    transform: translateX(50%);
    bottom: 0;
    width: 70px;
    height: 4px;
    background: var(--hpa-gradient);
    border-radius: 999px;
}

/* =========================================================
   Footer
   ========================================================= */
.first-footer {
    background: linear-gradient(135deg, #003f4d 0%, #00667a 100%) !important;
    color: rgba(255, 255, 255, 0.92);
    padding: 4rem 2rem 3rem !important;
    margin-top: 4rem;
    position: relative;
}

.first-footer::before {
    content: "";
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: 4px;
    background: var(--hpa-gradient);
}

.first-footer h5 {
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: .5rem;
}

.first-footer h5::after {
    content: "";
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 40px;
    height: 2px;
    background: var(--hpa-accent);
    border-radius: 999px;
}

.first-footer p,
.first-footer a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}

.first-footer a:hover {
    color: #fff;
    transform: translateX(-3px);
}

.first-footer ul.quick-access {
    list-style: none;
    padding: 0;
    margin: 0;
}

.first-footer ul.quick-access li {
    margin-bottom: .6rem;
}

.first-footer ul.quick-access li a {
    color: #ffffff !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-weight: 500;
    transition: color .2s ease, transform .2s ease;
}

.first-footer ul.quick-access li a i {
    color: var(--hpa-accent);
    font-size: .9rem;
    transition: color .2s ease, transform .2s ease;
}

.first-footer ul.quick-access li a:hover {
    color: var(--hpa-accent) !important;
    transform: translateX(-3px);
}

.first-footer ul.quick-access li a:hover i {
    color: #ffffff;
    transform: translateX(-2px);
}

.first-footer .footer-contact-line {
    margin-bottom: .65rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.7;
}

.first-footer .footer-contact-line i {
    color: var(--hpa-accent);
    font-size: 1.05rem;
    flex-shrink: 0;
}

.first-footer .footer-contact-line a {
    color: rgba(255, 255, 255, 0.88) !important;
    text-decoration: none;
}

.first-footer .footer-contact-line a:hover {
    color: #fff !important;
}

.first-footer .social-row {
    display: flex;
    gap: .65rem;
    flex-wrap: wrap;
}

.first-footer .social-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
    font-size: 1.15rem;
    text-decoration: none;
    transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}

.first-footer .social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.4);
}

.first-footer .social-whatsapp:hover { background: #25d366; }
.first-footer .social-mail:hover     { background: #ea4335; }
.first-footer .social-phone:hover    { background: var(--hpa-accent); color: var(--hpa-primary-dark) !important; }

#custom-footer {
    background: #002a35 !important;
    color: rgba(255, 255, 255, 0.7);
    padding: 1rem 2rem !important;
    font-size: .85rem;
}

#custom-footer .copy-right-box {
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

#custom-footer strong {
    color: #fff;
}

/* =========================================================
   Scroll-to-top button (Divi's .et_pb_scroll_top)
   ========================================================= */
body .et_pb_scroll_top.et-pb-icon {
    position: fixed !important;
    bottom: 28px !important;
    left: 28px !important;       /* visual left, regardless of dir */
    right: auto !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #00667a 0%, #7ebec5 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 14px 30px -10px rgba(0, 63, 77, 0.55) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 99 !important;
    border: 2px solid rgba(255, 255, 255, 0.85) !important;
    transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease !important;
    opacity: 1 !important;
}

body .et_pb_scroll_top.et-pb-icon.et-hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(20px) !important;
}

body .et_pb_scroll_top.et-pb-icon::before {
    color: #ffffff !important;
    font-size: 1.4rem !important;
    line-height: 1 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

body .et_pb_scroll_top.et-pb-icon:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 18px 35px -10px rgba(0, 63, 77, 0.7) !important;
}

body .et_pb_scroll_top.et-pb-icon:active {
    transform: translateY(-1px) !important;
}

/* =========================================================
   Utilities
   ========================================================= */
.d-none-empty:empty { display: none !important; }

/* Smoother focus rings for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--hpa-accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* =========================================================
   Responsive tweaks
   ========================================================= */
@media (max-width: 768px) {
    .first-footer {
        padding: 3rem 1.25rem 2rem !important;
        text-align: center;
    }

    .first-footer h5::after {
        inset-inline-start: 50%;
        transform: translateX(50%);
    }

    .et_pb_fullwidth_slider_0 .et_pb_slide_title {
        font-size: 1.5rem !important;
    }

    .et_pb_fullwidth_slider_0 .et_pb_container {
        height: auto !important;
        padding: 3rem 1rem;
    }
}
