/*
Theme Name:   Westoceanic
Theme URI:    https://westoceanic.com
Author:       Westoceanic Services
Description:  Institutional, safety-focused corporate theme for Westoceanic Services — oilfield manpower and services supply, Mumbai & Sharjah.
Version:      1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License:      GPL-2.0-or-later
Text Domain:  westoceanic
*/

/* ---------------------------------------------
   1. Design tokens
--------------------------------------------- */
:root {
	--wos-navy:        #0B2545;
	--wos-navy-dark:   #071830;
	--wos-navy-light:  #12345f;
	--wos-steel:       #6B7280;
	--wos-steel-light: #E5E8EC;
	--wos-white:       #FFFFFF;
	--wos-amber:       #F59E0B;
	--wos-amber-dark:  #B45309;
	--wos-success:     #1E7E34;
	--wos-error:       #B32D2E;

	--wos-font: 'Inter', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

	--wos-container: 1200px;
	--wos-radius: 6px;
	--wos-shadow: 0 4px 16px rgba(11, 37, 69, 0.10);
	--wos-header-height: 84px;
}

/* ---------------------------------------------
   2. Reset & base
--------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--wos-header-height); }
body {
	margin: 0;
	font-family: var(--wos-font);
	color: var(--wos-navy);
	background: var(--wos-white);
	line-height: 1.6;
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--wos-navy); text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; margin: 0 0 0.6em; color: var(--wos-navy); }
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
button { font-family: inherit; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.wos-skip-link {
	position: absolute;
	left: -999px;
	top: 0;
	background: var(--wos-navy);
	color: var(--wos-white);
	padding: 0.75em 1.25em;
	z-index: 10000;
}
.wos-skip-link:focus { left: 0; }

.wos-container {
	max-width: var(--wos-container);
	margin: 0 auto;
	padding: 0 24px;
}

.wos-icon { width: 1.1em; height: 1.1em; vertical-align: -0.15em; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---------------------------------------------
   3. Buttons
--------------------------------------------- */
.wos-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.85em 1.6em;
	border-radius: var(--wos-radius);
	font-weight: 600;
	font-size: 0.95rem;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.wos-btn--amber {
	background: var(--wos-amber);
	color: var(--wos-navy-dark);
}
.wos-btn--amber:hover, .wos-btn--amber:focus-visible {
	background: var(--wos-amber-dark);
	color: var(--wos-white);
}
.wos-btn--outline {
	background: transparent;
	border-color: var(--wos-white);
	color: var(--wos-white);
}
.wos-btn--outline:hover { background: rgba(255,255,255,0.12); }
.wos-btn--navy { background: var(--wos-navy); color: var(--wos-white); }
.wos-btn--navy:hover { background: var(--wos-navy-light); }
.wos-btn--small { padding: 0.6em 1.1em; font-size: 0.85rem; }
.wos-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---------------------------------------------
   4. Header / navigation
--------------------------------------------- */
.wos-site-header {
	position: sticky;
	top: 0;
	z-index: 500;
	background: var(--wos-white);
	box-shadow: 0 2px 10px rgba(11,37,69,0.08);
}
.wos-site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: var(--wos-header-height);
	gap: 24px;
}
.wos-site-header__name {
	font-size: 1.4rem;
	font-weight: 800;
	color: var(--wos-navy);
	letter-spacing: -0.01em;
}
.custom-logo-link img { max-height: 56px; width: auto; }

.wos-nav-toggle {
	display: none;
	background: none;
	border: none;
	padding: 8px;
	color: var(--wos-navy);
	cursor: pointer;
}
.wos-nav-toggle .wos-icon { width: 28px; height: 28px; }
.wos-nav-toggle__close { display: none; }
.wos-nav-toggle[aria-expanded="true"] .wos-nav-toggle__open { display: none; }
.wos-nav-toggle[aria-expanded="true"] .wos-nav-toggle__close { display: inline-block; }

