﻿/* Move down content because we have a fixed navbar that is 50px tall */
.rktmain {
    padding-top: 100px;
}

.pd-5{
    padding:20px;
}

.align-c{
    text-align:center;
}


.modal-open {
    overflow: hidden
}

.modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    display: none;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    outline: 0
}

.modal.fade .modal-dialog {
    -webkit-transition: -webkit-transform .3s ease-out;
    -o-transition: -o-transform .3s ease-out;
    transition: transform .3s ease-out;
    -webkit-transform: translate(0,-25%);
    -ms-transform: translate(0,-25%);
    -o-transform: translate(0,-25%);
    transform: translate(0,-25%)
}

.modal.in .modal-dialog {
    -webkit-transform: translate(0,0);
    -ms-transform: translate(0,0);
    -o-transform: translate(0,0);
    transform: translate(0,0)
}

.modal-open .modal {
    overflow-x: hidden;
    overflow-y: auto
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 10px
}

.modal-content {
    position: relative;
    background-color: #fff;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    border: 1px solid #999;
    border: 1px solid rgba(0,0,0,.2);
    border-radius: 6px;
    outline: 0;
    -webkit-box-shadow: 0 3px 9px rgba(0,0,0,.5);
    box-shadow: 0 3px 9px rgba(0,0,0,.5)
}


.modal-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    background-color: #000
}

    .modal-backdrop.fade {
        filter: alpha(opacity=0);
        opacity: 0
    }

    .modal-backdrop.in {
        filter: alpha(opacity=50);
        opacity: .5
    }

.modal-header {
    min-height: 16.42857143px;
    padding: 15px;
    border-bottom: 1px solid #e5e5e5
}

    .modal-header .close {
        margin-top: -2px
    }

.modal-title {
    margin: 0;
    line-height: 1.42857143
}

.modal-body {
    position: relative;
    padding: 15px
}

.modal-footer {
    padding: 15px;
    text-align: right;
    border-top: 1px solid #e5e5e5
}

    .modal-footer .btn + .btn {
        margin-bottom: 0;
        margin-left: 5px
    }

    .modal-footer .btn-group .btn + .btn {
        margin-left: -1px
    }

    .modal-footer .btn-block + .btn-block {
        margin-left: 0
    }

.modal-scrollbar-measure {
    position: absolute;
    top: -9999px;
    width: 50px;
    height: 50px;
    overflow: scroll
}

@media (min-width:768px) {
    .modal-dialog {
        width: 600px;
        margin: 30px auto
    }

    .modal-content {
        -webkit-box-shadow: 0 5px 15px rgba(0,0,0,.5);
        box-shadow: 0 5px 15px rgba(0,0,0,.5)
    }

    .modal-sm {
        width: 300px
    }
}

@media (min-width:992px) {
    .modal-lg {
        width: 900px
    }
}




/* The Close Button */
.close {
    float: right;
    font-size: 30px;
    font-weight: bold;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    filter: alpha(opacity=20);
    opacity: .5
}

    .close:hover, .close:focus {
        color: #000;
        text-decoration: none;
        cursor: pointer;
        filter: alpha(opacity=50);
        opacity: .5
    }

button.close {
    -webkit-appearance: none;
    padding: 0;
    cursor: pointer;
    background: transparent;
    border: 0
}


/* ============================================================
   Responsive / mobile polish (desktop-first, mobile-friendly)
   ============================================================ */

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    max-width: 100vw;
}

img, video, iframe, svg {
    max-width: 100%;
    height: auto;
}

/* Full-width content shell (master no longer uses .container around pages) */
.body-content {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    padding: 0;
    margin: 0;
}

/* Fixed header: solid background so content does not show through */
#header {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

#header .logo img {
    max-height: 40px;
    width: auto;
}

/* Hero lead copy */
#hero .hero-lead {
    color: #484848;
    font-size: 1rem;
    line-height: 1.55;
    margin: 0 0 1.25rem;
    max-width: 36rem;
}

#hero .hero-cta {
    margin-bottom: 1rem;
}

