/* ==========================================================================
   Perfex Trading Ltd - brand theme
   --------------------------------------------------------------------------
   Retones the Axial theme to the logo palette (leaf green + signal red on a
   deep forest ink) and adds the interaction polish the original stock theme
   was missing: elevation on hover, visible focus rings, gradient accents.

   Loaded last, after wp-content/themes/axial/style.css, so plain
   single-class overrides win without needing !important.
   ========================================================================== */

:root {
    /* Greens - sampled from the logo mark */
    --pf-green: #54af07;
    --pf-green-300: #7fcb33;  /* accents on dark surfaces */
    --pf-green-600: #3f8e05;
    --pf-green-650: #3a8305;  /* lightest green that holds AA behind white text */
    --pf-green-700: #2c6e04;
    --pf-green-800: #1f5503;
    --pf-green-900: #06320b;

    /* Reds - sampled from the logo arrow */
    --pf-red: #e4141b;
    --pf-red-500: #d0121a;    /* safe as text on white */
    --pf-red-600: #c10f16;
    --pf-red-700: #9e0c11;

    /* Surfaces - replaces the theme's navy #001f3f */
    --pf-ink: #062b10;
    --pf-ink-700: #0a3a17;
    --pf-ink-900: #041c0a;

    --pf-on-dark: #ffffff;
    --pf-on-dark-muted: #b9cbb8;

    --pf-grad-brand: linear-gradient(135deg, var(--pf-green) 0%, var(--pf-red) 100%);
    --pf-grad-btn: linear-gradient(135deg, var(--pf-green-650) 0%, var(--pf-green-700) 100%);
    --pf-grad-btn-hover: linear-gradient(135deg, var(--pf-green-700) 0%, var(--pf-green-800) 100%);
    --pf-grad-btn-red: linear-gradient(135deg, var(--pf-red) 0%, var(--pf-red-600) 100%);
    --pf-grad-btn-red-hover: linear-gradient(135deg, var(--pf-red-600) 0%, var(--pf-red-700) 100%);

    --pf-shadow-sm: 0 4px 14px rgba(6, 43, 16, .10);
    --pf-shadow-md: 0 14px 34px rgba(6, 43, 16, .16);
    --pf-shadow-green: 0 10px 26px rgba(63, 142, 5, .32);
    --pf-shadow-red: 0 10px 26px rgba(228, 20, 27, .30);

    --pf-ease: .3s cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------------------
   1. Base
   -------------------------------------------------------------------------- */

::-moz-selection { background: var(--pf-green); color: #fff; }
::selection      { background: var(--pf-green); color: #fff; }

/* The stock theme ships no focus styling at all - keyboard users were lost. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.btn:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--pf-green);
    outline-offset: 3px;
    border-radius: 2px;
}

/* --------------------------------------------------------------------------
   2. Dark surfaces
   -------------------------------------------------------------------------- */

.primary-bg {
    background: var(--pf-ink);
}

.header_navbar,
.header_navbar.sticky,
.header_navbar-nav_list .list-item .dropdown-content {
    background: var(--pf-ink);
}

.header_navbar.sticky {
    box-shadow: 0 6px 24px rgba(4, 28, 10, .38);
    border-bottom: 1px solid rgba(84, 175, 7, .35);
}

.hero_header .text {
    text-shadow: 0 0 6px var(--pf-ink-900);
}

/* --------------------------------------------------------------------------
   3. Header, navigation, breadcrumbs
   -------------------------------------------------------------------------- */

/* Hover / active underline under each nav item. */
.header_navbar .link--single:before {
    background: var(--pf-grad-brand);
    height: 3px;
    border-radius: 3px;
}

.header_navbar-nav_list .list-item .link {
    transition: color var(--pf-ease);
}

.header_navbar-nav_list .list-item .link:focus,
.header_navbar-nav_list .list-item .link:hover {
    color: var(--pf-green-300);
}

.header_navbar-nav_list .list-item .dropdown-trigger .icon {
    color: var(--pf-green-300);
}

/* Sign up is the one primary action in the header - give it a pill so it
   reads as a button rather than another menu entry. */
.header_navbar-nav_list .list-item .link--cta {
    padding: 10px 22px;
    border-radius: 999px;
    background: var(--pf-grad-btn);
    color: #fff;
    box-shadow: var(--pf-shadow-green);
    transition: background var(--pf-ease), box-shadow var(--pf-ease), transform var(--pf-ease);
}

.header_navbar-nav_list .list-item .link--cta:before {
    display: none;   /* the pill replaces the underline */
}

.header_navbar-nav_list .list-item .link--cta:focus,
.header_navbar-nav_list .list-item .link--cta:hover {
    color: #fff;
    background: var(--pf-grad-btn-hover);
    box-shadow: 0 14px 30px rgba(63, 142, 5, .42);
    transform: translateY(-2px);
}

/* Google Translate drop-in: the stock markup set color:#000 on a dark bar. */
.list-item--translate {
    display: flex;
    align-items: center;
    margin-left: 10px;
    min-width: 100px;
}

#google_translate_element select,
.goog-te-combo {
    max-width: 150px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 4px;
    background: var(--pf-ink-700);
    color: #fff;
    font-size: 14px;
    line-height: 20px;
    cursor: pointer;
    transition: border-color var(--pf-ease);
}

#google_translate_element select:focus,
.goog-te-combo:focus {
    border-color: var(--pf-green);
}

#google_translate_element select option,
.goog-te-combo option {
    color: #1a1a1a;
    background: #fff;
}

/* Google injects its own branding row; keep it from shifting the header. */
#google_translate_element .goog-logo-link,
#google_translate_element .goog-te-gadget > span {
    display: none;
}

#google_translate_element .goog-te-gadget {
    font-size: 0;
    line-height: 0;
    color: transparent;
}

/* Page banner: lift the artwork out of flat navy with a brand wash. */
.header_extension {
    background:
        radial-gradient(120% 140% at 88% 0%, rgba(228, 20, 27, .20) 0%, rgba(228, 20, 27, 0) 55%),
        radial-gradient(110% 130% at 0% 100%, rgba(84, 175, 7, .26) 0%, rgba(84, 175, 7, 0) 60%),
        linear-gradient(180deg, var(--pf-ink) 0%, var(--pf-ink-900) 100%);
    border-bottom: 3px solid transparent;
    border-image: var(--pf-grad-brand) 1;
}

.header_extension .section_header .title {
    text-shadow: 0 2px 18px rgba(4, 28, 10, .55);
}

.header_extension .breadcrumbs_item:before {
    background-color: var(--pf-green-300);
}

.header_extension .breadcrumbs_item a {
    transition: color var(--pf-ease);
}

.header_extension .breadcrumbs_item a:focus,
.header_extension .breadcrumbs_item a:hover {
    color: var(--pf-green-300);
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */

.btn {
    background: var(--pf-grad-btn);
    color: #fff;
    border: 0;
    border-radius: 4px;
    box-shadow: var(--pf-shadow-green);
    letter-spacing: .4px;
    transition: background var(--pf-ease), box-shadow var(--pf-ease), bottom var(--pf-ease), color var(--pf-ease);
}

.btn:focus,
.btn:hover {
    color: #fff;
    background: var(--pf-grad-btn-hover);
    box-shadow: 0 16px 34px rgba(63, 142, 5, .42);
}

/* Newsletter submit sits on the dark footer - red gives it the contrast the
   green loses against that surface. */
.btn--submit,
.wpcf7-submit {
    background: var(--pf-grad-btn-red);
    box-shadow: var(--pf-shadow-red);
}

.btn--submit:focus,
.btn--submit:hover,
.wpcf7-submit:focus,
.wpcf7-submit:hover {
    background: var(--pf-grad-btn-red-hover);
    box-shadow: 0 16px 34px rgba(228, 20, 27, .40);
}

.btn-play {
    border: 2px solid var(--pf-green-700);
    color: var(--pf-green-700);
    transition: border-color var(--pf-ease), color var(--pf-ease), background var(--pf-ease);
}

.btn-play:focus,
.btn-play:hover {
    border-color: var(--pf-green);
    background: rgba(84, 175, 7, .1);
}

.btn-play:focus i,
.btn-play:hover i {
    color: var(--pf-green);
}

/* --------------------------------------------------------------------------
   5. Links and arrows
   -------------------------------------------------------------------------- */

.link-arrow {
    color: var(--pf-green-700);
    transition: color var(--pf-ease), letter-spacing var(--pf-ease);
}

.link-arrow:focus,
.link-arrow:hover {
    color: var(--pf-red-500);
    letter-spacing: 1.6px;
}

.link-arrow--alt {
    color: var(--pf-green-300);
}

.link-arrow--alt:focus,
.link-arrow--alt:hover {
    color: #fff;
}

/* --------------------------------------------------------------------------
   6. Section headers
   -------------------------------------------------------------------------- */

/* The rule above each section title, echoing the logo's green-to-red sweep. */
.section_header .subtitle:before,
.gallery_list-item .text-wrapper .subtitle:before {
    background: var(--pf-grad-brand);
    width: 48px;
    height: 3px;
    border-radius: 3px;
}

.highlight {
    color: var(--pf-red-500);
}

.primary-bg .highlight,
.header_extension .highlight,
.hero .highlight {
    color: var(--pf-red);
}

/* --------------------------------------------------------------------------
   7. Cards and panels
   -------------------------------------------------------------------------- */

.features_card .wrapper,
.info_data-card .wrapper,
.services_list-item .wrapper {
    border-radius: 6px;
    transition: border-color var(--pf-ease), box-shadow var(--pf-ease), transform var(--pf-ease);
    will-change: transform;
}

.features_card .wrapper:hover,
.info_data-card .wrapper:hover,
.services_list-item .wrapper:hover {
    border-color: var(--pf-green);
    box-shadow: var(--pf-shadow-md);
    transform: translateY(-6px);
}

.features_card-icon * {
    fill: var(--pf-green);
}

.info_data-card .icon,
.features_header-list_item .icon,
.services_header-list_item .icon,
.team_main-list_item .icon,
.projects_list-item_info .location .icon,
.widgets_widget .icon--bubble,
input[type=checkbox]:checked + label .icon {
    color: var(--pf-green);
}

.info_data-card .content .link:focus,
.info_data-card .content .link:hover,
.contact-info_group .content .link:focus,
.contact-info_group .content .link:hover {
    color: var(--pf-green-700);
}

/* --------------------------------------------------------------------------
   8. Figures, accordions, misc accents
   -------------------------------------------------------------------------- */

.hero_info-numbers_group .number,
.spots_info-number .number {
    color: var(--pf-green-300);
}

.spots_info-number .number {
    color: var(--pf-green-700);
}

.hot-spot,
.progress-marker_spot,
.progress-step.is-active .progress-marker::before,
.progress-step.is-complete .progress-marker::after,
.progress-step.is-complete .progress-marker::before,
.progress-step.is-progress .progress-marker::after,
.progress-step.is-progress .progress-marker::before {
    background-color: var(--pf-green);
}

.speech-bubble {
    background: var(--pf-green-700);
}

.accordion-wrapper.expanded {
    border-color: var(--pf-green);
}

.accordion-wrapper.expanded .accordion-trigger {
    color: var(--pf-green-700);
}

.accordion-wrapper.expanded .accordion-trigger_icon .line {
    background: var(--pf-green-700);
}

.tabs_services-triggers_trigger.active:before {
    background: var(--pf-grad-brand);
}

.reviews_slider-slide_wrapper .stars_star {
    color: var(--pf-green);
}

.blog_list-item .text-wrapper .info .divider,
.blog_feed-item_wrapper .text-wrapper .info .divider,
.post .divider,
.post_article-quote_author:before {
    background: var(--pf-grad-brand);
}

.blog_list-item .text-wrapper .info .category:focus,
.blog_list-item .text-wrapper .info .category:hover,
.blog_feed-item_wrapper .text-wrapper .info .category:hover,
.widgets_widget--categories .list .list-item .link:hover,
.widget_categories ul li:hover a,
.post_article-info .link:hover,
.widgets_widget--archives .list .list-item .link:focus .icon--arrow,
.widgets_widget--archives .list .list-item .link:hover .icon--arrow,
.widgets_widget--calendar .navigation_control:focus,
.widgets_widget--calendar .navigation_control:hover,
.post_comments-list_item .comment_panel-action,
a.comment-reply-link {
    color: var(--pf-green-700);
}

.widgets_widget--calendar .table_body-dates_date--current {
    background: var(--pf-green-700);
}

.blog_feed-item_wrapper .text-wrapper .title--bookmarked .icon,
.gallery_list-item .text-wrapper .label {
    color: var(--pf-red-500);
}

.alert_popup-title {
    color: var(--pf-ink) !important;
}

/* --------------------------------------------------------------------------
   9. Social buttons and scroll-to-top
   -------------------------------------------------------------------------- */

.socials_item-link {
    background: var(--pf-ink-700);
    transition: background-color var(--pf-ease), transform var(--pf-ease);
}

.socials_item-link:focus,
.socials_item-link:hover {
    background-color: var(--pf-green);
    transform: translateY(-3px);
}

.socials--alt .socials_item-link {
    background: var(--pf-green);
    color: #fff;
}

.socials--alt .socials_item-link:focus,
.socials--alt .socials_item-link:hover {
    background: var(--pf-red);
    color: #fff;
}

#scrollToTop {
    background: var(--pf-grad-btn);
    border-radius: 50%;
    opacity: .85;
    box-shadow: var(--pf-shadow-green);
    transition: background var(--pf-ease), opacity var(--pf-ease), transform var(--pf-ease);
}

#scrollToTop:hover {
    opacity: 1;
    transform: translateY(-3px);
}

