/*
Theme Name: Help2Pay
Theme URI: https://help2pay.com/
Author: Help2Pay
Author URI: https://help2pay.com/
Description: Custom WordPress theme for Help2Pay – Advanced Payment Solution for iGaming, Trading & More. Migrated from the original ASP.NET MVC site.
Version: 1.4.1
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: help2pay
*/
/* ==========================================
   Help2Pay – Custom Stylesheet
   WordPress-ready (drop into your theme)
   ========================================== */

/* Google Font */
@import url('https://fonts.googleapis.com/css?family=Poppins');

/* ── Base ───────────────────────────────── */
html {
    overflow-x: hidden;
    scroll-padding-top: 130px;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #FAFAFA;
    overflow: visible; /* override Bootstrap reboot overflow-x:hidden so body can grow */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body > main#content { flex: 1 0 auto; }
body > footer,
body > .footer-nav { flex-shrink: 0; }

p { margin-bottom: 0; }

hr {
    border: 1px solid #EBEBEB;
    opacity: 1;
}

/* ── Top announcement bar ────────────────── */
.home-black-box {
    background: #333333;
    color: #ffffff;
}

/* ── Navbar / Header ─────────────────────── */
header {
    box-shadow: 0px 3px 6px #00000014;
}

.body-content {
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 116px;
}

/* ── Buttons ─────────────────────────────── */
.btn {
    font: normal normal 400 14px/21px Poppins;
}

.btn:hover,
.btn:active:focus,
.h2p-background {
    background: #A8C12A;
    color: #ffffff;
}

/* ── Typography ──────────────────────────── */
#brandName {
    text-align: left;
    font: normal normal normal 16px/25px Poppins;
    color: #333333;
    text-shadow: 0px 3px 6px #00000029;
}

#title {
    text-align: left;
    font: normal normal 600 36px/42px Poppins;
    color: #333333;
}

.secondtitle {
    font: normal normal 600 22px/33px Poppins;
    color: #A8C12A;
}

.why-content,
.description {
    text-align: left;
    font: normal normal normal 14px/21px Poppins;
    color: #333333;
}

.why-header {
    text-align: left;
    border-radius: 5px 5px 0px 0px;
    font: normal normal bold 22px/33px Poppins;
    color: #ffffff;
}

.why-title {
    font: normal normal 600 16px/25px Poppins;
    color: #A8C12A;
}

.secureTitle {
    padding-top: 7rem;
    font: normal normal normal 16px/25px Poppins;
    color: #333333;
}

.depositText,
.merchant-risk-title {
    font: normal normal 600 36px/42px Poppins;
}

.address {
    font: normal normal normal 12px/18px Poppins;
    color: #A7A7A7;
}

/* ── Why-Us section ──────────────────────── */
#why-container {
    text-align: left;
    background: #ffffff;
    box-shadow: 0px 3px 6px #00000014;
    border-radius: 5px;
    padding-right: 3rem !important;
    padding-left: 3rem !important;
}

/* ── 4 Steps section ─────────────────────── */
.secure-step-overlap {
    top: 27px;
}

.secure-step-number-box {
    font: normal normal 600 14px/34px Poppins;
    background: #A8C12A;
    border-radius: 5px;
    color: #ffffff;
}

.secure-step-box {
    font: normal normal normal 13px/34px Poppins;
    background: #ffffff;
    border: 1px solid #EBEBEB;
    border-radius: 5px;
}

.secure-step-title {
    padding-left: 4rem !important;
    font: normal normal 700 14px/34px Poppins;
}

/* ── Merchant Risk banner ────────────────── */
.merchant-risk-container {
    position: relative;
    left: calc(-50vw + 50%);
    overflow: hidden;
    width: 100vw;
}

/* ── Gallery ─────────────────────────────── */
#gallery img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

#gallery .row-equal { display: flex; flex-wrap: wrap; }
#gallery .col-equal { margin: auto; }

/* ── Demo page ───────────────────────────── */
.demo-container {
    background: #F5F5F5;
    border: 1px solid #F0F0F0;
    border-radius: 10px;
    padding-top: 0.9rem !important;
    padding-bottom: 0.9rem !important;
}

.demo-app {
    font: normal normal 600 14px/34px Poppins;
    color: #333333;
}

