/* Zenn theme — "banker's ledger" visual layer.
   Loads after main.css: retints shared component vars, then styles the
   new zn- markup added to the landing sections. No selectors here touch
   JS-bound behaviour (owl carousel, faq accordion, nav toggle, forms). */

/* ---------- 1. palette + type retint (flows through main.css vars) ---------- */
:root {
    --base-clr: #1B7A56;
    --base-rgb: 27, 122, 86;
    --base-bg: #1B7A56;
    --body-clr: #4A5449;
    --title-clr: #16211B;
    --title-rgb: 22, 33, 27;
    --section-bg: #DDD7C6;
    --body-bg: #E7E2D5;
    --dark-clr: #16211B;
    --dark-rgb: 22, 33, 27;
    --white-clr: #F4F1E7;
    --white-rgb: 244, 241, 231;
    --light-clr: #EDE8D9;
    --primary-clr: #1B7A56;
    --primary-rgb: 27, 122, 86;
    --border-clr: rgba(22, 33, 27, 0.16);
    --heading-fonts: "Fraunces", Georgia, serif;
    --body-fonts: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;

    --zn-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    --zn-ink: #16211B;
    --zn-ink-soft: #4A5449;
    --zn-paper: #E7E2D5;
    --zn-paper-2: #DDD7C6;
    --zn-vault: #1B7A56;
    --zn-vault-deep: #145A40;
    --zn-gold: #9C7C3E;
    --zn-frame-cut: var(--zn-paper-2);
}

body.zn-theme {
    font-family: var(--body-fonts);
}

body.zn-theme h1,
body.zn-theme h2,
body.zn-theme h3,
body.zn-theme h4,
body.zn-theme h5,
body.zn-theme h6 {
    font-family: var(--heading-fonts);
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* main.css hardcodes these two instead of using vars */
body.zn-theme .bg--title {
    background-color: var(--zn-ink) !important;
}

body.zn-theme .text--white {
    color: var(--white-clr) !important;
}

body.zn-theme .text--white p,
body.zn-theme .text--white ul li,
body.zn-theme .text--white ul li a,
body.zn-theme .text--white span {
    color: rgba(244, 241, 231, 0.78) !important;
}

/* ---------- 2. shared section scaffolding ---------- */
body.zn-theme .zn-section-dark {
    --zn-frame-cut: var(--zn-ink);
}

body.zn-theme .zn-eyebrow {
    display: inline-block;
    font-family: var(--zn-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em !important;
    text-transform: uppercase;
    color: var(--zn-vault);
    margin-bottom: 18px;
}

body.zn-theme .zn-section-title {
    text-wrap: balance;
}

body.zn-theme .zn-section-desc {
    max-width: 56ch;
}

body.zn-theme .zn-section-head-center .zn-section-desc {
    margin-left: auto;
    margin-right: auto;
}

/* ---------- 3. header / nav ---------- */
body.zn-theme .zn-header {
    background-color: var(--zn-paper) !important;
    border-bottom: 1px solid var(--border-clr);
}

body.zn-theme .navbar-section.active {
    background-color: var(--zn-paper);
    box-shadow: 0 1px 0 var(--border-clr);
}

body.zn-theme .zn-nav-menu > li > a {
    font-family: var(--zn-mono);
    font-size: 13.5px;
    letter-spacing: 0.02em;
}

body.zn-theme .selectLanguage {
    font-family: var(--zn-mono);
    font-size: 13px;
    border-radius: 2px;
    border-color: var(--border-clr);
}

/* ---------- 4. buttons ---------- */
body.zn-theme .cmn--btn {
    border-radius: 2px;
    font-family: var(--body-fonts);
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: none;
}

body.zn-theme .cmn--btn:hover {
    background: var(--zn-vault-deep);
}

body.zn-theme .cmn--btn.btn-outline {
    border-width: 1px;
}

/* ---------- 5. hero ---------- */
body.zn-theme .zn-hero {
    padding: 40px 0 20px;
}

body.zn-theme .hero-shapes,
body.zn-theme .hero-shapes2 {
    display: none;
}

body.zn-theme .zn-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
    min-height: 0 !important;
}

body.zn-theme .zn-hero-cont {
    max-width: 46ch;
}

body.zn-theme .zn-hero-title {
    font-size: clamp(34px, 4.2vw, 52px);
    line-height: 1.08;
    margin-bottom: 20px;
}

body.zn-theme .zn-hero-sub {
    font-size: 17px;
    line-height: 1.65;
    color: var(--zn-ink-soft);
    margin-bottom: 30px;
}

/* the "receipt frame": perforated ledger card around the real hero image */
body.zn-theme .zn-hero-frame {
    position: relative;
    background: var(--zn-paper);
    border: 1px solid var(--border-clr);
    padding: 16px;
    box-shadow: 0 24px 44px -22px rgba(22, 33, 27, 0.35);
    transform: rotate(-1.2deg);
}

body.zn-theme .zn-hero-frame::before,
body.zn-theme .zn-hero-frame::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 13px;
    background: radial-gradient(circle at 7px 50%, var(--zn-frame-cut) 6px, transparent 6.5px) repeat-x;
    background-size: 16px 13px;
}

body.zn-theme .zn-hero-frame::before {
    top: -7px;
}

body.zn-theme .zn-hero-frame::after {
    bottom: -7px;
    transform: scaleY(-1);
}

body.zn-theme .zn-hero-frame img {
    width: 100%;
    display: block;
}

body.zn-theme .zn-hero-dots .owl-dot {
    background: rgba(var(--base-rgb), 0.35);
}