.wos-primary-nav { display: flex; align-items: center; gap: 28px; }
.wos-menu { display: flex; align-items: center; gap: 26px; }
.wos-menu .menu-link {
	font-weight: 600;
	font-size: 0.97rem;
	color: var(--wos-navy);
	padding: 8px 2px;
	position: relative;
}
.wos-menu .menu-link:hover, .wos-menu .menu-link:focus-visible { color: var(--wos-amber-dark); }
.wos-menu > .menu-item > .menu-link::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: -4px;
	height: 2px;
	background: var(--wos-amber);
	transform: scaleX(0);
	transition: transform 0.2s ease;
}
.wos-menu > .menu-item:hover > .menu-link::after,
.wos-menu > .menu-item.current-menu-item > .menu-link::after,
.wos-menu > .menu-item.current-menu-ancestor > .menu-link::after {
	transform: scaleX(1);
}

.wos-menu .menu-item-has-children { position: relative; }
.wos-menu .dropdown-arrow { font-size: 0.65em; margin-left: 2px; }
.wos-menu .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 240px;
	background: var(--wos-white);
	box-shadow: var(--wos-shadow);
	border-top: 3px solid var(--wos-amber);
	border-radius: 0 0 var(--wos-radius) var(--wos-radius);
	padding: 8px 0;
	z-index: 10;
}
.wos-menu .menu-item-has-children:hover > .sub-menu,
.wos-menu .menu-item-has-children:focus-within > .sub-menu {
	display: block;
}
.wos-menu .sub-menu .menu-link {
	display: block;
	padding: 10px 20px;
	font-weight: 500;
}
.wos-menu .sub-menu .menu-link:hover { background: var(--wos-steel-light); }
.wos-menu .sub-menu .menu-link::after { display: none; }

@media (max-width: 900px) {
	.wos-nav-toggle { display: inline-flex; }
	.wos-primary-nav {
		position: fixed;
		inset: var(--wos-header-height) 0 0 0;
		background: var(--wos-white);
		flex-direction: column;
		align-items: stretch;
		padding: 24px;
		overflow-y: auto;
		transform: translateX(100%);
		transition: transform 0.25s ease;
	}
	.wos-primary-nav.is-open { transform: translateX(0); }
	.wos-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.wos-menu .menu-item { border-bottom: 1px solid var(--wos-steel-light); }
	.wos-menu .menu-link { padding: 14px 4px; display: block; }
	.wos-menu .sub-menu {
		display: none;
		position: static;
		box-shadow: none;
		border-top: none;
		padding-left: 16px;
	}
	.wos-menu .menu-item-has-children.is-open > .sub-menu { display: block; }
	.wos-nav-cta { margin-top: 16px; justify-content: center; }
}

/* ---------------------------------------------
   5. Page header band (interior pages)
--------------------------------------------- */
.wos-page-header {
	background: linear-gradient(135deg, var(--wos-navy) 0%, var(--wos-navy-dark) 100%);
	color: var(--wos-white);
	padding: 64px 0 56px;
	text-align: center;
}
.wos-page-header__title { color: var(--wos-white); margin-bottom: 0.3em; }
.wos-page-header__subtitle { color: rgba(255,255,255,0.85); max-width: 640px; margin: 0 auto; font-size: 1.05rem; }

/* ---------------------------------------------
   6. Hero (Home)
--------------------------------------------- */
.wos-hero {
	position: relative;
	color: var(--wos-white);
	overflow: hidden;
}
.wos-hero__art { position: absolute; inset: 0; z-index: 0; }
.wos-hero__art svg { width: 100%; height: 100%; }
.wos-hero__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,37,69,0.92) 0%, rgba(11,37,69,0.55) 100%); z-index: 1; }
.wos-hero__content { position: relative; z-index: 2; padding: 100px 0 120px; max-width: 720px; }
.wos-hero__eyebrow {
	display: inline-block;
	color: var(--wos-amber);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-size: 0.85rem;
	margin-bottom: 1em;
}
.wos-hero h1 { color: var(--wos-white); }
.wos-hero__subhead { font-size: 1.15rem; color: rgba(255,255,255,0.88); max-width: 560px; }
.wos-hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 1.6em; }

