/* Palette taken from the Jiva Soft logo */
:root {
	--js-blue: #004aad;
	--js-blue-dark: #003580;
	--js-red: #ff3131;
	--js-orange: #ff914c;
	--js-ink: #111827;
	--js-text: #3a4556;
	--js-muted: #6b7686;
	--js-light: #f2f6fc;
	--js-blue-tint: #e8f0fb;
	--js-border: #dde6f3;
	--js-radius: 6px;
	--js-max: 1160px;
	--js-stripe: linear-gradient(90deg, var(--js-red) 0 33.33%, var(--js-orange) 33.33% 66.66%, var(--js-blue) 66.66% 100%);
}

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

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.65;
	color: var(--js-text);
	background: #fff;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
body.admin-bar { min-height: calc(100vh - 32px); }
@media (max-width: 782px) { body.admin-bar { min-height: calc(100vh - 46px); } }
.js-main { flex: 1 0 auto; }
.js-footer { flex-shrink: 0; }

img { max-width: 100%; height: auto; }
a { color: var(--js-blue); }
a:hover { color: var(--js-blue-dark); }

h1, h2, h3, h4 { color: var(--js-ink); line-height: 1.2; margin: 1.6em 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 2.3rem; margin-top: 0; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.25rem; }

.js-container { max-width: var(--js-max); margin: 0 auto; padding: 0 20px; }
.js-content { padding-top: 56px; padding-bottom: 72px; }
.js-content--narrow { max-width: 840px; }