body.zn-theme .zn-hero-dots .owl-dot.active {
    background: var(--zn-vault);
}

@media (max-width: 860px) {
    body.zn-theme .zn-hero-grid {
        grid-template-columns: 1fr;
    }
    body.zn-theme .zn-hero-frame {
        transform: none;
        order: -1;
        margin-bottom: 20px;
    }
}

/* ---------- 6. about / service (ledger rows) ---------- */
body.zn-theme .zn-list-row {
    padding: 22px 0;
    border-top: 1px solid var(--border-clr);
}

body.zn-theme .zn-list-row:last-child {
    border-bottom: 1px solid var(--border-clr);
}

body.zn-theme .zn-list-label {
    display: block;
    margin-bottom: 8px;
}

body.zn-theme .zn-media-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px;
    border: 1px solid var(--border-clr);
    border-radius: 2px;
    margin-bottom: 16px;
}

body.zn-theme .zn-media-thumb {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border-radius: 2px;
    overflow: hidden;
    background: var(--zn-paper);
}

body.zn-theme .zn-media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- 7. features grid ---------- */
body.zn-theme .zn-feature-block {
    display: grid;
    grid-template-columns: 1fr minmax(220px, 340px) 1fr;
    gap: 0 32px;
    align-items: center;
}

body.zn-theme .zn-feature-col {
    display: flex;
    flex-direction: column;
    gap: 0;
}

body.zn-theme .zn-feature-point {
    padding: 20px 0;
    border-top: 1px solid var(--border-clr);
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

body.zn-theme .zn-feature-point img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    flex: 0 0 34px;
}

body.zn-theme .zn-feature-media img {
    width: 100%;
    border-radius: 2px;
}

@media (max-width: 991px) {
    body.zn-theme .zn-feature-block {
        grid-template-columns: 1fr;
    }
    body.zn-theme .zn-feature-media {
        order: -1;
        max-width: 260px;
        margin: 0 auto 30px;
    }
}

/* ---------- 8. how it works (numbered ledger steps) ---------- */
body.zn-theme .zn-steps {
    margin-top: 10px;
}

body.zn-theme .zn-step-row {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    padding: 24px 0;
    border-top: 1px solid rgba(237, 232, 217, 0.16);
}

body.zn-theme .zn-step-num {
    width: auto;
    height: auto;
    background: none !important;
    transform: none;
    margin: 0;
    line-height: 1;
    flex: 0 0 auto;
}

body.zn-theme .zn-step-num span {
    font-family: var(--zn-mono);
    font-size: 26px;
    color: var(--zn-gold);
}

/* ---------- 9. counter / stat row ---------- */
body.zn-theme .zn-stat-row {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

body.zn-theme .zn-stat {
    text-align: left;
    padding-left: 20px;
    border-left: 1px solid rgba(237, 232, 217, 0.18);
}

body.zn-theme .zn-stat-icon {
    display: none;
}

body.zn-theme .zn-stat-num {
    font-family: var(--zn-mono);
    font-size: 30px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    margin-bottom: 6px;
}

body.zn-theme .zn-stat-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.75;
}

/* ---------- 10. testimonials ---------- */
body.zn-theme .zn-client-item {
    text-align: left;
    padding: 30px;
    border-radius: 2px;
}

body.zn-theme .zn-quote-mark {
    position: static;
    transform: none;
    margin: 0 0 16px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 15px;
    border-radius: 2px;
}

body.zn-theme .zn-client-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

body.zn-theme .zn-client-meta img {
    margin: 0 !important;
}

/* ---------- 11. faq ---------- */
body.zn-theme .zn-faq-block {
    max-width: 760px;
}

body.zn-theme .zn-faq-item {
    border-radius: 2px;
    box-shadow: none;
}

body.zn-theme .zn-faq-num {
    font-family: var(--zn-mono);
    font-size: 13px;
    color: var(--zn-gold);
    margin-right: 10px;
}

body.zn-theme .faq-block-item .faq-block-title i.zn-faq-toggle {
    margin-left: auto;
    font-size: 18px;
    transition: transform 0.2s ease;
}

body.zn-theme .faq-block-item.open .faq-block-title i.zn-faq-toggle {
    transform: rotate(45deg);
}

/* ---------- 12. gateway strip ---------- */
body.zn-theme .zn-gateway-label {
    display: block;
    margin-bottom: 20px;
}

body.zn-theme .zn-partner-item {
    border-color: var(--border-clr);
    border-width: 1px;
    border-radius: 2px;
}

/* ---------- 13. blog cards ---------- */
body.zn-theme .zn-post-item {
    border-radius: 2px;
    overflow: hidden;
}

body.zn-theme .zn-post-link {
    font-family: var(--zn-mono);
    font-size: 13px;
}

/* ---------- 14. contact ---------- */
body.zn-theme .zn-contact-wrapper {
    border-radius: 2px;
    box-shadow: 0 20px 50px -20px rgba(22, 33, 27, 0.3);
}

body.zn-theme .contact-wrapper-left {
    border-radius: 2px;
}

body.zn-theme .contact-control {
    border-radius: 2px;
    border-color: var(--border-clr);
    font-family: var(--body-fonts);
}

body.zn-theme .contact-label {
    font-family: var(--zn-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ---------- 15. footer ---------- */
body.zn-theme .zn-footer .footer-link-wrap .link-item .title {
    font-family: var(--zn-mono);
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body.zn-theme .zn-footer .contant-details {
    font-family: var(--zn-mono);
    font-size: 14px;
}
