/*!
 * BrandForge Pages
 *
 * Shared design layer for inner pages (features, how-it-works, tour,
 * pricing, solutions, about, contact, and the rest). Applies the
 * award-winning bf- design language established in brandforge-webflow.css
 * to the existing page markup by mapping the utility classes those
 * templates already use (badge, hero-section, bg-secondary, bg-background-*,
 * text-primary-500, ns-shape-*, accordion) onto the cyan/glass/dark system.
 *
 * This file is enqueued on every page EXCEPT the front page (the homepage
 * has its own brandforge-home.css). It intentionally styles by existing
 * class so no per-template PHP edits are required, which keeps the large
 * page templates structurally untouched.
 *
 * Depends on brandforge-webflow.css for tokens and components. Loaded after
 * it so it wins the cascade. Un-layered so it beats Tailwind @layer.
 *
 * House rules unchanged: no em/en dashes, no dark mode, cyan accent only
 * (all purple/indigo/orange gradient blobs neutralised to cyan), self-hosted
 * Rubik, data-ns-animate + brandforge-anim-ready contracts preserved.
 *
 * @package BrandForge
 * @since 0.5.0
 */

/* ============================================================
 * 1. Page hero (.hero-section on inner pages)
 *    Clean light canvas with a faint cyan dot grid + soft cyan
 *    wash. Neutralises the off-brand purple/indigo/orange blobs.
 * ============================================================ */
body:not(.home) .hero-section {
	background-color: var(--bf-paper) !important;
	background-image: none !important;
	position: relative;
	isolation: isolate;
}

/* Soft cyan wash + dot grid behind inner-page heroes. */
body:not(.home) .hero-section::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(ellipse 70% 55% at 50% -8%, rgba(124, 241, 248, 0.14), transparent 60%),
		radial-gradient(circle, rgba(17, 17, 17, 0.045) 1px, transparent 1px);
	background-size: auto, 30px 30px;
	-webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 25%, transparent 78%);
	mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 25%, transparent 78%);
}

/* Neutralise inline off-brand gradient/blob layers on any page. The
   templates stack absolutely-positioned decorative divs using indigo,
   cyan-blue, orange and green washes. Hide the purple/orange ones and
   keep the layout intact. */
body:not(.home) .hero-section > .absolute.inset-0.z-0 > div[class*="rgba(99,102,241"],
body:not(.home) .hero-section > .absolute.inset-0.z-0 > div[class*="rgba(251,146,60"],
body:not(.home) .hero-section > .absolute.inset-0.z-0 > div[class*="rgba(52,211,153"] {
	display: none !important;
}

/* Recolour the decorative orbs from indigo/orange to cyan. */
body:not(.home) .feat-orb,
body:not(.home) [class*="rgba(99,102,241"].blur-\[100px\],
body:not(.home) [class*="rgba(6,182,212"].blur-\[100px\] {
	background: rgba(124, 241, 248, 0.06) !important;
}

/* Hero title + heading type on inner pages. */
body:not(.home) .hero-section .hero-title,
body:not(.home) .hero-section h1 {
	font-family: var(--bf-font);
	font-weight: 600;
	letter-spacing: var(--bf-tr-display);
	line-height: var(--bf-lh-display);
	color: var(--bf-ink);
}

body:not(.home) .hero-section h1 {
	font-size: clamp(2.5rem, 1.6rem + 4vw, 4.5rem);
}

/* Replace any purple/blue gradient hero text with cyan. */
body:not(.home) [class*="from-purple"],
body:not(.home) [class*="to-blue"],
body:not(.home) [class*="from-indigo"] {
	background: linear-gradient(135deg, var(--bf-cyan-hover), var(--bf-cyan), var(--bf-cyan-soft)) !important;
	-webkit-background-clip: text !important;
	background-clip: text !important;
	-webkit-text-fill-color: transparent !important;
}

/* ============================================================
 * 2. Badges -> eyebrow pill
 * ============================================================ */
body:not(.home) .badge.badge-green,
body:not(.home) .badge-green {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.375rem 0.875rem !important;
	border-radius: var(--bf-r-pill) !important;
	font-size: var(--bf-fs-eyebrow) !important;
	font-weight: 500 !important;
	letter-spacing: var(--bf-tr-eyebrow) !important;
	line-height: 1 !important;
	color: var(--bf-cyan-deep) !important;
	background-color: var(--bf-cyan-mist) !important;
	border: 1px solid var(--bf-cyan-soft) !important;
}

body:not(.home) .badge.badge-blur,
body:not(.home) .badge-blur {
	color: var(--bf-cyan) !important;
	background-color: rgba(124, 241, 248, 0.12) !important;
	border: 1px solid rgba(124, 241, 248, 0.22) !important;
	border-radius: var(--bf-r-pill) !important;
	font-weight: 500 !important;
}

/* ============================================================
 * 3. Section headings + body type
 * ============================================================ */
body:not(.home) section h2 {
	font-family: var(--bf-font);
	font-weight: 600;
	letter-spacing: var(--bf-tr-tight);
	line-height: var(--bf-lh-heading);
	color: var(--bf-ink);
}

