/* --- Base: typography, buttons, navbar, hero, sections --- */

/* Prevent vw-based elements from causing horizontal scroll on Windows */

html {
	overflow-x: hidden;
}

/* Enable text wrapping + text balancing */

body {
	text-wrap: balance;
}

/* Root & variables */

:root {
	--wi-font-family: "plus-jakarta-sans", system-ui, sans-serif;
	--wi-font-family-body: "inter", system-ui, sans-serif;
	--wi-font-family-mono: "geist-mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	--wi-ink: #0A0A0A;
	--wi-muted: #F0F0EF;
	--wi-subtle: #E2E1E0;
	--wi-border: #D5D4D3;
	--wi-dim: #B8B7B6;
	--wi-faded: #737271;
	--wi-body: #4A4A48;
	--wi-strong: #3A3A39;
	--wi-heading: #262625;
	--wi-slate-a08: rgb(44 50 66 / 8%);
	--wi-overlay: rgb(236, 236, 236);
	--wi-rule: rgb(236, 236, 236);
	--wi-main-brand-color: #ff5c00;
	--wi-main-brand-color-hover: #C64700;

	--bs-font-sans-serif: var(--wi-font-family-body);
	--bs-body-font-family: var(--wi-font-family-body);
	--bs-font-monospace: var(--wi-font-family-mono);
	--bs-body-font-size: 1rem;
	--bs-body-font-weight: 400;
	--bs-body-line-height: 1.6;
	--bs-body-color: #4A4A48;
	--bs-secondary-color: #737371;
	--bs-body-bg: #fffefb;
	--bs-border-radius: 0.5rem;
	--bs-border-radius-lg: 0.75rem;
	--bs-border-color: var(--wi-rule);
}

/* Typography */

h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4,
h5, .h5,
h6, .h6 {
	font-family: var(--wi-font-family);
	color: var(--wi-heading);
	font-weight: 500;
}

h1, .h1 {
	font-size: 2.125rem;
	line-height: 1.32;
}

h2, .h2 {
	font-size: 1.75rem;
	line-height: 1.34;
}

h3, .h3 {
	font-size: 1.5rem;
	line-height: 1.38;
}

h4, .h4 {
	font-size: 1.25rem;
	line-height: 1.42;
}

h5, .h5 {
	font-size: 1.125rem;
	line-height: 1.45;
}

h6, .h6 {
	font-size: 1rem;
	line-height: 1.52;
}

p {
	font-family: var(--wi-font-family-body);
	color: var(--wi-body);
}

.font-mono {
	font-family: var(--wi-font-family-mono);
}

.fs-09 {
	font-size: 0.9rem;
}

.fs-08 {
	font-size: 0.8rem;
}

.fs-075 {
	font-size: 0.75rem;
}

a {
	color: var(--wi-main-brand-color);
	text-decoration: underline;
	text-decoration-color: var(--wi-border);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	transition: color 0.15s, text-decoration-color 0.15s;
}

a:hover,
a:focus-visible {
	text-decoration-color: var(--wi-main-brand-color);
}

/* .text-light needs !important to beat Bootstrap's own !important color. */

a.text-light:hover,
a.text-light:focus-visible {
	color: var(--wi-main-brand-color) !important;
}

/* Animated underline (opt-in via .link-animated): a subtle resting line
   plus an orange overlay that grows left-to-right on hover. Uses
   stacked background-image gradients so the effect survives line-wraps
   on inline links (a ::after pseudo-element wouldn't). */

.link-animated {
	text-decoration: none;
	background-image:
		linear-gradient(var(--wi-main-brand-color), var(--wi-main-brand-color)),
		linear-gradient(var(--wi-border), var(--wi-border));
	background-size: 0% 1px, 100% 1px;
	background-position: 0 100%, 0 100%;
	background-repeat: no-repeat;
	padding-bottom: 0.15em;
	transition: background-size 0.3s ease-out, color 0.15s;
}

.link-animated:hover,
.link-animated:focus-visible {
	text-decoration: none;
	background-size: 100% 1px, 100% 1px;
}

/* On bright/varied backgrounds, swap the muted resting line for a solid
   white one. We use a fixed color (not currentColor) so it stays white
   while the text transitions to orange on hover -- otherwise both layers
   would flip to orange together and the growing-orange animation would
   be invisible. */