/* ---------------------------------------------
   7. Stats strip
--------------------------------------------- */
.wos-stats {
	background: var(--wos-navy-dark);
	color: var(--wos-white);
	padding: 40px 0;
}
.wos-stats__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 24px;
	text-align: center;
}
.wos-stat__value { font-size: 2.4rem; font-weight: 800; color: var(--wos-amber); }
.wos-stat__suffix { font-size: 2.4rem; font-weight: 800; color: var(--wos-amber); }
.wos-stat__label { display: block; font-size: 0.9rem; color: rgba(255,255,255,0.8); margin-top: 0.3em; }

/* ---------------------------------------------
   8. Sections / cards
--------------------------------------------- */
.wos-section { padding: 80px 0; }
.wos-section--alt { background: var(--wos-steel-light); }
.wos-section__head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.wos-section__head p { color: var(--wos-steel); font-size: 1.05rem; }

.wos-grid { display: grid; gap: 28px; }
.wos-grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.wos-grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.wos-card {
	background: var(--wos-white);
	border-radius: var(--wos-radius);
	box-shadow: var(--wos-shadow);
	padding: 32px 28px;
	border-top: 3px solid var(--wos-amber);
}
.wos-card__icon {
	width: 52px; height: 52px;
	display: flex; align-items: center; justify-content: center;
	background: var(--wos-navy);
	color: var(--wos-amber);
	border-radius: 50%;
	margin-bottom: 18px;
}
.wos-card__icon .wos-icon { width: 26px; height: 26px; }
.wos-card h3 { margin-bottom: 0.4em; }
.wos-card p:last-child { margin-bottom: 0; color: var(--wos-steel); }

.wos-cta-band {
	background: var(--wos-navy);
	color: var(--wos-white);
	padding: 64px 0;
	text-align: center;
}
.wos-cta-band h2 { color: var(--wos-white); }
.wos-cta-band p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto 1.5em; }

/* ---------------------------------------------
   9. Content pages (About, Products, Services, HSE, etc.)
--------------------------------------------- */
.wos-prose { max-width: 820px; margin: 0 auto; }
.wos-prose h2 { margin-top: 1.6em; }
.wos-prose h2:first-child { margin-top: 0; }
.wos-prose ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1em; }
.wos-prose ul li { margin-bottom: 0.4em; }
.wos-prose ol { padding-left: 1.4em; margin-bottom: 1em; }

.wos-checklist { list-style: none; padding: 0; margin: 1.5em 0; display: grid; gap: 12px; }
.wos-checklist li { display: flex; gap: 10px; align-items: flex-start; }
.wos-checklist .wos-icon { color: var(--wos-success); flex-shrink: 0; margin-top: 0.2em; }

/* Certifications badge grid */
.wos-badge-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.wos-badge-card {
	background: var(--wos-white);
	border: 1px solid var(--wos-steel-light);
	border-radius: var(--wos-radius);
	padding: 28px 20px;
	text-align: center;
}
.wos-badge-card__placeholder {
	width: 96px; height: 96px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: var(--wos-navy);
	color: var(--wos-amber);
	display: flex; align-items: center; justify-content: center;
}
.wos-badge-card__placeholder .wos-icon { width: 44px; height: 44px; }
.wos-badge-card h3 { font-size: 1rem; margin-bottom: 0.3em; }
.wos-badge-card p { color: var(--wos-steel); font-size: 0.85rem; margin: 0; }

/* Footer cert strip */
.wos-cert-strip { background: var(--wos-navy-dark); padding: 18px 0; }
.wos-cert-strip__inner { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.wos-cert-badge { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.85); font-size: 0.82rem; font-weight: 600; }
.wos-cert-badge .wos-icon { color: var(--wos-amber); }