body:not(.home) section h3,
body:not(.home) section h4,
body:not(.home) section h5 {
	font-family: var(--bf-font);
	letter-spacing: var(--bf-tr-tight);
	color: var(--bf-ink);
}

/* text-primary-500 accent -> readable cyan on light. */
body:not(.home) .text-primary-500 {
	color: var(--bf-cyan-deep) !important;
}

/* ============================================================
 * 4. Dark sections (.bg-secondary)
 * ============================================================ */
body:not(.home) section.bg-secondary,
body:not(.home) .bg-secondary.rounded-\[20px\],
body:not(.home) .bg-secondary.rounded-3xl,
body:not(.home) .bg-secondary.rounded-4xl {
	background-color: var(--bf-dark) !important;
}

body:not(.home) section.bg-secondary h1,
body:not(.home) section.bg-secondary h2,
body:not(.home) section.bg-secondary h3 {
	color: #FFFFFF !important;
}

body:not(.home) section.bg-secondary p {
	color: var(--bf-on-dark-2) !important;
}

/* ============================================================
 * 5. Cards
 *    bg-background-3 (gray), bg-background-1, and rounded white
 *    cards get the clean solid-card treatment with cyan hover.
 * ============================================================ */
body:not(.home) .bg-background-3 {
	background-color: var(--bf-paper-subtle) !important;
}

body:not(.home) .bg-background-2 {
	background-color: var(--bf-paper) !important;
}

body:not(.home) .rounded-\[20px\].bg-white,
body:not(.home) .rounded-\[18px\].bg-white,
body:not(.home) .bg-background-1.rounded-\[20px\] {
	background-color: var(--bf-paper) !important;
	border: 1px solid var(--bf-border) !important;
	border-radius: var(--bf-r-lg) !important;
	box-shadow: var(--bf-sh-sm);
	transition: transform var(--bf-dur) var(--bf-ease),
	            box-shadow var(--bf-dur) var(--bf-ease),
	            border-color var(--bf-dur) var(--bf-ease);
}

body:not(.home) .rounded-\[20px\].bg-white:hover,
body:not(.home) .rounded-\[18px\].bg-white:hover {
	transform: translateY(-3px);
	border-color: var(--bf-cyan-soft) !important;
	box-shadow: var(--bf-sh-md);
}

/* ============================================================
 * 6. ns-shape decorative icon glyphs -> cyan, softened
 * ============================================================ */
body:not(.home) [class^="ns-shape-"],
body:not(.home) [class*=" ns-shape-"] {
	color: var(--bf-cyan-deep) !important;
}

/* ============================================================
 * 7. Pricing cards (pricing-page.php + partials/pricing)
 * ============================================================ */
body:not(.home) .price-card,
body:not(.home) [data-price-card],
body:not(.home) .pricing-card {
	border-radius: var(--bf-r-xl) !important;
	border: 1px solid var(--bf-border) !important;
	transition: transform var(--bf-dur) var(--bf-ease),
	            box-shadow var(--bf-dur) var(--bf-ease),
	            border-color var(--bf-dur) var(--bf-ease);
}

body:not(.home) .price-card:hover,
body:not(.home) .pricing-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--bf-sh-lg);
	border-color: var(--bf-cyan-soft) !important;
}

/* Popular / highlighted plan: cyan border glow + slight scale. */
body:not(.home) .price-card.popular,
body:not(.home) .price-card[data-popular],
body:not(.home) .pricing-card.is-popular,
body:not(.home) [data-price-card].is-featured {
	border-color: var(--bf-cyan) !important;
	box-shadow: var(--bf-sh-lg), 0 0 0 1px rgba(124, 241, 248, 0.3), var(--bf-glow-sm);
}

/* ============================================================
 * 8. Accordions (features/how-it-works/tour FAQs share the
 *    .accordion-item + .accordion-arrow pattern from the homepage)
 * ============================================================ */
body:not(.home) .accordion-item {
	background: var(--bf-paper) !important;
	border: 1px solid var(--bf-border) !important;
	border-radius: var(--bf-r-lg) !important;
	transition: border-color var(--bf-dur) var(--bf-ease),
	            box-shadow var(--bf-dur) var(--bf-ease);
}

body:not(.home) .accordion-item:hover {
	border-color: var(--bf-cyan-soft) !important;
}

body:not(.home) .accordion-item.active-accordion,
body:not(.home) .accordion-item[data-state="true"] {
	border-color: var(--bf-cyan-soft) !important;
	box-shadow: var(--bf-sh-md), 0 0 0 1px rgba(124, 241, 248, 0.2);
	background: linear-gradient(180deg, var(--bf-paper), var(--bf-cyan-mist)) !important;
}

body:not(.home) .accordion-arrow svg {
	transition: transform var(--bf-dur) var(--bf-ease);
}

/* ============================================================
 * 9. Tab bars (features/tour/solutions reuse data-tab-button)
 * ============================================================ */
body:not(.home) [data-active-tab-bar] {
	background: var(--bf-cyan) !important;
	height: 2px !important;
	border-radius: 2px;
	box-shadow: var(--bf-glow-sm);
}

