/* ============================================================
   Zenvy POS — front-website theme layer
   Loaded after styles.css/responsive.css. Overrides the legacy
   red look with the brand emerald/amber system (driven by the
   --dynamic-* variables set from the admin Theme Setting).
   ============================================================ */

:root {
    --zv-primary: var(--dynamic-primary, #0E7C66);
    --zv-secondary: var(--dynamic-secondary, #D97706);
    --zv-dark: var(--dynamic-sidebar, #0B2B26);
    --zv-accent: var(--dynamic-accent, #E7F3F0);
    --zv-mint: #F2F8F6;
}

/* ---------- Hero / banner ---------- */

.home-banner-section {
    background-image:
        radial-gradient(900px 480px at 85% 15%, rgba(255, 255, 255, .07), transparent 60%),
        radial-gradient(700px 420px at 10% 90%, rgba(217, 119, 6, .12), transparent 60%),
        linear-gradient(135deg, var(--zv-dark) 0%, #10473C 60%, var(--zv-primary) 130%) !important;
    position: relative;
    overflow: hidden;
}

.home-banner-section:before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px);
    background-size: 26px 26px;
    pointer-events: none;
}

.home-banner-section .container {
    position: relative;
}

.home-banner-section .banner-content h1 {
    font-weight: 800;
    letter-spacing: -.5px;
}

.home-banner-section .banner-content h1 span {
    color: var(--zv-secondary) !important;
}

.home-banner-section .banner-content p {
    color: rgba(255, 255, 255, .82);
    font-size: 16px;
    line-height: 26px;
    max-width: 520px;
}

.banner-scan p {
    color: rgba(255, 255, 255, .75);
}

/* ---------- Hero visual (pure-CSS product mockup) ---------- */

.zv-hero-visual {
    position: relative;
    min-height: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 0;
}

.zv-mock-dash {
    width: min(420px, 92%);
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
    padding: 20px;
    transform: rotate(-2deg);
}

.zv-mock-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid #EDF2F0;
    margin-bottom: 14px;
}

.zv-mock-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--zv-primary);
}

.zv-mock-title {
    font-size: 13px;
    font-weight: 700;
    color: #14211E;
}

.zv-mock-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.zv-mock-stat {
    background: var(--zv-mint);
    border-radius: 10px;
    padding: 10px;
}

.zv-mock-stat small {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #7C8A86;
    margin-bottom: 3px;
}

.zv-mock-stat strong {
    font-size: 14px;
    color: #14211E;
}

.zv-mock-stat .zv-up {
    color: var(--zv-primary);
}

.zv-mock-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 130px;
}

.zv-mock-chart span {
    flex: 1;
    background: var(--zv-primary);
    opacity: .75;
    border-radius: 6px 6px 0 0;
}

.zv-mock-chart span.zv-bar-accent {
    background: var(--zv-secondary);
    opacity: 1;
}

.zv-mock-invoice {
    position: absolute;
    right: 4%;
    bottom: 4%;
    width: 185px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, .4);
    padding: 14px;
    transform: rotate(3deg);
}

.zv-mock-inv-head {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #14211E;
    border-bottom: 1px dashed #C9D6D2;
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.zv-mock-inv-head span {
    font-size: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--zv-primary);
    font-weight: 700;
}

.zv-mock-inv-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #445551;
    padding: 2px 0;
}

.zv-mock-inv-row b {
    color: #14211E;
}