.link-animated.text-light {
	background-image:
		linear-gradient(var(--wi-main-brand-color), var(--wi-main-brand-color)),
		linear-gradient(#fff, #fff);
}

@media (prefers-reduced-motion: reduce) {

	.link-animated {
		transition: none;
	}

}

.lh-xlg {
	line-height: 4!important;
}

@media (max-width: 767.98px) {

	h1, .h1 {
		font-size: 1.875rem;
		line-height: 1.34;
	}

	h2, .h2 {
		font-size: 1.5rem;
		line-height: 1.38;
	}

}

/* Colors */

.main-brand-color {
	color: var(--wi-main-brand-color);
}

/* Buttons */

.btn {
	text-wrap: nowrap;
}

.btn-primary {
	--bs-btn-color: var(--bs-white);
	--bs-btn-bg: var(--wi-main-brand-color);
	--bs-btn-border-color: var(--wi-main-brand-color);
	--bs-btn-hover-color: var(--bs-white);
	--bs-btn-hover-bg: var(--wi-main-brand-color-hover);
	--bs-btn-hover-border-color: var(--wi-main-brand-color-hover);
	--bs-btn-active-color: var(--bs-white);
	--bs-btn-active-bg: var(--wi-main-brand-color-hover);
	--bs-btn-active-border-color: var(--wi-main-brand-color-hover);
	--bs-btn-font-weight: 500;
	--bs-btn-font-size: 0.9rem;
	--bs-btn-padding-y: 0.5rem;
	--bs-btn-padding-x: 1.125rem;
	--bs-btn-border-radius: var(--bs-border-radius);
	--bs-btn-disabled-bg: var(--wi-dim);
	--bs-btn-disabled-border-color: var(--wi-dim);
}

.btn-outline-primary {
	--bs-btn-color: var(--wi-heading);
	--bs-btn-border-color: var(--wi-border);
	--bs-btn-hover-color: var(--wi-ink);
	--bs-btn-hover-bg: var(--wi-muted);
	--bs-btn-hover-border-color: var(--wi-border);
	--bs-btn-active-color: var(--wi-ink);
	--bs-btn-active-bg: var(--wi-subtle);
	--bs-btn-active-border-color: var(--wi-dim);
	--bs-btn-font-weight: 500;
	--bs-btn-font-size: 0.9rem;
	--bs-btn-padding-y: 0.5rem;
	--bs-btn-padding-x: 1.125rem;
	--bs-btn-border-radius: var(--bs-border-radius);
	--bs-btn-disabled-color: var(--wi-dim);
	--bs-btn-disabled-border-color: var(--wi-border);
}

/* Arrow button: animated left-to-right underline + slide-in arrow on hover */

.btn-arrow {
	--bs-btn-color: var(--wi-heading);
	--bs-btn-bg: var(--bs-white);
	--bs-btn-border-color: transparent;
	--bs-btn-hover-color: var(--wi-main-brand-color);
	--bs-btn-hover-bg: var(--bs-white);
	--bs-btn-hover-border-color: transparent;
	--bs-btn-active-color: var(--wi-main-brand-color);
	--bs-btn-active-bg: var(--bs-white);
	--bs-btn-active-border-color: transparent;
	--bs-btn-font-weight: 500;
	--bs-btn-font-size: 0.9rem;
	--bs-btn-padding-y: 0.5rem;
	--bs-btn-padding-x: 1.125rem;
	--bs-btn-border-radius: 0;
	--bs-btn-border-width: 0;

	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	overflow: hidden;
	transition: color 0.2s ease-out;
}

.btn-arrow::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 1px;
	background-color: var(--wi-main-brand-color);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.25s ease-out;
	pointer-events: none;
}

.btn-arrow .btn-arrow-icon {
	width: 0.9em;
	height: 0.9em;
	color: var(--wi-main-brand-color);
	opacity: 0;
	transform: translateX(-6px);
	transition: opacity 0.2s ease-out, transform 0.2s ease-out;
	flex-shrink: 0;
}

.btn-arrow:hover,
.btn-arrow:focus-visible {
	color: var(--wi-main-brand-color);
}

.btn-arrow:hover::after,
.btn-arrow:focus-visible::after {
	transform: scaleX(1);
}

.btn-arrow:hover .btn-arrow-icon,
.btn-arrow:focus-visible .btn-arrow-icon {
	opacity: 1;
	transform: translateX(0);
}

@media (max-width: 767.98px) {

	.btn-arrow {
		color: var(--wi-main-brand-color);
	}

	.btn-arrow::after {
		content: none;
	}

	.btn-arrow .btn-arrow-icon {
		opacity: 1;
		transform: translateX(0);
	}

}

@media (prefers-reduced-motion: reduce) {

	.btn-arrow,
	.btn-arrow::after,
	.btn-arrow .btn-arrow-icon {
		transition: none;
	}

}

/* Decorative band with 45-degree line pattern */

