/*
Theme Name: Boundless
Theme URI: https://boundlessoman.com
Author: Boundless Enterprise SPC
Author URI: https://boundlessoman.com
Description: Custom single-page theme for Boundless Enterprise SPC — advisory, specialist solutions, and technology services in Oman.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: boundless
*/

:root {
	--navy: #0A1F3F;
	--copper: #B87333;
	--sand: #F5F0EB;
	--white: #FFFFFF;
	--charcoal: #2D2D2D;
	--grey: #666666;
	--border: rgba(0, 0, 0, 0.06);
	--header-height: 72px;
	--container: 1200px;
	--radius: 10px;
	--font-sans: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

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

html {
	scroll-behavior: auto;
	scroll-padding-top: 88px;
}

body {
	margin: 0;
	font-family: var(--font-sans);
	color: var(--charcoal);
	background: var(--white);
	font-size: 15px;
	line-height: 1.8;
}

/* Base typography */
h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.75em;
	color: var(--navy);
	font-weight: 700;
	letter-spacing: -1px;
	line-height: 1.15;
}

p:last-child {
	margin-bottom: 0;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

ul,
ol {
	margin: 0;
	padding: 0;
}

p {
	margin: 0 0 1em;
}

a {
	color: var(--copper);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* Visually hidden helpers */
.screen-reader-text,
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 100001;
	background: #FFFFFF;
	padding: 8px 16px;
	border-radius: 4px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	width: auto;
	height: auto;
	clip: auto;
	margin: 0;
	overflow: visible;
	white-space: normal;
}

button,
input,
textarea,
select {
	font: inherit;
}

button {
	cursor: pointer;
}

:focus-visible {
	outline: 2px solid #B87333;
	outline-offset: 2px;
}

/* Explicit focus outlines for common interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 2px solid #B87333;
	outline-offset: 2px;
}

/* Layout */
.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 20px;
}

.site-section {
	padding: 100px 0;
}

/* Hero section tuning */
#hero {
	padding-top: 200px;
	padding-bottom: 120px;
	min-height: 90vh;
	background: linear-gradient(180deg, #FFFFFF 0%, #F5F0EB 100%);
}

#hero .boundless-hero__content {
	max-width: 720px;
}

#hero .boundless-hero__headline {
	font-size: clamp(34px, 4vw, 44px);
	line-height: 1.15;
	letter-spacing: -1px;
	font-weight: 700;
	color: #0A1F3F;
	margin-bottom: 24px;
}

#hero .boundless-hero__subline {
	font-size: 18px;
	max-width: 560px;
	line-height: 1.8;
}

#hero .boundless-hero__ctas {
	display: flex;
	flex-direction: row;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 24px;
}

#hero .boundless-hero__cta {
	width: auto;
}

@media (max-width: 767px) {
	#hero .boundless-hero__headline {
		font-size: clamp(28px, 7vw, 34px);
	}

	#hero .boundless-hero__ctas {
		flex-direction: column;
	}

	#hero .boundless-hero__cta {
		width: 100%;
	}
}

.divider,
hr {
	border: 0;
	height: 1px;
	background: var(--border);
	width: 100%;
}

.section-label {
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	color: var(--copper);
}

.section-title {
	color: var(--navy);
	font-weight: 700;
	letter-spacing: -1px;
	line-height: 1.1;
	font-size: clamp(30px, 4vw, 48px);
}

/* Header / Navigation */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	z-index: 1000;
	min-height: 72px;
	background: rgba(255, 255, 255, 0.98);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.site-header {
	/* Avoid any subpixel clipping at the top edge. */
	transform: translateZ(0);
}

body.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}
}

.site-header__inner {
	height: var(--header-height);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.brand-link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
}

.brand-mark {
	width: 28px;
	height: 28px;
	flex: 0 0 auto;
}

.brand-name {
	font-weight: 700;
	letter-spacing: -0.5px;
	color: var(--navy);
	font-size: 20px;
	line-height: 1;
}

.desktop-nav {
	display: none;
	align-items: center;
	gap: 18px;
}

.nav-link {
	color: var(--navy);
	font-size: 16px;
	font-weight: 400;
	text-decoration: none;
}

.nav-link:hover {
	color: var(--copper);
	text-decoration: underline;
	text-underline-offset: 4px;
}

.contact-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 24px;
	border-radius: 100px;
	border: 1.5px solid var(--copper);
	color: var(--navy);
	font-size: 16px;
	font-weight: 400;
	text-decoration: none;
	background: transparent;
	transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.contact-pill:hover {
	color: var(--copper);
	background: color-mix(in srgb, var(--copper) 10%, transparent);
	border-color: var(--copper);
	text-decoration: none;
}

.hamburger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	position: relative;
	border: 0;
	background: transparent;
	padding: 0;
}

.hamburger span {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	width: 24px;
	height: 2px;
	background: var(--copper);
	border-radius: 2px;
	transition: transform 0.22s ease, opacity 0.18s ease, top 0.22s ease;
}

.hamburger span:nth-child(1) {
	top: 14px;
}

.hamburger span:nth-child(2) {
	top: 21px;
}

.hamburger span:nth-child(3) {
	top: 28px;
}

button.hamburger[aria-expanded="true"] span:nth-child(1) {
	top: 21px;
	transform: translateX(-50%) rotate(45deg);
}

