/*
Theme Name: NextWave
Theme URI: https://nextwave.com
Author: NextWave BPO
Author URI: https://nextwave.com
Description: Custom NextWave BPO corporate website theme. No Elementor dependency. Pure PHP templates, vanilla CSS, vanilla JS.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nextwave
*/


/* ============================================================
   GLOBAL RESET
   ============================================================ */

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

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

body {
	font-family: var(--nw-font-body);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--nw-text-body);
	background: var(--nw-white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img,
svg,
video {
	display: block;
	max-width: 100%;
}

a {
	color: inherit;
	text-decoration: none;
}

button {
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	border: none;
	font: inherit;
	color: inherit;
	cursor: pointer;
}

ul,
ol {
	list-style: none;
}


/* ============================================================
   DESIGN TOKENS
   ============================================================ */

:root {
	/* Brand palette */
	--nw-navy:      #07111f;
	--nw-navy-mid:  #0d1f35;
	--nw-blue:      #0077b6;
	--nw-cyan:      #00b4d8;
	--nw-white:     #ffffff;
	--nw-off-white: #f8fafc;
	--nw-text-h:    #111827;
	--nw-text-body: #374151;
	--nw-text-muted:#6b7280;
	--nw-on-dark:   rgba(255, 255, 255, 0.65);
	--nw-border:    #e5e7eb;

	/* Layout */
	--nw-max-w:   1180px;
	--nw-gutter:  32px;

	/* Header */
	--nw-header-h: 72px;

	/* Typography */
	--nw-font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
	--nw-font-head: 'Inter', 'Segoe UI', system-ui, sans-serif;

	/* Misc */
	--nw-radius:    10px;
	--nw-radius-sm: 6px;
	--nw-speed:     0.25s;
	--nw-ease:      cubic-bezier(0.4, 0, 0.2, 1);
}


/* ============================================================
   SITE STRUCTURE
   ============================================================ */

.nw-site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.nw-main {
	flex: 1;
	padding-top: var(--nw-header-h);
}


/* ============================================================
   HEADER
   ============================================================ */

.nw-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	height: var(--nw-header-h);
	background: var(--nw-navy);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	transition: box-shadow var(--nw-speed) var(--nw-ease);
}

.nw-header.is-scrolled {
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.nw-header__inner {
	max-width: var(--nw-max-w);
	width: 100%;
	height: 100%;
	margin: 0 auto;
	padding: 0 var(--nw-gutter);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}

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

.nw-header__logo img {
	height: 36px;
	width: auto;
}

.nw-header__logo-text {
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	color: var(--nw-white);
}

.nw-header__logo-text span {
	color: var(--nw-cyan);
}

/* Primary nav */
.nw-nav {
	display: flex;
	align-items: center;
	gap: 4px;
}

.nw-nav__list {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nw-nav__list a {
	display: block;
	padding: 8px 14px;
	font-size: 0.875rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.70);
	border-radius: var(--nw-radius-sm);
	transition:
		color var(--nw-speed) var(--nw-ease),
		background var(--nw-speed) var(--nw-ease);
}

.nw-nav__list a:hover,
.nw-nav__list .current-menu-item > a,
.nw-nav__list .current_page_item > a {
	color: var(--nw-white);
	background: rgba(255, 255, 255, 0.06);
}

/* CTA nav link */
.nw-nav__cta {
	display: inline-flex;
	align-items: center;
	padding: 9px 20px;
	background: var(--nw-cyan);
	color: var(--nw-navy) !important;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	border-radius: var(--nw-radius-sm);
	margin-left: 8px;
	transition:
		background var(--nw-speed) var(--nw-ease),
		transform var(--nw-speed) var(--nw-ease),
		box-shadow var(--nw-speed) var(--nw-ease);
}

.nw-nav__cta:hover {
	background: #00c9e8;
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(0, 180, 216, 0.35);
}

/* Hamburger */
.nw-hamburger {
	display: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: var(--nw-radius-sm);
	color: var(--nw-white);
	transition: background var(--nw-speed) var(--nw-ease);
}

.nw-hamburger:hover {
	background: rgba(255, 255, 255, 0.08);
}

.nw-hamburger svg {
	width: 22px;
	height: 22px;
}


/* ============================================================
   MOBILE NAV DRAWER
   ============================================================ */

.nw-mobile-nav {
	display: none;
	position: fixed;
	top: var(--nw-header-h);
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999;
	background: var(--nw-navy);
	overflow-y: auto;
	padding: 24px var(--nw-gutter) 40px;
	transform: translateX(-100%);
	transition: transform 0.32s var(--nw-ease);
}

.nw-mobile-nav.is-open {
	transform: translateX(0);
}

.nw-mobile-nav__list {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.nw-mobile-nav__list a {
	display: block;
	padding: 12px 16px;
	font-size: 1rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.75);
	border-radius: var(--nw-radius-sm);
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	transition:
		color var(--nw-speed) var(--nw-ease),
		background var(--nw-speed) var(--nw-ease);
}

.nw-mobile-nav__list a:hover {
	color: var(--nw-white);
	background: rgba(255, 255, 255, 0.06);
}

.nw-mobile-nav__cta {
	display: block;
	margin-top: 20px;
	padding: 14px 20px;
	background: var(--nw-cyan);
	color: var(--nw-navy);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	border-radius: var(--nw-radius-sm);
	text-align: center;
}


/* ============================================================
   FOOTER
   ============================================================ */

.nw-footer {
	background: linear-gradient(180deg, #0d1f35 0%, #07111f 100%);
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	padding-top: 72px;
	color: var(--nw-white);
}

.nw-footer__inner {
	max-width: var(--nw-max-w);
	width: 100%;
	margin: 0 auto;
	padding: 0 var(--nw-gutter) 56px;
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1fr;
	gap: 48px;
}

/* Brand column */
.nw-footer__brand-name {
	font-size: 1.2rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	color: var(--nw-white);
	margin-bottom: 12px;
}

.nw-footer__brand-name span {
	color: var(--nw-cyan);
}

.nw-footer__tagline {
	font-size: 0.875rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.45);
	max-width: 260px;
	margin-bottom: 24px;
}

.nw-footer__social {
	display: flex;
	gap: 10px;
}

.nw-footer__social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.10);
	border-radius: 8px;
	color: rgba(255, 255, 255, 0.50);
	transition:
		background var(--nw-speed) var(--nw-ease),
		color var(--nw-speed) var(--nw-ease),
		border-color var(--nw-speed) var(--nw-ease);
}