body:not(.home) [data-tab-button][data-state="selected"] span {
	color: var(--bf-ink) !important;
}

body:not(.home) [data-mobile-tab-button][data-mobile-active="true"] {
	background: var(--bf-cyan) !important;
	color: var(--bf-ink) !important;
	border-color: var(--bf-cyan) !important;
}

/* ============================================================
 * 10. Contact + form pages
 * ============================================================ */
body:not(.home) input[type="text"],
body:not(.home) input[type="email"],
body:not(.home) input[type="tel"],
body:not(.home) input[type="url"],
body:not(.home) textarea,
body:not(.home) select {
	font-family: var(--bf-font);
	border-radius: var(--bf-r-md) !important;
	border: 1px solid var(--bf-border);
	transition: border-color var(--bf-dur-fast) var(--bf-ease),
	            box-shadow var(--bf-dur-fast) var(--bf-ease);
}

body:not(.home) input:focus,
body:not(.home) textarea:focus,
body:not(.home) select:focus {
	outline: none;
	border-color: var(--bf-cyan) !important;
	box-shadow: 0 0 0 3px rgba(124, 241, 248, 0.25);
}

/* Dark contact panels keep readable inputs. */
body:not(.home) section.bg-secondary input,
body:not(.home) section.bg-secondary textarea {
	background: rgba(255, 255, 255, 0.06) !important;
	border-color: var(--bf-border-dark-2) !important;
	color: #FFFFFF !important;
}

body:not(.home) section.bg-secondary input::placeholder,
body:not(.home) section.bg-secondary textarea::placeholder {
	color: var(--bf-on-dark-muted) !important;
}

/* ============================================================
 * 11. Blog post content (.details-body prose in single.php)
 * ============================================================ */
body:not(.home) .details-body {
	font-family: var(--bf-font);
	font-size: 1.0625rem;
	line-height: var(--bf-lh-body);
	color: var(--bf-ink-2);
}

body:not(.home) .details-body > * + * {
	margin-top: 1.25rem;
}

body:not(.home) .details-body h2 {
	font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem);
	font-weight: 600;
	letter-spacing: var(--bf-tr-tight);
	line-height: 1.2;
	color: var(--bf-ink);
	margin-top: 2.5rem;
}

body:not(.home) .details-body h3 {
	font-size: 1.35rem;
	font-weight: 600;
	letter-spacing: var(--bf-tr-tight);
	color: var(--bf-ink);
	margin-top: 2rem;
}

body:not(.home) .details-body a {
	color: var(--bf-cyan-deep);
	text-decoration: underline;
	text-underline-offset: 2px;
	text-decoration-thickness: 1px;
}

body:not(.home) .details-body a:hover {
	color: var(--bf-cyan-hover);
}

body:not(.home) .details-body ul,
body:not(.home) .details-body ol {
	padding-left: 1.4rem;
}

body:not(.home) .details-body li + li {
	margin-top: 0.5rem;
}

body:not(.home) .details-body blockquote {
	border-left: 3px solid var(--bf-cyan);
	background: var(--bf-cyan-mist);
	padding: 1rem 1.5rem;
	border-radius: 0 var(--bf-r-md) var(--bf-r-md) 0;
	color: var(--bf-ink);
	font-style: italic;
}

body:not(.home) .details-body img {
	border-radius: var(--bf-r-lg);
}

body:not(.home) .details-body code {
	font-family: ui-monospace, "SF Mono", Menlo, monospace;
	font-size: 0.9em;
	background: var(--bf-paper-subtle);
	border: 1px solid var(--bf-border);
	border-radius: 6px;
	padding: 0.1em 0.4em;
}

/* ============================================================
 * 12. Button variants used on inner pages (btn-white, btn-xl)
 *     The foundation covers btn-primary/secondary and hover:btn-*.
 *     These add the base white button and the extra-large size.
 * ============================================================ */
body:not(.home) .btn-white,
body:not(.home) a.btn-white {
	background-color: #FFFFFF !important;
	border-color: var(--bf-border) !important;
	color: var(--bf-ink) !important;
}

body:not(.home) .btn-white:hover,
body:not(.home) a.btn-white:hover {
	background-color: var(--bf-cyan) !important;
	border-color: var(--bf-cyan) !important;
	color: var(--bf-ink) !important;
	transform: translateY(-1px);
	box-shadow: var(--bf-glow-sm);
}

/* White button sitting on a dark section: keep it readable. */
body:not(.home) section.bg-secondary .btn-white {
	border-color: #FFFFFF !important;
}

body:not(.home) .btn-xl {
	border-radius: var(--bf-r-pill) !important;
	padding: 1rem 2.25rem !important;
	font-size: 1rem !important;
}

/* ============================================================
 * 13. Reduced motion
 * ============================================================ */
@media (prefers-reduced-motion: reduce) {
	body:not(.home) .rounded-\[20px\].bg-white:hover,
	body:not(.home) .rounded-\[18px\].bg-white:hover,
	body:not(.home) .price-card:hover,
	body:not(.home) .pricing-card:hover,
	body:not(.home) .btn-white:hover {
		transform: none !important;
	}
}
