/* =====================================================================
   JS1 Software — shared stylesheet (Eleventy build)
   Edit once; applies to every page.
   ===================================================================== */

:root {
    --primary-color: #007bff;
    --secondary-color: #4CAF50;
    --text-color: #333;
    --sahay-purple: #6A1B9A;
    --sahay-blue: #1565C0;
}

body { font-family: 'Roboto', sans-serif; color: var(--text-color); line-height: 1.8; }

h1, h2, h3 { color: var(--primary-color); }

/* ── Navbar ───────────────────────────────────────── */
.navbar-brand img { height: 40px; }
.navbar { position: sticky; top: 0; z-index: 1000; background-color: #343a40; }
.nav-link { color: var(--primary-color); padding: 10px 15px; }
.nav-link:hover { color: var(--secondary-color); }

/* ── Language toggle ──────────────────────────────── */
.lang-toggle { display: flex; gap: 4px; align-items: center; }
.lang-toggle a { color: #ccc; text-decoration: none; font-size: 0.85rem; padding: 4px 9px; border-radius: 6px; border: 1px solid transparent; }
.lang-toggle a:hover { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.lang-toggle a.active { color: #fff; background: rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.4); font-weight: 700; }

/* ── Generic sections ─────────────────────────────── */
.section-padding { padding: 70px 0; }
.section-title { text-align: center; margin-bottom: 12px; }
.section-title h2 { color: var(--sahay-purple); font-size: 2.2rem; font-weight: 700; }
.section-lead { text-align: center; max-width: 720px; margin: 0 auto 45px; color: #555; }

/* ── Home hero ────────────────────────────────────── */
.hero { background: url('/images/hero-image.jpg') no-repeat center/cover; padding: 100px 0; text-align: center; position: relative; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.45); }
.hero-content { position: relative; z-index: 1; color: #fff; }
.hero-content h1 { color: #fff; }

/* ── Home SAHAY strip ─────────────────────────────── */
.sahay-strip { background: linear-gradient(135deg, var(--sahay-purple), var(--sahay-blue)); color: #fff; padding: 40px 0; }
.sahay-strip h2 { color: #fff; font-weight: 700; margin: 8px 0 4px; }
.sahay-strip .pill { display: inline-block; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .4); border-radius: 20px; padding: 3px 12px; font-size: .75rem; font-weight: 700; letter-spacing: .5px; }

/* ── Buttons ──────────────────────────────────────── */
.btn-custom { display: inline-block; padding: 12px 24px; font-size: 16px; font-weight: 600; text-decoration: none; background-color: var(--secondary-color); color: #fff; border-radius: 5px; transition: transform .3s, background-color .3s; }
.btn-custom:hover { background-color: #45a049; transform: scale(1.05); color: #fff; }
.btn-sahay { display: inline-block; padding: 13px 30px; font-size: 16px; font-weight: 700; text-decoration: none; border-radius: 8px; transition: transform .25s, box-shadow .25s, background-color .25s; box-shadow: 0 4px 10px rgba(0, 0, 0, .15); }
.btn-sahay-primary { background: #fff; color: var(--sahay-purple); }
.btn-sahay-primary:hover { transform: translateY(-2px) scale(1.02); color: var(--sahay-purple); box-shadow: 0 8px 18px rgba(0, 0, 0, .25); }
.btn-sahay-ghost { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .7); }
.btn-sahay-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; transform: translateY(-2px); }

/* ── SAHAY landing hero ───────────────────────────── */
.sahay-hero { background: linear-gradient(135deg, var(--sahay-purple) 0%, var(--sahay-blue) 100%); color: #fff; padding: 90px 0 80px; text-align: center; }
.sahay-hero h1 { color: #fff; font-size: 3rem; font-weight: 700; letter-spacing: -.5px; margin-bottom: 6px; }
.sahay-hero .tagline { font-size: 1.35rem; opacity: .95; margin-bottom: 18px; }
.sahay-hero .sub { max-width: 720px; margin: 0 auto 30px; font-size: 1.05rem; opacity: .92; }
.sahay-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .35); padding: 5px 14px; border-radius: 30px; font-size: .8rem; font-weight: 700; letter-spacing: .5px; margin-bottom: 22px; }
.sahay-badge .fa-star { color: #FFD54F; }
.cta-buttons { margin-top: 10px; display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }

/* ── Benefit boxes ────────────────────────────────── */
.benefit-box { padding: 24px 18px; text-align: center; height: 100%; }
.benefit-box .benefit-icon { font-size: 2.6rem; color: var(--sahay-purple); margin-bottom: 14px; }
.benefit-box h3 { font-size: 1.2rem; color: var(--text-color); font-weight: 700; margin-bottom: 8px; }
.benefit-box p { font-size: .97rem; color: #555; margin-bottom: 0; }

/* ── Highlight module cards ───────────────────────── */
.hl-card { background: #fff; border-radius: 14px; box-shadow: 0 4px 14px rgba(0, 0, 0, .08); padding: 26px 22px; height: 100%; transition: transform .3s, box-shadow .3s; border-top: 4px solid var(--sahay-purple); }
.hl-card:hover { transform: translateY(-6px); box-shadow: 0 10px 24px rgba(0, 0, 0, .14); }
.hl-card .hl-icon { width: 54px; height: 54px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #fff; margin-bottom: 16px; background: linear-gradient(135deg, var(--sahay-purple), var(--sahay-blue)); }
.hl-card h3 { font-size: 1.25rem; font-weight: 700; color: var(--text-color); margin-bottom: 10px; }
.hl-card p { font-size: .97rem; color: #555; margin-bottom: 0; }

/* ── Module grid ──────────────────────────────────── */
.modules-band { background: #f6f3fb; }
.mod-group-title { font-size: 1.1rem; font-weight: 700; color: var(--sahay-purple); margin: 28px 0 14px; display: flex; align-items: center; gap: 10px; }
.mod-tile { background: #fff; border-radius: 10px; padding: 16px; height: 100%; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); transition: transform .25s, box-shadow .25s; }
.mod-tile:hover { transform: translateY(-3px); box-shadow: 0 6px 14px rgba(0, 0, 0, .12); }
.mod-tile i { color: var(--sahay-purple); font-size: 1.2rem; margin-bottom: 8px; }
.mod-tile h4 { font-size: 1rem; font-weight: 700; color: var(--text-color); margin-bottom: 4px; }
.mod-tile p { font-size: .85rem; color: #666; margin-bottom: 0; line-height: 1.5; }

/* ── Language band & trust ────────────────────────── */
.lang-band { background: linear-gradient(135deg, var(--sahay-purple), var(--sahay-blue)); color: #fff; }
.lang-chip { display: inline-block; background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .4); border-radius: 30px; padding: 8px 22px; margin: 6px; font-size: 1.1rem; font-weight: 700; }
.trust-band { background: #fff; }
.trust-icon { font-size: 3rem; color: var(--secondary-color); margin-bottom: 16px; }

/* ── How it works ─────────────────────────────────── */
.step-num { width: 46px; height: 46px; border-radius: 50%; background: var(--sahay-purple); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem; margin: 0 auto 14px; }

/* ── CTA band & sticky CTA ────────────────────────── */
.cta-band { background: linear-gradient(135deg, var(--sahay-purple), var(--sahay-blue)); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; font-weight: 700; }
.sticky-cta { position: fixed; bottom: 20px; right: 20px; z-index: 1000; background-color: var(--sahay-purple); color: #fff; padding: 12px 22px; border-radius: 50px; box-shadow: 0 4px 10px rgba(0, 0, 0, .25); text-decoration: none; font-weight: 700; display: none; transition: transform .3s, background-color .3s; }
.sticky-cta:hover { background-color: var(--sahay-blue); color: #fff; transform: scale(1.06); }

/* ── Guide page ───────────────────────────────────── */
.guide-hero { background: linear-gradient(135deg, var(--sahay-purple) 0%, var(--sahay-blue) 100%); color: #fff; padding: 50px 0; text-align: center; }
.guide-hero h1 { color: #fff; font-weight: 700; font-size: 2.3rem; margin-bottom: 6px; }
.guide-hero p { opacity: .93; margin-bottom: 0; }
.guide-wrap { padding: 50px 0; }
.toc-card { background: #faf9fd; border: 1px solid #ece7f4; border-radius: 12px; padding: 20px; position: sticky; top: 80px; }
.toc-card h5 { color: var(--sahay-purple); font-weight: 700; font-size: 1rem; margin-bottom: 12px; }
.toc-card a { display: block; color: #444; text-decoration: none; padding: 6px 0; font-size: .95rem; border-bottom: 1px solid #efeaf6; }
.toc-card a:last-child { border-bottom: none; }
.toc-card a:hover { color: var(--sahay-purple); }
.guide-section { margin-bottom: 44px; scroll-margin-top: 80px; }
.guide-section h2 { color: var(--sahay-purple); font-weight: 700; font-size: 1.6rem; display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.guide-section h2 .num { width: 34px; height: 34px; flex: none; border-radius: 8px; background: linear-gradient(135deg, var(--sahay-purple), var(--sahay-blue)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.guide-section > p.intro { color: #555; margin-bottom: 18px; }
.shot { border: 2px dashed #c9bce0; border-radius: 12px; background: #f7f4fc; color: #8a7aa6; padding: 34px 20px; text-align: center; margin: 18px 0; font-size: .92rem; }
.shot i { font-size: 1.8rem; display: block; margin-bottom: 8px; }
.shot img { max-width: 100%; border-radius: 8px; }
.accordion-button:not(.collapsed) { background: #f3eefb; color: var(--sahay-purple); font-weight: 700; }
.accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(106, 27, 154, .15); }
.tip { border-left: 4px solid var(--secondary-color); background: #f1f8e9; padding: 12px 16px; border-radius: 8px; margin: 16px 0; font-size: .95rem; }
.warn { border-left: 4px solid #E65100; background: #fff8e1; padding: 12px 16px; border-radius: 8px; margin: 16px 0; font-size: .95rem; }
.help-band { background: linear-gradient(135deg, var(--sahay-purple), var(--sahay-blue)); color: #fff; text-align: center; padding: 50px 0; }
.help-band h2 { color: #fff; font-weight: 700; }

/* ── Footer ───────────────────────────────────────── */
footer { background: #343a40; color: #fff; padding: 40px 0; }
.footer-content { display: flex; flex-direction: column; align-items: center; gap: 12px; }

.modal-content { max-height: 85vh; overflow-y: auto; }

/* ── Mobile ───────────────────────────────────────── */
@media (max-width: 768px) { .toc-card { position: static; margin-bottom: 24px; } }
@media (max-width: 576px) {
    .sahay-hero h1 { font-size: 2.2rem; }
    .sahay-hero { padding: 60px 0 50px; }
    .section-padding { padding: 45px 0; }
    .section-title h2 { font-size: 1.8rem; }
    .cta-buttons { flex-direction: column; gap: 10px; }
    .navbar-brand img { height: 30px; }
    .hero { padding: 60px 0; }
}

/* ── Products / checkout page ──────────────────────── */
.product-card { box-shadow: 0 4px 10px rgba(0, 0, 0, .1); padding: 15px; margin-bottom: 15px; border-radius: 8px; transition: transform .2s, box-shadow .2s; }
.product-card:hover { transform: scale(1.03); box-shadow: 0 6px 15px rgba(0, 0, 0, .15); }
.product-card.selected { border: 2px solid var(--primary-color); box-shadow: 0 0 10px rgba(0, 123, 255, .3); }
.product-card h3 { font-size: 1.2rem; color: var(--text-color); }
.cart-summary { background: #f8f9fa; padding: 18px; border-radius: 10px; position: sticky; top: 90px; }
.cart-summary h3 { color: var(--sahay-purple); }
.btn-custom { display: inline-block; padding: 12px 24px; font-size: 16px; font-weight: 600; text-decoration: none; background-color: var(--secondary-color); color: #fff; border-radius: 5px; transition: transform .3s, background-color .3s; }
.btn-custom:hover { background-color: #45a049; transform: scale(1.03); color: #fff; }
.form-control.uppercase { text-transform: uppercase; }
.form-check-input:checked { background-color: #28a745; border-color: #28a745; }
.form-check-label { cursor: pointer; }
.fade-in { animation: fadeIn .5s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── Blog ──────────────────────────────────────────── */
.blog-icon { font-size: 3rem; color: var(--sahay-purple); margin-bottom: 16px; }
.blog-post h3 { color: var(--text-color); font-weight: 700; }
.blog-post p { color: #555; text-align: left; }

/* ── Legal / text pages ────────────────────────────── */
.legal h6 { color: var(--sahay-purple); font-weight: 700; margin-top: 22px; }
.legal p, .legal li { color: #444; }
