/* ==========================================================================
   Digimitra base styles: tokens, typography, buttons, header, footer.
   Page designs live in assets/css/pages/<template>.css
   ========================================================================== */

:root {
	--blue: #0a57d0;
	--blue-700: #0842a3;
	--blue-900: #062a6b;
	--blue-50: #eef4ff;
	--blue-100: #dce8ff;
	--purple: #6a3ce0;
	--purple-50: #f3eeff;
	--yellow: #ffc72c;
	--yellow-50: #fff7dc;
	--green: #148a46;
	--green-50: #e8f6ee;
	--red: #d9333f;
	--ink: #1b1f2a;
	--ink-2: #3d4454;
	--muted: #5f6b80;
	--line: #dde3ee;
	--soft: #f5f7fa;
	--white: #fff;
	--radius: 8px;
	--radius-lg: 16px;
	--shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 14px rgba(16, 24, 40, .06);
	--shadow-lg: 0 10px 30px rgba(10, 42, 107, .12);
	--container: 1180px;
	--font: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font: 400 17px/1.6 var(--font); color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 5.4vw, 56px); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(28px, 3.8vw, 40px); }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }
ul { margin: 0; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: var(--radius); }
.skip:focus { left: 8px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section--soft { background: var(--soft); }
.section--tint { background: var(--blue-50); }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.lead { font-size: 20px; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 17px/1 var(--font); padding: 15px 26px; border-radius: var(--radius); border: 2px solid transparent; cursor: pointer; text-decoration: none !important; transition: background .15s, color .15s, border-color .15s, transform .1s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-700); color: #fff; }
.btn--outline { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn--outline:hover { background: var(--blue-50); }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow:hover { background: #f2b600; }
.btn--white { background: #fff; color: var(--blue); }
.btn--wa { background: #1fa855; color: #fff; }
.btn--wa:hover { background: #178a45; color: #fff; }
.btn--sm { padding: 10px 16px; font-size: 15px; }
.btn--block { width: 100%; }

/* Chips & tags */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--blue-50); color: var(--blue-700); border: 1px solid var(--blue-100); }
.tag { display: inline-block; padding: 4px 10px; border-radius: 6px; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.tag--yellow { background: var(--yellow); color: var(--ink); }
.tag--green { background: var(--green-50); color: var(--green); }
.tag--purple { background: var(--purple-50); color: var(--purple); }
.tag--red { background: #fde8ea; color: var(--red); }

/* Price */
.price-line { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-line b { font-size: 34px; font-weight: 800; color: var(--ink); }
.price-line s { color: var(--muted); font-size: 18px; }
.price-line em { font-style: normal; font-weight: 700; color: var(--green); font-size: 15px; }

/* Offer bar */
.offer-bar { background: var(--blue-900); color: #fff; font-size: 15px; }
.offer-bar .container { display: flex; align-items: center; justify-content: center; gap: 10px; padding-top: 9px; padding-bottom: 9px; flex-wrap: wrap; text-align: center; }
.offer-bar__tag { background: var(--yellow); color: var(--ink); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 4px; }
.offer-bar__timer { font-variant-numeric: tabular-nums; background: rgba(255, 255, 255, .14); padding: 2px 8px; border-radius: 4px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(8px); }
.site-header__row { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; }
.brand__name { font-weight: 800; font-size: 23px; letter-spacing: -.02em; }
.brand__logo { max-height: 44px; width: auto; }
.brand--light { color: #fff; }
.site-nav { flex: 1; }
.site-nav__list { list-style: none; padding: 0; display: flex; gap: 26px; }
.site-nav__list a { color: var(--ink-2); font-weight: 600; font-size: 16px; }
.site-nav__list a:hover, .site-nav__list .current-menu-item a { color: var(--blue); text-decoration: none; }
.site-header__actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-link { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--ink-2); background: none; border: 0; cursor: pointer; }
.icon-link:hover { background: var(--soft); color: var(--blue); }
.dm-cart-count { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.site-header__cta { margin-left: 8px; }
.nav-toggle { display: none; }

@media (max-width: 920px) {
	.site-header__row { gap: 12px; height: 64px; }
	.nav-toggle { display: inline-grid; }
	.site-header__cta { display: none; }
	.site-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); display: none; }
	.site-nav.is-open { display: block; }
	.site-nav__list { flex-direction: column; gap: 0; padding: 8px 20px 16px; }
	.site-nav__list a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
}

/* Footer */
.site-footer { background: var(--blue-900); color: #c9d6f2; padding: 64px 0 28px; margin-top: 0; font-size: 16px; }
.site-footer a { color: #fff; }
.site-footer h3 { color: #fff; font-size: 16px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer__brand p { margin: 14px 0 18px; max-width: 34ch; }
.site-footer__pay { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; }
.site-footer__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.site-footer__chips span { border: 1px solid rgba(255, 255, 255, .25); border-radius: 6px; padding: 2px 8px; font-size: 13px; }
.site-footer__menu { list-style: none; padding: 20px 0 0; display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer__legal { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 40px; padding-top: 22px; font-size: 14px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer__legal p { margin: 0; max-width: 80ch; }
@media (max-width: 820px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }

/* WhatsApp float */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #1fa855; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(31, 168, 85, .4); }
.wa-float:hover { background: #178a45; }
body.has-sticky-buy .wa-float { bottom: 92px; }

/* Generic content (page.php, posts) */
.page-hero { background: var(--blue-50); padding: 56px 0 44px; border-bottom: 1px solid var(--blue-100); }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 46px); margin: 0; }
.prose { max-width: 760px; padding: 48px 20px 80px; margin: 0 auto; font-size: 18px; }
.prose h2 { font-size: 28px; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 1em; }
.prose img { border-radius: var(--radius-lg); }

/* Delivery box (thank-you / account) shared with plugin output */
.dm-downloads { background: var(--green-50); border: 2px solid #b6e2c6; border-radius: var(--radius-lg); padding: 24px; margin: 0 0 32px; }
.dm-downloads h2 { font-size: 26px; color: var(--green); }
.dm-downloads--wait { background: var(--yellow-50); border-color: #f5dc8a; }
.dm-downloads--wait h2 { color: var(--ink); }
.dm-downloads__list { list-style: none; padding: 0; display: grid; gap: 10px; }
.dm-downloads__list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.dm-downloads__list small { display: block; color: var(--muted); font-size: 14px; }
.dm-downloads .btn { background: var(--blue); color: #fff; padding: 10px 18px; font-size: 15px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.reveal { opacity: 1; transform: none; transition: none; }
	*, *::before, *::after { animation: none !important; }
}
[hidden] { display: none !important; }
@media (max-width: 600px) {
	.offer-bar { font-size: 13px; }
	.offer-bar .container { flex-wrap: nowrap; gap: 8px; padding-top: 7px; padding-bottom: 7px; }
	.offer-bar .container > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
	.offer-bar__tag { display: none; }
}
