/* Scoped shared hero button API: default-btn (filled), primary-btn (outline), secondory-btn (text link). */

/* Hero CTA classes are managed by the central catalog below. */
/* Central CTA class catalog — edit button appearance here.
   Keep component layout rules (sliders, filters, close icons) in their component files.
   Classes below map legacy CTA markup without changing URLs, JS or ACF values. */
:root{
 --sahana-btn-font:inherit;
 --sahana-btn-font-size:12px;
 --sahana-btn-font-weight:700;
 --sahana-btn-line-height:1.35;
 --sahana-btn-letter-spacing:.04em;
 --sahana-btn-radius:999px;
 --sahana-btn-height:44px;
 --sahana-btn-padding:11px 22px;
 --sahana-btn-dark:#090d16;
 --sahana-btn-light:#fff;
 --sahana-btn-border:rgba(9,13,22,.25);
 --sahana-btn-hover:var(--brand-gradient,linear-gradient(105deg,#dfa529,#939350,#2f8989));
}
:is(.sahana-global-hero-actions,.sahana-service-hero .hero,.sahana-cta-group){--sahana-btn-font-size:14px;--sahana-btn-height:46px}
:is(.js-work-card,.sahana-result-card,.card-footer){--sahana-btn-font-size:11px;--sahana-btn-height:40px;--sahana-btn-padding:9px 16px}
:is(.sahana-theme-dark,.sahana-hero-style--dark,.section-dark,.dark-section,[data-theme="dark"]){--sahana-btn-dark:#fff;--sahana-btn-light:#090d16;--sahana-btn-border:rgba(255,255,255,.6)}
/* Existing site classes: primary, secondary, home magnetic, card CTA, PDF CTA, and text link. */
:is(a,button,input[type="submit"]):is(.sahana-btn-primary,.sahana-btn-secondary,.sahana-btn-link,.default-btn,.primary-btn,.word-shift-btn,.sahana-case-download-trigger,.sahana-home-case-download){
 font-family:var(--sahana-btn-font);font-size:var(--sahana-btn-font-size);
 font-weight:var(--sahana-btn-font-weight);line-height:var(--sahana-btn-line-height);
 letter-spacing:var(--sahana-btn-letter-spacing);text-decoration:none;
 transition:background-color .4s ease,border-color .4s ease,color .4s ease;
}
:is(a,button,input[type="submit"]):is(.sahana-btn-primary,.sahana-btn-secondary,.default-btn,.primary-btn,.word-shift-btn,.sahana-case-download-trigger,.sahana-home-case-download){
 display:inline-flex;align-items:center;justify-content:center;gap:8px;
 min-height:var(--sahana-btn-height);padding:var(--sahana-btn-padding);
 border-radius:var(--sahana-btn-radius);border:1px solid var(--sahana-btn-border);
 cursor:pointer;
}
:is(a,button,input[type="submit"]):is(.sahana-btn-primary,.default-btn){background:var(--sahana-btn-dark);color:var(--sahana-btn-light);border-color:var(--sahana-btn-dark)}
:is(a,button,input[type="submit"]):is(.sahana-btn-secondary,.primary-btn,.word-shift-btn,.sahana-case-download-trigger,.sahana-home-case-download){background:transparent;color:var(--sahana-btn-dark)}
:is(a,button,input[type="submit"]):is(.sahana-btn-link,.secondory-btn){color:var(--sahana-btn-dark);background:transparent}
:is(a,button,input[type="submit"]):is(.sahana-btn-primary,.sahana-btn-secondary,.default-btn,.primary-btn,.word-shift-btn,.sahana-case-download-trigger,.sahana-home-case-download):hover{
 background-image:var(--sahana-btn-hover);background-size:200% 100%;color:#fff;
 border-color:transparent;animation:brand-gradient-sweep 1.1s ease forwards;
}
:is(a,button,input[type="submit"]):is(.sahana-btn-primary,.sahana-btn-secondary,.sahana-btn-link,.default-btn,.primary-btn,.secondory-btn,.word-shift-btn,.sahana-case-download-trigger,.sahana-home-case-download):focus-visible{outline:2px solid #c59d47;outline-offset:3px}
:is(a,button,input[type="submit"]):is(.sahana-btn-primary,.sahana-btn-secondary,.default-btn,.primary-btn,.word-shift-btn,.sahana-case-download-trigger,.sahana-home-case-download):disabled{opacity:.55;cursor:not-allowed}
@media(max-width:767px){:is(.sahana-global-hero-actions,.sahana-service-hero .hero){--sahana-btn-font-size:13px;--sahana-btn-padding:10px 18px}}
@media(prefers-reduced-motion:reduce){:is(a,button,input[type="submit"]):is(.sahana-btn-primary,.sahana-btn-secondary,.default-btn,.primary-btn,.word-shift-btn,.sahana-case-download-trigger,.sahana-home-case-download):hover{animation:none}}

/* Case Study reusable popup, CTA and metrics components (migrated from page CSS). */
.sahana-case-download-trigger{border:1px solid rgba(255,255,255,.6);border-radius:30px;background:transparent;color:inherit;font:inherit;font-size:11px;font-weight:700;letter-spacing:.04em;padding:9px 12px;cursor:pointer;text-align:left}
.sahana-case-download-trigger:hover,.sahana-case-download-trigger:focus-visible{background:#fff;color:#101923}
.sahana-case-download-demo{font-size:11px;font-weight:700;letter-spacing:.04em;opacity:.7}.sahana-case-download-demo small{font-size:9px;border:1px solid currentColor;border-radius:4px;padding:2px 4px;margin-left:4px}
.sahana-case-download-close{position:absolute;top:14px;right:16px;background:transparent;border:0;font-size:28px;cursor:pointer}
.sahana-case-download-dialog input,.sahana-case-download-dialog textarea{max-width:100%}
.sahana-case-download-note{font-size:12px;color:#666}
.sahana-case-demo-form{display:grid;gap:14px}.sahana-case-demo-form label{display:grid;gap:6px;font-size:13px;font-weight:600}.sahana-case-demo-form input{width:100%;border:1px solid #ccd1d8;border-radius:8px;padding:12px;font:inherit}.sahana-case-demo-form button,.sahana-case-download-file{display:inline-block;border:0;border-radius:30px;padding:12px 20px;background:#101923;color:#fff;font-weight:700;cursor:pointer;text-decoration:none}
.sahana-case-demo-success{padding:16px;background:#f2f3ed;border-radius:8px;color:#28322a}

/* Case Study PDF drawer: same compact gold-accent checklist visual language.
   Scoped to Case Study popup; service checklist remains unchanged. */
.sahana-case-download-dialog{position:fixed;inset:0;margin:auto;max-width:min(92vw,440px);width:100%;max-height:min(88dvh,740px);overflow-y:auto;padding:30px 24px 26px;border:1px solid #e0e2e1;border-top:3px solid #c5a348;border-radius:15px;background:#fff;box-shadow:0 24px 65px #0b171b30;font-family:inherit;color:#090d16}
.sahana-case-download-dialog[open]{animation:sahana-case-modal-in .38s cubic-bezier(.22,.8,.25,1) both}
.sahana-case-download-dialog[open].is-closing{animation:sahana-case-modal-out .28s ease-in both}
@keyframes sahana-case-modal-in{from{opacity:0;transform:translateY(-65px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes sahana-case-modal-out{from{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(-65px) scale(.97)}}
.sahana-case-download-dialog::backdrop{background:rgba(5,10,18,.52)}
.sahana-case-download-dialog .sahana-page-checklist__inner{display:flex;flex-direction:column;gap:0;width:100%;max-width:none;padding:0;margin:0}
.sahana-case-download-dialog .sahana-page-checklist__eyebrow{display:block;margin:0 0 12px;color:#bd9a40;font-size:11px;font-weight:700;letter-spacing:.15em;text-transform:uppercase}
.sahana-case-download-dialog .sahana-checklist-title-row{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.sahana-case-download-dialog .sahana-checklist-icon{display:flex;align-items:center;justify-content:center;flex:0 0 34px;width:34px;height:34px;border:1px solid #e7d8af;border-radius:50%;background:#fbf6e9;color:#b48a2d;font-size:20px}
.sahana-case-download-dialog h3.sahana-checklist-heading{margin:0;color:#090d16;font-size:20px;line-height:1.3;font-weight:600;letter-spacing:0}
.sahana-case-download-dialog .sahana-page-checklist__description{margin:0 0 12px;color:#536784;font-size:14px;line-height:1.55}
.sahana-case-download-dialog .sahana-case-download-post-title{margin:0 0 18px;color:#536784;font-size:12px;font-weight:600}
.sahana-case-download-dialog .sahana-case-download-close{top:12px;right:14px;z-index:3;color:#536784}
.sahana-case-download-dialog .sahana-page-checklist__form .aic-capture-row{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;width:100%;max-width:100%;align-items:stretch}
.sahana-case-download-dialog .sahana-page-checklist__form .aic-capture-row>.aic-form-field,.sahana-case-download-dialog .sahana-page-checklist__form .aic-capture-row>.aic-cta-form-actions{display:block;width:100%;min-width:0;max-width:100%;margin:0}
.sahana-case-download-dialog .sahana-page-checklist__form .aic-capture-row .aic-form-field label{display:flex;flex-direction:column;gap:6px;width:100%;font-size:13px;font-weight:600;color:#090d16}
.sahana-case-download-dialog .sahana-page-checklist__form .aic-capture-row .wpcf7-form-control-wrap{display:block;width:100%;min-width:0}
.sahana-case-download-dialog .sahana-page-checklist__form :is(input[type=text],input[type=email],textarea){display:block;width:100%;max-width:100%;min-height:43px;padding:10px 14px;border:1px solid #d2d5d7;border-radius:8px;background:#fff;color:#536784;font-family:inherit;font-size:14px;box-sizing:border-box}
.sahana-case-download-dialog .sahana-page-checklist__form .aic-capture-row .aic-cta-form-actions :is(input[type=submit],button[type=submit]){display:block;width:100%;max-width:100%;margin:0}
.sahana-case-download-dialog .sahana-page-checklist__form :is(input[type=submit],button[type=submit]){display:block;width:100%;min-height:43px;margin-top:10px;padding:12px;border:0;border-radius:99px;background:#0b1119;color:#fff;font-family:inherit;font-size:12px;font-weight:600;cursor:pointer}
.sahana-case-download-dialog .sahana-page-checklist__form .wpcf7-spinner{display:none}
@media(prefers-reduced-motion:reduce){.sahana-case-download-dialog[open],.sahana-case-download-dialog[open].is-closing{animation:none}}
/* Compact Case Study cards: three-column metric glass panel and paired actions. */
.sahana-result-card .sahana-result-copy{width:100%;min-width:0}
.sahana-result-card .sahana-case-card-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;padding:12px 10px;margin:0 0 25px;border:1px solid rgba(255,255,255,.55);border-radius:14px;background:rgba(255,255,255,.12);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.sahana-result-card .sahana-case-card-metric{min-width:0;padding:0 8px;border-right:1px solid rgba(255,255,255,.5)}
.sahana-result-card .sahana-case-card-metric:last-child{border-right:0}
.sahana-result-card .sahana-case-card-metric strong{display:block;color:#fff;font-size:clamp(15px,1.4vw,21px);line-height:1.15;font-weight:700}
.sahana-result-card .sahana-case-card-metric span{display:block;color:#fff;font-size:clamp(9px,.7vw,11px);line-height:1.3;margin-top:4px;overflow-wrap:anywhere}
.sahana-result-card .sahana-case-card-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px}
.sahana-result-card .sahana-case-card-actions .sahana-case-download-trigger{display:inline-flex;align-items:center;justify-content:center;gap:6px;margin:0;padding:9px 12px;border:1px solid rgba(255,255,255,.8);border-radius:100px;background:transparent;color:#fff;font-size:10px;line-height:1.2;font-weight:600;letter-spacing:.03em;text-align:center}
.sahana-result-card .sahana-case-card-actions .sahana-case-download-trigger:hover{background:#fff;color:#101923}
.sahana-result-card .sahana-case-card-actions .sahana-case-download-icon{display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;font-size:18px;font-weight:600;line-height:1;transform:translateY(-1px)}
.sahana-result-card .sahana-case-card-actions .sahana-case-download-trigger{white-space:nowrap;font-size:11px;padding:9px 15px;border-color:rgba(255,255,255,.75)}

/* Home showcase: use the same Case Study metrics and download action without changing the showcase image design. */
.js-work-card .card-thumb-link{position:relative}
.js-work-card .card-thumb-link .sahana-home-case-metrics{position:absolute;z-index:3;left:18px;right:18px;bottom:18px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:0;padding:14px 10px;border:1px solid rgba(255,255,255,.55);border-radius:15px;background:rgba(25,65,94,.3);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);pointer-events:none}
.js-work-card .card-thumb-link .sahana-home-case-metric{min-width:0;padding:0 10px;border-right:1px solid rgba(255,255,255,.6)}
.js-work-card .card-thumb-link .sahana-home-case-metric:last-child{border-right:0}
.js-work-card .card-thumb-link .sahana-home-case-metric strong{display:block;color:#fff;font-size:clamp(17px,1.7vw,25px);line-height:1.15;font-weight:700}
.js-work-card .card-thumb-link .sahana-home-case-metric span{display:block;color:#fff;font-size:clamp(10px,.85vw,12px);line-height:1.35;margin-top:4px;overflow-wrap:anywhere}
/* Match the existing Explore Project pill for both Home showcase actions. */
.js-work-card .card-footer .sahana-home-case-download{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:11px 22px;border:1px solid #101923;border-radius:999px;background:transparent;box-shadow:none;color:#101923;font-family:inherit;font-size:14px;font-weight:600;letter-spacing:normal;line-height:1.4;white-space:normal;text-transform:none;text-decoration:none;opacity:1;transition:background-color .25s ease,color .25s ease,border-color .25s ease}
.js-work-card .card-footer .sahana-home-case-download:hover,.js-work-card .card-footer .sahana-home-case-download:focus-visible{background:#101923;border-color:#101923;color:#fff;box-shadow:none}
.js-work-card .card-footer .sahana-home-case-download:focus-visible{outline:2px solid #c59d47;outline-offset:3px}
.js-work-card .card-footer .sahana-home-case-download .sahana-case-download-icon{display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;flex:none;color:inherit;font-size:17px;line-height:1;transform:none}
@media(max-width:480px){.js-work-card .card-thumb-link .sahana-home-case-metrics{left:10px;right:10px;bottom:10px;padding:10px 4px}.js-work-card .card-thumb-link .sahana-home-case-metric{padding:0 5px}.js-work-card .card-thumb-link .sahana-home-case-metric span{font-size:10px}}
@media(max-width:480px){.sahana-result-card .sahana-case-card-metrics{padding:10px 5px;margin-bottom:18px}.sahana-result-card .sahana-case-card-metric{padding:0 5px}.sahana-result-card .sahana-case-card-actions{gap:8px}}


/* Case Study hero PDF popup CTA: reuse the Case Study download button visual. */
body .sahana-service-hero.services .hero .hero-layout > div:first-child > button.sahana-case-hero-download{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;min-height:46px!important;padding:11px 22px!important;margin-left:8px!important;border:1px solid #aab0b7!important;border-radius:999px!important;background:transparent!important;background-image:none!important;color:#101923!important;font-family:inherit!important;font-size:12px!important;font-weight:700!important;letter-spacing:.04em!important;line-height:1.4!important;cursor:pointer!important;box-shadow:none!important;transition:background-color .25s ease,color .25s ease,border-color .25s ease}
body .sahana-service-hero.services .hero .hero-layout > div:first-child > button.sahana-case-hero-download:is(:hover,:focus-visible){background:#101923!important;color:#fff!important;border-color:#101923!important}
body .sahana-service-hero.services .hero .hero-layout > div:first-child > button.sahana-case-hero-download:focus-visible{outline:2px solid #c59d47!important;outline-offset:3px}
@media(max-width:600px){body .sahana-service-hero.services .hero .hero-layout > div:first-child > button.sahana-case-hero-download{margin:10px 0 0!important}}

/* Elementor reset [type=button] sets pink (#e36); force Sahana nested-tab states above the reset. */
body .shc .shc__mode button[type=button].is-active,
body .shc .shc__mode button[type=button].is-active:hover,
body .shc .shc__mode button[type=button].is-active:focus,
body .shc .shc__mode button[type=button].is-active:focus-visible{background:#08090b!important;background-color:#08090b!important;border-color:#08090b!important;color:#fff!important}
body .shc .shc__mode button[type=button]:not(.is-active){background:#eef1ee!important;background-color:#eef1ee!important;color:#506267!important;border-color:transparent!important}

