/**
 * Oxalis Theme — main.css
 * Global styles: reset, typography, header, footer, nav, utilities
 */

@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300;0,600;1,300&display=swap');

@font-face {
  font-family: 'Tenez';
  src: url('../fonts/tenez-regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Tenez';
  src: url('../fonts/tenez-italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ==========================================================================
   CSS Reset & Box Model
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

:root {
	--c-dark:           #13252A;
	--c-dark-mid:       #1F3035;
	--c-dark-lt:        #2B3B3F;
	--c-white:          #F3F4F4;
	--c-cream:          #FAF4E5;
	--c-hi-vis:         #F3FE76;
	--c-text-secondary: #646D6B;
	--c-teal-lt:        #66E3DD;
	--c-orange-mid:     #FD9F5C;
	--c-orange-lt:      #D05908;
}

html {
	font-size: 16px;
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	padding: 0;
	font-family: 'Figtree', 'Helvetica Neue', Arial, sans-serif;
	font-weight: 300;
	background: #13252A;
	color: #F3F4F4;
	-webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

button { font-family: inherit; }
h1,h2,h3,h4,h5,h6,p,ul,ol,figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }

/* ==========================================================================
   Site Header
   ========================================================================== */
.ox-header {
	position: sticky;
	top: 0;
	z-index: 200;
	background: #13252A;
}

/* Push below WP admin bar when logged in */
.admin-bar .ox-header { top: 32px; }
@media screen and (max-width: 782px) {
	.admin-bar .ox-header { top: 46px; }
}

.ox-header__inner {
	display: flex;
	align-items: stretch;
	min-height: 48px;
	width: 100%;
	gap: 32px;
	max-width: 1154px;
	margin: 0 auto;
	background: transparent;
}

/* Atlassian page has light bg — remove dark nav background */
.page-template-page-atlassian-php .ox-header,
.page-template-page-atlassian-php .ox-header__inner {
	background: transparent;
}

/* Vertical divider */
.ox-header__divider {
	width: 2px;
	background: #2B3B3F;
	flex-shrink: 0;
}

/* Logo */
.ox-header__logo {
	display: flex;
	align-items: center;
/* 	padding: 0 32px; */
	text-decoration: none;
	flex-shrink: 0;
}

.ox-logo {
	display: flex;
	align-items: center;
	gap: 10px;
}

/* Header logo — fit within 48px header */
.ox-header .ox-logo .ox-logo__svg { height: 38px; width: auto; }

/* Footer logo — larger */
.ox-site-footer__brand .ox-logo__svg { height: 48px; width: auto; }

.ox-logo__mark { flex-shrink: 0; }

.ox-logo__text {
	font-family: 'Figtree', sans-serif;
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #F3F4F4;
}

/* ==========================================================================
   Desktop Nav
   ========================================================================== */
.ox-nav { display:flex; flex: 1; }

.ox-nav__list {
	display: flex;
	align-items: stretch;
	height: 100%;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ox-nav__item {
	display: flex;
	align-items: stretch;
	position: relative;
}

.ox-nav__link {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 12px 32px;
	font-family: 'Figtree', sans-serif;
	font-size: 14px;
	font-weight: 300;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	color: #F3F4F4;
	background: #1F3035;
	white-space: nowrap;
	transition: background 0.15s;
	cursor: pointer;
}

.ox-nav__link:hover { background: #2B3B3F; }
.ox-nav__item--active > .ox-nav__link { background: #2B3B3F; border-bottom: 4px solid #FF6600; }

.ox-nav__chevron {
	flex-shrink: 0;
	transition: transform 0.2s;
}

.ox-nav__item--has-mega:hover .ox-nav__chevron,
.ox-nav__item--has-mega.is-open .ox-nav__chevron {
	transform: rotate(180deg);
}

/* ==========================================================================
   Mega Menu
   ========================================================================== */
.ox-mega {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 300;
	background: #1F3035;
	min-width: 640px;
	box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

/* Show on hover (desktop) */
.ox-nav__item--has-mega:hover .ox-mega,
.ox-nav__item--has-mega.is-open .ox-mega {
	display: block;
}

/* Orange top accent bar */
.ox-mega::before {
	content: '';
	display: block;
	height: 4px;
	width: 150px;
	background: #FF6600;
}

/* Solutions — two column mega menu */
.ox-mega__inner {
	display: flex;
	gap: 64px;
	padding: 32px;
}

.ox-mega__col {
	display: flex;
	flex-direction: column;
}

.ox-mega__heading {
	font-family: 'Figtree', sans-serif;
	font-style: italic;
	font-weight: 300;
	font-size: 18px;
	line-height: 160%;
	color: #717C7F;
	margin: 0 0 16px 0;
	padding: 0;
	text-transform: none;
	letter-spacing: 0;
}

.ox-mega__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ox-mega__link {
	font-family: 'Figtree', sans-serif;
	font-weight: 300;
	font-size: 16px;
	line-height: 170%;
	color: #F3F4F4;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.15s;
}

.ox-mega__link:hover { color: #FF6600; }
.ox-mega__link--current { color: #FF6600; }

/* Small dropdowns (Products, Resources, Company) */
.ox-mega--sm { min-width: 0; width: auto; }
.ox-mega--sm::before { width: 100%; }
.ox-mega--sm .ox-mega__inner { gap: 0; padding: 32px; }

/* ==========================================================================
   Header CTA
   ========================================================================== */
.ox-header__cta {
	display: flex;
	align-items: center;
	padding: 12px 32px;
	font-family: 'Figtree', sans-serif;
	font-weight: 600;
	font-size: 16px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	background: #FF6600;
	color: #28261F;
	white-space: nowrap;
	flex-shrink: 0;
	transition: background 0.15s;
}
.ox-header__cta:hover { background: #FD9F5C; }

/* ==========================================================================
   Hamburger (mobile)
   ========================================================================== */
.ox-hamburger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	padding: 0 20px;
	background: none;
	border: none;
	cursor: pointer;
	margin-left: auto;
}
.ox-hamburger span {
	display: block;
	width: 24px;
	height: 2px;
	background: #F3F4F4;
	transition: transform 0.2s, opacity 0.2s;
}
.ox-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ox-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ox-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Mobile Menu
   ========================================================================== */
.ox-mobile-menu {
	display: none;
	position: fixed;
	inset: 0;
	top: 62px;
	background: #13252A;
	z-index: 199;
	overflow-y: auto;
	padding: 24px;
}
.ox-mobile-menu[aria-hidden="false"] { display: block; }

.ox-mobile-menu__section {
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #899294;
	margin: 24px 0 8px;
	padding: 0;
}
.ox-mobile-menu__section:first-child { margin-top: 0; }

.ox-mobile-menu__list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.ox-mobile-menu__list li a {
	display: block;
	padding: 12px 0;
	font-size: 16px;
	font-weight: 300;
	color: #F3F4F4;
	text-decoration: none;
	border-bottom: 1px solid #2B3B3F;
}
.ox-mobile-menu__list li a:hover { color: #03D8D8; }

.ox-mobile-menu__cta {
	display: inline-flex;
	margin-top: 32px;
	padding: 12px 24px;
}

/* ==========================================================================
   Site Footer
   ========================================================================== */
.ox-site-footer {
	background: #13252A;
	color: #F3F4F4;
	position: relative;
	overflow: hidden;
}

.ox-site-footer__inner {
	padding-left: 179px;
	padding-right: 179px;
	padding-bottom: 32px;
}

@media (max-width: 1100px) {
	.ox-site-footer__inner { padding-left: 40px; padding-right: 40px; }
}
@media (max-width: 680px) {
	.ox-site-footer__inner { padding-left: 20px; padding-right: 20px; }
}

.ox-site-footer__top {
	display: flex;
	flex-direction: row;
	gap: 54px;
	align-items: flex-start;
	margin-bottom: 48px;
}

.ox-footer-col { display: flex; flex-direction: column; gap: 0; flex-shrink: 0; }

/* Solutions col: two sub-columns side by side */
.ox-footer-col--solutions { flex: 0 0 auto; }
.ox-footer-col--solutions .ox-footer-col__lists {
	display: flex;
	flex-direction: row;
	gap: 54px;
}
.ox-footer-col--solutions .ox-footer-col__lists > div { width: 206px; }

/* Other columns fixed widths from Figma */
.ox-footer-col:not(.ox-footer-col--solutions) { flex: 0 0 auto; min-width: 96px; }

.ox-footer-col__heading {
	font-family: 'Figtree', sans-serif;
	font-weight: 300;
	font-size: 18px;
	line-height: 22px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #F3F4F4;
	margin: 0 0 24px 0;
}

.ox-footer-col__subhead {
	font-family: 'Figtree', sans-serif;
	font-style: italic;
	font-weight: 300;
	font-size: 18px;
	line-height: 160%;
	color: #899294;
	margin: 0 0 16px 0;
}

.ox-footer-col__list {
	list-style: none;
	margin: 0 0 24px 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ox-footer-col__list li a {
	font-family: 'Figtree', sans-serif;
	font-weight: 300;
	font-size: 16px;
	line-height: 170%;
	color: #F3F4F4;
	text-decoration: none;
	transition: color 0.15s;
}

.ox-footer-col__list li a:hover { color: #03D8D8; }

/* ─── Footer responsive ─────────────────────────────────────── */
@media (max-width: 1100px) {
	.ox-site-footer__top { flex-wrap: wrap; gap: 32px; }
	.ox-footer-col--solutions .ox-footer-col__lists > div { width: auto; min-width: 160px; }
}
@media (max-width: 768px) {
	.ox-site-footer__top { flex-direction: column; gap: 32px; }
	.ox-footer-col,
	.ox-footer-col--solutions { flex: 0 0 auto; width: 100%; }
	.ox-footer-col--solutions .ox-footer-col__lists { gap: 24px; flex-wrap: wrap; }
	.ox-footer-col--solutions .ox-footer-col__lists > div { width: calc(50% - 12px); min-width: 0; }
}

.ox-site-footer__bottom {
	display: flex;
	flex-direction: column;
	gap: 48px;
	padding-top: 32px;
	border-top: 1px solid #2B3B3F;
}

.ox-site-footer__brand {
	display: flex;
	align-items: center;
	gap: 40px;
}

.ox-footer-wordmark {
	font-family: 'Figtree', sans-serif;
	font-weight: 700;
	font-size: 69px;
	line-height: 88px;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: #F3F4F4;
}

.ox-site-footer__legal {
	font-family: 'Figtree', sans-serif;
	font-weight: 300;
	font-size: 12px;
	line-height: 170%;
	color: #F3F4F4;
	margin: 0;
}

.ox-site-footer__legal a {
	color: #F3F4F4;
	text-decoration: none;
}
.ox-site-footer__legal a:hover { color: #03D8D8; }

/* Teal grid wave at bottom */
.ox-site-footer__wave {
	width: 100%;
	overflow: hidden;
	line-height: 0;
	margin-top: 48px;
}
.ox-site-footer__wave svg {
	display: block;
	width: 100%;
	height: auto;
}

/* ==========================================================================
   Generic page / post
   ========================================================================== */
.ox-main {
	padding: 80px 0;
	background: #FAF4E5;
}

.ox-post { max-width: 800px; }
.ox-post + .ox-post { margin-top: 48px; }

.ox-post__content {
	margin-top: 24px;
	font-size: 18px;
	line-height: 1.7;
}
.ox-post__content p  { margin-bottom: 1em; }
.ox-post__content h2 { margin: 1.5em 0 0.5em; }
.ox-post__content a  { color: #FF6600; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	.ox-nav,
	.ox-header__cta { display: none; }
	.ox-hamburger { display: flex; }

	.ox-site-footer__top {
		flex-wrap: wrap;
		gap: 40px;
	}
	.ox-footer-wordmark { font-size: 48px; }
}

@media (max-width: 600px) {
	.ox-site-footer__top { flex-direction: column; }
	.ox-footer-wordmark { font-size: 32px; letter-spacing: 0.12em; }
}

/* ─── Global mobile H1 cap ──────────────────────────────────── */
@media (max-width: 768px) {
	h1,
	.ox-hero__heading,
	.ox-hero__h1,
	.ox-yardos-hero__h1,
	.ox-industry-hero__h1 {
		font-size: 48px !important;
		line-height: 1.05 !important;
	}
}