/* Job openings (Career) */
.wos-jobs { display: grid; gap: 20px; margin: 2em 0; }
.wos-job-card {
	border: 1px solid var(--wos-steel-light);
	border-radius: var(--wos-radius);
	padding: 24px;
	display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center;
}
.wos-job-card__meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--wos-steel); font-size: 0.88rem; margin-top: 0.3em; }
.wos-job-card__empty { text-align: center; padding: 40px 20px; color: var(--wos-steel); border: 1px dashed var(--wos-steel-light); border-radius: var(--wos-radius); }

/* Offices (Contact) */
.wos-offices { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-bottom: 2.5em; }
.wos-office-card { background: var(--wos-steel-light); border-radius: var(--wos-radius); padding: 26px; }
.wos-office-card h3 { display: flex; align-items: center; gap: 8px; }
.wos-map-placeholder {
	background: var(--wos-navy);
	color: rgba(255,255,255,0.7);
	border-radius: var(--wos-radius);
	min-height: 220px;
	display: flex; align-items: center; justify-content: center;
	text-align: center;
	font-size: 0.9rem;
	padding: 20px;
}

/* ---------------------------------------------
   10. Forms
--------------------------------------------- */
.wos-form { max-width: 640px; }
.wos-form--wide { max-width: 100%; }
.wos-field { margin-bottom: 20px; }
.wos-field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.92rem; }
.wos-field input[type="text"],
.wos-field input[type="email"],
.wos-field input[type="tel"],
.wos-field textarea,
.wos-field select {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #c9d2de;
	border-radius: var(--wos-radius);
	font-family: inherit;
	font-size: 1rem;
	background: var(--wos-white);
	color: var(--wos-navy);
}
.wos-field input:focus, .wos-field textarea:focus, .wos-field select:focus {
	outline: 2px solid var(--wos-amber);
	outline-offset: 1px;
	border-color: var(--wos-amber);
}
.wos-field--file {
	border: 2px dashed #c9d2de;
	border-radius: var(--wos-radius);
	padding: 20px;
	text-align: center;
}
.wos-field-hint { font-size: 0.82rem; color: var(--wos-steel); margin-top: 4px; }
.wos-field-error { font-size: 0.82rem; color: var(--wos-error); margin-top: 4px; display: none; }
.wos-field.has-error input, .wos-field.has-error textarea { border-color: var(--wos-error); }
.wos-field.has-error .wos-field-error { display: block; }

/* Honeypot: visually hidden but not display:none (keeps it "visible" to naive bots) */
.wos-hp-field {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.wos-notice {
	padding: 14px 18px;
	border-radius: var(--wos-radius);
	margin-bottom: 24px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 10px;
}
.wos-notice--success { background: #e5f3e8; color: var(--wos-success); }
.wos-notice--error { background: #fbe9e9; color: var(--wos-error); }

/* ---------------------------------------------
   11. Scroll-triggered fade-in
--------------------------------------------- */
[data-wos-animate] {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-wos-animate].is-visible { opacity: 1; transform: translateY(0); }

/* ---------------------------------------------
   12. Footer
--------------------------------------------- */
.wos-site-footer { background: var(--wos-navy); color: rgba(255,255,255,0.85); padding-top: 64px; }
.wos-site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.wos-footer-brand { font-size: 1.2rem; font-weight: 800; color: var(--wos-white); }
.wos-footer-heading { color: var(--wos-white); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 14px; }
.wos-footer-col a { color: rgba(255,255,255,0.85); }
.wos-footer-col a:hover { color: var(--wos-amber); }
.wos-footer-menu li { margin-bottom: 10px; }
.wos-social-link { display: inline-flex; margin-top: 12px; color: var(--wos-white); }
.wos-site-footer__bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 20px 0; }
.wos-site-footer__bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.85rem; }
.wos-site-footer__bottom-inner p { margin: 0; }

@media (max-width: 860px) {
	.wos-site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
	.wos-site-footer__grid { grid-template-columns: 1fr; }
	.wos-section { padding: 56px 0; }
	.wos-hero__content { padding: 72px 0 88px; }
}