/* Header */
.js-header { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--js-border); }
.js-header::after { content: ""; display: block; height: 3px; background: var(--js-stripe); }
.js-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; }
.js-brand__link { display: block; line-height: 0; }
.js-brand__logo, .js-brand .custom-logo { height: 72px; width: auto; display: block; }
.js-menu, .js-footer__menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; align-items: center; }
.js-menu a { white-space: nowrap; color: var(--js-ink); text-decoration: none; font-weight: 600; font-size: .98rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.js-menu a:hover, .js-menu .current-menu-item > a, .js-menu .current_page_item > a { color: var(--js-blue); border-bottom-color: var(--js-orange); }
.js-menu li { position: relative; }
.js-menu .sub-menu { display: none; position: absolute; top: 100%; left: -12px; min-width: 230px; background: #fff; border: 1px solid var(--js-border); border-radius: var(--js-radius); list-style: none; margin: 0; padding: 8px 0; box-shadow: 0 12px 30px rgba(0, 38, 90, .12); }
.js-menu li:hover > .sub-menu, .js-menu li:focus-within > .sub-menu { display: block; }
.js-menu .sub-menu a { display: block; padding: 9px 18px; border: 0; }
.js-menu .sub-menu a:hover { background: var(--js-blue-tint); }

.js-nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.js-nav-toggle span { display: block; width: 26px; height: 2px; background: var(--js-ink); margin: 6px 0; }

/* Buttons */
.js-btn { display: inline-block; background: var(--js-blue); color: #fff; padding: 9px 22px; border-radius: 4px; text-decoration: none; font-weight: 600; font-size: .95rem; border: 2px solid var(--js-blue); transition: background .2s, transform .2s, box-shadow .2s; }
.js-btn:hover { background: var(--js-blue-dark); border-color: var(--js-blue-dark); color: #fff; }
.js-btn--accent { background: #fff; border-color: #fff; color: var(--js-blue); }
.js-btn--accent:hover { background: var(--js-blue-tint); border-color: var(--js-blue-tint); color: var(--js-blue-dark); box-shadow: none; }
.js-btn--ghost { background: transparent; color: var(--js-blue); }
.js-btn--ghost:hover { background: var(--js-blue-tint); color: var(--js-blue-dark); box-shadow: none; }
.js-btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero */
.js-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #f7faff 0%, var(--js-blue-tint) 100%); padding: 96px 0 104px; }
.js-hero::before { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: var(--js-orange); opacity: .16; }
.js-hero::after { content: ""; position: absolute; right: 140px; bottom: -90px; width: 220px; height: 220px; border-radius: 50%; background: var(--js-red); opacity: .10; }
.js-hero__inner { position: relative; z-index: 1; max-width: 720px; }
.js-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--js-blue); margin-bottom: 18px; }
.js-eyebrow::before { content: ""; width: 34px; height: 4px; border-radius: 2px; background: var(--js-stripe); }
.js-hero h1 { font-size: 3.2rem; color: var(--js-ink); margin-bottom: 18px; }
.js-hero h1 span { color: var(--js-blue); }
.js-hero p { font-size: 1.18rem; color: var(--js-text); margin: 0 0 32px; max-width: 600px; }

/* Sections */
.js-section { padding: 80px 0; }
.js-section--light { background: var(--js-light); }
.js-section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.js-section-head h2 { margin: 0 0 12px; }
.js-section-head h2::after { content: ""; display: block; width: 72px; height: 4px; margin: 14px auto 0; border-radius: 2px; background: var(--js-stripe); }
.js-section-head p { margin: 0; color: var(--js-muted); }

/* Service cards */
.js-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.js-card { display: block; background: #fff; border: 1px solid var(--js-border); border-radius: 4px; padding: 28px 24px; text-decoration: none; color: var(--js-text); transition: border-color .2s, box-shadow .2s; }
.js-card:hover { border-color: var(--js-blue); box-shadow: 0 6px 18px rgba(0, 38, 90, .08); }
.js-card h3 { margin: 0 0 10px; }
.js-card p { margin: 0 0 16px; }
.js-card__more { color: var(--js-blue); font-weight: 600; }

/* Why us */
.js-why { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.js-why__item { padding-left: 18px; border-left: 4px solid var(--js-orange); }
.js-why__item:nth-child(1) { border-color: var(--js-red); }
.js-why__item:nth-child(3) { border-color: var(--js-blue); }
.js-why__item h3 { margin: 0 0 6px; font-size: 1.1rem; }
.js-why__item p { margin: 0; }

/* CTA band */
.js-band { background: var(--js-blue); color: #fff; padding: 72px 0; text-align: center; position: relative; }
.js-band::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--js-stripe); }
.js-band h2 { color: #fff; margin: 0 0 12px; }
.js-band p { color: #d4e3fa; max-width: 560px; margin: 0 auto 28px; }

/* Pages / service pages */
.js-page__title { margin-bottom: .3em; }
.js-page__meta { color: var(--js-muted); }
.js-service__tagline { color: var(--js-blue); font-size: 1.35rem; font-weight: 700; margin: 0 0 1.2em; }

/* CTA box inside service pages */
.js-cta { background: var(--js-blue-tint); border-left: 5px solid var(--js-orange); padding: 24px 28px; margin: 2.2em 0 0; border-radius: 0 var(--js-radius) var(--js-radius) 0; }
.js-cta__text { margin: 0 0 16px; color: var(--js-blue); font-weight: 700; font-size: 1.08rem; }

/* Footer */
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.js-footer { background: var(--js-ink); color: #c4cbd6; padding: 56px 0 32px; position: relative; }
.js-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--js-stripe); }
.js-footer__grid { display: grid; grid-template-columns: minmax(240px, 1.6fr) repeat(auto-fit, minmax(160px, 1fr)); gap: 40px; padding-bottom: 40px; border-bottom: 1px solid #2c3648; }
.js-footer__about p { margin: 16px 0 0; max-width: 320px; font-size: .95rem; }
.js-footer__logo { display: inline-block; line-height: 0; }
.js-footer__logo img { height: 96px; width: auto; }
.js-footer__title { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin: 4px 0 18px; }
.js-footer__menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; align-items: center; }
.js-menu a { white-space: nowrap; color: var(--js-ink); text-decoration: none; font-weight: 600; font-size: .98rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.js-menu a:hover, .js-menu .current-menu-item > a, .js-menu .current_page_item > a { color: var(--js-blue); border-bottom-color: var(--js-orange); }
.js-menu li { position: relative; }
.js-menu .sub-menu { display: none; position: absolute; top: 100%; left: -12px; min-width: 230px; background: #fff; border: 1px solid var(--js-border); border-radius: var(--js-radius); list-style: none; margin: 0; padding: 8px 0; box-shadow: 0 12px 30px rgba(0, 38, 90, .12); }
.js-menu li:hover > .sub-menu, .js-menu li:focus-within > .sub-menu { display: block; }
.js-menu .sub-menu a { display: block; padding: 9px 18px; border: 0; }
.js-menu .sub-menu a:hover { background: var(--js-blue-tint); }

.js-nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.js-nav-toggle span { display: block; width: 26px; height: 2px; background: var(--js-ink); margin: 6px 0; }

/* Buttons */
.js-btn { display: inline-block; background: var(--js-blue); color: #fff; padding: 9px 22px; border-radius: 4px; text-decoration: none; font-weight: 600; font-size: .95rem; border: 2px solid var(--js-blue); transition: background .2s, transform .2s, box-shadow .2s; }
.js-btn:hover { background: var(--js-blue-dark); border-color: var(--js-blue-dark); color: #fff; }
.js-btn--accent { background: #fff; border-color: #fff; color: var(--js-blue); }
.js-btn--accent:hover { background: var(--js-blue-tint); border-color: var(--js-blue-tint); color: var(--js-blue-dark); box-shadow: none; }
.js-btn--ghost { background: transparent; color: var(--js-blue); }
.js-btn--ghost:hover { background: var(--js-blue-tint); color: var(--js-blue-dark); box-shadow: none; }
.js-btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero */
.js-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #f7faff 0%, var(--js-blue-tint) 100%); padding: 96px 0 104px; }
.js-hero::before { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: var(--js-orange); opacity: .16; }
.js-hero::after { content: ""; position: absolute; right: 140px; bottom: -90px; width: 220px; height: 220px; border-radius: 50%; background: var(--js-red); opacity: .10; }
.js-hero__inner { position: relative; z-index: 1; max-width: 720px; }
.js-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--js-blue); margin-bottom: 18px; }
.js-eyebrow::before { content: ""; width: 34px; height: 4px; border-radius: 2px; background: var(--js-stripe); }
.js-hero h1 { font-size: 3.2rem; color: var(--js-ink); margin-bottom: 18px; }
.js-hero h1 span { color: var(--js-blue); }
.js-hero p { font-size: 1.18rem; color: var(--js-text); margin: 0 0 32px; max-width: 600px; }

/* Sections */
.js-section { padding: 80px 0; }
.js-section--light { background: var(--js-light); }
.js-section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.js-section-head h2 { margin: 0 0 12px; }
.js-section-head h2::after { content: ""; display: block; width: 72px; height: 4px; margin: 14px auto 0; border-radius: 2px; background: var(--js-stripe); }
.js-section-head p { margin: 0; color: var(--js-muted); }

/* Service cards */
.js-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.js-card { display: block; background: #fff; border: 1px solid var(--js-border); border-radius: 4px; padding: 28px 24px; text-decoration: none; color: var(--js-text); transition: border-color .2s, box-shadow .2s; }
.js-card:hover { border-color: var(--js-blue); box-shadow: 0 6px 18px rgba(0, 38, 90, .08); }
.js-card h3 { margin: 0 0 10px; }
.js-card p { margin: 0 0 16px; }
.js-card__more { color: var(--js-blue); font-weight: 600; }

/* Why us */
.js-why { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.js-why__item { padding-left: 18px; border-left: 4px solid var(--js-orange); }
.js-why__item:nth-child(1) { border-color: var(--js-red); }
.js-why__item:nth-child(3) { border-color: var(--js-blue); }
.js-why__item h3 { margin: 0 0 6px; font-size: 1.1rem; }
.js-why__item p { margin: 0; }

/* CTA band */
.js-band { background: var(--js-blue); color: #fff; padding: 72px 0; text-align: center; position: relative; }
.js-band::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--js-stripe); }
.js-band h2 { color: #fff; margin: 0 0 12px; }
.js-band p { color: #d4e3fa; max-width: 560px; margin: 0 auto 28px; }

/* Pages / service pages */
.js-page__title { margin-bottom: .3em; }
.js-page__meta { color: var(--js-muted); }
.js-service__tagline { color: var(--js-blue); font-size: 1.35rem; font-weight: 700; margin: 0 0 1.2em; }

/* CTA box inside service pages */
.js-cta { background: var(--js-blue-tint); border-left: 5px solid var(--js-orange); padding: 24px 28px; margin: 2.2em 0 0; border-radius: 0 var(--js-radius) var(--js-radius) 0; }
.js-cta__text { margin: 0 0 16px; color: var(--js-blue); font-weight: 700; font-size: 1.08rem; }

/* Footer */
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.js-footer { background: var(--js-ink); color: #c4cbd6; padding: 56px 0 32px; position: relative; }
.js-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--js-stripe); }
.js-footer__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px dashed #4a5365; }
.js-footer__heading { color: #fff; font-size: 1.3rem; margin: 0 0 6px; }
.js-footer__top p { margin: 0; max-width: 520px; }
.js-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 28px; padding: 36px 0; border-bottom: 1px dashed #4a5365; }
.js-footer__menu { list-style: none; margin: 0; padding: 0; display: block; }
.js-footer__menu li { margin: 0 0 12px; }
.js-footer__menu a { color: #c4cbd6; text-decoration: none; font-size: .95rem; }
.js-footer__menu a:hover { color: var(--js-orange); }
.js-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 28px; }
.js-social { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.js-social a { color: #fff; display: inline-flex; }
.js-social a:hover { color: var(--js-orange); }
.js-footer__copy { margin: 0; font-size: .85rem; color: #8b94a3; }

/* Blog list */
.js-entry { margin-bottom: 32px; }
.js-entry__title { margin-top: 0; }
.js-entry__title a { text-decoration: none; color: var(--js-ink); }
.js-entry__title a:hover { color: var(--js-blue); }

/* Mobile */
@media (max-width: 782px) {
	h1 { font-size: 1.85rem; }
	.js-header__inner { min-height: 72px; }
	.js-brand__logo, .js-brand .custom-logo { height: 56px; }
	.js-hero { padding: 56px 0 64px; }
	.js-hero h1 { font-size: 2.2rem; }
	.js-section { padding: 56px 0; }
	.js-nav-toggle { display: block; }
	.js-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--js-border); padding: 12px 20px 18px; }
	.js-nav.is-open { display: block; }
	.js-menu { flex-direction: column; align-items: flex-start; gap: 6px; }
	.js-menu .sub-menu { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 0 16px; }
}

/* Sticky header must sit below the WP admin bar */
body.admin-bar .js-header { top: 32px; }
@media (max-width: 782px) {
	body.admin-bar .js-header { top: 46px; }
	.js-footer__grid { grid-template-columns: 1fr 1fr; }
	.js-footer__about { grid-column: 1 / -1; }
}
@media (max-width: 600px) { body.admin-bar .js-header { position: relative; top: 0; } }

/* Contact page */
.js-contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.js-contact__lead { font-size: 1.15rem; margin: 0 0 32px; }
.js-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.js-steps li { counter-increment: step; position: relative; padding: 0 0 24px 52px; }
.js-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--js-blue); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.js-steps li:nth-child(1)::before { background: var(--js-red); }
.js-steps li:nth-child(2)::before { background: var(--js-orange); color: var(--js-ink); }
.js-steps strong { display: block; color: var(--js-ink); }
.js-steps span { color: var(--js-muted); font-size: .95rem; }
.js-contact__form { background: #fff; border: 1px solid var(--js-border); border-top: 4px solid var(--js-blue); border-radius: var(--js-radius); padding: 36px; box-shadow: 0 10px 30px rgba(0, 38, 90, .07); }
.js-contact__form h2 { margin: 0 0 20px; font-size: 1.4rem; }

/* Contact Form 7 */
.wpcf7 form { margin: 0; }
.wpcf7 label { display: block; font-weight: 600; color: var(--js-ink); margin-bottom: 18px; font-size: .92rem; }
.js-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.wpcf7-form-control-wrap { display: block; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 select, .wpcf7 textarea {
	display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font: inherit; font-weight: 400; color: var(--js-text);
	background: var(--js-light); border: 1px solid #d3deed; border-radius: var(--js-radius); transition: border-color .2s, box-shadow .2s, background .2s;
}
.wpcf7 textarea { resize: vertical; min-height: 140px; }
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus { outline: 0; background: #fff; border-color: var(--js-blue); box-shadow: 0 0 0 3px var(--js-blue-tint); }
.wpcf7 input[type="submit"] { background: var(--js-blue); color: #fff; border: 2px solid var(--js-blue); border-radius: 4px; padding: 11px 30px; font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; transition: background .2s; }
.wpcf7 input[type="submit"]:hover { background: var(--js-blue-dark); border-color: var(--js-blue-dark); }
.wpcf7-spinner { margin: 0 0 0 12px; }
.wpcf7-not-valid { border-color: var(--js-red) !important; }
.wpcf7-not-valid-tip { color: var(--js-red); font-weight: 400; font-size: .85rem; margin-top: 4px; }
.wpcf7 form .wpcf7-response-output { margin: 20px 0 0; padding: 12px 16px; border-radius: var(--js-radius); border-width: 1px; font-size: .95rem; }
.wpcf7 form.sent .wpcf7-response-output { border-color: #2e9e5b; background: #eaf7ef; }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output { border-color: var(--js-red); background: #fff1f1; }

@media (max-width: 900px) { .js-contact { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 600px) { .js-form-row { grid-template-columns: 1fr; } .js-contact__form { padding: 24px 20px; } }

/* Mobile menu */
@media (max-width: 782px) {
	.js-header { position: sticky; }
	.js-nav { max-height: calc(100vh - 90px); overflow-y: auto; box-shadow: 0 12px 24px rgba(0, 38, 90, .12); }
	.js-nav.is-open { display: block; }
	.js-menu > li { width: 100%; }
	.js-menu a { display: block; padding: 10px 0; border-bottom: 0; }
	.js-menu .sub-menu a { padding: 8px 0; font-weight: 500; }
	.js-nav-toggle { padding: 10px; }
	.js-nav-toggle span { transition: transform .2s, opacity .2s; }
	.js-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
	.js-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
	.js-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
