/*
Theme Name: TransferSync
Theme URI: https://transfersync.co
Description: Official theme for transfersync.co — WooCommerce plugin sales site
Version: 1.0.0
Author: TransferSync
Author URI: https://transfersync.co
License: Proprietary
Text Domain: transfersync
*/

/* ═══════════════════════════════════════════════════
   DESIGN SYSTEM — CSS Custom Properties
═══════════════════════════════════════════════════ */

:root {
    /* Brand colours */
    --bm-ink:         #0a0f0d;
    --bm-paper:       #f5f3ee;
    --bm-white:       #ffffff;
    --bm-green:       #1a7a52;
    --bm-green-mid:   #2db87a;
    --bm-green-pale:  #e6f7ef;
    --bm-green-dark:  #0d5c3b;
    --bm-slate:       #111a15;
    --bm-slate-mid:   #1e2d26;
    --bm-slate-light: #2e4038;
    --bm-muted:       #6b7c73;
    --bm-muted-dark:  #7a9a85;
    --bm-border:      #d4ddd7;
    --bm-border-dark: rgba(255,255,255,.08);
    --bm-amber:       #c8760a;
    --bm-amber-pale:  #fff8e1;

    /* Spacing scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    --space-24: 96px;

    /* Typography */
    --font-display: 'Syne', sans-serif;
    --font-body:    'DM Sans', sans-serif;
    --font-mono:    'DM Mono', monospace;

    /* Layout */
    --container-max: 1120px;
    --container-pad: clamp(20px, 5vw, 60px);
    --radius:        12px;
    --radius-sm:     8px;
    --radius-lg:     16px;

    /* Transitions */
    --ease: cubic-bezier(.4, 0, .2, 1);
    --ease-out: cubic-bezier(0, 0, .2, 1);
}

/* ═══════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--bm-ink);
    background: var(--bm-white);
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--bm-green); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font-family: inherit; }

/* ═══════════════════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════════════════ */

.bm-display-xl {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    line-height: 1.08;
    letter-spacing: -.02em;
}
.bm-display-lg {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    line-height: 1.1;
    letter-spacing: -.015em;
}
.bm-display-md {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    line-height: 1.2;
}
.bm-overline {
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.bm-body-lg { font-size: 1.125rem; line-height: 1.7; font-weight: 300; }
.bm-body    { font-size: 1rem;     line-height: 1.7; }
.bm-body-sm { font-size: .875rem;  line-height: 1.65; }
.bm-caption { font-size: .78rem;   line-height: 1.5; color: var(--bm-muted); }

/* ═══════════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════════ */

.bm-container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}
.bm-section { padding-block: var(--space-20); }
.bm-section-sm { padding-block: var(--space-12); }
.bm-section-lg { padding-block: clamp(80px, 10vw, 140px); }

/* ═══════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════ */

.bm-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    border: 1.5px solid transparent;
    transition: all .2s var(--ease);
    white-space: nowrap;
}
.bm-btn-primary {
    background: var(--bm-green);
    color: var(--bm-white);
    border-color: var(--bm-green);
}
.bm-btn-primary:hover {
    background: var(--bm-green-dark);
    border-color: var(--bm-green-dark);
    transform: translateY(-1px);
    text-decoration: none;
    color: var(--bm-white);
}
.bm-btn-ghost {
    background: transparent;
    color: var(--bm-ink);
    border-color: var(--bm-border);
}
.bm-btn-ghost:hover {
    border-color: var(--bm-green);
    color: var(--bm-green);
    text-decoration: none;
}
.bm-btn-ghost-white {
    background: transparent;
    color: var(--bm-white);
    border-color: rgba(255,255,255,.25);
}
.bm-btn-ghost-white:hover {
    border-color: var(--bm-white);
    background: rgba(255,255,255,.08);
    color: var(--bm-white);
    text-decoration: none;
}
.bm-btn-lg { padding: 17px 36px; font-size: 1.05rem; }
.bm-btn-sm { padding: 9px 18px; font-size: .85rem; }

/* ═══════════════════════════════════════════════════
   BADGES & PILLS
═══════════════════════════════════════════════════ */

.bm-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .02em;
}
.bm-badge-green {
    background: var(--bm-green-pale);
    color: var(--bm-green-dark);
    border: 1px solid #b3dfc9;
}
.bm-badge-amber {
    background: var(--bm-amber-pale);
    color: #7c4a03;
    border: 1px solid #fdd9a0;
}
.bm-badge-slate {
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.85);
    border: 1px solid rgba(255,255,255,.12);
}

/* Pulse dot */
.bm-dot-live {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--bm-green-mid);
    animation: bm-pulse 2s ease infinite;
}
@keyframes bm-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .4; }
}

/* ═══════════════════════════════════════════════════
   CARDS
═══════════════════════════════════════════════════ */