.lined-band {
	background-image: repeating-linear-gradient(
		-45deg,
		var(--wi-rule) 0,
		var(--wi-rule) 1px,
		transparent 1px,
		transparent 10px
	);
}

.bg-body-color {
	background-color: var(--bs-body-bg);
}

/* Navbar */

.navbar-toggler {
	box-shadow: none !important;
	border: 0 !important;
}

.navbar-toggler-icon {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3e%3cpath stroke='%23262625' stroke-linecap='round' stroke-width='1.5' d='M4 8h16M4 16h16'/%3e%3c/svg%3e") !important;
}

.navbar {
	--bs-navbar-padding-y: 0.75rem;
}

.navbar .nav-link {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--wi-heading);
	border-radius: var(--bs-border-radius);
	transition: color 0.15s, background-color 0.15s;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus-visible {
	color: var(--wi-ink);
	background-color: var(--wi-muted);
}

.navbar .nav-link.active {
	color: var(--wi-ink);
}

@media (max-width: 992px) {

    .navbar {
        position: relative;
    }

    #navbarMobile {
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 0;
        right: 0;
        z-index: 10;
        background-color: var(--bs-body-bg);
        border: solid 1px var(--wi-overlay);
        border-radius: var(--bs-border-radius);
    }

    .navbar .nav-item {
        padding: .5rem;
        border-top: solid 1px var(--wi-overlay);
    }

    .navbar .nav-item:first-child {
        border-top: 0;   
    }

    .navbar .nav-item:last-child {
        border-bottom: solid 1px var(--wi-overlay);   
    }

	.navbar .nav-link {
		font-size: 0.9rem;
		border-radius: var(--bs-border-radius);
	}

}

/* Paddings & margins & widths */

.pt-10 {
	padding-top: 10rem!important;
}

.py-10 {
    padding-top: 6rem!important;
	padding-bottom: 6rem!important;
}

.w-65 {
	width: 65%!important;
}

@media (max-width: 991.98px) {

	.pt-10 {
		padding-top: 5rem!important;
	}

}

/* Hero */

.hero-wrap {
    position: relative;
    isolation: isolate;
}

#hero-bg-image {
    position: absolute;
    inset: 0;
    background-image: url("../assets/images/wispit_ventures_hero_image.webp");
    background-size: cover;
    background-position: center 24%;
    background-repeat: no-repeat;
}

/* Divided cards (services, products, and any future section grids) */

.divided-card + .divided-card {
    border-inline-start: 1px solid var(--bs-border-color);
}

@media (max-width: 991.98px) {

    .divided-card + .divided-card {
        border-inline-start: 0;
        border-top: 1px solid var(--bs-border-color);
    }

}

.divided-card .label {
    letter-spacing: 0.08em;
}

.about-scroll-track {
    --about-scroll: 3.5;
    --about-cover: 1;
    min-height: calc(100vh * var(--about-scroll));
    min-height: calc(100dvh * var(--about-scroll));
    position: relative;
    z-index: 1;
}

.services-cover {
    margin-top: calc(-100vh * var(--about-cover, 1));
    margin-top: calc(-100dvh * var(--about-cover, 1));
}

.about-sticky {
    position: sticky;
    top: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    z-index: 1;
    box-sizing: border-box;
    background-image: radial-gradient(var(--wi-rule) 1px,transparent 0);
    background-size: 8px 8px;
}

.about-sticky-inner {
    width: 100%;
}

.about-reveal-title {
    text-wrap: balance;
    color: var(--wi-faded);
}

.about-reveal {
    text-wrap: balance;
}

.about-char {
    color: var(--wi-faded);
    transition: color 0.04s ease-out;
}

.about-char.is-lit {
    color: var(--wi-heading);
}

/* While navbar.js drives a smooth scroll, strip the most expensive paint
   work in the about section so the animation stays buttery. The dotted
   radial-gradient on `.about-sticky` is a 100vh tiled pattern that the
   browser must re-composite every frame; hiding it for ~1s during the
   programmatic scroll is imperceptible at speed but removes the hitch.
   We also disable scroll anchoring + per-character color transitions so
   nothing else nudges the frame budget mid-flight. */

html.is-auto-scrolling {
    overflow-anchor: none;
}

html.is-auto-scrolling .about-char {
    transition: none;
}

html.is-auto-scrolling .about-sticky {
    background-image: none;
}

@media (prefers-reduced-motion: reduce) {

    .about-scroll-track {
        min-height: 0;
    }

    .about-sticky {
        position: static;
        min-height: 0;
    }

    .about-char {
        color: var(--wi-heading) !important;
        transition: none;
    }

    .services-cover {
        margin-top: 0;
    }

}