.header-background {
    position: absolute;
    background-size: cover !important;
    background-position: center !important;
    z-index: -1 !important;
    left: calc(-50vw + 50%);
    width: 100vw;
    height: 200px;
}

.demo-header-content {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.demo-button-group {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

/* ── Contact / Forms ─────────────────────── */
.contact-container { margin-top: 6rem !important; }

.ddl-select-form {
    box-shadow: 0px 3px 6px #0000000A;
    border-radius: 5px;
}

.input-group-text {
    padding-right: 2.5rem !important;
    padding-left: 2.5rem !important;
}

.form-group { margin-bottom: 2rem !important; }

.form-control::placeholder { opacity: 0.4; }
.form-control { color: #000; }

/* Semantic UI dropdown – brand colours */
.ui.selection.dropdown:hover,
.ui.selection.dropdown:focus,
.ui.selection.active.dropdown:hover,
.ui.selection.active.dropdown:focus {
    border-color: #a8c12a !important;
    box-shadow: none;
}

.ui.selection.dropdown .menu > .item:hover { background: #A8C12A; }

/* Validation states */
.form-control.input-validation-error,
.ui.fluid.dropdown.input-validation-error { border-color: #dc3545; }

.form-control.valid { border-color: #28a745; }

.field-validation-error { color: #dc3545; }
.field-validation-valid { display: none; }

/* Dropdown items */
.dropdown-item.active { background-color: transparent; color: #A8C12A; }
.dropdown-item { font: normal normal normal 12px/18px Poppins; }

/* ── Navbar dropdown (Bootstrap 5) ────────── */
.navbar .dropdown-menu {
    min-width: 240px;
    max-width: 320px;
    padding: 0.5rem 0;
    border: 1px solid #EBEBEB;
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    margin-top: 0.5rem;
}
.navbar .dropdown-menu .dropdown-item,
.navbar .dropdown-menu .nav-link {
    display: block;
    padding: 0.55rem 1rem;
    color: #333;
    font: 400 13px/1.4 Poppins;
    white-space: normal;          /* allow wrapping */
    word-break: break-word;
    border-radius: 0;
    transition: background 0.15s ease, color 0.15s ease;
}
.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:focus,
.navbar .dropdown-menu .nav-link:hover,
.navbar .dropdown-menu .nav-link:focus {
    background: #F7F7F7;
    color: #A8C12A;
}
/* truncate very long labels at 2 lines so the menu stays compact */
.navbar .dropdown-menu .nav-link {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* nav-item li inside dropdown shouldn't keep horizontal padding */
.navbar .dropdown-menu .nav-item.px-3 { padding-left: 0 !important; padding-right: 0 !important; }

/* ── Footer ──────────────────────────────── */
footer.home-black-box {
    padding: 1.5rem;
    text-align: center;
    font: normal normal normal 13px/20px Poppins;
}

.footer-widgets { color: #fff; padding: 0; }
.footer-widgets .footer-widget-title { color: #A8C12A; font: normal normal 600 18px/28px Poppins; margin-bottom: 1rem; }
.footer-widgets a { color: #fff; text-decoration: none; }
.footer-widgets a:hover { color: #A8C12A; }
.footer-nav .nav-link { color: #fff; font: normal normal normal 13px/20px Poppins; }
.footer-nav .nav-link:hover { color: #A8C12A; }

/* ── Gutenberg editor content (default page template) ────── */
.entry-content h2 { font: normal normal 600 28px/36px Poppins; color: #333; margin: 2rem 0 1rem; }
.entry-content h3 { font: normal normal 600 22px/32px Poppins; color: #333; margin: 1.75rem 0 0.75rem; }
.entry-content h4 { font: normal normal 600 18px/28px Poppins; color: #333; margin: 1.5rem 0 0.5rem; }
.entry-content p  { margin-bottom: 1rem; line-height: 1.7; }
.entry-content ul, .entry-content ol { margin: 0 0 1rem 1.5rem; }
.entry-content li { margin-bottom: 0.35rem; }
.entry-content a  { color: #A8C12A; text-decoration: underline; }
.entry-content a:hover { color: #333; }
.entry-content img { max-width: 100%; height: auto; border-radius: 8px; }
.entry-content blockquote {
    border-left: 4px solid #A8C12A;
    padding: 0.5rem 1rem; margin: 1.5rem 0;
    color: #555; background: #fafafa;
}
.entry-content .wp-block-image { margin: 1.5rem 0; }
.entry-content .wp-block-button__link { background: #A8C12A; border-radius: 6px; padding: 0.75rem 1.75rem; }

/* Accessibility skip-link */
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width:1px; height:1px; overflow:hidden; }
.screen-reader-text:focus { clip: auto; width:auto; height:auto; background:#fff; padding:1rem; z-index:100000; top:5px; left:5px; }

/* ── SweetAlert customisation ────────────── */
.txtSuccess {
    font: normal normal 600 22px/33px Poppins;
    color: #A8C12A;
}

.txtFailed {
    font: normal normal 600 22px/33px Poppins;
    color: #FF0000;
}

.txtDescription {
    font: normal normal normal 14px/21px Poppins;
    color: #333333;
}

.confirm-button-class { font: normal normal 600 14px/21px Poppins !important; }

/* ── Full-viewport iframe pages ─────────── */
.page-template-page-demo #content,
.page-template-page-contact #content {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    padding-top: 116px;
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 960px) {
    .secure-step-title { padding-left: 0 !important; }
    .demo-header-content { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
    .demo-button-group  { padding-top: 5.5rem !important; padding-bottom: 5.5rem !important; }
}

@media (max-width: 764px) {
    #demoButton { text-align: center !important; }
}

@media (max-width: 580px) {
    .secure-step-title  { padding-left: 0 !important; }
    #why-container { padding-right: 1rem !important; padding-left: 1rem !important; }
}

@media (max-width: 540px) {
    .demo-header-content { padding-top: 2rem !important; padding-bottom: 2rem !important; }
    .demo-button-group  { padding-top: 5rem !important;  padding-bottom: 3rem !important;  }
}

@media (max-width: 400px) {
    .secure-step-title { padding-left: 0 !important; }
}

@media (max-width: 767.98px) {
    .removemarginbottom { margin-bottom: 0 !important; }
}

/* ==========================================
   UI Refinements — element ratio pass
   ========================================== */

:root {
    --h2p-section-y: clamp(3rem, 6vw, 6rem);
    --h2p-gutter: clamp(1rem, 2.5vw, 2rem);
    --h2p-radius: 10px;
    --h2p-green: #A8C12A;
    --h2p-ink: #333333;
}

/* Fluid, harmonised type scale (modular ratio ≈ 1.35) */
#brandName {
    font-size: clamp(0.95rem, 0.85rem + 0.35vw, 1.125rem);
    letter-spacing: 0.18em;
    font-weight: 600;
    color: var(--h2p-green);
    text-transform: uppercase;
}
#title {
    font-size: clamp(1.75rem, 1.25rem + 2.2vw, 3rem);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.secondtitle { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem); line-height: 1.3; }
.depositText,
.merchant-risk-title {
    font-size: clamp(1.5rem, 1.15rem + 1.8vw, 2.25rem);
    line-height: 1.2;
}
.secureTitle { padding-top: var(--h2p-section-y); }
.description { line-height: 1.65; }

/* Hero ratios — constrain image, balance columns */
.row.mt-4 > .col-12.col-md-6:first-child { padding-right: var(--h2p-gutter); }
.row.mt-4 img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    display: block;
}

/* Consistent vertical rhythm across sections */
.row.my-5 { margin-top: var(--h2p-section-y) !important; margin-bottom: var(--h2p-section-y) !important; }
#about.row.mt-5 { margin-top: var(--h2p-section-y) !important; }

/* About image — lock aspect so it doesn't stretch */
#about img {
    width: 100%;
    height: auto;
    max-height: 460px;
    object-fit: contain;
    border-radius: var(--h2p-radius);
}

/* Why-Us cards — equal-height layout, cleaner icon:text ratio */
#why-container .col-12.col-md-6 { display: flex; margin-bottom: 1rem; }
#why-container .col-12.col-md-6 > .row.mb-3 {
    flex: 1;
    margin: 0 !important;
    padding: 1.5rem;
    border-radius: var(--h2p-radius);
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
#why-container .col-12.col-md-6 > .row.mb-3 > .row { margin: 0; --bs-gutter-x: 0; }
#why-container .col-12.col-md-6 > .row.mb-3 > .row.justify-content-end { justify-content: flex-start !important; }
#why-container .why-title { margin: 0; padding: 0; font-size: 1.05rem; line-height: 1.3; }
#why-container .col-12.col-md-6 > .row.mb-3 > .row.justify-content-end > [class*="col-"] {
    flex: 0 0 100%; max-width: 100%; padding: 0 !important;
}
#why-container .col-12.col-md-6 > .row.mb-3 > .row.pt-2 {
    display: grid; grid-template-columns: 56px 1fr; column-gap: 1rem; align-items: start;
    padding-top: 0 !important;
}
#why-container .col-12.col-md-6 > .row.mb-3 > .row.pt-2 > [class*="col-3"] {
    max-width: 56px; flex: none; padding: 0; margin: 0 !important;
}
#why-container .col-12.col-md-6 > .row.mb-3 > .row.pt-2 > [class*="col-3"] img {
    width: 48px; height: 48px; object-fit: contain;
}
#why-container .col-12.col-md-6 > .row.mb-3 > .row.pt-2 > [class*="col-9"] { padding: 0; flex: 1; max-width: 100%; }
#why-container .why-content,
#why-container .description { font-size: 0.9rem; line-height: 1.6; margin: 0; }

/* 4-Step boxes — equal widths, uniform number badges */
.row.d-flex.pt-4,
.row.pb-5 { gap: var(--h2p-gutter); }

/* Step item: position-relative parent so badge can absolute-pin top-left */
.row.d-flex.pt-4 > .col-12.col-lg,
.row.pb-5 > .col-12.col-lg { position: relative; }
.row.d-flex.pt-4 > .col-12.col-lg > .row,
.row.pb-5 > .col-12.col-lg > .row { position: relative; margin: 0; }

.secure-step-overlap {
    position: absolute !important;
    top: 14px; left: 14px;
    width: 40px; height: 40px;
    padding: 0 !important; margin: 0 !important;
    z-index: 2;
    flex: none; max-width: 40px;
}
.secure-step-overlap > .row { margin: 0; }
.secure-step-number-box {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1rem; line-height: 1;
    padding: 0 !important; margin: 0 !important;
    max-width: 40px; flex: 0 0 40px;
}
.secure-step-box {
    line-height: 1.5;
    padding: 1.25rem 1.5rem 1.25rem 4.5rem !important;
    min-height: 92px;
    width: 100%;
    display: flex; flex-direction: column; justify-content: center;
}
.secure-step-title { padding-left: 0 !important; margin-bottom: 0.25rem !important; line-height: 1.2; }
.secure-step-box p:not(.secure-step-title) { font-size: 0.875rem; line-height: 1.5; }

/* EPL gallery — locked aspect ratios, even spacing */
#gallery .row { --bs-gutter-x: var(--h2p-gutter); }
#gallery .col-12.col-lg-5 .row,
#gallery .row-equal .row { padding: 0 !important; margin: 0 0 var(--h2p-gutter) 0; }
#gallery img {
    aspect-ratio: 16 / 10;
    height: auto;
    border-radius: var(--h2p-radius);
}
#gallery .col-12.col-lg-5 img { aspect-ratio: 4 / 5; }
@media (min-width: 992px) {
    #gallery .col-12.col-lg-5 img { aspect-ratio: auto; height: 100%; }
}

/* Merchant risk banner — proportional padding */
.merchant-risk-container .home-black-box { padding: var(--h2p-section-y) 0; }
.merchant-risk-container .col-10 img { width: 64px; height: auto; }

/* Buttons — consistent tap ratio */
.btn.h2p-background {
    padding: 0.75rem 1.75rem;
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn.h2p-background:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(168,193,42,0.3); }

/* Section divider */
hr { margin: var(--h2p-section-y) 0; }

@media (max-width: 767.98px) {
    .row.mt-4 img { max-height: 280px; }
    #why-container .col-12.col-md-6 > .row.mb-3 { padding: 1.25rem; }
    .secure-step-box { min-height: auto; padding: 1rem 1.25rem 1rem 4rem !important; }
}