.zv-mock-qr {
    width: 54px;
    height: 54px;
    margin: 8px auto 0;
    border-radius: 4px;
    background:
        repeating-linear-gradient(0deg, #14211E 0 3px, transparent 3px 6px),
        repeating-linear-gradient(90deg, #14211E 0 3px, #fff 3px 6px);
}

.zv-mock-badge {
    position: absolute;
    top: 8%;
    left: 6%;
    background: var(--zv-secondary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    padding: 8px 16px;
    box-shadow: 0 12px 26px rgba(217, 119, 6, .45);
    transform: rotate(-4deg);
}

@media (max-width: 991px) {
    .zv-hero-visual {
        min-height: 420px;
        margin-top: 20px;
    }
}

/* ---------- Buttons ---------- */

.custom-btn {
    border-radius: 9px !important;
}

.custom-primary-btn,
.custom-message-btn,
.custom-generate-btn {
    background: var(--zv-secondary) !important;
    color: #fff !important;
    border: none;
    box-shadow: 0 6px 18px rgba(217, 119, 6, .35);
}

.custom-primary-btn:hover {
    opacity: .92;
}

.play-button {
    border-color: var(--zv-secondary) !important;
}

.play-button:after {
    border-left-color: var(--zv-secondary) !important;
}

/* ---------- Section tints (was pink/red) ---------- */

.bg-pos {
    background: linear-gradient(180deg, var(--zv-mint) 0%, #F7FBFA 71%, rgba(242, 248, 246, .1) 95%) !important;
}

.section-title h2 {
    font-weight: 800;
    letter-spacing: -.3px;
}

/* ---------- Feature cards ---------- */

.service-card {
    border-radius: 16px;
    transition: transform .18s ease, box-shadow .18s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(11, 43, 38, .12);
}

/* ---------- Pricing ---------- */

.pricing-plan-section .card {
    border: 1px solid #E3ECE9;
    border-radius: 16px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    overflow: hidden;
}

.pricing-plan-section .card:hover {
    transform: translateY(-4px);
    border-color: var(--zv-primary);
    box-shadow: 0 18px 36px rgba(11, 43, 38, .12);
}

.pricing-plan-section .card .card-header {
    background: var(--zv-mint);
    border-bottom: 1px solid #E3ECE9 !important;
}

.pricing-plan-section .card .card-header h4 {
    color: var(--zv-primary);
    font-weight: 800;
}

.pricing-plan-section .card .fa-check-circle {
    color: var(--zv-primary) !important;
}

.btn.subscribe-plan {
    background: var(--zv-primary) !important;
    color: #fff !important;
    border: 2px solid var(--zv-primary) !important;
    border-radius: 9px;
    font-weight: 600;
}

.plans-list .card .subscribe-plan:hover,
.btn.subscribe-plan:hover {
    background: var(--zv-dark) !important;
    border-color: var(--zv-dark) !important;
    color: #fff !important;
}

/* ---------- Testimonials ---------- */

.customer-card {
    border-radius: 16px;
    border: 1px solid #E3ECE9;
    box-shadow: 0 2px 6px rgba(11, 43, 38, .05);
}

.customer-card p {
    unicode-bidi: plaintext;
    text-align: center;
}

.customer-card .fa-star {
    color: var(--zv-secondary);
}

/* ---------- Inner-page header (contact, blogs, terms…) ---------- */

.zv-inner-header {
    background: var(--zv-dark);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}

/* Only the TOP-LEVEL desktop links turn white on the dark bar */
.zv-inner-header .navbar-nav > .nav-item > .nav-link {
    color: #fff !important;
}

.zv-inner-header .navbar-nav > .nav-item > .nav-link:hover {
    color: var(--zv-secondary) !important;
}

/* The Pages dropdown panel is white — keep its items dark */
.zv-inner-header .dropdown-content a,
.zv-inner-header .dropdown-content .dropdown-item,
.zv-inner-header .dropdown-menu a {
    color: #14211E !important;
}

.zv-inner-header .dropdown-content a:hover,
.zv-inner-header .dropdown-content .dropdown-item:hover,
.zv-inner-header .dropdown-menu a:hover {
    color: var(--zv-primary) !important;
}

/* Offcanvas mobile menu has a white panel — keep everything dark there */
.zv-inner-header .offcanvas a,
.zv-inner-header .offcanvas .accordion-button {
    color: #14211E !important;
}

.zv-inner-header .offcanvas a:hover {
    color: var(--zv-primary) !important;
}

.zv-inner-header .offcanvas .get-app-btn,
.zv-inner-header .get-app-btn {
    color: #fff !important;
}

.zv-inner-header .header-logo img {
    max-height: 44px;
}

.zv-inner-header .navbar-toggler {
    background: rgba(255, 255, 255, .12);
}

/* breadcrumb strip under the dark header */
.banner-bg {
    background: var(--zv-mint) !important;
}

/* ---------- Terms & privacy (bilingual plain-text content) ---------- */

.terms-policy-section h2 {
    margin-bottom: 18px;
}

.terms-policy-section p {
    white-space: pre-line;
    unicode-bidi: plaintext;
    line-height: 26px;
    font-size: 15px;
    color: #33413D;
}

.terms-policy-section .mt-3 p {
    border-top: 1px dashed #C9D6D2;
    padding-top: 22px;
}

/* ---------- Contact page ---------- */

.zv-contact-wrap {
    display: flex;
    gap: 26px;
    flex-wrap: wrap;
    align-items: stretch;
}

.zv-contact-info {
    flex: 1 1 340px;
    background:
        radial-gradient(500px 260px at 90% -10%, rgba(217, 119, 6, .18), transparent 60%),
        linear-gradient(150deg, var(--zv-dark) 0%, #10473C 120%);
    border-radius: 18px;
    color: #fff;
    padding: 34px 30px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.zv-contact-info h3 {
    color: #fff;
    font-weight: 800;
    font-size: 24px;
    margin-bottom: 6px;
}

.zv-contact-info>p {
    color: rgba(255, 255, 255, .78);
    font-size: 14px;
    margin-bottom: 18px;
}

.zv-contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.zv-contact-item i {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .1);
    color: var(--zv-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex: 0 0 40px;
}

.zv-contact-item small {
    display: block;
    text-transform: uppercase;
    letter-spacing: .8px;
    font-size: 10px;
    color: rgba(255, 255, 255, .55);
}

.zv-contact-item span {
    font-weight: 600;
    color: #fff;
    font-size: 14px;
    unicode-bidi: plaintext;
}

.zv-contact-badge {
    margin-top: auto;
    background: rgba(255, 255, 255, .08);
    border: 1px dashed rgba(255, 255, 255, .25);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 13px;
    color: rgba(255, 255, 255, .85);
}

.zv-contact-form {
    flex: 1 1 420px;
    background: #fff;
    border: 1px solid #E3ECE9;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(11, 43, 38, .05);
}

.zv-contact-form .form-control {
    border: 1.5px solid #D7E0DD;
    border-radius: 9px;
    min-height: 46px;
}

.zv-contact-form .form-control:focus {
    border-color: var(--zv-primary);
    box-shadow: 0 0 0 3px var(--zv-accent);
}

/* ---------- Footer ---------- */

.footer-section {
    background-image:
        radial-gradient(700px 300px at 90% 0%, rgba(255, 255, 255, .05), transparent 60%),
        linear-gradient(160deg, var(--zv-dark) 0%, #10473C 120%) !important;
}

.footer-section li a:hover {
    color: var(--zv-secondary) !important;
}

/* ---------- Misc ---------- */

a {
    transition: color .15s ease;
}

::selection {
    background: var(--zv-primary);
    color: #fff;
}