#scrollToTop .icon {
    color: #fff;
}

/* --------------------------------------------------------------------------
   10. Footer
   -------------------------------------------------------------------------- */

.footer.primary-bg {
    background: linear-gradient(180deg, var(--pf-ink) 0%, var(--pf-ink-900) 100%);
    border-top: 3px solid transparent;
    border-image: var(--pf-grad-brand) 1;
}

.footer_main-block_title {
    position: relative;
    padding-bottom: 14px;
}

.footer_main-block_title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    border-radius: 3px;
    background: var(--pf-grad-brand);
}

.footer_main-block .group-wrapper .icon,
.footer_main-block_nav .list-item .link .icon {
    color: var(--pf-green-300);
}

.footer_main-block_nav .list-item .link {
    transition: color var(--pf-ease), transform var(--pf-ease);
}

.footer_main-block_nav .list-item .link:focus,
.footer_main-block_nav .list-item .link:hover {
    color: var(--pf-green-300);
    transform: translateX(4px);
}

.footer_main-block .group-wrapper .link {
    transition: color var(--pf-ease);
}

.footer_main-block .group-wrapper .link:focus,
.footer_main-block .group-wrapper .link:hover {
    color: var(--pf-green-300);
}

.footer_main-block_subtitle {
    color: var(--pf-on-dark-muted);
}