button.hamburger[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

button.hamburger[aria-expanded="true"] span:nth-child(3) {
	top: 21px;
	transform: translateX(-50%) rotate(-45deg);
}

.hamburger__icon {
	position: relative;
	width: 24px;
	height: 18px;
}

.hamburger__icon span {
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: var(--copper);
	border-radius: 2px;
	transition: transform 0.22s ease, opacity 0.18s ease;
}

.hamburger__icon span:nth-child(1) {
	top: 0;
}

.hamburger__icon span:nth-child(2) {
	top: 8px;
}

.hamburger__icon span:nth-child(3) {
	bottom: 0;
}

/* Mobile overlay menu */
.mobile-overlay {
	position: fixed;
	top: var(--header-height);
	left: 0;
	width: 100%;
	height: calc(100vh - var(--header-height));
	background: var(--white);
	z-index: 998;
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 24px 20px;
	box-sizing: border-box;
}

.mobile-overlay.is-open {
	display: flex;
}

.mobile-overlay-nav {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 40px;
}

.mobile-overlay-nav a {
	font-size: 24px;
	font-weight: 500;
	color: var(--navy);
	text-decoration: none;
}

.mobile-overlay-nav a:hover {
	color: var(--copper);
}

.mobile-overlay-nav a[href="#contact"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 24px;
	border-radius: 100px;
	border: 1.5px solid var(--copper);
	background: transparent;
}

.mobile-overlay-nav a[href="#contact"]:hover {
	color: var(--copper);
	background: color-mix(in srgb, var(--copper) 10%, transparent);
	border-color: var(--copper);
}

/* Cards / badges */
.card {
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 24px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.boundless-pillars-card,
.boundless-tier-card {
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.boundless-tier-card {
	background: #FFFFFF;
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 10px;
}

.boundless-tier-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
	border-color: #B87333;
}


.card:hover {
	transform: translateY(-4px);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
	border-color: var(--copper);
}

.badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--copper);
}

.tier-card-link-wrapper {
	text-decoration: none;
	color: inherit;
	display: block;
}

.tier-card-link-wrapper,
.tier-card-link-wrapper:hover,
.tier-card-link-wrapper:focus,
.tier-card-link-wrapper:active {
	text-decoration: none;
}

.tier-card-link-wrapper * {
	text-decoration: none;
}

.tier-card-link-wrapper .boundless-tier-card {
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tier-card-link-wrapper:hover .boundless-tier-card {
	transform: translateY(-4px);
	box-shadow: 0 8px 30px rgba(0,0,0,0.08);
	border-color: #B87333;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
	width: 100%;
	background: var(--white);
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 8px;
	padding: 14px 16px;
	font-size: 14px;
	color: var(--charcoal);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea {
	min-height: 120px;
}

input:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--copper);
	box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.1);
}

/* Footer */
.site-footer {
	background: var(--navy);
	color: #fff;
	padding: 60px 0 40px;
}

.site-footer__inner {
	display: flex;
	gap: 40px;
	align-items: flex-start;
	justify-content: space-between;
}

.site-footer__left {
	max-width: 420px;
}

.footer-logo {
	display: inline-flex;
	align-items: center;
	gap: 12px;
}

.footer-mark {
	width: 28px;
	height: 28px;
	flex: 0 0 auto;
}

.footer-copy {
	opacity: 0.5;
	font-size: 13px;
	margin-top: 10px;
	line-height: 1.6;
}

.footer-links {
	display: flex;
	gap: 18px;
	flex-wrap: wrap;
}

.footer-links a {
	color: rgba(255, 255, 255, 0.5);
	font-size: 14px;
	font-weight: 400;
	text-decoration: none;
}

.footer-links a:hover {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 4px;
}

@media (max-width: 767px) {
	.site-footer__inner {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.site-footer__left {
		max-width: none;
	}

	.footer-logo {
		justify-content: center;
	}

	.footer-links {
		justify-content: center;
	}
}

/* Scroll animations */
[data-animate="fade-up"] {
	opacity: 0;
	transform: translateY(40px);
	transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

[data-animate="fade-up"].visible {
	opacity: 1;
	transform: translateY(0);
}

.fade-up {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	[data-animate] {
		opacity: 1;
		transform: none;
		transition: none !important;
	}

	.fade-up {
		opacity: 1;
		transform: none;
		transition: none !important;
	}

	html {
		scroll-behavior: auto;
	}
}

/* Responsive breakpoints */
@media (min-width: 375px) {
	.container {
		padding: 0 22px;
	}
}

@media (min-width: 768px) {
	.boundless-about-grid {
		grid-template-columns: 1fr 1fr;
	}

	.desktop-nav {
		display: flex;
	}

	.hamburger {
		display: none;
	}

	.mobile-overlay {
		display: none !important;
	}
}

.header-inner {
	max-width: var(--container);
	margin: 0 auto;
	height: var(--header-height);
	min-height: 72px;
	padding: 0 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.logo {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
}

@media (min-width: 1024px) {
	.container {
		padding: 0 26px;
	}
}

@media (min-width: 1440px) {
	.container {
		padding: 0 32px;
	}
}

/* Print */
@media print {
	.site-header,
	.mobile-overlay,
	.hamburger,
	.skip-link {
		display: none !important;
	}

	.site-footer {
		background: white !important;
		color: #2D2D2D !important;
	}

	body {
		font-size: 12pt;
		line-height: 1.5;
		color: #000;
	}

	a {
		color: #000;
		text-decoration: underline;
	}

	[data-animate] {
		opacity: 1 !important;
		transform: none !important;
	}
}