.nw-footer__social a:hover {
	background: var(--nw-cyan);
	border-color: var(--nw-cyan);
	color: var(--nw-navy);
}

.nw-footer__social svg {
	width: 16px;
	height: 16px;
}

/* Link columns */
.nw-footer__col-title {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.30);
	margin-bottom: 20px;
}

.nw-footer__links {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.nw-footer__links a {
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.55);
	transition: color var(--nw-speed) var(--nw-ease);
}

.nw-footer__links a:hover {
	color: var(--nw-cyan);
}

/* Copyright bar */
.nw-footer__bar {
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.nw-footer__bar-inner {
	max-width: var(--nw-max-w);
	width: 100%;
	margin: 0 auto;
	padding: 20px var(--nw-gutter);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.nw-footer__copy {
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.28);
}

.nw-footer__legal {
	display: flex;
	gap: 20px;
}

.nw-footer__legal a {
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.28);
	transition: color var(--nw-speed) var(--nw-ease);
}

.nw-footer__legal a:hover {
	color: rgba(255, 255, 255, 0.55);
}


/* ============================================================
   ARCHIVE / INDEX FALLBACK
   ============================================================ */

.nw-archive {
	background: var(--nw-white);
	padding: 72px 0 100px;
}

.nw-archive__inner {
	max-width: var(--nw-max-w);
	width: 100%;
	margin: 0 auto;
	padding: 0 var(--nw-gutter);
}

.nw-archive__header {
	margin-bottom: 48px;
}

.nw-archive__title {
	font-size: clamp(1.8rem, 3vw, 2.6rem);
	font-weight: 800;
	color: var(--nw-text-h);
	line-height: 1.2;
	margin-bottom: 10px;
}

.nw-archive__desc {
	font-size: 1rem;
	color: var(--nw-text-muted);
	max-width: 560px;
}

.nw-archive__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 32px;
}

.nw-archive__empty {
	color: var(--nw-text-muted);
	font-size: 1rem;
}

/* Post card */
.nw-post-card {
	border: 1px solid var(--nw-border);
	border-radius: var(--nw-radius);
	overflow: hidden;
	background: var(--nw-white);
	transition: box-shadow var(--nw-speed) var(--nw-ease);
}

.nw-post-card:hover {
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.nw-post-card__thumb img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.nw-post-card__body {
	padding: 24px;
}

.nw-post-card__date {
	font-size: 0.78rem;
	color: var(--nw-text-muted);
	margin-bottom: 8px;
}

.nw-post-card__title {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--nw-text-h);
	line-height: 1.35;
	margin-bottom: 12px;
}

.nw-post-card__title a:hover {
	color: var(--nw-blue);
}

.nw-post-card__excerpt {
	font-size: 0.9rem;
	color: var(--nw-text-body);
	line-height: 1.7;
	margin-bottom: 16px;
}

.nw-post-card__more {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--nw-blue);
}

.nw-post-card__more:hover {
	color: var(--nw-cyan);
}


/* ============================================================
   RESPONSIVE — HEADER & FOOTER
   ============================================================ */

@media (max-width: 1024px) {
	.nw-footer__inner {
		grid-template-columns: 1fr 1fr;
		gap: 36px;
	}
}

@media (max-width: 900px) {
	.nw-nav       { display: none; }
	.nw-hamburger { display: flex; }
	.nw-mobile-nav { display: block; }
}

@media (max-width: 640px) {
	:root {
		--nw-gutter:   20px;
		--nw-header-h: 64px;
	}

	.nw-footer__inner {
		grid-template-columns: 1fr;
		gap: 32px;
		padding-bottom: 40px;
	}

	.nw-footer__bar-inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}
}