.footer_secondary {
    border-top: 1px solid rgba(255, 255, 255, .08);
}

/* Newsletter field */
.footer_main-block_form .field,
.widgets_widget--newsletter .form .field {
    transition: border-color var(--pf-ease), background-color var(--pf-ease);
}

.footer_main-block_form .field:focus,
.widgets_widget--newsletter .form .field:focus {
    border-color: var(--pf-green);
}

/* Response line for the subscribe form. */
.wpcf7-response-output {
    margin: 12px 0 0;
    padding: 10px 14px;
    border-radius: 4px;
    border-left: 3px solid var(--pf-green);
    background: rgba(84, 175, 7, .12);
    color: #fff;
    font-size: 15px;
    line-height: 21px;
}

/* --------------------------------------------------------------------------
   11. Motion preferences
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .btn,
    .link-arrow,
    .socials_item-link,
    .features_card .wrapper,
    .info_data-card .wrapper,
    .services_list-item .wrapper,
    .footer_main-block_nav .list-item .link,
    #scrollToTop {
        transition: none;
    }

    .features_card .wrapper:hover,
    .info_data-card .wrapper:hover,
    .services_list-item .wrapper:hover,
    .socials_item-link:hover,
    .footer_main-block_nav .list-item .link:hover,
    #scrollToTop:hover {
        transform: none;
    }
}
