/* CareersMW General — main stylesheet */
:root {
	--jsmw-teal: #29b7c5;
	--jsmw-teal-dark: #17828d;
	--jsmw-navy: #0e3a40;
	--jsmw-gold: #e8a13c;
	--jsmw-gold-dark: #c9821c;
	--jsmw-ink: #1c2321;
	--jsmw-muted: #5c6a66;
	--jsmw-line: #e2e8e6;
	--jsmw-bg: #f7faf9;
	--jsmw-card: #ffffff;
	--jsmw-radius: 10px;
	--jsmw-font-display: 'Open Sans', Arial, Helvetica, sans-serif;
	--jsmw-font-body: 'Open Sans', Arial, Helvetica, sans-serif;
	--jsmw-menu-bg: #262626;
	--jsmw-menu-accent: var(--jsmw-teal);
}

* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
	margin: 0;
	font-family: var(--jsmw-font-body);
	font-size: 13pt;
	line-height: 1.65;
	color: var(--jsmw-ink);
	background: var(--jsmw-bg);
}
html, body, body *, button, input, select, textarea {
	font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
body { font-size: 13pt; }
h1, h2, h3, h4 { font-family: var(--jsmw-font-display); line-height: 1.2; color: var(--jsmw-ink); }
a { color: #000; }
img { max-width: 100%; height: auto; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 36px; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { clip: auto; width: auto; height: auto; left: 8px; top: 8px; background: var(--jsmw-gold); color: #000; padding: 8px 14px; z-index: 999; }

/* Buttons */
.btn { display: inline-block; padding: 12px 22px; border-radius: var(--jsmw-radius); font-weight: 600; text-decoration: none; border: 0; cursor: pointer; font-family: var(--jsmw-font-body); }
.btn-gold { background: var(--jsmw-gold); color: #1c1204; }
.btn-gold:hover { background: var(--jsmw-gold-dark); color: #fff; }

/* Header */
.site-header { background: var(--jsmw-menu-bg); border-bottom: 4px solid var(--jsmw-menu-accent); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: stretch; gap: 16px; min-height: 68px; flex-wrap: nowrap; }
.header-inner > * { min-width: 0; }
.site-branding { display: flex; align-items: center; }
.site-title { font-family: var(--jsmw-font-display); font-weight: 700; font-size: 1.25rem; text-decoration: none; color: #fff; }
.site-logo-link { display: flex; align-items: center; }
.site-logo, .site-branding .custom-logo { display: block; width: auto; height: 48px; max-height: 48px; border-radius: 6px; background: #fff; padding: 3px; }
.main-navigation { margin-left: auto; display: flex; align-items: stretch; flex: 1 1 auto; justify-content: flex-end; overflow: visible; min-width: 0; }
.main-navigation ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0; margin: 0; padding: 0; justify-content: flex-end; }
.main-navigation li { position: relative; display: flex; }
.main-navigation a { display: flex; align-items: center; padding: 0 14px; text-decoration: none; font-family: var(--jsmw-font-display); font-weight: 600; font-size: 0.88rem; letter-spacing: 0.03em; text-transform: uppercase; color: #f2f2f2; white-space: nowrap; }
.main-navigation a:hover { background: rgba(255,255,255,.08); color: #fff; }
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a,
.main-navigation .current-menu-ancestor > a { background: var(--jsmw-menu-accent); color: #fff; }
.main-navigation .menu-item-has-children > a::after { content: '\2304'; margin-left: 8px; font-size: 0.8em; line-height: 0; transform: translateY(-3px); }
.main-navigation ul ul { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--jsmw-menu-bg); flex-direction: column; padding: 6px 0; box-shadow: 0 10px 24px rgba(0,0,0,.25); z-index: 200; }
.main-navigation li:hover > ul, .main-navigation li:focus-within > ul { display: flex; }
.main-navigation ul ul li { display: block; }
.main-navigation ul ul a { padding: 10px 18px; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 0.95rem; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle-bar { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; }

/* Main content and layouts */
.site-main { padding: 56px 0 76px; min-width: 0; }
.layout-with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; padding-top: 44px; padding-bottom: 64px; }
.layout-with-sidebar .site-main { padding: 0; }
.entry-title { font-size: 1.65rem; margin: 0 0 14px; }
.entry-title a { color: inherit; text-decoration: none; }
.entry-title a:hover { color: var(--jsmw-teal-dark); }
.entry-meta { color: var(--jsmw-muted); font-size: 0.9rem; }
.entry-content { min-width: 0; }
.entry-content > :first-child { margin-top: 0; }
.entry-content > :last-child { margin-bottom: 0; }
.post-card { background: var(--jsmw-card); border: 1px solid var(--jsmw-line); border-radius: var(--jsmw-radius); padding: 32px; margin-bottom: 18px; }
.front-page-content { background: transparent; }

/* Widgets */
.widget { background: var(--jsmw-card); border: 1px solid var(--jsmw-line); border-radius: var(--jsmw-radius); padding: 18px; margin-bottom: 18px; }
.widget-title { font-size: 1rem; margin: 0 0 12px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 6px 0; border-bottom: 1px solid var(--jsmw-line); }
.widget li:last-child { border-bottom: 0; }
.widget-area-home { padding-top: 44px; }
.widget-area-home .widget { border: 0; border-top: 3px solid var(--jsmw-menu-accent); border-radius: 0 0 8px 8px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.widget-area-home .widget-title { color: var(--jsmw-teal-dark); text-transform: uppercase; font-size: 0.95rem; letter-spacing: 0.03em; margin-bottom: 14px; }
.widget-area-home .widget ul { list-style: none; margin: 0; padding: 0; }
.widget-area-home .widget li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--jsmw-line); }
.widget-area-home .widget li:last-child { border-bottom: 0; }
.widget-area-home .widget li img { width: 44px; height: 44px; object-fit: contain; border-radius: 6px; flex-shrink: 0; }
.widget-area-home .widget li a { font-weight: 700; color: var(--jsmw-gold-dark); text-decoration: none; }
.widget-area-home .widget li a:hover { text-decoration: underline; }

/* General forms */
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], input[type="tel"], select, textarea {
	max-width: 100%;
	border: 1px solid var(--jsmw-line);
	border-radius: var(--jsmw-radius);
	padding: 10px 12px;
	color: var(--jsmw-ink);
	background: #fff;
}
textarea { width: 100%; }
button, input[type="submit"] { cursor: pointer; }

/* Tables and authored content */
.entry-content, .entry-content * { color: #000 !important; }
.entry-content a, .entry-content a:visited, .entry-content a:hover, .entry-content a:focus { color: #000 !important; }
table { border-collapse: collapse; width: 100%; }
table th, table td, .woocommerce table.shop_table th, .woocommerce table.shop_table td { padding: 3.5px 0.35em; }
.entry-content table { border: 1px solid var(--jsmw-line); }
.entry-content table th, .entry-content table td { border: 1px solid var(--jsmw-line); }

/* Pagination */
.navigation.pagination { margin-top: 24px; }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.nav-links .page-numbers { padding: 8px 14px; border: 1px solid var(--jsmw-line); border-radius: 8px; text-decoration: none; background: #fff; }
.nav-links .page-numbers.current { background: var(--jsmw-teal); color: #fff; border-color: var(--jsmw-teal); }

/* WooCommerce */
.woocommerce .button, .woocommerce button.button.alt { background: var(--jsmw-teal); color: #fff; border-radius: var(--jsmw-radius); }
.woocommerce .button:hover { background: var(--jsmw-teal-dark); }

/* Footer */
.site-footer { background: var(--jsmw-navy); color: #cfe0dd; margin-top: 40px; }
.footer-widgets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding: 44px 20px; }
.site-footer .widget { background: transparent; border: 0; padding: 0; }
.site-footer .widget-title { color: var(--jsmw-gold); }
.site-footer a { color: #cfe0dd; }
.site-info { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0; font-size: 0.88rem; }
.site-info-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.site-info ul { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }

/* Responsive */
@media (max-width: 900px) {
	.layout-with-sidebar { grid-template-columns: 1fr; }
	.footer-widgets { grid-template-columns: repeat(2, 1fr); }
	.widget-area-home { padding-top: 0; }
}
@media (max-width: 960px) {
	.menu-toggle { display: block; margin-left: auto; }
	.main-navigation ul { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-wrap: nowrap; background: var(--jsmw-menu-bg); flex-direction: column; padding: 10px 0; border-bottom: 4px solid var(--jsmw-menu-accent); }
	.main-navigation li { display: block; }
	.main-navigation a { padding: 12px 20px; }
	.main-navigation ul ul { position: static; box-shadow: none; padding-left: 12px; }
	.main-navigation.toggled ul { display: flex; }
	.footer-widgets { grid-template-columns: 1fr; }
}