.bm-card {
    background: var(--bm-white);
    border: 1px solid var(--bm-border);
    border-radius: var(--radius);
    padding: var(--space-8);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.bm-card:hover {
    border-color: var(--bm-green);
    box-shadow: 0 4px 24px rgba(26,122,82,.08);
}
.bm-card-dark {
    background: var(--bm-slate-mid);
    border-color: var(--bm-border-dark);
}
.bm-card-paper {
    background: var(--bm-paper);
    border-color: transparent;
}

/* ═══════════════════════════════════════════════════
   CALLOUTS
═══════════════════════════════════════════════════ */

.bm-callout {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-5) var(--space-6);
    border-radius: var(--radius-sm);
    border-left: 3px solid;
}
.bm-callout-amber {
    background: var(--bm-amber-pale);
    border-left-color: var(--bm-amber);
    color: #7c4a03;
}
.bm-callout-green {
    background: var(--bm-green-pale);
    border-left-color: var(--bm-green);
    color: var(--bm-green-dark);
}
.bm-callout-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }

/* ═══════════════════════════════════════════════════
   CHECK LIST
═══════════════════════════════════════════════════ */

.bm-check-list { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
.bm-check-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    font-size: .9rem;
}
.bm-check-list li::before {
    content: '';
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--bm-green-pale);
    flex-shrink: 0;
    margin-top: 2px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7l3 3 6-6' stroke='%231a7a52' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}
.bm-check-list li.dim { color: var(--bm-muted); }
.bm-check-list li.dim::before {
    background-color: #f0f0f0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7h6' stroke='%23aaa' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ═══════════════════════════════════════════════════
   SECTION HEADERS
═══════════════════════════════════════════════════ */

.bm-section-header { max-width: 640px; }
.bm-section-header.centered { margin-inline: auto; text-align: center; }
.bm-section-header .bm-overline { color: var(--bm-green); margin-bottom: var(--space-3); display: block; }
.bm-section-header h2 { margin-bottom: var(--space-4); }
.bm-section-header p { color: var(--bm-muted); font-weight: 300; }

/* ═══════════════════════════════════════════════════
   GRIDS
═══════════════════════════════════════════════════ */

.bm-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
}
.bm-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--space-8);
}

/* ═══════════════════════════════════════════════════
   FAQ ACCORDION
═══════════════════════════════════════════════════ */

.bm-faq-item {
    border-bottom: 1px solid var(--bm-border);
}
.bm-faq-item:first-child { border-top: 1px solid var(--bm-border); }
.bm-faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-5) 0;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    color: var(--bm-ink);
    gap: var(--space-4);
}
.bm-faq-icon {
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 1.5px solid var(--bm-border);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
    color: var(--bm-muted);
    transition: all .2s var(--ease);
}
.bm-faq-item.open .bm-faq-icon {
    border-color: var(--bm-green);
    color: var(--bm-green);
    transform: rotate(45deg);
}
.bm-faq-a {
    display: none;
    padding-bottom: var(--space-5);
    font-size: .9rem;
    color: var(--bm-muted);
    line-height: 1.7;
}
.bm-faq-item.open .bm-faq-a { display: block; }
.bm-faq-a a { color: var(--bm-green); }

/* ═══════════════════════════════════════════════════
   DIVIDERS
═══════════════════════════════════════════════════ */

.bm-divider {
    height: 1px;
    background: var(--bm-border);
    margin-block: var(--space-16);
}

/* ═══════════════════════════════════════════════════
   UTILITIES
═══════════════════════════════════════════════════ */

.bm-text-green  { color: var(--bm-green); }
.bm-text-muted  { color: var(--bm-muted); }
.bm-text-white  { color: var(--bm-white); }
.bm-text-center { text-align: center; }
.bm-mt-2  { margin-top: var(--space-2); }
.bm-mt-4  { margin-top: var(--space-4); }
.bm-mt-6  { margin-top: var(--space-6); }
.bm-mt-8  { margin-top: var(--space-8); }
.bm-mt-10 { margin-top: var(--space-10); }
.bm-mt-12 { margin-top: var(--space-12); }
.bm-mb-6  { margin-bottom: var(--space-6); }
.bm-mb-10 { margin-bottom: var(--space-10); }

/* ═══════════════════════════════════════════════════
   SCROLL REVEAL ANIMATION
═══════════════════════════════════════════════════ */

.bm-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
}
.bm-reveal.visible {
    opacity: 1;
    transform: none;
}
.bm-reveal-delay-1 { transition-delay: .08s; }
.bm-reveal-delay-2 { transition-delay: .16s; }
.bm-reveal-delay-3 { transition-delay: .24s; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .bm-hide-mobile { display: none !important; }
    .bm-btn-lg { padding: 14px 24px; font-size: .95rem; }
    .bm-grid-3, .bm-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .bm-btn { width: 100%; justify-content: center; }
    .bm-btn + .bm-btn { margin-top: var(--space-3); }
}