/* Merchant logo grid — no spacer columns / no &nbsp; hacks */
.merchants-section {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.merchants-grid {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.merchant-logo {
    padding: 0.75rem 0.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.merchant-logo a {
    display: block;
    width: 100%;
    max-width: 120px;
    margin: 0 auto;
}

.merchant-logo img {
    width: 100%;
    height: auto;
    max-height: 72px;
    object-fit: contain;
}

/* Footer */
.site-footer,
#footer {
    padding: 1.5rem 0;
    margin-top: 1rem;
}

.footer-links a {
    display: inline-block;
    margin: 0.25rem 0.5rem;
}

/* FAQ rows stack cleanly on phones */
.faq-item {
    margin-bottom: 1rem;
}

.faq-item h4 {
    font-size: 1.05rem;
    line-height: 1.35;
}

/* Service cards: keep height natural on small screens */
.services .icon-box {
    width: 100%;
    margin-bottom: 1rem;
}

/* Tables / forms if present on other pages */
table {
    max-width: 100%;
}

.table-responsive-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Mobile nav toggle above logo area */
.mobile-nav-toggle {
    top: 18px;
    right: 12px;
    z-index: 10001;
}

@media (max-width: 991.98px) {
    #hero {
        height: auto !important;
        min-height: 0 !important;
        margin-top: 70px;
        padding: 1.25rem 0 2rem;
        display: block !important; /* override d-flex so content is not vertically constrained */
    }

    /* Stack hero columns; never leave image + text side-by-side */
    #hero .row {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
    }

    #hero .row > [class*="col-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    #hero .hero-img {
        order: -1 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto 1rem !important;
        text-align: center;
        flex: 0 0 auto !important;
    }

    #hero .hero-img img,
    #hero img.img-fluid,
    #hero img.animated {
        width: auto !important;
        max-width: 180px !important;
        max-height: 150px !important;
        height: auto !important;
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
        object-fit: contain;
    }

    #hero h1 {
        font-size: 1.75rem;
        line-height: 1.25;
    }

    #hero h2 {
        font-size: 1.05rem;
        line-height: 1.4;
        margin-bottom: 0.75rem;
    }

    #hero .hero-lead {
        font-size: 0.95rem;
        max-width: none;
    }

    /* Counts section illustration */
    .counts .row {
        flex-direction: column;
    }

    .counts .image,
    .counts .image.col-xl-5 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        margin-bottom: 1rem;
        justify-content: center !important;
    }

    .counts .image img {
        max-width: 220px !important;
        max-height: 180px !important;
        width: auto !important;
        height: auto !important;
        margin: 0 auto;
        display: block;
    }

    .counts .col-xl-7 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .section-title h2,
    .section-title h3 {
        font-size: 1.45rem;
        padding: 0 0.5rem;
    }

    .counts .count-box {
        margin-bottom: 1rem;
        padding: 1rem;
    }

    .pd-5 {
        padding: 0.5rem;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* About / content images */
    .about img.img-fluid,
    section img.img-fluid {
        max-height: 220px;
        width: auto;
        margin-left: auto;
        margin-right: auto;
    }

    .merchant-logo img {
        max-height: 56px !important;
    }
}

@media (max-width: 575.98px) {
    #header .logo img {
        max-height: 32px;
        max-width: 70vw;
    }

    #hero .hero-img img,
    #hero img.img-fluid,
    #hero img.animated {
        max-width: 130px !important;
        max-height: 110px !important;
    }

    .counts .image img {
        max-width: 160px !important;
        max-height: 130px !important;
    }

    .merchant-logo {
        padding: 0.5rem 0.35rem;
    }

    .merchant-logo a {
        max-width: 88px;
    }

    .merchant-logo img {
        max-height: 48px !important;
    }

    .btn-get-started,
    #hero .btn-get-started {
        display: inline-block;
        padding: 0.65rem 1.25rem;
        font-size: 0.95rem;
    }

    .testimonial-item {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .faq-item .col-lg-5,
    .faq-item .col-lg-7 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Prevent long unbroken strings from blowing out layout */
p, h1, h2, h3, h4, h5, h6, li, a, span, td, th {
    overflow-wrap: anywhere;
    word-wrap: break-word;
}

/* Desktop: keep refined look */
@media (min-width: 992px) {
    #hero .hero-lead {
        font-size: 1.05rem;
    }

    .merchant-logo a {
        max-width: 140px;
    }
}

/* ========== S26 / mobile image hard fix (last in cascade) ========== */
@media screen and (max-width: 991.98px) {
  /* Kill side-by-side hero */
  #hero.d-flex { display: block !important; }
  #hero { height: auto !important; min-height: 0 !important; padding: 12px 0 20px !important; }
  #hero .container { max-width: 100% !important; }
  #hero .row {
    display: block !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  #hero .row > [class*="col-"] {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  #hero .hero-img,
  #hero .order-1 {
    text-align: center !important;
    margin: 0 0 12px 0 !important;
    float: none !important;
  }
  #hero .hero-img img,
  #hero img.hero-illustration,
  #hero img.img-fluid,
  #hero img.animated,
  #hero img {
    display: block !important;
    width: 120px !important;
    max-width: 35vw !important;
    height: auto !important;
    max-height: 120px !important;
    margin: 0 auto 8px auto !important;
    float: none !important;
    object-fit: contain !important;
  }
  #hero h1 { font-size: 1.6rem !important; line-height: 1.2 !important; width: 100% !important; }
  #hero h2 { font-size: 1rem !important; line-height: 1.35 !important; width: 100% !important; }
  #hero .hero-lead,
  #hero p { font-size: 0.95rem !important; width: 100% !important; max-width: 100% !important; }

  /* Counts / about large images */
  .counts .row { display: block !important; }
  .counts .image,
  .counts [class*="col-"] { width: 100% !important; max-width: 100% !important; display: block !important; }
  .counts .image img,
  .counts img.counts-illustration,
  .counts img.img-fluid {
    width: 140px !important;
    max-width: 40vw !important;
    max-height: 140px !important;
    height: auto !important;
    margin: 0 auto 12px auto !important;
    display: block !important;
  }

  section img.img-fluid:not(.merchant-logo img) {
    max-height: 160px !important;
  }
}

@media screen and (max-width: 575.98px) {
  #hero img,
  #hero .hero-img img {
    width: 96px !important;
    max-width: 28vw !important;
    max-height: 96px !important;
  }
  .counts .image img,
  .counts img {
    width: 110px !important;
    max-height: 110px !important;
  }
}
/* Desktop: allow larger hero art again (override inline mobile sizes) */
@media screen and (min-width: 992px) {
  #hero .hero-illustration,
  #hero img.hero-illustration {
    width: auto !important;
    max-width: 100% !important;
    max-height: none !important;
    margin: 0 !important;
  }
  .counts .counts-illustration {
    width: auto !important;
    max-width: 100% !important;
    max-height: none !important;
    margin: 0 !important;
  }
}
